Skip to content
Statistical Arbitrage / Backtesting and Validation

Combinatorial Purged Cross-Validation

Purged kk-fold cross-validation estimates the out-of-sample Sharpe ratio from a single backtest path — one realisation of the strategy's performance over the evaluation period. A single Sharpe ratio number has high variance: a strategy that genuinely earns SR = 0.6 might backtest anywhere from SR = −0.6 to SR = 1.8 on a 3-year sample from sampling noise alone. Choosing among strategies by a single-path Sharpe ratio therefore tends to select the luckiest path, and live performance disappoints.
Combinatorial Purged Cross-Validation (CPCV) solves this by generating a large number of test paths through the combinatorial structure of all ways to partition NN blocks of data into kk test folds. Rather than a single SR estimate, CPCV delivers a distribution of Sharpe ratios across ϕ(N,k)\phi(N, k) paths. The mean of that distribution is a steadier estimate than any one path, and its spread shows how much the result depends on which history was used for fitting. For a relative-value book each path is a backtest of the whole procedure (pair screen, hedge ratios, trading rule) refitted on a different part of the sample, which is the only way to see whether the pairs would have been found without hindsight.
Learning objectives. By the end of this note you should be able to:
  • state the CPCV construction procedure and identify the role of NN and kk;
  • compute the number of paths ϕ(N,k)=(Nk)k/N\phi(N, k) = \binom{N}{k}k/N;
  • explain why CPCV has lower variance than WF or simple purged CV;
  • state how the probability of backtest overfitting is estimated from combinatorial splits of a set of trials;
  • say what CPCV does and does not add when the object validated is a portfolio of pairs.

In this lesson

    1. The single-path variance problem
    1. CPCV construction
    1. Variance reduction
    1. Probability of Backtest Overfitting
    1. What CPCV does for a portfolio of pairs

Before you start

The full lesson, with worked examples and exercise solutions, is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or browse the Statistical Arbitrage syllabus.