Open Family Office Datasets Tickers Strategies Portfolios Research Posts About Changelog

Backtesting

Source

Citation. Campbell R. Harvey (Duke University, and National Bureau of Economic Research) and Yan Liu (Texas A&M University). "Backtesting." The Journal of Portfolio Management 42(1), Fall 2015, pp. 13–28, published 31 October 2015. doi.org/10.3905/jpm.[removed]. Code: three Matlab files at people.duke.edu/~charvey/backtesting (Haircut_SR.m, Profit_Hurdle.m and sample_random_multests.m). The data of E/P and momentum come from Ken French's data library, and the BAB statistics come from Frazzini & Pedersen (2014). The paper gives no funding. A mismatch: the authors' PDF prints pages 12 to 28, and Crossref gives pages 13 to 28.

Status. Planned. #94 implements the haircut Sharpe ratio, the three adjusted p-values and the profit hurdle, from the trial ledger (#7). No code in the repo uses them yet.

Read. Read on 2026-11-27 from the authors' PDF of the journal version (people.duke.edu), 17 pages. I extracted the whole text with pdftotext and read it in the source's own words. The exhibits have no text layer, so I read Exhibits 1 to 7 as page images. I read Exhibits 2 and 3 only as plots, so their numbers below are approximate. I read the code page's listing, but not the Matlab code. I did not read HLZ (Harvey, Liu & Zhu 2015), whose model the method depends on. I recomputed the toy example, the introduction's example, Exhibit 1, the single and Bonferroni rows of Exhibit 4, and Exhibit 5.

Summary

Claim. The usual 50% haircut of a backtested Sharpe ratio is wrong. A haircut from multiple testing is nonlinear: it penalises a marginal Sharpe ratio heavily and a high Sharpe ratio only a little.

Method.

Findings, as the source reports them.

Setting Number Value
Independent tests, N = 10, pS = 0.05 pM 0.401
SR 0.75 a year, T = 240 months, single test pS 0.0008
The same, N = 200 independent tests pM, HSR, haircut 0.15, 0.32, "approximately 60%"
Six p-values (0.005, 0.009, 0.0128, 0.0135, 0.045, 0.06) Bonferroni (0.03, 0.054, 0.0768, 0.081, 0.270, 0.36)
The same Holm (0.03, 0.045, 0.0512, 0.0512, 0.09, 0.09)
The same BHY, with c(6) = 2.45 (0.0496, 0.0496, 0.0496, 0.0496, 0.06, 0.06)
Exhibit 1, E/P: SR 0.43, t 2.99 haircut at N = 10, 50, 100 26.6%, 50.0%, 61.6%
Exhibit 1, MOM: SR 0.67, t 4.70 haircut at N = 10, 50, 100 10.9%, 19.2%, 23.0%
Exhibit 1, BAB: SR 0.78, t 7.29 haircut at N = 10, 50, 100 4.6%, 7.9%, 9.3%
Exhibits 2 and 3, all three methods, N up to 200 haircut when SR < 0.4 a year "almost always more than" 50%
The same haircut when SR > 1.0 a year "at most 25%"
Exhibit 4, 240 months, 10% volatility, 300 tests minimum mean return a month: single, Bonferroni, Holm, BHY 0.365%, 0.702%, 0.688%, 0.616%
Exhibit 5: SR 1.0 a year, 120 months, autocorrelation 0.1, 100 tests, ρ = 0.4 Sharpe ratio after Lo's correction 0.912
The same HSR and haircut: Bonferroni, Holm, BHY 0.232 (74.6%), 0.262 (71.3%), 0.438 (52.0%)
Exhibit 6: as Exhibit 4, with ρ = 0.4 BHY hurdle, average hurdle 0.621%, 0.670% a month
Exhibit 7, HLZ estimates at ρ = 0, 0.2, 0.4, 0.6, 0.8 p₀ 0.396, 0.444, 0.485, 0.601, 0.840
The same λ, the mean of true monthly means 0.550%, 0.555%, 0.554%, 0.555%, 0.560%

