Type I and Type II Errors

Two overlapping distributions and one threshold between them. Every choice you make trades one error for the other.

Type I and Type II Errors

This module needs JavaScript: the numbers are computed in the page rather than recorded.

Worth knowing

Type I is a false positive: rejecting a null that was true. Its rate is α, and you choose it.
Type II is a false negative: failing to reject a null that was false. Its rate is β, and you mostly do not.
Power is 1 − β: the chance of detecting an effect that is really there.
Moving the threshold trades one for the other. Only more data, or a larger true effect, improves both.

Overview

The two error rates

A Type I error rejects a true null hypothesis; its long-run probability is the significance level α under the test procedure. A Type II error fails to reject a false null; its probability β depends on the alternative effect and study design. Power is 1−β.

Power = 1 − β = P(reject H₀ | specified alternative)

Lowering the decision threshold often reduces false positives while increasing missed effects, for a fixed design. Increasing sample size can improve power, but power also depends on variability, effect size, test direction, and α. There is no single power value independent of the alternative being considered.

In this guide
  1. Choose the design before collecting data
  2. Read the decision table
  3. Try this above
  4. Sources and next steps

Type I and Type II Errors

A decision threshold trades off false alarms against missed effects; power is the chance to detect a specified effect.

Choose the design before collecting data

Set α and choose a scientifically meaningful effect size in advance. A test with low power may miss a real effect; a statistically significant result can still be too small to matter. “Fail to reject” is not proof that the null is true. See hypothesis testing and p-values and confidence intervals.

Read the decision table

RealityReject the nullDo not reject the null
Null is trueType I error (false positive)Correct non-rejection
A specified alternative is trueCorrect detection (power)Type II error (miss)

For a screening test, a false alarm can trigger unnecessary follow-up, while a missed condition may delay care. Which error matters more depends on the costs in that setting. For a fixed design, making the rejection threshold stricter generally lowers the Type I error rate but can raise the Type II error rate. More data can improve power for a specified effect, but cannot remove bias or guarantee practical importance.

β depends on the alternative being considered: a test can have high power for a large effect and low power for a small one. A useful power calculation therefore specifies a meaningful effect, variability, α, and design before data collection. “Fail to reject” means the data did not cross the chosen threshold; it is not evidence that the null is exactly true. If the goal is to show that an effect is small enough to ignore, define an acceptable range and use an equivalence procedure.

Try this above

Change the threshold and sample size while holding the alternative fixed. Compare the false-alarm region and probability of detecting the effect.

For example, in a quality-control test, α is the long-run false-rejection rate when production is actually on target. β is the miss rate for a particular shift from target. Reducing β by increasing sample size can make the test more sensitive, but may increase inspection cost. The appropriate balance depends on the consequences of false alarms and missed defects; there is no universally correct α. Pre-specify the effect size and decision costs so a post-hoc result does not redefine what counts as adequate power.

Sources and next steps

Check yourself

0 of 3

Answer without scrolling back up.

  1. You tighten alpha from 0.05 to 0.01. What happens to power?

  2. What improves both error rates at once?

  3. Why are effects from underpowered studies often inflated?

Cheat sheet

Type I and Type II Errors

Adjust significance level and sample size and watch Type I and Type II error rates trade off. See what statistical power actually measures.

MATHS · vizlearn.in/maths/type_i_and_type_ii_errors.html

About the author

Ashish Jangra builds and maintains VizLearn. Every module here is written and the visualisation behind it hand-built, so the numbers in a readout come from the same code that draws the picture. Corrections are genuinely welcome and get priority over everything else — if a page states something wrong, or an animation misrepresents what the algorithm does, get in touch.

Teaching a course with this? Individual teachers can use it freely; for a whole department or programme, see institutional licences.