penaltyblog.models.dixon_coles_weights#
- penaltyblog.models.dixon_coles_weights(dates, xi=0.0018, base_date=None) ndarray[Any, dtype[_ScalarType_co]] [source]#
Calculates a decay curve based on the algorithm given by Dixon and Coles in their paper
- Parameters:
dates (list) – A list or pd.Series of dates to calculate weights for
x1 (float) – Controls the steepness of the decay curve
base_date (date) – The base date to start the decay from. If set to None then it uses the maximum date