Top Banner
Adaptive short term forecasting How to approach short term forecasting of multiple interdependent time series and reduce forecasting error twice [spoiler] A. Akimenko Moscow’16
19

Adaptive short term forecasting

Apr 13, 2017

Download

Data & Analytics

Alex Akimenko
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Adaptive short term forecasting

Adaptive short term forecasting How to approach short term forecasting of multiple interdependent

time series and reduce forecasting error twice [spoiler]

A. AkimenkoMoscow’16

Page 2: Adaptive short term forecasting

Contents

First glance on the data

Forecasting algorithm

Data preparation and new features

Modeling

Final results & summary

Page 3: Adaptive short term forecasting

First glance on the data

Page 4: Adaptive short term forecasting

• Daily bucket volumes - 14 time series; • Correlated with the neighbour with some lag;

Example of one of the time series

• White squares are weekends/holidays or were excluded as outliers; • The time series have dual seasonality (weekly and monthly) and trend;

Page 5: Adaptive short term forecasting

The task is to develop an algorithm which will predict Y for the next month for each time series with Mean

Absolute Percentage Error (MAPE) < 3%.

Page 6: Adaptive short term forecasting

Forecasting algorithm

Page 7: Adaptive short term forecasting

Auto-regression models and moving average (ARMA, ARIMA, GARCH)

SSA/Gusenitca

Neural networks (RNN)

Adaptive short term forecasting:• Exponential smoothing; • Seasonal and trend decomposition;• Adaptive auto-regression;

Adaptive model selection & composition

...

Page 8: Adaptive short term forecasting

Auto-regression models and moving average (ARMA, ARIMA, GARCH)

SSA/Gusenitca

Neural networks (RNN)

Adaptive short term forecasting:• Exponential smoothing; • Seasonal and trend decomposition);• Adaptive auto-regression;

Adaptive model selection & composition

...

Page 9: Adaptive short term forecasting
Page 10: Adaptive short term forecasting

Data preparation and new features

Page 11: Adaptive short term forecasting

Normalization

Outliers

Observation period

Lagged features

Calendar features

Weighing

Page 12: Adaptive short term forecasting

Modeling

Regular Linear Model

Penalized Linear Model

Page 13: Adaptive short term forecasting

Accuracy measureScaled Errors:

• Mean absolute error (MAE) or mean absolute deviation (MAD)

• Mean squared error (MSE) or mean squared prediction error (MSPE)

• Root mean squared error (RMSE)

• Average of Errors (E)

Percentage Errors:

• Mean absolute percentage error (MAPE) or mean absolute percentage deviation (MAPD)

Scaled Errors:

• Mean absolute scaled error (MASE)

Other Measures:

• Forecast skill (SS)

Page 14: Adaptive short term forecasting

Accuracy measureScaled Errors:

• Mean absolute error (MAE) or mean absolute deviation (MAD)

• Mean squared error (MSE) or mean squared prediction error (MSPE)

• Root mean squared error (RMSE)

• Average of Errors (E)

Percentage Errors:

• Mean absolute percentage error (MAPE) or mean absolute percentage deviation (MAPD)

Scaled Errors:

• Mean absolute scaled error (MASE)

Other Measures:

• Forecast skill (SS)

Page 15: Adaptive short term forecasting

Challenger models0.Dimension reduction (Principal Component Analysis - PCA).

1.Ensembles (Random Forest, Gradient Boosted Models - GBM and XGBoost);

2.Regressions (Linear, Stepwise, Ridge and Lasso);

3.Distance based (k-Nearest Neighbor - kNN);

Page 16: Adaptive short term forecasting

Final results & summary

Page 17: Adaptive short term forecasting

As a result of testing, weighted penalized regression was chosen as base algorithm with α=0 (ridge regression) and λ=0.005. Observation period was set as 2 years.

Page 18: Adaptive short term forecasting

• The proposed algorithm allows to build time series forecasting of multiple interdependent time series;

• Reveals any kind of seasonality;

• Deals with missing values/outliers;

• Removes overfitting/multicollinearity via penalization;

• Scalable for new features (both lagged and calendar), period of forecasting and number of interdependent time series.

Page 19: Adaptive short term forecasting

Thank you for your attention!

Full research is available here: https://alexakimenko.github.io/time_series/2016/09/18/adaptive-short-term-forecasting/