Probability of Backtest Overfitting (Combinatorially Symmetric Cross-Validation)
Given the per-period returns of every strategy configuration that was tried, the method splits the periods into an even number of contiguous blocks and forms all halves of those blocks. In each split it picks the configuration that performs best in the chosen half and records where that configuration ranks out of sample on the other half. The probability of backtest overfitting is the share of splits in which the in-sample winner falls in the lower half out of sample.
시도한 모든 전략 설정의 기간별 수익률을 받아, 기간을 짝수 개의 연속 구간으로 나눈 뒤 그 구간들의 모든 절반 조합을 만듭니다. 각 분할에서 선택한 절반에서 가장 성과가 좋은 설정을 고르고, 나머지 절반에서 그 설정의 상대 순위를 기록합니다. 표본 내 우승 설정이 표본 외에서 하위 절반에 떨어진 분할의 비율이 백테스트 과적합 확률입니다.
I tried eighty parameter settings and kept the best Sharpe ratio; how likely is it that this winner is just the luckiest of the eighty rather than genuinely better?
여러 모수 설정을 시도한 뒤 샤프지수가 가장 높은 것을 골랐습니다. 이 우승 설정이 실제로 더 좋은 것이 아니라 단지 가장 운이 좋았을 가능성은 얼마나 됩니까?
The method returns the probability of backtest overfitting, the distribution of the out-of-sample rank logits, the performance-degradation regression of out-of-sample on in-sample performance, the probability that the selected strategy loses money out of sample, and how often each configuration was the in-sample winner.
When to use Probability of Backtest Overfitting (Combinatorially Symmetric Cross-Validation)
- Many configurations were tried and the best one was selected on the same data
- Per-period returns of every trial, including the discarded ones, are available
- A single number for how much the selection step inflates the reported performance is wanted
When to use something else
- Only the winning configuration was kept and the others were not recorded, so the selection cannot be reproduced
- The question is whether a given strategy beats a benchmark : use Return and Risk Performance Metrics
- The question is whether a risk model passes its exception tests : use VaR Backtesting
- A forecast model is evaluated on time-ordered folds : use Blocked Cross-Validation for Dependent Data
Assumptions and requirements
- Columns cover every configuration that was tried, not only the survivors
- All configurations are evaluated over the same periods, in time order
- Blocks are long enough for the performance measure to be meaningful
- The splits overlap, so the probability is a descriptive frequency without a standard error
What the analysis reports
- Probability of backtest overfitting and the median and mean of the rank logits
- Performance-degradation slope, intercept and R-squared of out-of-sample on in-sample performance
- Probability that the selected configuration loses money out of sample
- How often each configuration won in sample and its full-sample performance
How to report it
Combinatorially symmetric cross-validation with [value] blocks ([value] splits) over [value] configurations gave a probability of backtest overfitting of [value]; the in-sample winner averaged [value] in sample and [value] out of sample (degradation slope [value]) and lost money out of sample in [value]% of the splits.
Related methods
- Return and Risk Performance Metrics
- Characteristic-Sorted Portfolio Backtest (Quantile Spread Returns)
- VaR Backtesting
- Blocked Cross-Validation for Dependent Data
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with NumPy, SciPy and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-10.
독립 계산. NumPy·SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-10).
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Probability of Backtest Overfitting (Combinatorially Symmetric Cross-Validation) on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns and a time variable
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.