Charta is on Google Play: practise on the go. Get the app

Distinguish forecasts made within the sample from those made outside it, and rank time-series models by forecast accuracy using root mean squared error

CFA® Level II · Quantitative Methods · Time-Series Analysis · L2.QM.5.g

The idea

In-sample forecast errors measure how well a model fits the data used to estimate it; out-of-sample errors measure how well it predicts data it has not seen. A model can fit its sample beautifully and forecast badly, especially if it has many lags or variables. Forecasting accuracy is compared with root mean squared error: square each forecast error, average the squares, and take the square root. The model with the lower out-of-sample RMSE is preferred. Squaring gives large errors more weight, so RMSE differs from the mean absolute error. Traps include dividing by n − 1, choosing on in-sample RMSE, and trusting a small average error that hides large offsetting errors.

Formulas

Root mean squared error

RMSE = √(SSE ÷ n)

RMSE
the root mean squared error
SSE
each forecast error squared, then added up
n
the number of forecasts

Compare models by out-of-sample RMSE: the lowest wins, however well the model fits inside the sample.

In the app: 3 practice questions on this outcome, a narrated walkthrough with diagrams, spaced review that brings it back before you forget it.

Take the free diagnostic →

More in Time-Series Analysis