Open Family Office Datasets Tickers Strategies Portfolios Research Posts About Changelog

A Reality Check for Data Snooping, and A Test for Superior Predictive Ability

Source

Citation. Two papers on one page, because the second refines the first.

Status. Planned. #11 implements Hansen's SPA test against buy-and-hold and 1/N. No code in the repo uses either test yet.

Read. Read on 2026-11-27. White: the journal PDF, from a course page at the University of Wisconsin, 30 pages, extracted with pdftotext. I read Sections 1 to 5 and Tables I and II in the source's own words, and skimmed the mathematical appendix. Some symbols came through garbled, and I saw none of the figures. Hansen: the April 2005 PDF, 42 pages, which the maintainer supplied after both open copies failed. I read all of it, with Tables 2 to 6 and Figures 1 to 4. I recomputed Hansen's Figure 1 powers and his sample-size comparison.

Summary

Claim. White: a test can compare the best of l models from a search with a benchmark. Its bootstrap p-value accounts for the whole search. Hansen: White's test loses power when the search includes poor models. Studentising each model's statistic, and recentring the null on the data, fixes most of this.

Method.

Findings, as the sources report them.

Source and setting Number Value
White, Table I: best of 3,654 models by MSE RC p-value, and naive p-value .3674 and .1068
White, Table II: best by directional accuracy, 54.75% against 50.79% RC p-value, and naive p-value .2040 and .0036
Hansen, Example 4: m = 2, one noisy model, 5% level power of RC, and of the studentised test about 15% and about 53%
Hansen, Table 2: m = 100, n = 200, all models binding (Λ₀ = Λ₁ = 0) size of RC_u and SPA_c at 5% 0.053 and 0.060
Hansen, Table 3: the same, n = 1,000 size of RC_u and SPA_c at 5% 0.048 and 0.048
Hansen, Table 2, Panel E: (Λ₀, Λ₁) = (10, −3) power of RC_u and SPA_c at 5% 0.006 and 0.843
Hansen, Figure 4 design (m = 100, Λ₀ = 20): 50% power equivalent data lost by RC instead of SPA_c about 84%
Hansen, Table 6: inflation, Large Universe (m = 3,304) SPA_c and RC_u p-values 0.741 and 0.978
Hansen, Table 6: Small Universe (m = 352) SPA_c and RC_u p-values 0.048 and 0.106
Hansen, Table 6: Full Universe (m = 3,656) SPA_c and RC_u p-values 0.100 and 0.963

I recomputed Example 4 (14.2% and 53.0%) and the equivalent data lost (33%, 66% and 84%). Each agrees with the text.

Where the claims go beyond the evidence

Hansen's simulations are the easy case. The losses are IID Normal, and the bootstrap runs with q = 1, no blocks. Nothing tests serial dependence, fat tails or heteroskedastic losses, though the theory and the empirical work rely on the block bootstrap.

White's paper has no size or power study. The theory is asymptotic, and the empirical example has no known truth. White names finite-sample simulation as "a top priority", and cites Sullivan and White (1999), which finds the test "typically (though not always)" conservative.

SPA_c over-rejects a little in small samples. At m = 100 and n = 200 it rejects 6.0% at the 5% level, and at m = 1,000 it rejects 6.2%. Hansen reports this, and the excess goes away at n = 1,000.

Both tests ask whether any model beats the benchmark, not which ones. A rejection doesn't say which models are better. That needs a stepwise method, such as Romano and Wolf (#19).

The Sharpe ratio isn't an expected loss. Hansen's framework needs an expected loss, such as the mean return of a trading rule. A Sharpe ratio test needs White's Section 2.c extension, and Hansen doesn't treat it.

Recursive estimation is excluded. Hansen's test does not allow parameters estimated on an expanding window. Only fixed or rolling estimation is allowed. He states this limit himself.

Errors in Hansen's text. Example 4 writes the alternative's distribution as Φ(x + 2). It must be Φ(x − 2) to give the stated 15% and 53%, and Φ(x − 2) is what I used. Table 3 labels the panels for Λ₀ = 2, 5 and 10 all as "Panel B". Figure 4 uses Λ₀ = 20, which is not in the tables.

Credit. Hansen flags his own Small Universe result as data mined, and reports the Full Universe to account for it. White shows that the naive p-value of the best model (.0036) can mislead badly.

Use in this repo

#11 already names SPA, and White's trading example matches the repo. White's Example 2.2 compares a long, flat or short rule with buy-and-hold, by log returns. That is the repo's own setting: a strategy's returns against buy-and-hold and 1/N.

The test statistic needs a choice. SPA on mean log returns is the tested form. SPA on Sharpe ratios needs White's extension, and neither paper simulates it. The harness (#87) could run SPA on mean excess return, and leave Sharpe inference to PSR and DSR (#8).

Poor strategies must not hide a good one. Hansen's Full Universe example shows the risk. Adding 3,304 poor forecasts moved RC's p-value from 0.106 to 0.963, and SPA_c's only from 0.048 to 0.100. The trial ledger (#7) will hold many weak variants, so the repo should use SPA_c, not RC.

The ledger must keep every trial's returns. Both tests need the full d_k,t series of every model tried, as PBO and DSR do. White's recursive form needs less: the running maximum, the bootstrap indexes and the random seed. That is a light way to keep a search honest across sessions.

Block length is a parameter to set. Hansen uses q = 0.25 for quarterly data, and White uses q = 0.5 for daily returns. The harness needs a rule for q at each frequency. White suggests a data-dependent choice, and #11 must pick one.

A question for the maintainer. For the verdict (#12), is the benchmark buy-and-hold of the strategy's own market, 1/N over its tickers, or both? And is it tested on mean excess return or on the Sharpe ratio?