Advertisement IC Markets

Probability of backtest overfitting: using CSCV to ask whether your best setting is only best by accident

Discuss 1-minute to 15-minute price action setups, fading intraday momentum, key support/resistance zones, and proven short-term trading methodologies.
Post Reply
Shadow Trader
Posts: 6144
Joined: Wed Sep 09, 2026 5:19 pm

Probability of backtest overfitting: using CSCV to ask whether your best setting is only best by accident

Post by Shadow Trader »

Choosing the best parameter set from a grid and calling it the strategy is the most common way to overfit. The probability of backtest overfitting (PBO), estimated with a method called combinatorially symmetric cross-validation (CSCV), is a neat way to measure how bad that problem is for a given research process.

The mechanics, in plain terms:

- Take the returns of every configuration you tested, laid out over time as a matrix.
- Split the time axis into an even number of blocks, say 16.
- Go through all the ways of choosing half the blocks as "in-sample" and the other half as "out-of-sample".
- For each split, find the best configuration in-sample and see where it ranks out-of-sample.
- PBO is the fraction of splits where the in-sample winner lands below the median out-of-sample.

If PBO comes out near 50%, picking the in-sample best is about as good as picking at random; the selection is mostly fitting noise. If it's low, the best in-sample settings tend to stay good, which is what you'd hope for if there's a real effect and a robust region of parameters.

What I like about it is that it judges the process rather than one lucky result. It also shows you the degradation directly: how much worse the chosen setting does out-of-sample on average, which is a more honest expectation for live trading than the backtest number.

The practical limits are compute (the number of combinations grows quickly) and the need to keep returns from every configuration, not just the winner's. For a small grid on a scalping rule both are manageable.

Has anyone run CSCV on their own parameter sweeps? I'd be interested in what kind of PBO values people see on typical indicator-based systems.
Recommended broker for automated trading & scalping IC Markets
Post Reply