Skip to content

P-value

A p-value measures a tail probability under a specified null model. Calculate a return t-test, compare it with a known-volatility z-test, and interpret selection and uncertainty.

A p-value is the probability, calculated under a specified null model, of a test statistic at least as extreme as the one observed. The hypothesis test defines what “extreme” means: a large positive return, a large departure in either direction, or some other preselected discrepancy.
For a quant researcher, it answers a narrow question: if this null model generated the observations, how often would the chosen test produce a discrepancy at least this large? It does not give the probability that a strategy has no edge, or that its next backtest will succeed.

A promising average is two standard errors from zero

Suppose a strategy produces 25 daily excess returns. This is a hypothetical, fixed-length study specified before inspecting the results. For the calculation, assume the returns are independent observations from the same normal distribution, with an unknown population mean and variance. The summary is:
QuantityDecimal-return unitsBasis points per day
Sample mean0.001212
Sample standard deviation0.003030
Estimated standard error of the mean0.00066
One basis point is 0.0001 in decimal-return units. The standard deviation measures variation between daily returns; the standard error measures uncertainty in the estimated mean under the sampling assumptions.

The research question is whether the population mean differs from zero:

H0:μ=0,H1:μ≠0.H_0:\mu=0,\qquad H_1:\mu\ne0.

Using sample standard deviation ss, calculated with divisor n−1n-1, gives

tobs=xˉ−0s/n=0.00120.003/25=2.t_{\mathrm{obs}}=\frac{\bar x-0}{s/\sqrt n} =\frac{0.0012}{0.003/\sqrt{25}}=2.
Under the null and the stated sampling model, the random statistic has a Student tt distribution with 25−1=2425-1=24 degrees of freedom. Because departures on either side count against this null, the p-value includes both tails:
p=PH0 ⁣(∣T∣≥2)=2[1−Ft24(2)]≈0.056940.\begin{aligned} p&=\mathbb P_{H_0}\!\left(\lvert T\rvert\ge2\right)\\ &=2\left[1-F_{t_{24}}(2)\right]\\ &\approx0.056940. \end{aligned}
Here Ft24F_{t_{24}} is the cumulative distribution function of that null statistic. Approximately 5.69% of repeated samples from this zero-mean normal model would produce an absolute tt statistic of at least 2. Each tail contributes about 2.85%. This is an area under a distribution, not the height of the density curve at 2.
Two null densities with tails shaded beyond minus 2 and plus 2. Student t with 24 degrees of freedom gives two-sided p 0.056940; standard normal gives 0.045500. Each distribution is labelled, with dimensionless statistic on the horizontal axes and null probability density on the vertical scale.
Two null densities with tails shaded beyond minus 2 and plus 2. Student t with 24 degrees of freedom gives two-sided p 0.056940; standard normal gives 0.045500. Each distribution is labelled, with dimensionless statistic on the horizontal axes and null probability density on the vertical scale.
Original hypothetical comparison. The left panel uses estimated population volatility; the right assumes population volatility is known. Shading continues beyond the displayed range to infinity in both directions.
If the population standard deviation were known to be 0.003, the appropriate standardized statistic would instead be normal under this model. Its numerical value would still be 2, but the two-sided p-value would be
pz=2[1−Φ(2)]≈0.045500.p_z=2[1-\Phi(2)]\approx0.045500.
The unknown-volatility calculation accounts for estimating the denominator. Substituting a sample estimate does not make volatility known. Choosing the normal calculation after seeing that it crosses 0.05 changes the analysis to obtain a preferred verdict. NIST sets out the one-sample tt statistic, its critical regions and the corresponding interval.

Read the result without turning it into a verdict on the strategy

At a predeclared 5% significance level, the tt result does not reject zero mean: 0.056940>0.050.056940>0.05. This does not establish that the mean is zero. The same data would reject at a predeclared 10% level; moving the threshold after seeing the result does not preserve the original decision rule.
A value just above 0.05 and one just below it need not represent materially different evidence. Report the value and the design, rather than assigning the strategy a pass/fail badge. The American Statistical Association's statement summary emphasizes interpretation in context, transparent reporting and the limits of threshold-based decisions.

Three tempting translations are wrong:

  • “There is a 5.69% probability that the null is true.” The calculation assumes the null while generating its reference distribution. A posterior probability for the null requires a Bayesian model with prior probabilities and alternatives.
  • “There is a 94.31% probability the strategy works or replicates.” Neither 1−p1-p nor pp supplies that forecast. Replication depends on the true effect, future sample design, selection and stability.
  • “The effect is small because the p-value is large.” A p-value mixes the observed departure with its sampling uncertainty. It does not measure economic magnitude.
The estimated mean here is 12 basis points per day, irrespective of the p-value. A matching 95% confidence interval is approximately −0.38 to 24.38 basis points per day. It includes zero, consistent with the two-sided 5% test, and shows considerable uncertainty about magnitude. This range describes a procedure with repeated-sampling coverage under the model; it is not a 95% posterior probability statement.

For trading, ask separately whether the return definition includes fees, spread, impact, financing and borrow. Evidence against exactly zero gross return does not demonstrate positive net value, acceptable risk or sufficient capacity.

The tail depends on the research question

If the study had specified an upper one-sided alternative H1:μ>0H_1:\mu>0 in advance, the observed positive statistic would give

p+=PH0(T≥2)≈0.028470.p_+=\mathbb P_{H_0}(T\ge2)\approx0.028470.

That is a different question and rejection rule. Halving a two-sided result after discovering the estimated sign is a form of selection. Specify direction, statistic, sampling window, stopping rule and significance level before inspecting the data. Other tests can define two-sided extremeness differently, particularly with discrete outcomes; “double a tail” is not a universal recipe.

For this continuous tt test under its null, the p-value is uniformly distributed between 0 and 1 before observing the sample. More generally, a valid p-value satisfies

PH0(P≤α)≤α.\mathbb P_{H_0}(P\le\alpha)\le\alpha.

Here PP denotes the random p-value across repeated samples. The statement controls false rejection under the null; it does not say what fraction of reported discoveries are false.

Now imagine 20 independent tests whose nulls are all true, each evaluated at 5%. The chance of at least one false rejection is
1−(1−0.05)20≈0.6415.1-(1-0.05)^{20}\approx0.6415.

That 64.15% illustrates why selecting the smallest p-value among many backtests is a different procedure from running one prespecified test. Correlated strategies change this particular calculation, while the search problem remains. Disclose variants and use an appropriate multiple-testing procedure or a genuinely untouched validation design. Repeatedly checking a fixed-sample test and stopping at the first attractive result also requires a procedure designed for sequential monitoring.

Finally, all of these numerical probabilities rely on the reference model. Serial dependence, heavy tails and changing return distributions can undermine a naive small-sample tt calculation. Choosing a more suitable variance estimator or resampling design requires assumptions too. A precise p-value cannot repair a poorly specified experiment.

For the sample-versus-population distinction and standard-error calculation, Basic Statistics and Regression is available in full with a free signed-in account. For the derivation connecting normal samples, tt inference and test–interval duality, read Confidence Intervals and Hypothesis Testing; the full lesson requires membership, with a public preview.

Sources

Last updated
  • hypothesis testing
  • null model
  • statistical inference
  • research selection
  • student t
← Back to the glossaryBack to top ↑