Forecasting and statistics
Overfitting
When a model describes past data very well because it has also learned the noise, but forecasts the future poorly.
Key points
- The classic sign: an almost perfect fit on the past and large errors on new data.
- It happens when the model has too many drivers or parameters for the amount of data.
- It is detected by testing on data the model has not seen.
Formula
Error on the fitting data much smaller than error on unseen data = sign of overfitting
Illustrative example
An analyst builds a sales model with 15 drivers on 24 months of data. On those 24 months the average error is 1%. On the next 6 months it rises to 22%, worse than the “same month last year” benchmark. A 3-driver model is off by 8%.
The company and figures in the example are illustrative.
Common mistakes
- Choosing the model by how well it explains the past.
- Adding drivers until the chart “fits”.
- No test on unseen data.
Read more
Related terms
Backtesting (out-of-sample test) · Signal and noise · Forecast drivers