Open Family Office Datasets Tickers Strategies Portfolios Research Posts About Changelog

The Accuracy of CSCV's Probability of Backtest Overfitting

Source

Citation. David H. Bailey, Jonathan M. Borwein, Marcos López de Prado and Jim Zhu. "Mathematical Appendices to 'The Probability of Backtest Overfitting'." SSRN 2568435, 8 pages. ssrn.com/abstract=2568435. These are the appendices of the PBO paper, Journal of Computational Finance 20(4), 2017 (docs/literature/probability-of-backtest-overfitting.md). The data are simulated. The appendix prints its Python code for the two benchmarks, and points to QuantResearch.info for the rest. No date and no funding are stated.

Status. Planned. #11 implements PBO with CSCV, and #12's verdict sets the level it accepts. This appendix is the only evidence of how accurate CSCV's estimate is. No code in the repo uses it yet.

Read. Read on 2026-11-27 from the PDF that the maintainer posted on #91, 8 pages, with pdftotext. I read all of it. I extracted Table 1's 48 rows and recomputed its summary statistics and its relative errors.

Summary

Claim. CSCV "provides accurate estimates of PBO, with relatively small errors on the conservative side". Its estimate from one matrix of trials is close to the true PBO. That is the chance that the best trial in sample falls below the median out of sample.

Method.

Findings, as the source reports them.

Setting Number Value
Null case (Sharpe 0), every T and N PBO by CSCV, Monte Carlo and EVT 1.000
Sharpe 1, T = 1,000, N = 100 (section A.1) PBO between 0.7 and 0.8
Monte Carlo against EVT, 48 cases largest gap 4.2%
CSCV against EVT average absolute error, SD 2.1%, 2.9%
The same largest error 9.9%, at Sharpe 3, T = 500, N = 500 (0.247 against 0.148)
The same median error, 95th percentile 0.7%, 8.51%
CSCV below EVT cases 1, by 0.001
Spread of CSCV's estimate from one matrix largest SD 0.054

My recomputation agrees with the largest error, the median, the single negative case and the 4.2% gap. It doesn't agree with the average: over the 48 rows, the mean absolute error is 2.5%, with an SD of 3.2%. Without the 12 null rows, whose error is 0, it is 3.4%.

Where the claims go beyond the evidence

"Small" holds in absolute terms, not where it matters. The errors are small near PBO = 1 and PBO = 0. In between, where a real edge sits, CSCV overstates PBO by a large share.

Sharpe of the real trial, T, N PBO by EVT by CSCV CSCV over EVT
1, 2,500, 100 0.288 0.371 +29%
2, 1,000, 500 0.204 0.301 +48%
2, 1,000, 100 0.099 0.163 +66%
2, 1,000, 50 0.066 0.113 +71%
3, 500, 100 0.068 0.124 +82%

So CSCV rejects real edges more often than the true PBO would. That is "conservative", but at a rule such as PBO < 0.05 the bias decides the verdict.

The test is one easy case. The trials are Gaussian, independent and serially uncorrelated, with exactly one real edge among exact nulls. Real trials are correlated variants of one idea, with fat tails and autocorrelation. Nothing tests CSCV there.

The benchmarks share the setup. The EVT benchmark relies on the scaling to an exact Sharpe ratio, which real data don't have. The authors call EVT "more accurate" than Monte Carlo, because it uses "the actual distribution of the maximum SR". But its Gumbel fit is itself simulated.

The number of CSCV blocks isn't stated. CSCV splits the matrix into S blocks, and the appendix doesn't give S for Table 1.

Errors in the text.

Credit. The authors test CSCV against two independent benchmarks, and report the spread of its estimate as well as its mean. They print the code of both benchmarks.

Use in this repo

A single PBO has an error of about ±0.05, and an upward bias. CSCV's estimate from one matrix had an SD of up to 0.054. Mid-range it ran 13% to 82% above the true PBO. #11 should report PBO with its spread. It could estimate that spread by repeating CSCV on resampled blocks, as docs/soundness.md (O5) suggests.

The 0.05 level is not calibrated. The PBO review found that the paper's own planted edge gave 13%. Here, a real edge with Sharpe 2 over 1,000 days among 100 trials has a true PBO of 0.099, and CSCV gives 0.163. Both fail a 0.05 rule. #12 should set the level from tests like these, on the repo's own T and N, not from custom.

Test #11's CSCV against this table. The 48 cases are a ready test: the implementation should reproduce Mean_CSCV within its Std_CSCV. #5's synthetic families can then add correlated trials and fat tails, which this appendix doesn't cover.

State S. The harness should record the number of blocks with every PBO, as a choice the ledger (#7) can count.

A question for the maintainer. Should #12 set the PBO level for each strategy by simulation on its own T and N? The other choice is a fixed level, such as 0.05.