Skip to content
LeetQuant
F5 Statistics and Inference

F5 · Statistics and Inference · Lesson 4 of 4

Statistical Reasoning in Interviews

What a p-value does and does not say, power and sample size, selection effects, regression to the mean and causation, and a script for 'is this result real?'

18 min

The questions behind the question

Research interviews often hand you a result ("this signal has a t-stat of 2.5", "the top fund beat the market five years running") and ask whether to believe it. The interviewer is testing whether you can separate three things: how surprising the data are under no effect, how likely the effect is to be real, and how big it is. This lesson builds on the testing mechanics of Estimation & Hypothesis Testing and covers the reasoning around them.

What a p-value is not

A p-value of 0.03 means: if the null were true and the test's assumptions held, a statistic at least this extreme would occur 3% of the time. Common misreadings, each wrong:

  • "There is a 3% chance the null is true." That is P(H0∣data)P(H_0 \mid \text{data}), which needs a prior. The p-value is P(data this extreme∣H0)P(\text{data this extreme} \mid H_0).
  • "There is a 97% chance the result will replicate." Replication probability depends on the true effect and the power of the repeat study, and is often near 50% for a result that just crossed p=0.05p = 0.05.
  • "A small p-value means a big effect." With enough data a tiny, useless effect is highly significant. Report the estimate and its interval, not only the p-value.
  • "p=0.2p = 0.2 shows there is no effect." Absence of evidence from an underpowered test is not evidence of absence.
  • "p=0.049p = 0.049 and p=0.051p = 0.051 are different findings." They are essentially the same evidence.

From significance to belief

Suppose a fraction π\pi of the ideas you test are real, your test has power 1−β1 - \beta against them, and you use level α\alpha. Among significant results, the fraction that are real is

P(real∣significant)=(1−β) π(1−β) π+α (1−π).P(\text{real} \mid \text{significant}) = \frac{(1-\beta)\,\pi}{(1-\beta)\,\pi + \alpha\,(1 - \pi)} .

With π=10%\pi = 10\%, power 50% and α=5%\alpha = 5\%: 0.05/(0.05+0.045)≈53%0.05 / (0.05 + 0.045) \approx 53\%, close to a coin flip. With power 80% it rises to 64%; with π=1%\pi = 1\% (typical of mining many signals) and power 80% it falls to 14%. This is Bayes' rule, the same calculation as a rare-disease test.

Power and sample size

To detect a true mean δ\delta with noise σ\sigma using a two-sided test at level α\alpha with power 1−β1 - \beta, you need

n≈((zα/2+zβ) σδ)2.n \approx \left(\frac{(z_{\alpha/2} + z_{\beta})\,\sigma}{\delta}\right)^2 .

For α=5%\alpha = 5\% and 80% power, zα/2+zβ=1.960+0.842=2.802z_{\alpha/2} + z_\beta = 1.960 + 0.842 = 2.802, and 2.8022≈7.852.802^2 \approx 7.85. Halving the effect size quadruples the required sample.

Low power has a second cost, the winner's curse: conditional on reaching significance, the estimated effect is biased upwards. If the true effect gives an expected z-statistic of 1 (one-sided power about 17%), the significant results have an average z of about 2.5, overstating the effect by a factor of 2.5. Backtested Sharpe ratios that halve in live trading are partly this.

Worked example

how long a track record do you need?

A strategy has a true mean daily return of 0.05% and daily volatility 1% (annualised Sharpe about 0.79). How many days of data give 80% power to detect it with a two-sided 5% test? What is the power with one year (252 days)?

Show solution

σ/δ=0.01/0.0005=20\sigma/\delta = 0.01 / 0.0005 = 20, so

n≈7.85×202≈3140 days≈12.5 years.n \approx 7.85 \times 20^2 \approx 3140 \text{ days} \approx 12.5 \text{ years}.

With one year the expected t-statistic is 0.05×252≈0.790.05 \times \sqrt{252} \approx 0.79, and the power is P(Z>1.96−0.79)+P(Z<−1.96−0.79)≈12%P(Z > 1.96 - 0.79) + P(Z < -1.96 - 0.79) \approx 12\%. A one-year test of a decent strategy fails to find it seven times in eight, and when it does succeed it overstates the Sharpe ratio. This is why track records are judged on more than their t-statistic: economic rationale, consistency across markets and periods, and capacity.

Multiple comparisons and the forking paths

