- Introduced by
- Ronald Fisher
- Year
- 1925
- Type
- Concept
- Family
- hypothesis-testing
What does it do?
The p-value is the probability of observing data at least as extreme as the data actually observed, assuming the null hypothesis is true.
Ronald Fisher's 1925 book, Statistical Methods for Research Workers, popularised its use in significance testing, and it remains central to frequentist hypothesis testing. Statistical significance is declared when the p-value is at or below a pre-specified alpha level (typically 0.05).
The intuition behind the method
When you run a hypothesis test, you start by assuming the null hypothesis (no effect, no difference) is true, and ask how likely the observed results would be under that assumption. The p-value is that probability, counting results as extreme as or more extreme than those observed. A very small p-value means data like these would be rare if H0 were true, which is evidence against H0 and is why a small p-value leads to rejecting it. The conventional threshold α = 0.05 means that, across repeated use of the decision rule, you accept a 5% rate of rejecting a true null (the Type I error rate). A p-value is not the probability that H0 is true, nor the probability that H1 is true; reading it that way is a common misinterpretation. A significant result indicates that the data are hard to reconcile with H0. It says nothing about how large or important the effect is. A smaller p-value signals a greater likelihood that the effect is non-zero, not a larger effect or greater predictive importance; reading a smaller p-value as greater importance is a common misinterpretation.
History
Ronald Fisher's 1925 book Statistical Methods for Research Workers presented significance testing built on the p-value, framed as assuming H₀ true and computing the probability of observed or more extreme data. Jerzy Neyman and Egon Pearson's 1933 paper on the most efficient tests of statistical hypotheses set out an alternative decision-based framework, introducing Type I and Type II errors and power, which shifted emphasis from probability statements about data to choices between hypotheses. Significance testing later became standard in biomedical and social sciences, and the 0.05 level became a widespread convention in applied research. Decades of misuse and misinterpretation led to the 2016 American Statistical Association statement by Wasserstein and Lazar, which clarified what p-values are and are not and emphasised that effect sizes and confidence intervals should be reported alongside them.
When to use it
Use a p-value test when the question is a yes/no decision about a specific, pre-stated null hypothesis, such as whether a treatment shifts an outcome away from no effect, and when the alternative (one-sided or two-sided) is fixed before the data are seen. It suits confirmatory studies in which the test, α, and sample size are set in advance by a protocol. It needs a test statistic whose distribution under H₀ is known or can be well approximated, so the design and data must meet that test's assumptions. Do not use it for exploratory analysis without pre-registration or correction for multiple comparisons, because chance findings will appear significant. Do not use it to judge how large or important an effect is, or as the probability that a hypothesis is true; report effect sizes and confidence intervals alongside it, or use estimation or Bayesian methods when those quantities are the question.
Limitations and considerations
- P-value is often misinterpreted as the probability that the null hypothesis is true, which is incorrect from a frequentist perspective.
- Does not measure effect size or practical importance; highly significant p-values in large samples may indicate trivial effects.
- Binary significance threshold (p < 0.05) obscures the continuous nature of evidence and promotes dichotomous thinking.
- Highly sensitive to sample size: with unlimited observations, any trivial effect becomes statistically significant.
- Does not account for pre-testing, multiple comparisons, or selective outcome reporting without correction.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Gives one common scale for evidence against H₀ across different test statistics (for example t, F, chi-square, or Mann-Whitney U), since each is converted to a probability under H₀.
- Lets the researcher set the Type I error rate directly: choosing α fixes the long-run rate of rejecting a true H₀ for that decision rule.
- Requires only the distribution of the test statistic under H₀, so it applies to any test whose null distribution is known or well approximated; the validity of the result still depends on whether that test's assumptions hold.
- Fixing α, the alternative hypothesis and the test direction before data collection makes the decision rule checkable by others.
Applications
- Clinical trials: determining if a treatment produces a statistically significant improvement over placebo or standard care.
- Epidemiology: testing whether disease incidence differs between exposed and unexposed groups.
- Psychology and education: evaluating whether interventions produce significant changes in behavioral or cognitive outcomes.
- Quality control: detecting whether a process parameter has shifted beyond acceptable thresholds.
How it works
How it works
Formulate a null hypothesis (H₀) that represents the default assumption (e.g., 'there is no difference between groups') and an alternative hypothesis (H₁: one-sided or two-sided). Before collecting data, choose your significance level α—typically 0.05, though 0.01 is used in high-stakes contexts. This threshold must be set a priori to avoid p-hacking. Collect data according to your study protocol.
Formula
\text{State null hypothesis } H_0 \text{ and alternative hypothesis } H_1; \text{ choose significance level } \alpha \text{ (typically 0.05)}Compute the relevant test statistic (t-test, F-test, chi-square, Mann-Whitney U, etc.) based on your data and research question. From the test statistic and its sampling distribution under H₀, calculate the p-value: the probability, under H₀, of a statistic at least as extreme as the one observed, in the direction(s) specified by H₁. The formula in the mechanics panel gives the one-sided form, p = P(T ≥ t_obs | H₀). For a two-tailed test, the corresponding quantity is p = P(|T| ≥ |t_obs| | H₀).
Formula
\text{Calculate test statistic } (t, F, \chi^2, \text{ etc.}) \text{ and obtain the } p\text{-value (one-sided, upper tail): } p = P(T \geq t_\text{obs} \mid H_0 \text{ true})If p ≤ α, reject the null hypothesis and conclude the result is statistically significant at the chosen level. If p > α, fail to reject the null hypothesis—this does not mean H₀ is true, only that the data do not provide sufficient evidence against it. Always report the actual p-value (not just 'p < 0.05') and the accompanying test statistic, sample size, and effect size. Consider the context: statistical significance may not imply practical significance, especially in large samples where tiny effects become significant.
Formula
\text{If } p \leq \alpha, \text{ reject } H_0; \text{ if } p > \alpha, \text{ fail to reject } H_0Common pitfalls
- P-hacking or HARKing (Hypothesizing After Results are Known): running many analyses and reporting only those with p < 0.05, inflating false positive rates.
- Confusing statistical significance with practical significance: a p-value of 0.04 is not more 'true' than p = 0.06, and neither tells you if the effect matters.
- Using one-tailed tests to artificially lower the p-value without pre-specification.
- Stopping a study when p < 0.05 (optional stopping), which invalidates the p-value under frequentist theory.
- Interpreting 'p > 0.05' as evidence for the null hypothesis; this is a failure to reject, not acceptance.
Frequently asked questions
What exactly does a p-value of 0.03 mean?
It means that if the null hypothesis were true, the probability of observing data as extreme as or more extreme than what you obtained is 0.03 (3%). It does NOT mean there is a 3% probability the null is true, or a 97% probability the alternative is true. Those are common misconceptions that conflate p-values with posterior probabilities (which require Bayesian inference).
Why is 0.05 the standard significance level?
There is no statistical reason the level must be 0.05. It is a convention: it balances the desire to detect real effects against the willingness to tolerate false positives, and long use has made it the default. Some fields use 0.01 for high-stakes decisions, and pre-registration allows you to choose any α a priori.
If I get p = 0.051, is my result not significant?
Under the strict decision rule α = 0.05, yes—you would fail to reject H₀. However, p = 0.051 and p = 0.049 carry virtually the same evidence. The binary threshold creates a false cliff. This is why researchers increasingly report the actual p-value and effect size rather than simply declaring 'significant' or 'not significant.'
Can I use p-values for exploratory analysis?
Not as hypothesis tests. In exploratory work, running many comparisons without correction will inflate the false positive rate. If you conduct exploratory analyses, report them as exploratory, adjust p-values for multiple comparisons (Bonferroni, FDR), or use them only to generate hypotheses for future confirmatory studies. Pre-registration separates exploratory from confirmatory work.
Does a non-significant p-value mean the null hypothesis is true?
No. Failure to reject H₀ does not mean H₀ is true; it means the data do not provide sufficient evidence to reject it. You may have insufficient power (Type II error), confounding variables, or measurement error. Always report confidence intervals and effect sizes alongside non-significant results.
Related methods
Sources
Fisher, R. A. (1925). Statistical Methods for Research Workers. Oliver and Boyd.
Open publication referenceNeyman, J., & Pearson, E. S. (1933). On the problem of the most efficient tests of statistical hypotheses. Philosophical Transactions of the Royal Society, 231, 289–337.
Open DOI referenceWasserstein, R. L., & Lazar, N. A. (2016). The ASA Statement on p-Values: Context, Process, and Purpose. The American Statistician, 70(2), 129–133.
Open DOI referenceStatistical and Machine-Learning Data Mining, p. 216