Overfitting: Memorising the Past
Add enough rules and any strategy looks perfect on history and useless tomorrow. How to catch it.
Overfitting (or “curve-fittingTailoring a strategy so closely to the past it fails on the future.”) is tailoring a strategy so closely to historical data that it memorises the past instead of learning a real pattern. An overfitted strategy looks flawless on the data it was built on and falls apart on anything new — the central disease of quantitative trading.
- What it is — fitting the noise in one specific history, so it memorises rather than generalises.
- The tell — many parameters/conditions, a suspiciously perfect curve, and no explanation for why it works.
- The paradox — a more impressive backtestTesting a trading strategy on historical data. is often a more overfitted (and more useless) one.
- The defences — fewer rules (parsimony), out-of-sample/walk-forward testing, and a real economic mechanism.
How many parameters is “too many”?
There’s no hard number, but fewer is almost always safer — each parameter is another chance to fit noise. A robust strategy usually has a *handful* of rules with clear rationale and works across a *range* of settings (parameter insensitivity, a later lesson). If your edge depends on precise “magic numbers” and many conditions, suspect overfitting.