Basic Prerequisites: 03 · Multiple Testing and 05 · Failure Modes & Practice.
1. Intuition & Practical Objective
Three mature tools close the remaining gaps that a single DSR number cannot:
- Purged, embargoed -fold cross-validation - fixes the leakage that makes ordinary CV dishonest on financial data.
- Probability of Backtest Overfitting (PBO) via combinatorially symmetric cross-validation (CSCV) - a non-parametric, statistic-agnostic estimate of how likely your selection procedure is to pick a strategy that underperforms out of sample.
- White’s Reality Check / the bootstrap SPA test - the founding frequentist test of data snooping, which asks whether the best model in a whole search beats a benchmark once you account for the search.
The objective: move from “DSR passed” to a portfolio of independent checks - parametric (DSR), non-parametric (PBO), and bootstrap-based (Reality Check) - because each fails in a different regime.
2. Mathematical Ground Truth & Derivations
2.1 Leakage and why ordinary -fold CV is wrong in finance
Standard -fold CV shuffles observations and holds out a random test fold. On i.i.d. data this is unbiased. Financial observations are neither i.i.d. nor exchangeable in time. Two failure mechanisms:
- Overlap / serial correlation. If a feature or label at uses a window , a randomly chosen test fold shares information with training folds - the model peeks. This is why the ESL wrong-vs-right CV demonstration (full-data screening gives CV error against a true , §7.10.2) is not a curiosity but the norm in finance.
- Regime/segment boundaries. Purging by random folds lets the model learn adjacent, correlated observations directly.
Purging: remove from the training set every observation whose label/factor window overlaps the test fold’s time span (by the label horizon). Embargo: after each test fold, additionally drop a short window (e.g. of or a fixed number of days) from training to kill residual autocorrelation memory (López de Prado, Advances in Financial Machine Learning, Ch 7).
2.2 Probability of Backtest Overfitting (CSCV)
Build the matrix of the trials’ performance series (columns = trials, rows = synchronous observations). Partition rows into (even) equal blocks; take all combinations, each half used as IS and (its complement) as OOS.
- For each combination : pick the IS-best strategy , find its OOS relative rank , and form the logit
- Collecting gives an empirical distribution; the PBO is the probability the IS-best underperforms the OOS median:
Interpretation: means the selection is no better than random (the IS winner is coin-flip-ranked OOS); means IS ranking carries genuine OOS information. PBO is non-parametric and works for any performance statistic (Sharpe, Sortino, drawdown ratio).
2.3 White’s Reality Check (bootstrap data-snooping test)
Given candidate models and a benchmark, let be model ‘s performance differential vs the benchmark. The null is no model beats the benchmark:
The test statistic is . Its null distribution is unknown analytically, so it is bootstrapped (Politis–Romano stationary bootstrap - blocks of geometrically-distributed length preserve dependence). With resampled series,
and the Reality Check -value is the fraction of bootstrap draws with . A small means the best model’s edge survives the search; a large means it is a data-snooping artifact. SPA (Hansen 2005) sharpens this by recentring the dominated models.
3. Computational Implementation - PBO via CSCV, and leakage intuition
Stdlib only. We build a trial matrix, run CSCV (), and report PBO for (a) all-noise strategies and (b) one genuinely-skilled strategy among noise. PBO should land near in (a) and well below it in (b).
The reading: when nothing is real, the IS-best is OOS-median on average - PBO , the perfect signature of a search that is pure noise. When one strategy truly has edge, the IS-best tends to be that strategy and it ranks well OOS - PBO drops to , well below the threshold. Decision rule: PBO or near it condemns the selection process; PBO well below is positive evidence - but PBO and DSR can disagree, which is why you run both.
(Leakage note: the same matrix fed to standard -fold CV - random folds - would leak via serial correlation and report a spuriously good “OOS” score; CSCV avoids this by keeping blocks contiguous and alternating IS/OOS in time, the CV analogue of purging/embargo.)
4. Failure Modes & First-Principles Breakdowns
- Random-fold CV on time series. Shuffling breaks the temporal structure; leakage makes CV error optimistic in finite samples (ESL §7.10.2–7.10.3: high-dimensional/irrelevant features make CV underestimate error unless the model is retrained per fold). Use purged + embargoed folds.
- Purge width guessed. The purge must span the label horizon (how far forward a label looks). Too narrow → leakage; too wide → discard most data. Tie it to the triple-barrier/label construction.
- Embargo omitted. Even after purging, residual serial correlation crosses the fold boundary; a short embargo window is cheap insurance (López de Prado Ch 7).
- PBO mis-read as a significance test. PBO estimates the selection procedure’s reliability, not a strategy’s alpha. PBO does not prove your best strategy is fake; it says your ranking is uninformative - a much more specific indictment.
- CSCV assumptions. PBO requires a synchronous, rectangular matrix and a metric estimable on subsamples; unevenly-sampled or short series break it (aggregate to a common index).
- Reality Check on the wrong null. The RC null is no model beats the benchmark; testing against a wrong benchmark, or bootstrapping without preserving dependence (plain i.i.d. bootstrap on serially-correlated data), invalidates the -value. Use a stationary/block bootstrap.
- Correlated strategies over-count in PBO. CSCV uses ranks among columns; if columns are near-duplicates the effective diversity is smaller and PBO is optimistic - pre-cluster near-identical trials.
5. References
- Bailey, D., Borwein, J., López de Prado, M. & Zhu, J.: The Probability of Backtest Overfitting, Journal of Computational Finance 20(4) (2017)
- White, H.: A Reality Check for Data Snooping, Econometrica 68(5), 1097–1126 (2000)
- Hansen, P. R.: A Test for Superior Predictive Ability, Journal of Business & Economic Statistics (2005)
- López de Prado, M.: Advances in Financial Machine Learning
- Hastie, Tibshirani & Friedman: The Elements of Statistical Learning (2nd ed.)
6. Connected Graph Bridges
- Back: 05 · Failure Modes & Practice · Index Hub
- Cross-cutting: Feature Engineering & Labeling (label horizons define the purge) · Signal Processing & Kalman Filtering (state-space models need the same CV discipline)
- Cross-pillar: Financial ML Pitfalls & Low SNR (purged CV, meta-labeling, and the low signal-to-noise regime)