Probability of Backtest Overfitting Explained: Hold-Out Tests, Walk-Forward Testing, and CSCV
November 7, 2026 · Guides · 11 min read
Published by Chris Leek, founder of Equity Rank
Probability of Backtest Overfitting Explained: Hold-Out Tests, Walk-Forward Testing, and CSCV
Most backtests are not one test. A researcher tries a lookback of 6 months, then 9, then 12; adds a filter; changes the rebalancing date; and keeps the variation that scored best. The question that matters is not how well that winner did on the data used to choose it. It is how well the winner does on data it has not seen.
Overfitting is the gap between those two numbers. The probability of backtest overfitting (PBO), introduced by David Bailey, Jonathan Borwein, Marcos López de Prado and Qiji Jim Zhu, puts a figure on it: across many ways of splitting the history into a selection half and a testing half, how often does the in-sample winner land in the bottom half of the field out of sample?
This guide works through the arithmetic with simulated strategies, then explains the two main tools for keeping selection and testing apart — walk-forward testing and combinatorially symmetric cross-validation (CSCV).
Key Points
- An in-sample winner chosen from many no-skill variations shows an attractive Sharpe ratio and then averages about zero out of sample. In the simulation below, the best of 1,000 random strategies showed a median in-sample Sharpe ratio of 1.04 and a median out-of-sample Sharpe ratio of −0.01.
- More trials make it harder to find real skill, not easier. When one genuinely skilled strategy (true Sharpe ratio 1.0) sits among 1,000 no-skill ones, the in-sample contest selects it only 46.5% of the time.
- Walk-forward testing chooses parameters using only data available before each test period, then stitches the test periods together. Only the stitched results count.
- PBO is the share of data splits in which the in-sample winner ranks below the median out of sample. Around 50% means the selection process shows no detectable skill; values near 0% mean the winner tends to stay near the top.
- None of these methods fixes bad data. Look-ahead, survivorship and missing costs inflate every split equally.
1. A Hold-Out Test of Strategies With No Skill
Start with the simplest experiment. Generate strategies whose monthly returns are pure noise — an average of zero and a monthly volatility of 4% (about 14% a year) — over 20 years. Use the first 10 years to choose the variation with the highest Sharpe ratio, and the last 10 years to see how it does.
| Variations tried | Median in-sample Sharpe of the winner | Median out-of-sample Sharpe of the winner | Share of winners positive out of sample |
|---|---|---|---|
| 1 | 0.01 | −0.01 | 49.5% |
| 10 | 0.48 | 0.00 | 49.8% |
| 100 | 0.79 | 0.00 | 49.5% |
| 1,000 | 1.04 | −0.01 | 48.8% |
Simulated: independent normal monthly returns, mean 0, monthly volatility 4%, 120 months in each half, 2,000 repetitions (400 for 1,000 variations). Illustrative only.
The in-sample figure rises steadily with the number of variations, because the best of many noisy draws is high by construction. The out-of-sample figure does not move at all. A Sharpe ratio of 1.04 over ten years would be a respectable result for a single idea; as the best of 1,000 no-skill attempts, it is simply what selection produces.
This is the same effect the deflated Sharpe ratio corrects for analytically. A hold-out test shows it directly.
2. Why More Trials Hide Real Skill
Now add one strategy that does have skill — a true Sharpe ratio of 1.0 — to the pool of no-skill variations, and repeat the experiment. Two questions: how often does the in-sample contest choose the skilled strategy, and how does whatever it chooses do out of sample?
| Variations tried (one skilled) | Share of time the skilled strategy wins in sample | Median out-of-sample Sharpe of the winner |
|---|---|---|
| 1 | 100% | 1.01 |
| 10 | 92.7% | 0.97 |
| 100 | 71.7% | 0.83 |
| 1,000 | 46.5% | 0.40 |
Simulated: as above, with one strategy given a true annual Sharpe ratio of 1.0. 2,000 repetitions (400 for 1,000 variations). Illustrative only.
Ten years of data is not enough to separate a Sharpe ratio of 1.0 reliably from the luckiest of a thousand coin-flip strategies. The more variations are searched, the more likely it is that one of them got lucky enough to edge out the genuine one — and the more the out-of-sample result is diluted toward zero. Searching widely is not free: every additional trial raises the bar real skill has to clear.
3. Walk-Forward Testing
A single hold-out split has two weaknesses. It uses only one boundary, so the result depends on where that boundary falls, and it tempts the researcher to look at the test period and then go back and adjust — which quietly turns the test period into more training data.
Walk-forward testing formalises the hold-out idea. At each step, choose parameters using only data that would have been available at the time, then record the next period's results with those parameters frozen. Then move forward and repeat.
| Step | Data used to choose parameters | Test period (recorded) |
|---|---|---|
| 1 | 2006–2010 | 2011 |
| 2 | 2007–2011 | 2012 |
| 3 | 2008–2012 | 2013 |
| … | … | … |
| 14 | 2019–2023 | 2024 |
Illustrative schedule using a rolling five-year window. An anchored version keeps the start date fixed and lets the window grow.
The reported result is the chain of test periods only, never the training windows. Three cautions apply:
- The walk-forward design is itself a choice. Window length, step size, and rolling versus anchored windows are parameters too. Trying several designs and reporting the best reintroduces the problem one level up.
- Each step re-runs the selection. If every step searches 1,000 variations, every step faces the dilution shown in section 2.
- Short test windows are noisy. A one-year test period carries a Sharpe ratio standard error of about 1.0 on monthly data, so individual steps say little; only the stitched record has enough length to judge.
4. CSCV and the Probability of Backtest Overfitting
Combinatorially symmetric cross-validation uses every reasonable split of the data rather than one. The steps:
- Arrange the returns of all N variations as a table: one column per variation, one row per period.
- Cut the rows into S equal blocks of consecutive periods — for example S = 16.
- Form every combination of S/2 blocks as the selection half, with the remaining blocks as the testing half. With S = 16 there are 12,870 such splits, and each block appears in the selection half exactly as often as in the testing half — the "symmetric" part.
- In each split, find the variation with the best Sharpe ratio in the selection half and record where it ranks, among all N variations, in the testing half.
- PBO is the share of splits in which that rank falls below the median.
Keeping blocks of consecutive periods together preserves short-run patterns in the returns, such as volatility clustering, that shuffling individual months would destroy.
What PBO looks like in practice
| Pool of 50 variations | PBO | Median in-sample Sharpe of the winner | Median out-of-sample Sharpe of the winner |
|---|---|---|---|
| All 50 have no skill | 52% | 0.70 | 0.02 |
| One has true Sharpe 0.5 | 38% | 0.77 | 0.19 |
| One has true Sharpe 1.0 | 12% | 1.03 | 0.83 |
| One has true Sharpe 1.5 | 0.8% | 1.49 | 1.48 |
Simulated: 240 monthly periods, monthly volatility 4%, S = 16 blocks, 400 randomly sampled splits per repetition, averaged over 100 repetitions. Illustrative only.
With no skill in the pool, PBO sits near 50%: the in-sample winner is equally likely to land in either half of the field out of sample. It runs slightly above 50% because the two halves of each split are complements of a fixed history — a variation that drew its best months in the selection half has, by construction, fewer of them left for the testing half.
As the skilled strategy gets stronger, PBO falls toward zero and the out-of-sample Sharpe ratio of the winner converges on its in-sample figure. That convergence is the signature of a result that is not mainly the product of selection.
Trial count still matters
| Variations (one with true Sharpe 1.0) | PBO | Median out-of-sample Sharpe of the winner |
|---|---|---|
| 10 | 3.7% | 1.00 |
| 50 | 12% | 0.83 |
| 500 | 22% | 0.70 |
Simulated as above (40 repetitions for 500 variations). Illustrative only.
The same skilled strategy looks less convincing the larger the haystack it was found in, which is the multiple-testing problem expressed as a probability.
5. Limits of the Method
- It needs every variation that was tried. PBO is computed from the full table of trials. If abandoned variations are left out, the estimate is too low.
- It measures the selection process, not one strategy. A low PBO says the way the winner was chosen tends to produce something that holds up out of sample. It does not say the winner's future returns will match its past ones.
- It does not fix the data. Survivorship bias, look-ahead data and omitted trading costs inflate every split equally, so PBO can look healthy on a flawed dataset. See Backtest Biases Explained.
- It assumes the past is representative. CSCV reshuffles history; it cannot test against a market regime that has not happened yet.
- Block size is a judgment call. Too few blocks give few splits; too many make each block short and noisy.
The strongest evidence remains a live, forward record: a rule frozen on a known date, with every selection recorded at the time it was made, measured against a benchmark over the following months — misses included.
6. Questions to Ask About Any Backtest
- How many variations were tried, and is the full table of their results available?
- Was any data held out, and was it looked at before the final variation was chosen?
- If walk-forward was used, how was the window design chosen — and were other designs tried?
- How does the in-sample Sharpe ratio compare with the out-of-sample one? A large drop is the plainest symptom of overfitting.
- Has PBO or a similar statistic been computed, and with how many blocks?
- Is there a forward record from a date after the rule was frozen?
Frequently Asked Questions
What is a good probability of backtest overfitting? Lower is better. Values near 50% mean the in-sample winner does no better than a random variation out of sample. Values well below 10% suggest the selection process tends to choose variations that hold up, on the data available.
Is PBO the same as the deflated Sharpe ratio? No. The deflated Sharpe ratio adjusts one strategy's Sharpe ratio for the number of trials using a formula. PBO works directly from the returns of all trials across many data splits. They address the same problem from different directions and are often reported together.
Can a strategy have a high in-sample Sharpe ratio and still have a high PBO? Yes — that is the typical overfit case. A high in-sample figure is easy to obtain by searching; PBO asks whether it carries over.
Is walk-forward testing enough on its own? It keeps each test period out of the parameter choice, which is essential. It does not account for how many walk-forward designs or strategy families were tried before the reported one.
Does a low PBO mean a strategy will keep working? No. It describes how the selection process behaved on past data. Markets change, and an approach that held up historically can stop working.
Related Reading
- The Deflated Sharpe Ratio Explained
- Backtest Biases Explained
- Sharpe Ratio Explained
- Information Coefficient Explained
- Maximum Drawdown Explained
This content is for educational and informational purposes only and does not constitute investment advice. Equity Rank is not a registered investment adviser. The Sharpe ratios, probabilities and simulation results above are illustrative arithmetic computed from hypothetical return series, not data about any actual security or strategy. Past performance, real or simulated, does not guarantee future results.