Solved – Goodness of fit time series forecasting

forecastinggoodness of fittime series

I forecasted/simulated a time series with a n step ahead forecast (n-ahead = 250) with 4 different time series models. Now I want to test, which of these models fits the best for the data.

All I found were methods, were we need the actual future values to compare (e.g RMSE, $R^2$ etc.). Are there techniques to test for a goodness of fit without these future values? Also I am interested in methods to compare the different forecasts.

Best Answer

In-sample fit is a very bad proxy for out-of-sample accuracy, and optimizing in-sample fit will tempt you to overfit.

The gold standard is to use a holdout sample: hold back the last observations of your historical data, fit your models to the remaining data, then forecast into the holdout sample and see which model performs best on it. This will not help you much if you need a long-range forecast, with a horizon longer than your history - but "standard" time series forecasting algorithm are not really made for such long-range forecasts, anyway.

If you compare models from the same model class, you can use information criteria such as AIC or BIC, which trade off in-sample fit against model complexity. So you can compare different ARIMA models, or different ETS models. However, you cannot compare an ARIMA model against an ETS model using information criteria.

I recommend Forecasting: Principles and Practice by Rob J Hyndman and George Athanasopoulos.

Related Question