Type I and Type II Errors

Statistics
Introduced by
Jerzy Neyman and Egon Pearson
Year
1933
Type
Concept
Family
hypothesis-testing-errors

What does it do?

In hypothesis testing, two kinds of error can occur: a Type I error (false positive, rejecting a true null hypothesis) and a Type II error (false negative, failing to reject a false null hypothesis).

Neyman and Pearson's 1933 paper, 'On the problem of the most efficient tests of statistical hypotheses', formalised the two-hypothesis testing framework and the trade-off between these two error rates. The probability of a Type I error is the significance level α (conventionally 0.05); the probability of a Type II error is β, and power = 1 − β.

The intuition behind the method

A medical analogy clarifies the distinction. Suppose you test for a disease: the null hypothesis (H₀) is 'patient does not have the disease.' A Type I error is a false positive—the test says 'you have the disease' but you do not. A Type II error is a false negative—the test says 'you don't have the disease' but you do. Both are harmful: a false positive causes unnecessary anxiety and treatment; a false negative allows disease to progress untreated. In research, Type I error means publishing a spurious finding (p < 0.05 when no true effect exists); Type II error means missing a real effect due to insufficient power. Researchers control α a priori (convention: 0.05) but often neglect β, leading to underpowered studies with high false negative risk.

History

Jerzy Neyman and Egon Pearson's 1933 paper, 'On the problem of the most efficient tests of statistical hypotheses', formalised the two-hypothesis testing framework and the trade-off between its two error rates, in contrast to the significance-testing approach associated with Ronald Fisher. They argued that the two errors have different consequences, and that the appropriate balance between them depends on those consequences. The 0.05 level became a widely used convention. Attention to Type II error and statistical power developed later, and Jacob Cohen's work on power is associated with the recognition that many studies are underpowered. The replication crisis of the 21st century has renewed interest in power analysis and careful error-rate control.

When to use it

Always specify α and consider β when designing studies. Use Type I error control (α) for confirmatory research where false positives are costly (e.g., approving ineffective drugs, publishing spurious findings). Use Type II error reduction (increasing power, 1 − β) when missing true effects is costly (e.g., clinical trials for life-threatening diseases, safety validation). Balance both errors based on context: in exploratory research, tolerating higher β is acceptable; in high-stakes decisions, a stricter α (such as 0.01) and a higher planned power are common choices, justified by the consequences of each error. When reporting, give the exact p-value together with the pre-specified α, and give the power or planned effect size that frames the Type II side. The p-value is not itself a Type I error rate and should not be presented as one.

Limitations and considerations

  • The 0.05 significance level is conventional but arbitrary; different error rates may be appropriate for different contexts.
  • Controlling α at 0.05 with multiple comparisons (uncorrected) inflates the family-wise error rate; corrections are needed.
  • β is often neglected in practice; many published studies are underpowered, leading to inflated effect sizes and poor replication.
  • Error-rate guarantees assume that the data-generating process matches the test's assumptions, for example independent random sampling from the population of interest; violations such as non-random selection can distort both α and β.
  • Error rates apply to long-run repeated sampling; for a single study, the null hypothesis is either true or false—probabilistic interpretation of a single result is philosophically contentious.

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

Strengths

  • Separates the two ways a binary test decision can be wrong, so α and β can be stated and reasoned about explicitly.
  • Makes the trade-off between α and β explicit, so the choice can follow the relative costs of each error in a given study.
  • Type I error control (α threshold) limits the long-run rate of false positives under H₀, but this holds only when the study is analysed as pre-specified and the pitfalls described below are avoided.
  • Power analysis (1 − β) helps avoid underpowered studies, but only when the effect size assumed in planning is realistic; an optimistic assumed effect yields a study that is underpowered in practice.
  • Pairing error rates with confidence intervals and effect sizes shows both whether an effect is distinguishable from zero and how large it plausibly is.

Applications

  • Clinical trials: balancing the risk of approving an ineffective drug (Type I) against failing to approve an effective one (Type II); α and the target power are pre-specified in the trial protocol.
  • Diagnostic testing: sensitivity (the true positive rate, 1 − Type II error rate) and specificity (the true negative rate, 1 − Type I error rate) describe diagnostic performance; the choice of threshold balances false positives and false negatives.
  • Quality control: controlling defect detection (Type I: false alarm, wasting resources; Type II: missed defects, allowing bad product).
  • Screening programs: public health screening (e.g., cancer screening) balances false positives (unnecessary follow-up) and false negatives (missed cases).
  • Meta-analysis: assessing whether combining studies has adequate power to detect pooled effects and controlling for multiplicity.
  • Regulatory science: drug review weighs the risk of approving an ineffective product against the risk of rejecting a useful one, and trial designs state α and power in advance.

How it works

How it works

1

Before conducting the study, specify: (1) The null hypothesis (H₀): typically 'no effect' or 'no difference.' (2) The alternative hypothesis (H₁): 'there is an effect' or 'groups differ.' (3) The significance level α, the maximum acceptable probability of Type I error—conventionally 0.05, sometimes 0.01 for critical studies. This is fixed before seeing the data; choosing α after observing results is invalid (p-hacking). (4) The target power (1 − β) and the sample size needed to reach it. Power depends on four factors: the effect size, α, the sample size and the variability of the measurements. A one-sided test has more power than a two-sided test at the same α, but only when the direction is justified before the data are collected. The effect size used in planning should be a realistic estimate rather than an optimistic one, because an overestimated effect yields a study that is underpowered in practice.

