Why this mistake matters
A surprisingly successful trading backtest can conceal a simple mistake: it may use information that was not available when the trade should have been made. This is look-ahead bias, also called data leakage. The same problem can affect derivative valuations, interest-rate fixing assumptions and historical model calibration.
The mistake explained
Every decision has an information date. A model cannot legitimately use tomorrow’s stock price, a future rate fixing or revised data released later to justify a decision today. Knowing a probability distribution for a future outcome does not mean knowing the outcome itself. In quantitative finance, respecting the timing of information is a fundamental condition for meaningful results.
A practical example
Imagine choosing today’s position by looking at whether tomorrow’s stock price rises or falls. The historical strategy appears never to lose money, but it cannot be traded: it relies on tomorrow’s return. A more subtle version arises when a backtest uses economic data revised after the original trading date.
A useful audit starts with the original availability timestamp of every input, including publication lags and any subsequent revisions. The timing check should happen before evaluating backtest performance.
What you will learn
- Recognize look-ahead bias in trading strategies and backtests.
- Distinguish a future outcome from information available today.
- Check timestamps of data, fixings and model inputs.
Watch the video above for the full explanation, practical examples and mathematical details.
Slides and further resources
Lecture slides and code on GitHub ↗ · Complete lecture slides (PDF) ↗
Explore all 30 episodes or discover more quantitative finance videos on Computations in Finance ↗.