AP Statistics · Study guide

Two ways to be wrong.

AP® Statistics · Unit 3 · Inference for Categorical Data: Proportions

Type I and Type II Errors, and Power

The two ways a hypothesis test can reach the wrong decision, how to describe each in context, their probabilities (α and 1 − power), what makes a test more powerful, and how the consequences of each error should shape a study.

The idea in one paragraph

A test decides from a sample, so it can be wrong. A Type I error is a false alarm: convincing evidence for Hₐ when Hₐ is not true. A Type II error is a miss: no convincing evidence for Hₐ when Hₐ is true. You set the chance of a false alarm with α; the chance of a miss depends on the sample size, α, and how far the truth is from H₀.

1Two kinds of error

  • A Type I error occurs when there is convincing evidence that the alternative hypothesis is true (because of a small p-value), but it is not.
  • A Type II error occurs when there is not convincing evidence that the alternative hypothesis is true (because of a large p-value), but it is.
Figure 1. A Type I error finds convincing evidence for Hₐ when it is not true. A Type II error misses evidence for Hₐ when it is true. Every test risks one or the other, depending on the decision.
Worked Example 1 Which error could have happened?

Reading the decision

(a) A test rejects H₀. (b) Another test fails to reject H₀. Which type of error is possible in each case?

  1. 1A Type I error can only happen when H₀ is rejected. A Type II error can only happen when H₀ is not rejected.
Answer: (a) Only a Type I error is possible. (b) Only a Type II error is possible. You never know whether an error actually happened, because the truth is unknown.
Common Mistake 1 · Mixing up Type I and Type II

Tie each one to the decision. Type I goes with “reject H₀” (a false alarm). Type II goes with “fail to reject H₀” (a miss). If you rejected, a Type II error is impossible, and the other way around.

2Describing errors in context

Describe each error in terms of the alternative hypothesis and the real situation, not just “rejected a true null.”

Worked Example 2 Describe each error in context

School lunch

A student council tests H₀: p = 0.60 against Hₐ: p < 0.60, where p is the proportion of all students at the school who eat the school lunch. Describe a Type I error and a Type II error in context.

  1. 1A Type I error: finding convincing evidence for Hₐ when it is not true.
  2. 2A Type II error: not finding convincing evidence for Hₐ when it is true.
Answer: Type I: the council finds convincing evidence that fewer than 60% of students eat the school lunch, when in fact 60% do. Type II: the council does not find convincing evidence that fewer than 60% eat it, when in fact fewer than 60% do.
Say it like this

Type I: “We find convincing evidence that [Hₐ in context], when in fact [H₀ in context].”

Type II: “We do not find convincing evidence that [Hₐ in context], when in fact [Hₐ is true, in context].”

3Probabilities of the errors, and power

The probability of a Type I error is the significance level \(\alpha\). It is set to a small value, such as 0.01, 0.05 or 0.10, before the data are collected.

The power of a test is the probability that it correctly rejects a false null hypothesis. The probability of a Type II error is \(1 - \text{power}\). Ideally the Type II error probability is small and the power large, for example \(P(\text{Type II}) \le 0.20\) and power \(\ge 0.80\).

Figure 2. The red sliver under the null curve, left of the cutoff, is α: the chance of rejecting when p really is 0.60. If p is actually 0.52, the test rejects with probability about 0.64 (the power) and misses with probability about 0.36 (a Type II error).
Worked Example 3 Interpret power

Power ≈ 0.64

For the lunch test with n = 150 and α = 0.05, the power to detect p = 0.52 is about 0.64. Interpret this value.

  1. 1Power is the probability that the test correctly rejects a false H₀.
  2. 2Here it is computed for one particular alternative value, p = 0.52.
Answer: If only 52% of students actually eat the school lunch, there is about a 0.64 probability that the council’s test will find convincing evidence that fewer than 60% do. The probability of a Type II error in that case is about 1 − 0.64 = 0.36.
Common Mistake 2 · Calling the p-value the probability of a Type I error

The probability of a Type I error is α, fixed before the study. The p-value comes from the data and measures how surprising they are under H₀. They are compared, but they are not the same thing.

4What increases power

With everything else held the same, the probability of a Type II error goes down and the power goes up when:

ChangeWhy it helpsLunch test: power to detect p = 0.52
Sample size increasesSample proportions vary less, so a real difference stands outn = 150: 0.64; n = 300: 0.88
Standard error decreasesSame reason: less noise around the truth(larger n is the usual way)
True value is farther from H₀A bigger difference is easier to detectp = 0.55: 0.35; p = 0.52: 0.64; p = 0.50: 0.80
Significance level increasesRejecting is easierα = 0.01: 0.37; α = 0.05: 0.64; α = 0.10: 0.76
Common Mistake 3 · Thinking a smaller α makes the test better in every way

Lowering α from 0.05 to 0.01 cuts false alarms, but it also makes rejection harder, so power drops (0.64 to 0.37 here) and misses become more likely. With the same sample, reducing one error’s chance increases the other’s. Only a larger sample lowers both.

5Consequences shape the study

In some studies a Type I error has more serious consequences; in others a Type II error does. The consequences should be considered before the study. Because α is the probability of a Type I error, the consequences of a Type I error guide the choice of α. Because the sample size drives the probability of a Type II error, the consequences of a Type II error guide how large the sample should be.

Worked Example 4 Weigh the consequences

Bike helmet batches

A company tests each batch of bike helmets: H₀: p = 0.02 versus Hₐ: p > 0.02, where p is the proportion of helmets in the batch that fail a crash test. Batches with convincing evidence of p > 0.02 are destroyed. Which error is more serious, and how should that affect α?

  1. 1Type I: destroying a batch that is actually fine. That costs money.
  2. 2Type II: shipping a batch with too many failing helmets. Riders could be hurt.
  3. 3The Type II error is more serious. A larger α (such as 0.10) makes rejection easier, which lowers the chance of a Type II error, and a larger sample would lower it further.
Answer: Type II is worse here, so use a larger α and a larger sample, accepting more Type I errors to catch more bad batches.
Common Mistake 4 · Calling power the probability that H₀ is false

Power is a probability about the test’s decision, worked out assuming a particular alternative is true: the chance the test rejects H₀ in that case. It says nothing about how likely H₀ itself is.

Quick reference

TermMeaningProbability
Type I errorConvincing evidence for Hₐ, but Hₐ is not true\(\alpha\)
Type II errorNo convincing evidence for Hₐ, but Hₐ is true\(1 - \text{power}\)
PowerCorrectly rejecting a false H₀increases with n, effect size, and α