Quant research and backtesting
Lookahead bias
Also called look-ahead bias, peeking, future leak
Bias in a backtest from using information at a decision time that was not yet available then, which inflates simulated performance.
How it works
Common sources are using a bar's close to trade at that same close, using accounting numbers dated to the fiscal period end rather than the date they were published, using revised or restated data instead of the first release, and fitting a normalisation or model on the full sample. A subtler form is choosing the asset universe or index membership with today's knowledge. The fix is to stamp every data point with the time it became known and let the simulator read only data stamped before the decision. Lookahead often shows up as a result that is too good, such as a very high Sharpe ratio with a smooth equity curve.
Worked example
A company's year ends on 31 December and it files its annual report on 1 March. A backtest that ranks stocks on that year's earnings from 1 January trades on numbers that did not exist for two months. Lagging all fundamentals to their filing date removes the bias.
Related terms
Put it to work in a timed game.
Practise with Find the BugSources
- quantconnect.com/docs/v2/writing-algorithms/key-concepts/algorithm-engi…
- business.columbia.edu/sites/default/files-efs/imce-uploads/ADP/Fall%202…
- davidhbailey.com/dhbpapers/backtest-prob.pdf
Last checked November 2026.