Type I errors, Type II errors, and power
Why can the same test rule both reject incorrectly and miss a real difference?
The same decision process can lead to two types of error
Example: Does mean battery life exceed 10 hours? The researcher seeks support for H₁:μ > 10; the null hypothesis is H₀:μ ≤ 10. Use the sample to decide whether to "reject H₀" or "fail to reject H₀."
Choose the true situation, then the test decision
The true situation (usually unknown when testing)The true value does not exceed the standard, but the sample incorrectly leads us to conclude that it does. If the test is set at α=5%, the probability of this error at the boundary μ=10 is 5%.
Four combinations
H₀ true + reject H₀Type I error — False positive: reporting a statistically significant increase when none exists. H₀ true + fail to reject H₀
Correct decision — The null hypothesis is not incorrectly rejected. H₁ true + reject H₀
Correct detection — The event whose probability is called power. H₁ true + fail to reject H₀
Type II error — False negative: a true increase goes undetected.
The plots use the H₀ boundary μ=10 and a specific alternative value μ=11. Under a composite alternative hypothesis, β and power may differ for different true means.
Why do both errors occur? Examine two overlapping sampling distributions
Suppose the population standard deviation of battery life is 2 hours, with a sample of n=25. The sample mean varies randomly both at the H₀ boundary μ=10 and under the alternative value μ=11. Use the buttons below to view the corresponding areas. The solid blue curve corresponds to the H₀ boundary μ=10; the dashed gray curve corresponds to the selected value μ=11 under H₁.
- Type I error α
- 5.0%
- Type II error β
- 19.6%
- Power 1−β
- 80.4%
The two-curve illustration assumes a known population standard deviation, a one-sided z-test, and normal sampling distributions.
Changing only the critical value: how do α, β, and power trade off?
Fix the H₀ boundary at μ=10, the true mean at μ=11, σ=2, and n=25. Move the decision threshold and observe the areas in both distributions change together.
Decision rule: Reject H₀ when the sample mean exceeds the critical value. Moving the critical value changes the decision criterion; it does not hold α fixed.
- Type I error α
- 4.9%
- Type II error β
- 19.8%
- Power 1−β
- 80.2%
At a fixed significance level, how do true difference and sample size affect power?
For a right-tailed test, fix α=5%. Here, the "effect" is the size of the true increase: for example, a true mean increase from 10 hours to 11 hours is a difference of 1 hour. Drag the sliders to observe how the difference and sample size affect the probability of missed detection.
- α (fixed)
- 5.0%
- Type II error β
- 19.6%
- Power 1−β
- 80.4%
Combined exploration: choose the research situation, then adjust the test rule
Bring together what we have learned. Considering only a right-tailed one-sided test, distinguish the following: α is controlled by the prespecified test rule; β and power also depend on the true difference and sample size.
- Type I error α
- 5.0%
- Type II error β
- 19.6%
- Power 1−β
- 80.4%
The power shown here is the probability of detection "when the true population mean is the selected μ₁"; it is not a pretest probability that H₁ is true.