Null Hypothesis Testing

Statistics
Introduced by
Ronald Fisher; Neyman & Pearson
Year
1925
Type
Concept
Family
hypothesis-testing

What does it do?

Null hypothesis significance testing (NHST) is a framework in which a default hypothesis, the null hypothesis H₀, usually stating 'no effect' or 'no difference', is tested against an alternative H₁.

The test uses the p-value, the probability of data at least as extreme as those observed if H₀ were true; a small p-value leads to rejecting H₀. Fisher introduced the p-value approach, and Neyman and Pearson later developed a framework built around alternative hypotheses and error rates; the combined practice is what is usually called NHST. Its use has been criticised for misinterpretation and misuse, for example by Gigerenzer and Marewski.

The intuition behind the method

NHST works like an argument by contradiction in probabilistic form: assume H₀ is true, then ask how surprising the observed data would be under that assumption. If the data are very unlikely under H₀ (e.g., p = 0.01), we reject H₀ and conclude an effect likely exists. If the data are plausible under H₀ (e.g., p = 0.30), we fail to reject H₀. This does not prove H₀ true; it means we lack sufficient evidence against it. The null hypothesis is usually 'no effect' or 'no difference' because it is easier to test (it has a single, specified value, like μ = 0) than 'an effect exists', which is vague about magnitude. By establishing H₀ as the default and requiring strong evidence (p ≤ α) to overturn it, NHST limits the long-run rate of false positives to α when its assumptions hold and the analysis was pre-specified, at the risk of false negatives (Type II errors) when studies are underpowered.

History

Ronald Fisher introduced null hypothesis testing in 1925 (Statistical Methods for Research Workers), treating the null hypothesis as a default to be tested against observed data through the p-value. Jerzy Neyman and Egon Pearson developed a complementary framework in 1933 that introduced explicit alternative hypotheses and Type I and Type II errors, shifting the question towards which of two hypotheses the data better support. The combined practice became standard in many empirical fields by the mid-20th century. Its misinterpretation and misuse have been criticised repeatedly; Gigerenzer and Marewski, for example, describe reliance on significant p-values as a surrogate for a universal method of scientific inference.

When to use it

Use NHST when: (1) You have a clear, pre-specified hypothesis before collecting data (confirmatory research). (2) You want to control the false positive rate (Type I error) at a specified level (α). This control holds only if the test's assumptions (distribution, independence, fixed sample size) are met and only one pre-specified test is run per hypothesis. (3) Your research question naturally frames a null hypothesis: 'Does this treatment differ from placebo?' rather than 'How much does this treatment help?'. Do NOT use NHST for exploratory research without pre-registration, as multiplicity and selection bias inflate false positives. Combine NHST with effect sizes, confidence intervals, and consideration of practical significance for comprehensive inference.

Limitations and considerations

  • The null hypothesis (usually 'no effect') is often implausible; in large samples, any trivial effect becomes statistically significant.
  • Binary decision framework (reject/fail to reject at α threshold) obscures the continuous nature of evidence and promotes dichotomous thinking.
  • Does not directly answer practical questions: 'Does an effect exist?' is different from 'Is the effect large enough to matter?'
  • Assumes a fixed sample size; optional stopping or peeking at data invalidates p-values (though pre-registration mitigates this).
  • A p-value is only interpretable if the analysis was fixed in advance; choosing among outcomes, covariates or stopping rules after seeing the data changes how p behaves when H₀ is true.
  • The p-value also depends on the chosen test and its model assumptions. NHST has been widely criticised for misuse, and alternatives such as Bayes factors and information criteria (AIC, BIC) are advocated, for example for model comparison.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Gives a single decision rule fixed in advance (compare p with α), so the analysis plan and its criterion can be written down before data are collected.
  • When its assumptions hold and only one pre-specified test is run per hypothesis, the long-run false positive rate is held at the chosen α.
  • Software, textbooks and reporting conventions in many empirical fields are built around it, so results are easy to set against existing studies.
  • Pre-specifying H₀, H₁, the tail and α before data collection limits post-hoc choices, although this benefit only holds if the analysis is then carried out as planned.

Applications

  • Clinical trials: testing whether a new drug produces a statistically significant improvement compared to placebo or standard treatment.
  • Psychological experiments: testing whether an intervention (e.g., cognitive therapy) produces significant change in outcomes.
  • Epidemiological studies: testing whether an exposure (e.g., smoking) is associated with disease risk.
  • Quality control: testing whether a manufacturing process has drifted from target specifications.
  • Behavioral ecology: testing whether animal behavior differs between experimental conditions (e.g., with/without predators).
  • Social science surveys: testing whether survey responses differ between demographic groups.

How it works

How it works

1

Before collecting data, write out your hypotheses clearly. The null hypothesis (H₀) should specify a parameter value representing 'no effect' or 'no difference.' Examples: (1) H₀: μ = 0 (the mean is zero, i.e., no change from baseline). (2) H₀: μ₁ = μ₂ (two groups have equal means). (3) H₀: r = 0 (no correlation). The alternative hypothesis (H₁) can be two-tailed or one-tailed. (a) Two-tailed H₁: μ ≠ 0 (effect could be positive or negative). Use this unless you have a strong theoretical reason for a directional prediction. (b) One-tailed H₁: μ > 0 (effect is positive only). A one-tailed test places the whole rejection region in one tail; for a symmetric test statistic its p-value is half the two-tailed p-value only when the observed effect lies in the predicted direction. The direction must be specified and justified before data collection; choosing it after seeing the data is p-hacking. Choose your significance level α a priori (typically 0.05, which is a convention and should be justified for the study context).

