Forecasting: Navigating Metrics, Validation and Model Selection

Galina Chernikova11 Sep 2023

Problem

Forecasts of flu incidence, demand and sales drive production volumes and promotion schedules, so a wrong model choice has a direct cost. Teams usually have several candidate models and must decide which one ships. Three choices decide it, and teams often make them by habit: the error metric, the test split and the reference point. A random split leaks future information, a badly fitting metric rewards the wrong forecast, and a complex model with nothing to beat may lose to a trivial rule.

Example from the article: monthly air-passenger counts, forecast 12 months ahead, once a year for 10 years, with four simple baselines.

Solution in brief

Pick the metric that matches the cost of errors, validate with walk-forward cross-validation so that training data always precedes test data, and compare every model against simple baselines such as the seasonal naive forecast. Then check the residuals for autocorrelation and bias.

Questions this case answers
  • How to compare candidate forecasting models fairly when the metric, the validation scheme and the reference point are all open choices
  • How to evaluate a time-series model without using future observations when random train/test splits are not valid
  • How to choose an error metric for a demand or incidence forecast?
  • How to validate a time-series model without leaking future data?

Tools and methods

  • MAE, MSE, RMSE — point-forecast errors; squared ones favour the mean, MAE the median
  • MAPE and RMSLE — scale-independent metrics for series of different size
  • Walk-forward cross-validation — repeated tests where training data always precedes test data
  • Naive, seasonal naive, naive with drift, moving average — baselines to beat before building a complex model
  • Residual autocorrelation and the Portmanteau test — check that nothing predictable is left in the errors
Continue reading — it's free

Google or a one-time email code. No password.