Q² · Question 03

When Should You Question a Sharpe-8 Backtest?

How quickly a strong claim runs out of room for bad luck
Hypothesis testing · Sharpe ratio · Intermediate · 6 min
The question

You start trading a new strategy whose backtest has an annualized Sharpe ratio of 8. After kk trading days, its cumulative P&L is zero.

How large would kk have to be before you start questioning the backtest?

Before calculating: what would count as evidence against the backtest—performance that is worse than promised, or performance that is different in either direction?

S = 8.0
0%10%20%30%40%50%159121620Trading days kProbability of flat or losing P&L5%2.5%11d16d
Probability of flat or losing P&L
5%: one-sided rejection level
2.5%: lower tail of a two-sided 5% test
One-sided: 11 days · Two-sided: 16 days At day 11, P(flat or losing) = 4.73%; at day 16, 2.19%. Each point is a separate, fixed-horizon calculation.
Figure 1: How long can zero still look like bad luck? The curve shows P(Pk≤0)P(P_k\le0) under the claimed model. Markers identify the first integer horizons that meet the two criteria. The curve passes between integer days as a visual guide; this is not the probability of ever crossing a boundary during daily monitoring.

1. State what the backtest is claiming

A Sharpe estimate alone does not specify a full probability model. For the textbook calculation, assume daily P&Ls X1,X2,…X_1,X_2,\ldots are independent and identically distributed normal variables:

Xi∼N(μ,σ2),σ>0.X_i\sim\mathcal{N}(\mu,\sigma^2),\qquad \sigma>0.

Treat the backtest mean and volatility as known and unchanged in live trading. Use 252 trading days per year and define annualized Sharpe by

S=252 μσ.S=\sqrt{252}\,\frac{\mu}{\sigma}.

For S=8S=8, the daily Sharpe is therefore

μσ=8252≈0.504.\frac{\mu}{\sigma}=\frac{8}{\sqrt{252}}\approx0.504.

Here cumulative P&L means the additive sum of daily P&Ls, rather than a compounded return. At a fixed horizon of kk days,

Pk=∑i=1kXi∼N(kμ,kσ2),E[Pk]=kμ,SD⁡(Pk)=σk.\begin{aligned} P_k&=\sum_{i=1}^{k}X_i\sim\mathcal{N}(k\mu,k\sigma^2),\\[4pt] \mathbb{E}[P_k]&=k\mu,\\[4pt] \operatorname{SD}(P_k)&=\sigma\sqrt{k}. \end{aligned}

Under the normal assumption this distribution is exact; no large-sample approximation is needed.

2. Measure how surprising zero is

The model predicts positive cumulative P&L. If the observed value is zero, its standardized distance from the predicted mean is

z=0−kμσk=−μσk=−8k252.\begin{aligned} z&=\frac{0-k\mu}{\sigma\sqrt{k}}\\[4pt] &=-\frac{\mu}{\sigma}\sqrt{k} =\boxed{-8\sqrt{\frac{k}{252}}}. \end{aligned}

To investigate underperformance, ask: if the backtest model were correct, how likely would it be to finish flat or worse? With Φ\Phi denoting the standard normal cumulative distribution function,

plower=P(Pk≤0)=Φ ⁣(−8k252).p_{\mathrm{lower}}=P(P_k\le0)=\Phi\!\left(-8\sqrt{\frac{k}{252}}\right).

We use zero or worse, since an exactly zero outcome has probability zero under a continuous distribution. The lower tail measures outcomes at least as unfavourable as the one observed.

3. Choose a one-sided rejection level

If the concern is that the backtest overstated expected performance, the alternative is directional: the true mean is lower than the claimed mean. A one-sided 5% test puts its entire rejection probability in the lower tail.

The requirement plower≤0.05p_{\mathrm{lower}}\le0.05 is equivalent to

8k252≥Φ−1(0.95)≈1.645.8\sqrt{\frac{k}{252}}\ge\Phi^{-1}(0.95)\approx1.645.

Solving for the horizon gives

k≥252(Φ−1(0.95)8)2≈10.653,kmin⁡=11 trading days.\begin{gathered} k\ge252\left(\frac{\Phi^{-1}(0.95)}{8}\right)^2\approx10.653,\\[8pt] \boxed{k_{\min}=11\text{ trading days}}. \end{gathered}

Sanity check: the probability of flat or losing P&L is about 5.55% at day 10 and 4.73% at day 11. Day 11 is the first integer horizon below 5%.

A 5% rejection level describes how unusual this outcome would be if the claimed model were correct. It does not mean there is a 95% probability that the backtest is wrong.

4. What changes with a two-sided test?

“Question the backtest” can also mean looking for inconsistency in either direction. Under that interpretation, unexpectedly large profits can count as evidence too: a model may be wrong even when the surprise is welcome.

A two-sided 5% test splits the rejection probability into two tails of 2.5% each. For the observed zero P&L, use the lower cutoff −Φ−1(0.975)≈−1.96-\Phi^{-1}(0.975)\approx-1.96:

k≥252(Φ−1(0.975)8)2≈15.126,kmin⁡=16 trading days.\begin{gathered} k\ge252\left(\frac{\Phi^{-1}(0.975)}{8}\right)^2\approx15.126,\\[8pt] \boxed{k_{\min}=16\text{ trading days}}. \end{gathered}

