Audit a backtest
audit_backtestOne-call audit of a strategy's returns. Headline: one test whose false-positive rate was measured on nine return shapes (White's Reality Check with variants, luck trials with Lo's correction without).
Instructions
One-call audit of a strategy's returns. Headline: one test whose false-positive rate was measured on nine return shapes (White's Reality Check with variants, luck trials with Lo's correction without). Then deflated Sharpe, minimum track record and, with variants, overfitting and out-of-sample decay, each with its receipt, plus fix_next. Send every variant tried (variants_file) so trials are counted; point returns_file at a CSV instead of pasting. 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 |
|---|---|---|---|
| returns | No | Periodic returns as fractions (0.01 = 1%), oldest first; replaces the Sharpe, observations, skew and kurtosis. | |
| n_splits | No | Even number of blocks, at least 2; default 16. | |
| variants | No | Optional returns of every variant tried (this one included), one row per period, one column per variant; adds the overfitting check. | |
| confidence | No | Between 0 and 1; default 0.95. | |
| returns_file | No | Path to a CSV or JSON of the returns on this machine (not on the hosted endpoint), instead of returns. | |
| variants_file | No | Path to a CSV or JSON with one numeric column per variant, instead of variants. | |
| returns_column | No | Column name or 1-based position, when returns_file has several numeric columns. | |
| periods_per_year | Yes | Periods per year: 252 daily, 365 crypto, 52 weekly, 12 monthly. | |
| benchmark_sharpe_annualized | No | Annualized Sharpe to beat; default 0. | |
| effective_independent_trials | No | Independent variants tried before choosing this one. Optional with variants: counted from them, and the larger number is used. | |
| cross_trial_sharpe_sd_annualized | No | Standard deviation of annualized Sharpe across those trials. Optional with variants: measured from them, and the larger is used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| error | No | ||
| checks | No | ||
| limits | No | ||
| not_run | No | ||
| readings | No |