Topic contents

Lesson 4

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 situation (usually unknown when testing)
Decision from the sample
Decision from the sample
Type I error: incorrectly rejecting H₀

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₁.

View probability areas
9.010.011.012.0Critical value 10.66Do not rejectReject H₀H₀:μ=10H₁: μ=11.0
Sampling distributions of the sample mean and decision regions under two situations
H₀ boundary (solid blue curve) · True mean 11 (dashed gray curve) · Critical value
Type I error α
At the H₀ boundary, a sample mean to the right of the critical value leads to an incorrect rejection of H₀. This is the right-tail area under the solid blue distribution curve.
Type I error α
5.0%
Type II error β
19.6%
Power 1−β
80.4%
What do the two curves represent? Solid blue curve: the sampling distribution of the sample mean when H₀ holds at the boundary μ=10. Dashed gray curve: the sampling distribution of the sample mean when the true population mean is μ=11 (one specific case under H₁). At the same critical value, the two distributions give different probability areas.

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.

9.010.011.012.0Critical value 10.66Do not rejectReject H₀H₀:μ=10H₁: μ=11.0
Sampling distributions of the sample mean and decision regions under two situations

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%
Decision rule: Reject H₀ when the sample mean > 10.66 hours. At the H₀ boundary, the probability of incorrect rejection is approximately 4.9%; when the true mean is 11 hours, the probability of missed detection is approximately 19.8%.
With sample size and true difference unchanged, raising the critical value usually decreases α but increases β and decreases power. Moving it in the opposite direction reverses these changes.

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.

True difference (the effect here, in hours) = 11.0 − 10 = 1.0
9.010.011.012.0Critical value 10.66Do not rejectReject H₀H₀:μ=10H₁: μ=11.0
Sampling distributions of the sample mean and decision regions under two situations
Right-tailed one-sided z-test: H₀:μ≤10;H₁:μ>10
Standard error = 2 / √25 ≈ 0.400 hours
Critical value = 10 + 1.645 × 0.400 ≈ 10.658 hours
α (fixed)
5.0%
Type II error β
19.6%
Power 1−β
80.4%
A larger difference between the true mean and 10, or a larger sample with a smaller standard error, usually makes a true increase easier to detect; α remains fixed at 5%.
Changing the sample size on this page changes the standard error σ/√n; it does not directly change the fixed population standard deviation σ=2.

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.

Significance level α
9.010.011.012.0Critical value 10.66Do not rejectReject H₀H₀:μ=10H₁: μ=11.0
Sampling distributions of the sample mean and decision regions under two situations
Type I error α
5.0%
Type II error β
19.6%
Power 1−β
80.4%
H₀: μ ≤ 10; H₁: μ > 10. Known σ=2 hours, n=25; assume true μ₁=11.0 hours.
Prespecified α=5.0%, with a corresponding critical value of 10.658 hours; reject H₀ when the sample mean exceeds it.
Try it: Decrease α from 10% to 1%, then gradually increase the sample size. Can you increase power while keeping the risk of a Type I error low?

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.