FinanceAnalytics

How many strategies can 13.7 years of price data test? About ten, not eighty

If you try many strategies on the same history, the best looks good by luck. A simulation turns a data length into the number of tries it can honestly support: about ten on 13.7 years.

For agentsView .mdOpen in ClaudeOpen in ChatGPT
For agentsView .mdOpen in ClaudeOpen in ChatGPT
Contents
The best of many no-edge trials looks like skillExpected Sharpe of the best of N trials that have no edge, on a logarithmic axis from 1 to 1,000 trials, for 7.5, 13.7 and 20 years of daily data. On 13.7 years it is 0.42 for 10 trials, 0.58 for 40, 0.66 for 80 and 0.88 for 1,000; on 7.5 years 40 trials already reach 0.79. A dashed line marks a Sharpe of 0.7.00.30.60.91.2my 0.71101001,0007.5 years13.7 years20 yearsNumber of independent trials with no edge
The best of many no-edge trials looks like skillExpected Sharpe of the best of N trials that have no edge, on a logarithmic axis from 1 to 1,000 trials, for 7.5, 13.7 and 20 years of daily data. On 13.7 years it is 0.42 for 10 trials, 0.58 for 40, 0.66 for 80 and 0.88 for 1,000; on 7.5 years 40 trials already reach 0.79. A dashed line marks a Sharpe of 0.7.00.30.60.91.2my 0.71101001,000Number of independent trials with no edgeLines, bottom to top: 20, 13.7, 7.5 years.
More trials push the expected best up and more years pull it down; 40 trials on 7.5 years already pass 0.7.Source: my simulation of strategies with no edge (iid normal daily returns, 365 bars a year, independent trials).
Data
Expected Sharpe of the best of N trials with no edge, by years of data
Trials7.5 years13.7 years20 years
20.210.150.13
50.420.310.26
100.560.420.34
200.680.500.42
400.790.580.48
800.890.660.54
1600.980.720.60
3201.060.780.65
6401.140.840.70
1,0001.180.880.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 chance of a false 0.7 grows with the trials and shrinks with the yearsChance that the best of N no-edge trials reaches a Sharpe of 0.7, for 1, 10, 40, 80 and 1,000 trials; a switch picks 3, 7.5, 13.7 or 20 years. At 13.7 years it is 0.5%, 4.7%, 17.5%, 31.9% and 99.2%.Chance that the best of N no-edge trials reaches a Sharpe of 0.71 trial11.3%2.8%0.5%0.1%10 trials69.7%24.4%4.7%0.9%40 trials99.2%67.4%17.5%3.4%80 trials100.0%89.4%31.9%6.7%1,000 trials100.0%100.0%99.2%58.2%0255075100
The chance of a false 0.7 grows with the trials and shrinks with the yearsChance that the best of N no-edge trials reaches a Sharpe of 0.7, for 1, 10, 40, 80 and 1,000 trials; a switch picks 3, 7.5, 13.7 or 20 years. At 13.7 years it is 0.5%, 4.7%, 17.5%, 31.9% and 99.2%.1 trial11.3%2.8%0.5%0.1%10 trials69.7%24.4%4.7%0.9%40 trials99.2%67.4%17.5%3.4%80 trials100.0%89.4%31.9%6.7%1,000 trials100.0%100.0%99.2%58.2%0255075100
On 13.7 years, 80 trials give a false 0.7 about one time in three.Source: my simulation of strategies with no edge (iid normal daily returns, 365 bars a year, independent trials).
Data
Chance that the best of N trials with no edge reaches an annual Sharpe of 0.7 (%)
Trials3 years7.5 years13.7 years20 years
111.32.80.50.1
1069.724.44.70.9
4099.267.417.53.4
80100.089.431.96.7
1,000100.0100.099.258.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 Sharpe a winner has to beatThe annual Sharpe that the best of N trials must beat to stay outside the 5% luck zone, for 1, 10, 40, 80 and 100 trials; a switch picks 3, 7.5, 13.7 or 20 years. At 13.7 years it is 0.44, 0.69, 0.81, 0.87 and 0.89. A dashed line marks a Sharpe of 0.7.Sharpe the best of N must beat to stay outside the 5% luck zone1 trial0.950.600.440.3710 trials1.480.940.690.5740 trials1.741.100.810.6780 trials1.861.180.870.72100 trials1.901.200.890.7300.511.52a Sharpe of 0.7
The Sharpe a winner has to beatThe annual Sharpe that the best of N trials must beat to stay outside the 5% luck zone, for 1, 10, 40, 80 and 100 trials; a switch picks 3, 7.5, 13.7 or 20 years. At 13.7 years it is 0.44, 0.69, 0.81, 0.87 and 0.89. A dashed line marks a Sharpe of 0.7.1 trial0.950.600.440.3710 trials1.480.940.690.5740 trials1.741.100.810.6780 trials1.861.180.870.72100 trials1.901.200.890.7300.511.52a Sharpe of 0.7
On 13.7 years, a winner of 80 trials needs 0.87, not 0.7.Source: my simulation of strategies with no edge (iid normal daily returns, 365 bars a year, independent trials).
Data
Annual Sharpe the best of N must beat to stay outside the 5% luck zone
Trials3 years7.5 years13.7 years20 years
10.950.600.440.37
101.480.940.690.57
401.741.100.810.67
801.861.180.870.72
1001.901.200.890.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