Bonferroni controls the chance of any false positive, which is often too strict when screening many candidates. The Benjamini–Hochberg procedure controls the false discovery rate (the expected fraction of false positives among discoveries) instead: sort the mm p-values p(1)≤⋯≤p(m)p_{(1)} \le \dots \le p_{(m)}, find the largest kk with p(k)≤k q/mp_{(k)} \le k\,q/m, and reject the kk smallest. With m=10m = 10 and q=5%q = 5\%, the sorted p-values 0.001,0.008,0.039,0.041,…0.001, 0.008, 0.039, 0.041, \dots give thresholds 0.005,0.010,0.015,0.020,…0.005, 0.010, 0.015, 0.020, \dots, so BH rejects two while Bonferroni (threshold 0.0050.005) rejects one.

The harder problem is counting mm. Every lookback window, universe filter, rebalance day and outlier rule you tried counts, even informally. The expected best t-statistic among mm independent null strategies is about 1.87 for m=20m = 20, 2.25 for m=50m = 50 and 2.51 for m=100m = 100. A best-of-100 result at t=2.5t = 2.5 is exactly what luck predicts.

Selection and survivorship

Data that reach you have usually been filtered by the outcome.

  • Survivorship: fund and stock databases that drop the dead overstate average returns. Test on the universe as it existed at each date.
  • Selection on the outcome: among 1000 managers who are pure coin flips, 1000/25≈311000/2^5 \approx 31 beat the market five years running. Their records are real; their skill is not.
  • Publication and promotion: you hear about the strategies, papers and traders that worked.

Regression to the mean

If performance in two periods has correlation ρ\rho, then in standardised units E[Y∣X=x]=ρ x\mathbb{E}[Y \mid X = x] = \rho\, x. A fund two standard deviations above average last year, with year-to-year correlation 0.30.3, is expected to be 0.60.6 standard deviations above average this year. No mechanism is needed: extreme observations are partly luck, and the luck does not repeat. Mistaking this for causation is common ("the managers we put on watch improved"; "the stocks that fell most bounced").

Correlation and causation

Before believing XX causes YY, rule out: a confounder driving both (market beta behind two correlated stocks); reverse causality (flows chase returns as much as they cause them); common trends (two random walks correlate spuriously); selection into the sample; and Simpson's paradox, where a relationship within every subgroup reverses when groups of different sizes are pooled. In finance, causal claims usually rest on timing (does XX predict future YY out of sample?) and on natural experiments such as index inclusions.

Worked example

"is this backtest real?" out loud

A candidate's strategy shows an annualised Sharpe ratio of 1.5 over 2 years. Asked, they admit they tried about 50 variants and this was the best. How do you respond?

Show solution

Size of the evidence. t≈Sharpe×years=1.5×2≈2.12t \approx \text{Sharpe} \times \sqrt{\text{years}} = 1.5 \times \sqrt2 \approx 2.12, a two-sided p-value of about 0.0340.034.

Selection. With 50 tries, the chance that at least one null variant reaches ∣t∣≥2.12|t| \ge 2.12 is 1−(1−0.034)50≈82%1 - (1 - 0.034)^{50} \approx 82\%, and the expected best of 50 null t-statistics is about 2.25. The observed 2.12 is below what luck alone delivers on average. The Bonferroni threshold would be p<0.001p < 0.001. (Variants are usually correlated, which makes the effective mm smaller than 50, but not small.)

Other checks to name. Look-ahead and survivorship in the data; transaction costs and capacity; whether the 2 years cover a single regime; whether neighbouring parameter values also work (a robust idea has a plateau, an overfit one a spike); and an economic reason for the edge.

Conclusion. No evidence of skill yet. The right next step is a pre-specified out-of-sample test of the single chosen variant, with its expected Sharpe shrunk well below 1.5 because of the winner's curse.

Knowledge check

A test of a trading signal gives p = 0.03. Which statement is correct?

Knowledge check

You plan a test with 80% power to detect a mean of 0.10%. A colleague wants the same power for a mean of 0.05% at the same level and volatility. How must the sample size change?

Knowledge check

Fund returns have a year-to-year correlation of 0.3 in standardised units. A fund was 2 standard deviations above average last year. What is its expected standing this year?

Knowledge check

Only 10% of the signals a team tests are real, its tests have 50% power, and it uses a 5% significance level. Roughly what fraction of its significant findings are real?

Practice problems

Finished reading?

Answer the 4 knowledge checks to complete this lesson (0 done).