Description
We outline some of the common pitfalls of machine learning for time series forecasting, with a look at time delayed predictions, autocorrelations, stationarity, accuracy metrics, and more.
Summary
- Time series forecasting is an important area of machine learning.
- However, while the time component adds additional information, it also makes time series problems more difficult to handle compared to many other prediction tasks.
- Plotting the cross-correlation between the predicted and real value (below figure), we see a clear peak at a time lag of 1 day, indicating that the model simply uses the previous value as the prediction for the future.
- Defining the model to predict the difference in values between time steps rather than the value itself, is a much stronger test of the models predictive powers.