Finding a real 0.7 costs yearsYears of daily data needed to detect a true Sharpe of 0.7 with 80% power after paying for N trials: 12.6 for one trial, 23.7 for 10, 30.4 for 40, 33.7 for 80 and 34.7 for 100. A dashed line marks the old backtest's 13.7 years.Years of daily data to detect a true 0.7 with 80% power1 trial12.610 trials23.740 trials30.480 trials33.7100 trials34.7010203040the old backtest: 13.7 years
Finding a real 0.7 costs yearsYears of daily data needed to detect a true Sharpe of 0.7 with 80% power after paying for N trials: 12.6 for one trial, 23.7 for 10, 30.4 for 40, 33.7 for 80 and 34.7 for 100. A dashed line marks the old backtest's 13.7 years.1 trial12.610 trials23.740 trials30.480 trials33.7100 trials34.7010203040the old backtest: 13.7 years
Eighty trials on one series would need about 34 years; the old backtest had 13.7.Source: my simulation of strategies with no edge (iid normal daily returns, 365 bars a year, independent trials).
Data
Years of daily data to detect a true Sharpe of 0.7 with 80% power, after paying for N trials
TrialsYears
112.6
1023.7
4030.4
8033.7
10034.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

Trials that are copies of each other cost lessExpected Sharpe of the best of 40 no-edge trials on 7.5 years, as the trials become more alike: 0.79 if independent, 0.68 at a correlation of 0.25, 0.56 at 0.5, 0.40 at 0.75 and 0.25 at 0.9.Expected best Sharpe of 40 trials on 7.5 yearsIndependent0.79Correlation 0.250.68Correlation 0.50.56Correlation 0.750.40Correlation 0.90.2500.250.50.751
Trials that are copies of each other cost lessExpected Sharpe of the best of 40 no-edge trials on 7.5 years, as the trials become more alike: 0.79 if independent, 0.68 at a correlation of 0.25, 0.56 at 0.5, 0.40 at 0.75 and 0.25 at 0.9.Independent0.79Correlation0.250.68Correlation 0.50.56Correlation0.750.40Correlation 0.90.2500.250.50.751
Alike trials lower the expected best, so counting trials overstates the penalty by an unknown amount.Source: my simulation of strategies with no edge (iid normal daily returns, 365 bars a year, independent trials).
Data
Expected Sharpe of the best of 40 trials on 7.5 years, by how alike the trials are
TrialsExpected best Sharpe
Independent0.79
Correlation 0.250.68
Correlation 0.50.56
Correlation 0.750.40
Correlation 0.90.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?

CaseYears of price historyStrategies tried on itTarget score (Sharpe)Score the best one must beatChance that luck alone reaches your targetYears to find a real oneMost strategies you can honestly try
My old backtest13.7800.70.8731.9%33.7 years10.7
What 13.7 years can carry13.7100.70.694.7%23.7 years10.7
7.5-year window7.5400.71.1067.4%30.4 years1.8
Twenty years20800.70.726.7%33.7 years58.8
The trial-budget arithmetic of this essay as a calculator. Change the length of the price history, the number of strategies tried on it and the score you hope to prove.Source: Closed form for strategies with no skill and independent random daily returns, 365 days a year; checked against a direct simulation (see the essay).

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.