A desk that screens every pair in a 100-stock universe runs 4,950 tests. At a 5% significance level about 250 of them will look cointegrated, and tradable, when none is. The same arithmetic applies to any research loop: a researcher who runs 20 backtests on one dataset and keeps the best will usually find one that clears a 5% threshold, because one in 20 pure-noise strategies does. Capital allocated on that evidence is allocated to noise.
The research Programme's lesson on multiple testing and researcher degrees of freedom established the familywise error calculation, the Bonferroni bound and the trial register. This note assumes them and adds what a relative-value desk needs on top: how to count trials when the candidates are pairs and parameter grids, how large a Sharpe ratio the best of null strategies is expected to show, and López de Prado's laws of backtesting. It reviews the mechanics of false discovery under multiple testing, formalises the probability of backtest overfitting, and introduces López de Prado's third law of backtesting as the governing principle for honest strategy research. Understanding why repeated backtests are methodologically equivalent to data-mining is prerequisite to applying the corrected statistical tools (PSR, DSR, CPCV) in the rest of this topic.
Learning objectives. By the end of this note you should be able to:
- explain why a single out-of-sample backtest on a dataset used for model selection is still biased;
- state the expected number of false discoveries at a 5% significance level as a function of the number of trials;
- compute the Sharpe ratio the best of null strategies is expected to show, and the Bonferroni threshold for a familywise error rate;
- count the trials in a pairs screen and in a parameter grid;
- state and apply López de Prado's third law of backtesting;
- identify the seven sins of backtesting.
In this lesson
-
- The mechanics of data-mining
-
- The probability of backtest overfitting
-
- How large a Sharpe ratio noise produces
-
- The third law of backtesting
-
- The seven sins of backtesting
Before you start
- Signal Combination and the Information Coefficient
- Multiple Testing and Researcher Degrees of Freedom
The full lesson, with worked examples and exercise solutions, is for members.
Read the full lessonNew to SelfMadeQuant.com? See membership options or browse the Statistical Arbitrage syllabus.