Validate overfitting (CSCV)
validate_overfittingEstimate backtest overfitting probability with CSCV: measure how often the in-sample best variant falls below the out-of-sample median using a returns matrix.
Instructions
Probability of backtest overfitting (0 to 1) by CSCV: how often the in-sample best variant falls below the out-of-sample median. Needs every variant's returns (periods by variants); with summary statistics only, use validate_deflated_sharpe. A deflated Sharpe or overfitting probability above or below any threshold is not admission to anything and is not a forecast.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Sampling seed; default 42. | |
| matrix | Yes | Returns as fractions, one row per period, one column per variant. | |
| n_splits | No | Even number of blocks, at least 2; default 16. | |
| max_combinations | No | Most splits evaluated, up to 2000 (default). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| note | No | ||
| error | No | ||
| limits | No | ||
| receipt | No | ||
| computed | No |