Quant research and backtesting
Overfitting
Also called curve fitting, backtest overfitting
Fitting a model or strategy so closely to the noise in historical data that it performs well in sample and poorly on new data.
How it works
Every free parameter, rule, filter and choice of sample period gives the search more room to match random patterns. Financial returns have a low signal-to-noise ratio, so a search over many configurations will nearly always find one with a high in-sample Sharpe ratio even when none has an edge. Bailey, Borwein, Lopez de Prado and Zhu show that the expected best in-sample Sharpe ratio rises with the number of trials, which gives a minimum backtest length for a given number of trials. Signs of overfitting include sharp performance cliffs between neighbouring parameter values, rules with no economic story, and a large gap between in-sample and out-of-sample results.
Worked example
With 5 years of data, trying about 45 independent strategy configurations is enough to expect an in-sample annualised Sharpe ratio of 1 from strategies with zero true skill (Bailey et al.). With 2 years of data, about 7 configurations is enough.
Related terms
Put it to work in a timed game.
Practise with Find the BugSources
Last checked November 2026.