Skip to main content
aifinhub

Calculator

Backtest Overfitting Score: PBO & Deflated Sharpe

Free PBO calculator: upload a wide-format returns CSV for the probability of backtest overfitting and deflated Sharpe ratio via CSCV, in your browser.

Inputs
Form inputs / CSV
Runtime
Instant
Privacy
Client-side · no upload
API key
Not required
Methodology
Open →

Education · Not investment advice. BaFin/EU framework. Past performance does not indicate future results. Editorial standards Sponsor disclosure Corrections

1 · Upload your backtest returns

Wide-format CSV: one column per candidate strategy, one row per observation. Optional date column as the first column. Returns are interpreted as simple (non-log) daily returns. All computation runs in your browser — nothing uploaded.

What this tool answers

If you backtested many candidate strategies and picked the best one, how likely is it that the winner is real versus the winner of a lucky lottery? Two complementary signals:

  • PBO (Probability of Backtest Overfitting, via Combinatorially-Symmetric Cross-Validation): fraction of splits where the in-sample winner ranks below median out-of-sample. High PBO = likely overfit.
  • DSR (Deflated Sharpe Ratio): probability that the Sharpe is statistically real, adjusted for how many strategies you tested and how non-normal the returns are. Low DSR = Sharpe probably a coincidence.

Load the synthetic demo for a working example, or upload your own CSV. See the methodology page for formulas and references.

How to use

Step-by-step

Full calculator guide →
  1. 1

    Upload your returns matrix: rows = periodic returns (typically daily), one column per strategy variant. Annualization assumes daily rows (×√252). Minimum 16 variants for a stable PBO estimate.

  2. 2

    Set the number of CSCV partitions (default 16). More partitions = more stable estimate, longer runtime.

  3. 3

    Read PBO (probability of backtest overfitting) — values above 0.5 mean the in-sample winner is likely to underperform out-of-sample.

  4. 4

    Read Deflated Sharpe Ratio alongside. PBO measures relative overfitting; DSR measures absolute statistical significance after multiple-testing penalty.

  5. 5

    If PBO > 0.5 or DSR < 0.95, treat the backtest as curve-fit. DSR here is a probability in [0,1], so 0.95 is the 95%-confidence bar. Reduce variant count, lengthen sample, or test on truly fresh data before live deployment.

For agents

Use in an agent

Same math, same result shape as the UI above — as a static ES module. No HTTP request, no auth, no rate limit.

import { compute } from "https://aifinhub.io/engines/backtest-overfitting-score.js";

Contract: /contracts/backtest-overfitting-score.json Full agent guide →

Glossary references

Terms used by this tool

All glossary →

Questions people ask next

FAQ

What is Probability of Backtest Overfitting (PBO)?

PBO is the probability that the strategy with the best in-sample Sharpe ranks below median out-of-sample. Bailey, Borwein, Lopez de Prado, and Zhu (2017) introduced the metric. A PBO above 0.5 means the in-sample winner is more likely to underperform than outperform in production — i.e., the backtest is more curve-fit than predictive.

How is PBO computed from a returns matrix?

Combinatorially Symmetric Cross-Validation (CSCV): split the returns matrix into S equal subsets and form in-sample / out-of-sample partitions. The number of partitions grows fast, so the tool samples up to 500 of them, measures how often the in-sample top performer falls below the out-of-sample median, and divides by the number sampled. It reports the resulting PBO, not the per-partition ranks.

What's the Deflated Sharpe Ratio?

Lopez de Prado's adjustment to standard Sharpe that accounts for skew, kurtosis, and the number of trials run. A DSR above 0.95 (95% confidence) is the rough threshold for 'this Sharpe is unlikely to be from random search'. The tool reports both raw and deflated.

How many strategy variants do I need to compute PBO?

At least 16 for stable estimates; ideally 32+. The tool still computes PBO with fewer, but it does not emit a low-count warning — so treat a small-variant estimate as noisy yourself. If you only ran 2-3 variants, your PBO is more noise than signal.

Does a low PBO mean my strategy will work live?

No. PBO measures relative overfitting across the variants you tested, not absolute predictive power. A strategy can have low PBO (your best variant is genuinely better than the average variant) and still lose money live if all variants are weak. Combine PBO with deflated Sharpe and out-of-sample equity-curve inspection.

Complementary tools