Contents
Data
| Trials | 7.5 years | 13.7 years | 20 years |
|---|---|---|---|
| 2 | 0.21 | 0.15 | 0.13 |
| 5 | 0.42 | 0.31 | 0.26 |
| 10 | 0.56 | 0.42 | 0.34 |
| 20 | 0.68 | 0.50 | 0.42 |
| 40 | 0.79 | 0.58 | 0.48 |
| 80 | 0.89 | 0.66 | 0.54 |
| 160 | 0.98 | 0.72 | 0.60 |
| 320 | 1.06 | 0.78 | 0.65 |
| 640 | 1.14 | 0.84 | 0.70 |
| 1,000 | 1.18 | 0.88 | 0.72 |
In plain words
If you try many strategies on the same price history, the best one will look good by luck alone, and the more you try, the better the luck looks. I simulated strategies with no skill at all to measure how much. On 13.7 years of data, about ten tries is the most you can run and still be 95% sure that luck did not produce a 0.7 result; I had run eighty. The essay gives the table, so that you can set the budget before the first trial.
Flip a coin ten times and getting eight heads is unusual. Ask forty people to do it and someone will probably get eight or more. That person is not skilled, only the best of forty. Testing trading strategies on past prices has exactly this problem: try enough of them on the same history and the best one looks good by luck alone.
This essay measures how much luck a given amount of history hides, and turns that into a number: how many strategies a stretch of data can honestly test. The score used throughout is the Sharpe ratio, return per unit of risk, where about 0.7 is a decent result.
The idea is not new. Bailey and López de Prado priced this selection effect in the Deflated Sharpe Ratio (Journal of Portfolio Management, 2014), and Bailey, Borwein, López de Prado and Zhu gave the minimum backtest length (Notices of the AMS, 2014). What I add is a table at my own data lengths, a direct simulation that checks the formulas, and the form of a budget: a number to write down before the first trial.
What I simulated
Take strategies with no skill at all, the trading equivalent of coins. Give each one random daily returns with no pattern, 365 days a year, as for an asset that trades every day. Each strategy’s score then comes out as noise whose size shrinks as the history gets longer. Run N of them and keep the best.
I computed everything twice, from a formula and by simulating the daily returns directly, and the two agree to within simulation error. For the best of 40 strategies over 7.5 years, the expected best score is 0.79 by formula and 0.79 in 2,000 simulated runs.
The best of many looks like skill
The figure at the top shows the expected best score among N strategies that have nothing. On 13.7 years it is 0.42 for 10 strategies, 0.58 for 40, 0.66 for 80 and 0.88 for 1,000. On 7.5 years the same 40 already reach 0.79, above the 0.7 that I had treated as a result. Longer history pulls every curve down, and more strategies push it up, slowly. A 0.7 on 13.7 years means little until you know how many strategies it was picked from.
How often luck produces a 0.7
Use the switch to change the length of the history.
Three years carries almost no trials: even 10 nothing-strategies produce a 0.7 winner seven times in ten.
The baseline window: 40 trials give a false 0.7 two times in three.
The old backtest: 80 trials had about a one in three chance of a 0.7 from pure noise.
Twenty years holds up to about 60 trials before a false 0.7 is more likely than one in twenty.
Data
| Trials | 3 years | 7.5 years | 13.7 years | 20 years |
|---|---|---|---|---|
| 1 | 11.3 | 2.8 | 0.5 | 0.1 |
| 10 | 69.7 | 24.4 | 4.7 | 0.9 |
| 40 | 99.2 | 67.4 | 17.5 | 3.4 |
| 80 | 100.0 | 89.4 | 31.9 | 6.7 |
| 1,000 | 100.0 | 100.0 | 99.2 | 58.2 |
The question is how often the best of N strategies with no skill reaches a score of 0.7. At 13.7 years it is 0.5% for one strategy, 4.7% for 10, 17.5% for 40, 31.9% for 80 and 99.2% for 1,000. At 7.5 years the same list reads 2.8%, 24.4%, 67.4%, 89.4% and 100%. At 20 years it is 0.1%, 0.9%, 3.4%, 6.7% and 58.2%.
My old system tested 80 strategies on 13.7 years. That gives about a one in three chance of a 0.7 winner from pure luck. The largest number of strategies with no more than a 5% chance of that is 10.7 on 13.7 years, which is where the title’s “about ten” comes from.
The score a winner has to beat
Three years: even a single trial has to show 0.95 to count, and the best of 10 has to show 1.48.
The baseline window: the best of 40 has to show 1.10, far above 0.7.
The old backtest: the best of 80 needed 0.87, so a 0.7 winner proved nothing.
Twenty years: the best of 80 still has to show 0.72, just above 0.7.
Data
| Trials | 3 years | 7.5 years | 13.7 years | 20 years |
|---|---|---|---|---|
| 1 | 0.95 | 0.60 | 0.44 | 0.37 |
| 10 | 1.48 | 0.94 | 0.69 | 0.57 |
| 40 | 1.74 | 1.10 | 0.81 | 0.67 |
| 80 | 1.86 | 1.18 | 0.87 | 0.72 |
| 100 | 1.90 | 1.20 | 0.89 | 0.73 |
A winner should be judged against the best that luck alone would produce, and that depends on how many strategies it was picked from. The figure shows the score that the best of N must beat to stay outside the 5% luck zone. On 13.7 years that is 0.44 for a single strategy, 0.69 for 10, 0.81 for 40 and 0.87 for 80. I checked two of these by simulation: for 10 strategies on 13.7 years the simulated threshold is 0.690 and the formula gives 0.694, and for 80 it is 0.869 against 0.870.
My old winner, about 0.7, sat at the threshold for 10 strategies and well under the 0.87 that 80 demand. It was inside the noise.
Finding a real 0.7 takes years
Data
| Trials | Years |
|---|---|
| 1 | 12.6 |
| 10 | 23.7 |
| 40 | 30.4 |
| 80 | 33.7 |
| 100 | 34.7 |
The same arithmetic says how long it takes to find a skill that is really there. Suppose one strategy, chosen in advance, truly scores 0.7. Detecting it with 80% probability takes 12.6 years if it is the only one tried. If you tried 10 strategies and want to pick out the real one, it takes 23.7 years; for 40 it takes 30.4, and for 80 it takes 33.7. I checked the probability directly: simulating a true 0.7 strategy over those lengths, it cleared the luck threshold 79.8%, 80.0% and 79.9% of the time for 1, 10 and 80 strategies.
Under these simplifying assumptions, my old data length was about twenty years short for 80 strategies. The same reading explains the limit of 40 research trials in my referee system, described in an earlier essay: if all 40 were run on a single daily series, finding a true 0.7 would take about 30 years. The system does not do that. It uses many assets and hourly data, and it had used none of its 40 trials when that essay was written, so this is the reason for keeping a limit, not a measurement of that system.
When strategies are copies of each other
Data
| Trials | Expected best Sharpe |
|---|---|
| Independent | 0.79 |
| Correlation 0.25 | 0.68 |
| Correlation 0.5 | 0.56 |
| Correlation 0.75 | 0.40 |
| Correlation 0.9 | 0.25 |
The budget assumes the strategies are independent, and real ones are not. Ten settings of one idea are near-copies. When strategies are alike, the best of them has less room to beat the rest: for 40 strategies on 7.5 years, the expected best score falls from 0.79 when they are independent to 0.56 when their correlation is 0.5, and to 0.25 at 0.9. So counting every strategy overstates the penalty when they are alike, and my ledger counts strategies, not effective strategies. The truth lies between the two and I do not know where. The return series of every trial are stored, so the correlation can be measured, and that is the next step.
Try your own numbers
Change the length of the history, the number of strategies you tried and the score you hope to prove. The four results are the ones this essay used: the score the best strategy has to beat, the chance that luck alone reaches your target, the years of data needed to find a real strategy, and the most strategies you can try.
How much history does your search need?
- Score the best one must beat
- 0.87
- The highest score that luck alone stays under 95% of the time.
- Chance that luck alone reaches your target
- 31.9%
- How often the best of the strategies tried hits the target score with no skill at all.
- Years to find a real one
- 33.7 years
- History needed to find a strategy that truly earns the target score, with 80% probability, after paying for the tries.
- Most strategies you can honestly try
- 10.7
- The largest number of tries that keeps the chance of a lucky target under 5%.
| Case | Years of price history | Strategies tried on it | Target score (Sharpe) | Score the best one must beat | Chance that luck alone reaches your target | Years to find a real one | Most strategies you can honestly try |
|---|---|---|---|---|---|---|---|
| My old backtest | 13.7 | 80 | 0.7 | 0.87 | 31.9% | 33.7 years | 10.7 |
| What 13.7 years can carry | 13.7 | 10 | 0.7 | 0.69 | 4.7% | 23.7 years | 10.7 |
| 7.5-year window | 7.5 | 40 | 0.7 | 1.10 | 67.4% | 30.4 years | 1.8 |
| Twenty years | 20 | 80 | 0.7 | 0.72 | 6.7% | 33.7 years | 58.8 |
What this does not show
This is a budget for strategies with no skill, built on two simplifications, and it says nothing about which strategies are good. Returns are taken as random with no pattern and a bell-shaped spread. Real returns have heavier tails and some memory: my own coverage check on mildly autocorrelated data found 93.0% to 93.9% coverage against a nominal 95%, a shortfall of one to two points, so I expect real budgets to be modestly smaller than these. And the strategies are taken as independent, which the last section showed they are not.
What I take from it
Write the budget before running the trials. The largest number of strategies with at most a 5% chance that the best of them reaches a score s on T years of history is ln(0.95) / ln Φ(s√T), where Φ is the normal distribution function. For my 13.7 years and a 0.7 target it is about ten. If the plan needs 80, the history is too short, and the options are more years, fewer strategies, or a higher bar.
Every number comes from two short simulation scripts of mine (the first checks the formula by direct simulation, the second computes the critical scores and the power; both need only numpy), a formula and a direct simulation checked against each other, and an independent agent reproduced them from scratch with its own code. An AI assistant drafted this essay from them, and I read it before it went up.