The ways a backtest lies
Most backtests that fail live were not unlucky — they were biased. These pages catalogue the systematic errors that make a backtest look better than the strategy really is: using information you would not have had, testing on a survivor-only universe, torturing the data until something fits, and mistaking noise for signal. Each page explains why the bias happens and the concrete disciplines that reduce it.
Backtesting Biases: Backtesting biases are systematic errors that make simulated performance look better than a strategy's real edge. The major ones are look-ahead bias (using future information), survivorship bias (testing only on instruments that survived), selection and sample bias (an unrepresentative universe or period), data snooping and curve fitting (searching until something fits by chance), overfitting (modelling noise) and its opposite underfitting, and confirmation bias (seeing the result you want). Each is reduced by point-in-time data, out-of-sample discipline and honest process.
Look-Ahead Bias
BiasLook-ahead bias is the error of letting a backtest use information that would not actually have been known at the moment a decision was made, which m…
Survivorship Bias
BiasSurvivorship bias is the distortion that arises when a backtest uses only the assets that survived to the present, silently excluding those that were…
Selection Bias
BiasSelection bias is the distortion that arises when the assets, periods or trades used in a backtest are chosen in a way that is not representative of …
Data Snooping (Data Dredging)
BiasData snooping, also called data dredging, is the practice of trying many strategies, parameters or variants on the same data and reporting the best o…
Curve Fitting
BiasCurve fitting is the practice of tuning a strategy's rules and parameters so closely to a specific historical dataset that it captures the noise of t…
Overfitting
BiasOverfitting is the condition in which a strategy or model captures the noise of its training data instead of the underlying signal, so it performs su…
Underfitting
BiasUnderfitting is the condition in which a strategy or model is too simple or too constrained to capture the genuine structure in the data, so it perfo…
Sample Bias
BiasSample bias is the distortion that arises when the historical data used to build and test a strategy is not representative of the conditions the stra…
Confirmation Bias
BiasConfirmation bias is the human tendency to seek, favour and remember evidence that supports a belief you already hold, which in backtesting leads res…