Formula
\text{Set up null hypothesis } H_0 \text{ and alternative } H_1; \text{ specify significance level } \alpha = P(\text{Type I error})
2

Conduct the hypothesis test and compute the p-value. If p ≤ α, reject H₀ (conclude an effect exists). If p > α, fail to reject H₀ (insufficient evidence for an effect). Now consider the context: (1) If H₀ is true and you rejected it → Type I error (false positive), probability = α. (2) If H₀ is false (true effect exists) but you failed to reject it → Type II error (false negative), probability = β. The power to detect a true effect is 1 − β. Of these four scenarios, two are correct (correct rejection, correct non-rejection) and two are errors.

Formula
\text{Define Type I error rate } \alpha \text{ (false positive) and Type II error rate } \beta \text{ (false negative)}; \text{ power} = 1 - \beta
3

A result with p ≤ α leads to rejecting H₀. The significance level α is the probability of a Type I error conditional on H₀ being true; it is not the probability that a particular significant result is a false positive. That second quantity also depends on how plausible the tested hypotheses were before the study and on the study's power: when power is low (high β) and many hypotheses are tested, a larger share of significant findings can be false positives. Error rates are reduced in different ways: α is lowered only by choosing a stricter threshold, while β is reduced by increasing sample size or by planning for a realistic, not overly optimistic, effect. Pre-registration fixes α and the hypotheses in advance, and replication provides further evidence.

Formula
\text{Evaluate study design trade-off: control } \alpha \text{ vs. } \beta; \text{ interpret results in context of both error types}

Common pitfalls

  • Using one-tailed tests without pre-specification to artificially reduce p-values, changing α without announcing it (p-hacking).
  • Ignoring Type II error: conducting low-power studies and interpreting non-significant results as evidence for the null hypothesis.
  • Correcting p-values for multiple comparisons only after observing results, or selectively reporting only significant tests (cherry-picking).
  • Misinterpreting α = 0.05 as a 5% probability that H₀ is true; α is the probability of Type I error, conditional on H₀ being true.
  • Using different α thresholds for different hypotheses or stopping a study early when p < 0.05 (optional stopping), which invalidates α-control.
  • Confusing Type I error rate (α) with the false positive rate in a set of significant results; the latter depends on prior probability and effect size distribution.

Frequently asked questions

What is the relationship between Type I error rate and significance level?

The significance level (α) is the maximum acceptable Type I error rate that you set before the study. If you set α = 0.05, you are saying: 'I am willing to accept a 5% probability of rejecting the null hypothesis when it is actually true.' This probability applies only when H₀ is true: if H₀ is true, a test with p ≤ 0.05 produces a Type I error with probability 0.05, so across many such studies about 5% of tests would wrongly reject. When H₀ is false, a Type I error is impossible, and the Type II probability β applies instead.

Which error is worse, Type I or Type II?

Context determines which is worse. Publishing a false positive (Type I) wastes resources and misleads science. Missing a true effect (Type II) means missing an opportunity to help patients or advance knowledge. In drug approval, approving an ineffective drug is typically considered worse (Type I). In diagnostic screening for a serious disease, missing the disease (Type II) is typically worse. Always justify your chosen α and power based on consequences.

What is the relationship between Type I error rate and p-value?

The p-value is NOT the Type I error rate. The p-value is the probability of observing data at least as extreme as those obtained, assuming H₀ is true. The Type I error rate (α) is the threshold you choose a priori and equals the long-run probability of rejecting H₀ when H₀ is true. Rejecting when p ≤ α does not mean that the probability H₀ is true is α, nor that the chance this particular significant result is a false positive equals α; that chance also depends on how plausible H₀ and H₁ were before the study.

How does increasing sample size affect Type I and Type II errors?

Larger sample size: (1) Does not directly change Type I error rate (α), which is set a priori. (2) Reduces Type II error rate (β) by increasing power. Larger samples provide more precise estimates and stronger evidence, reducing the chance of missing a true effect. However, with very large samples, trivial effects become statistically significant; always report effect sizes.

Can I use different α thresholds for different hypotheses in one study?

Only with pre-specification and justification. Changing α after observing results (p-hacking) inflates the false positive rate. If you test multiple hypotheses, you can pre-specify different α values for primary vs. secondary hypotheses, but this must be decided a priori. Alternatively, use multiple comparison corrections (Bonferroni, FDR) to maintain overall error control.

Related methods

Sources

  1. 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
  2. Altman, D. G., & Bland, J. M. (1994). Statistics notes: Diagnostic tests 1: sensitivity and specificity. BMJ, 308(6943), 1552.

    Open DOI reference
  3. Lehmann, E. L., & Romano, J. P. (2005). Testing Statistical Hypotheses (3rd ed.). Springer.

    ISBN: 0-387-98864-5