My recomputation agrees with the toy example, Exhibit 5 and the single and Bonferroni rows of Exhibit 4 to the last digit. It agrees with Exhibit 1 within half a percentage point.

Where the claims go beyond the evidence

The correction rests on a model of published equity factors. The haircut for correlated tests draws its null and its alternatives from HLZ's estimates for 316 U.S. equity factors. The paper doesn't test whether those estimates fit other markets, other horizons or one researcher's own search.

The number of tests is a judgement. The authors say so. The haircut changes greatly with N: E/P loses 27% at N = 10 and 62% at N = 100. The paper gives no rule to choose N.

The method has no calibration. The paper shows no simulation with known true and false strategies. It doesn't report the false-discovery or the missed-discovery rate that each correction gives.

No error for the simulated haircut. The haircut for correlated tests is the median of 5,000 draws. The paper reports no spread. Exhibit 4 doesn't state its ρ. Its BHY hurdle (0.616%) differs from Exhibit 6's (0.621% at ρ = 0.4), and the paper doesn't explain the difference.

The interpolation leaves the range of a probability. Above ρ = 0.8, the rule extrapolates from ρ = 0.6 and ρ = 0.8. With Exhibit 7's values, p₀ is greater than 1 for ρ above about 0.93, and 1.079 at ρ = 1.

Two distributions. The introduction's example and Exhibit 4 match the normal distribution exactly. Exhibits 1 and 5 match the t distribution. The method section names only the t distribution.

Errors in the text.

Sharpe ratios before costs. The three examples ignore transaction costs. The authors say so, and they call the Sharpe ratios "overstated".

Credit. The authors state real limits. Non-normal returns, such as an option-like strategy with negative skew, can inflate a Sharpe ratio. Volatility may not be the true risk. The choices of significance level, method and N are judgements. And no historical test is truly out of sample, because the researcher knows what happened. They release code, and they compare their method fairly with PBO.

Use in this repo

The repo has no multiple-testing code yet. #94 will implement the three adjusted p-values, the haircut Sharpe ratio and the profit hurdle. #11 holds the other selection tests: PBO, SPA and Romano–Wolf.

Count the repo's own tests, not HLZ's. The paper needs HLZ's model because it can't see the tests behind a published strategy. This repo can. The trial ledger (#7) records every trial, so #94 can adjust the p-values of the actual family. HLZ's model fits U.S. equity factors, and its p₀ and λ have no meaning for sports betting, prediction markets or crypto.

It complements DSR and PBO. DSR (docs/literature/deflated-sharpe-ratio.md) asks whether the best Sharpe ratio beats the expected maximum under the null. PBO (docs/literature/probability-of-backtest-overfitting.md) asks whether the selection holds out of sample. The haircut asks which members of a family are discoveries, and it controls the share of false ones. The authors say the same in their comparison with PBO.

The normal assumption must be explicit. The haircut uses the t-statistic of an i.i.d. normal mean. The PSR review (docs/literature/sharpe-ratio-efficient-frontier.md) shows that skew and fat tails widen the Sharpe ratio's error. #94 should state which distribution it uses, and test the case of skewed returns.

The examples are ready tests. The six-p-value example tests the three corrections exactly. Exhibit 5's Bonferroni row tests the round trip from Sharpe ratio to haircut. RQ1's Phase 2 (#5) can then measure what the paper doesn't: the false and missed discoveries of each correction on synthetic families.

The evaluator can become the target. The authors note that a strategy revised after a failed out-of-sample test is not out of sample. Agents in this repo can do exactly that. The PBO review makes the same point: each run of the harness must count as a trial.

Questions for the maintainer. Does the verdict (#12) control the FWER (Bonferroni or Holm) or the FDR (BHY), as the authors advise? At which level: 0.05 or 0.10? And does a strategy need to pass the haircut, DSR and PBO together, or does each feed one part of the verdict?