Quant research and backtesting

Probability of backtest overfitting

Also called PBO, CSCV, combinatorially symmetric cross-validation

The estimated probability that the strategy configuration chosen as best in sample performs below the median of all tried configurations out of sample.

How it works

PBO is the probability that the configuration you pick as best in sample lands in the bottom half of all the configurations you tried once you look out of sample. Bailey, Borwein, Lopez de Prado and Zhu estimate it with combinatorially symmetric cross-validation (CSCV).

The steps. Put the return series of all N tried configurations side by side in a T x N matrix, with the same dates in every row. Cut the rows into an even number S of equal blocks. Form every way of choosing S/2 blocks as the training set; the other S/2 blocks are the test set, so there are C(S, S/2) splits and each half is used both ways. In each split, find the configuration with the best in-sample Sharpe ratio, then find its rank r among the N configurations in the test set, counting from r = 1 for the worst to r = N for the best. Turn that into a relative rank w = r / (N + 1) and a logit, lambda = ln(w / (1 - w)). A logit at or below zero means the in-sample winner did no better than the out-of-sample median. PBO is the share of splits with lambda <= 0.

Why it matters: it measures the selection process, not one return series. If the search is fitting noise, the winner falls back towards the middle and PBO nears 0.5 or more. The authors suggest S = 16, and say that a Neyman-Pearson style rule would reject a selection with PBO above 0.05.

Common mistakes. PBO only judges the ranking of the configurations you fed in, so wrong costs, lookahead or survivorship pass through untouched. You must include every configuration tried, the failures as well as the survivors. Each half holds only T/2 observations, so the authors advise a history twice as long as the one used to choose the model.

Worked example

You try N = 50 parameter sets on 8 years of daily returns and cut the history into S = 16 half-year blocks. There are C(16, 8) = 12,870 splits (the paper prints 12,780, a typo). In one split the in-sample winner ranks 20th from the bottom (31st best) of 50 out of sample, so w = 20 / 51 = 0.392 and lambda = ln(0.392 / 0.608) = -0.44, below zero. These are made-up numbers. If 9,000 of the 12,870 splits give lambda <= 0, PBO = 9,000 / 12,870 = 0.70. Far above 0.05, the search is picking noise.

In an interview

"How would you estimate the probability that your parameter search has overfit the backtest?"

I would use combinatorially symmetric cross-validation. Stack the returns of every configuration I tried into a T x N matrix, cut it into S equal time blocks, and take every split of S/2 training blocks against S/2 test blocks, which is C(16, 8) = 12,870 splits for S = 16. In each split I pick the in-sample best and record its out-of-sample relative rank w = r / (N + 1) as a logit ln(w / (1 - w)). PBO is the share of splits where the logit is at or below zero, meaning the winner did no better than the median. Bailey and coauthors suggest rejecting above 0.05. The likely follow-up is what PBO misses: it says nothing about costs or lookahead in the underlying backtest, and it is only as honest as the list of trials you give it.

Put it to work in a timed game.

Practise with Find the Bug

Sources

  1. davidhbailey.com/dhbpapers/backtest-prob.pdf

Last checked November 2026.

← All 281 glossary terms

Was this definition clear?