Formula
\text{Formulate null hypothesis } H_0 \text{: typically 'no effect/no difference' (e.g., } \mu_1 = \mu_2\text{)}
2

Collect data according to your protocol and calculate the relevant test statistic (t, F, χ², etc.). From the test statistic and degrees of freedom, determine the p-value: the probability of observing a test statistic as extreme or more extreme than your observed value, assuming H₀ is true. For a two-tailed test: p-value = P(|T| ≥ |t_obs| | H₀). For a one-tailed test: p-value = P(T ≥ t_obs | H₀). Most statistical software reports the p-value automatically. Record the p-value, test statistic, degrees of freedom, sample size, and effect size.

Formula
\text{State alternative hypothesis } H_1 \text{: 'effect exists' (two-tailed: } \mu_1 \neq \mu_2\text{) or directional (one-tailed)}
3

Compare the p-value with the significance level α that you fixed beforehand. (1) If p ≤ α, reject H₀ and conclude that the data are inconsistent with H₀ at that level. α is the long-run rate of false rejections when H₀ is true, across repeated studies under the same procedure. It is not the probability that this particular rejection is an error. (2) If p > α, fail to reject H₀. This does not show that H₀ is true; the data are not unusual enough under H₀ to reject it at level α. The long-run rate of missing a real effect is β, which depends on the true effect size, the sample size and α. Report the exact p-value, the effect size and the confidence interval alongside the test result, not only whether p crossed the threshold. A confidence interval gives the range of parameter values compatible with the data; if it excludes the null value, the corresponding test rejects H₀ at the matching level, and its width shows how precisely the effect is estimated.

Formula
\text{Conduct test, calculate } p\text{-value, reject or fail to reject } H_0 \text{ at significance level } \alpha

Common pitfalls

  • Failing to pre-specify hypotheses and analyses, then reporting only those that reach p < 0.05 (p-hacking, HARKing).
  • Using one-tailed tests post-hoc to artificially lower p-values or choosing α = 0.10 instead of 0.05 without justification.
  • Misinterpreting p < 0.05 as strong evidence ('99% sure the effect is real'); p-value is conditional on H₀ being true.
  • Interpreting 'p > 0.05' as evidence that the null is true; failure to reject is not acceptance.
  • Ignoring effect sizes and reporting only p-values, hiding trivial effects that become significant due to large sample sizes.
  • Conducting many hypothesis tests without correcting for multiple comparisons, inflating family-wise error rate.

Frequently asked questions

Why do we test the null hypothesis instead of testing whether the alternative hypothesis is true?

The null hypothesis (e.g., 'no effect') is specific and easy to test mathematically: it specifies an exact parameter value (e.g., μ = 0). The alternative hypothesis is often vague about magnitude (e.g., 'an effect exists'). By testing H₀ and calculating the probability of the data under H₀, we can make a principled decision. This is a matter of mathematical convenience and philosophical tradition, not absolute logical necessity.

Should I use a one-tailed or two-tailed test?

Use two-tailed tests by default unless you have a strong theoretical or prior reason to expect an effect in one direction only. Two-tailed tests are more conservative and protect against unexpected findings in the opposite direction. If you use one-tailed, pre-specify it before data analysis. Post-hoc switching to one-tailed tests is p-hacking.

What does 'fail to reject the null hypothesis' mean?

It means the data do not provide sufficient evidence to reject H₀ at your chosen significance level. It does NOT mean H₀ is true, that the effect does not exist, or that you have accepted H₀. Low power or small sample size can result in failure to reject a false H₀. Always report effect sizes and confidence intervals to clarify the magnitude of observed effects, even if they are not statistically significant.

Is p = 0.049 statistically significant at α = 0.05?

Yes, by the strict α = 0.05 threshold. However, p = 0.049 and p = 0.051 carry nearly identical evidence; the binary threshold creates a false cliff. This is why many researchers now report actual p-values and effect sizes rather than binary 'significant/non-significant' classifications. Consider the practical significance and replicate findings before drawing strong conclusions near the α boundary.

Can I use hypothesis testing for exploratory research?

Not without adjusting for multiple comparisons or pre-registration. In exploratory research, you test many hypotheses, inflating the false positive rate (family-wise error). To use NHST exploratorily: (1) Pre-register your hypotheses before seeing data. (2) Conduct confirmatory tests on a separate dataset. (3) Report exploratory analyses as exploratory and adjust p-values (Bonferroni, FDR correction). The gold standard is two-stage research: exploratory phase generates hypotheses, confirmatory phase tests them on new data.

Related methods

Sources

  1. Fisher, R. A. (1925). Statistical Methods for Research Workers. Oliver and Boyd.

    Open publication reference
  2. Neyman, 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 reference
  3. Gigerenzer, G., & Marewski, J. N. (2015). Surrogate Science: The Idol of a Universal Method for Scientific Inference. Journal of Management, 41(2), 421–440.

    Open DOI reference