p-value
- Category
- Quantitative Finance
- Level
- Professional
Simple definition
The chance of seeing data at least as extreme as yours if the boring explanation were true. Small values mean the data sit awkwardly with that explanation.
Professional definition
The probability, computed under the null hypothesis, of obtaining a test statistic at least as extreme as the one observed. It is a statement about data given a hypothesis, never about a hypothesis given data, and it carries no information about effect size.
Technical definition
The tail probability of the test statistic's null sampling distribution beyond the observed value, one- or two-sided as specified. It is not the probability that the null is true, not the probability the result arose by chance, and not one minus the probability the alternative holds. Each of those readings requires a prior probability on the hypotheses, which the p value does not contain.
Academic definition
The probability under a specified null hypothesis of observing a test statistic at least as extreme as that realised, evaluated in the direction or directions specified by the alternative.
Mechanism
The computation runs in one direction only: fix the hypothesis, derive the distribution of the statistic, measure how far into its tail the observation fell. Reversing it to say something about the hypothesis would need a prior probability for that hypothesis, and no prior enters this calculation anywhere.
In practice
- Who uses it
- Strategy researchers, factor analysts, peer reviewers and anyone reading a paper or a vendor's backtest report that quotes significance.
- Why it matters
- It compresses 'how surprising is this under the boring explanation' into one number that can be compared against a threshold agreed in advance.
- Limitations
- It is uninformative about magnitude, it depends on sample size, and it is invalidated by searching. A p value reported after optimising over many variants is not a p value in any usable sense.
Common mistakes
- Saying a p of 0.03 means a 3% chance the null is true.
- Saying a small p means the result is not due to chance.
- Reporting the best p from many specifications without saying how many were tried.
Examples
With a t statistic of 0.79 on 249 degrees of freedom, the two-sided p value is 0.43. Read correctly: if the true mean return were zero, data at least this far from zero would appear in about 43% of 250-day samples.
- t = 0.7906
- degrees of freedom = 249
- two-sided test
- null: true mean = 0
- p = Pr(|T| >= 0.7906) under the t distribution with 249 df
- p = 0.4299
Verified numerically. This 0.43 is the probability of the data given the null. It is NOT a 43% probability that the null is true, and 1 - 0.43 is not the probability of an edge.
A vendor reports a rule with p below 0.01 and omits that 500 parameter combinations were scanned. Under a worthless rule, scanning 500 variants at the 1% level yields several hits by construction, so the quoted figure measures the search, not the rule.
Mathematical foundation
Variables
| T | The test statistic treated as a random variable under the null | dimensionless |
| t_{\text{obs}} | The value the statistic actually took in this sample | dimensionless |
| H_0 | The null hypothesis, which supplies the distribution of T | hypothesis |
Procedure
Specify the null and the direction of the alternative before computing anything. Derive or look up the null distribution of the statistic. Compute the observed statistic. Take the probability mass beyond it, in one tail or both as the alternative requires. Finally report the number of tests performed, because the p value's meaning depends on it.
Worked example
- t = 0.7906
- df = 249
- two-sided alternative
- Under H0 the statistic follows a t distribution with 249 degrees of freedom
- p = Pr(|T| >= 0.7906) = 0.4299
Interpretation
A p value of 0.43 means data this extreme is unremarkable under the null. A p value of 0.001 means it would be rare under the null — and still says nothing about how probable the null is, how large the effect is, or whether the finding replicates. Those are different questions needing different evidence.
Assumptions
- The null distribution of the statistic must be correct. On autocorrelated or volatility-clustered returns the nominal p value from a standard formula is optimistic.
- The hypothesis and the tail direction must be fixed before the data are seen; choosing one-sided after seeing the sign halves the p value without any new evidence.
- The number of tests performed is part of the result. A p value selected as the best of many is not the p value of a single pre-specified test.
- It conflates effect size with sample size: a trivial edge becomes significant on enough data, and a large edge stays insignificant on too little.
- It cannot be inverted into a probability for the hypothesis. That inversion requires a prior, and supplying one moves the analysis into a Bayesian framework answering a different question.
Related terminology
- parent
- Hypothesis Testing
- related
- Hypothesis Testing Confidence Interval Sample versus Population Data Snooping Overfitting Backtesting In-Sample versus Out-of-Sample Linear Regression R-squared Parameter Optimisation Curve Fitting
Confidence Interval
A p value answers one yes-or-no question about one null value. An interval shows the whole range of null values that would not be rejected, which is usually more informative.
Sources
Editorial status
Written, not yet reviewed.