At day 15 the lower-tail probability is about 2.55%, just above 2.5%; at day 16 it is about 2.19%. The corresponding two-sided pp-value for zero P&L is 2plower2p_{\mathrm{lower}}, so it falls below 5% at day 16.

11 days: is performance significantly worse than promised?
16 days: is performance significantly different from what was promised? Choose the test direction before observing the outcome.

More generally, for a positive claimed annualized Sharpe SS and a positive critical normal value zcritz_{\mathrm{crit}},

kmin⁡=⌈252(zcritS)2⌉.\boxed{k_{\min}=\left\lceil252\left(\frac{z_{\mathrm{crit}}}{S}\right)^2\right\rceil}.

Use zcrit=Φ−1(1−α)z_{\mathrm{crit}}=\Phi^{-1}(1-\alpha) for a one-sided test at level α\alpha, or Φ−1(1−α/2)\Phi^{-1}(1-\alpha/2) for a two-sided test. The ceiling rounds up to the first whole trading day.

5. A Strong Claim Leaves Less Room for Bad Luck

A Sharpe ratio is a signal-to-noise ratio. Over kk independent days, the expected profit grows linearly, while its standard deviation grows only with the square root of time:

E[Pk]SD⁡(Pk)=kμσk=k μσ=Sk252.\frac{\mathbb{E}[P_k]}{\operatorname{SD}(P_k)} =\frac{k\mu}{\sigma\sqrt{k}} =\sqrt{k}\,\frac{\mu}{\sigma} =S\sqrt{\frac{k}{252}}.

Zero P&L therefore moves progressively further below the model's expected outcome, measured in standard deviations. For Sharpe 8, that distance is about 0.50 after one day, 1.01 after four, and 1.67 after eleven.

The short horizon follows from the strength of the claim: Sharpe 8 implies a daily mean about half as large as daily volatility. A Sharpe-1 strategy would need 682 trading days to reach the same one-sided 5% criterion. Required observation time scales as 1/S21/S^2: halving the claimed Sharpe multiplies the unrounded horizon by four.

We are asking how surprising zero P&L is relative to the signal-to-noise ratio that the backtest promised. The stronger the promise, the sooner flat performance becomes difficult to reconcile with it.

6. Fix the horizon before looking

The 11-day calculation concerns a single test at a horizon chosen in advance. Checking every day and stopping at the first significant result is a different procedure. Repeated opportunities to reject change the overall false-alarm probability; a sequential monitoring rule needs its own calibration.

The calculation also treats the backtest parameters as known. In practice they are estimates, often selected after trying many strategies. Estimation uncertainty and overfitting can change the predictive distribution. Autocorrelation changes how cumulative variance grows; fat tails change tail probabilities; changing costs, volatility, or market conditions can invalidate the stationary model.

Being flat after eleven days is a reason to investigate under these assumptions. It is not a universal rule for abandoning a strategy.

Takeaway

The relevant comparison is between live performance and what the claimed model predicts:

How many standard deviations below the backtest's expected P&L does zero lie? Under independent normal daily P&Ls, the distance grows as Sk/252S\sqrt{k/252}.

For a claimed annualized Sharpe of 8, at a preselected horizon:

Follow-up. Keep the same assumptions and one-sided 5% criterion, but reduce the claimed annualized Sharpe from 8 to 4. What is the first integer horizon at which zero P&L becomes significant, and why is it not necessarily four times the rounded 11-day answer?

Check it in Python

This standard-library script computes fixed-horizon tail probabilities and the first qualifying integer day for each test.

"""Fixed-horizon checks of a claimed annualized Sharpe ratio."""

from math import ceil, sqrt
from statistics import NormalDist


def flat_probability(k, sharpe=8):
    """P(cumulative P&L <= 0) under independent normal daily P&Ls."""
    if k < 1 or sharpe <= 0:
        raise ValueError("Use k >= 1 and a positive annualized Sharpe.")
    return NormalDist().cdf(-sharpe * sqrt(k / 252))


def first_day(sharpe=8, two_sided=False):
    """First integer horizon at which zero P&L rejects at the 5% level."""
    if sharpe <= 0:
        raise ValueError("Use a positive annualized Sharpe.")
    lower_tail = 0.025 if two_sided else 0.05
    critical = NormalDist().inv_cdf(1 - lower_tail)
    return ceil(252 * (critical / sharpe) ** 2)


if __name__ == "__main__":
    for k in (10, 11, 15, 16):
        p = flat_probability(k)
        print(f"k={k:2d}: lower-tail p={p:.6f}, two-sided p={2 * p:.6f}")
    print(f"Sharpe 8: one-sided={first_day()} days, "
          f"two-sided={first_day(two_sided=True)} days")
    print(f"Sharpe 1: one-sided={first_day(1)} days")

Expected output:

k=10: lower-tail p=0.055509, two-sided p=0.111017
k=11: lower-tail p=0.047319, two-sided p=0.094638
k=15: lower-tail p=0.025481, two-sided p=0.050962
k=16: lower-tail p=0.021910, two-sided p=0.043820
Sharpe 8: one-sided=11 days, two-sided=16 days
Sharpe 1: one-sided=682 days

Download backtest_check.py