Type I and Type II Errors and Power
A significance test makes a decision from a sample, so it can be wrong even when every calculation is right. There are exactly two ways to be wrong, and they have different consequences: a smoke alarm that goes off with no fire is annoying, but one that stays silent during a fire is dangerous. This page shows how to name each error in context, find how likely each one is, and design a study that is likely to detect a real effect.
Key ideas
Section titled “Key ideas”Two ways to be wrong
Section titled “Two ways to be wrong”Every test ends with “reject ” or “fail to reject ”. Combine that with what’s actually true and there are four possibilities:
| is true | is false ( is true) | |
|---|---|---|
| Reject | Type I error | Correct decision |
| Fail to reject | Correct decision | Type II error |
- A Type I error means finding convincing evidence for when is not true: a “false alarm”.
- A Type II error means not finding convincing evidence for when is true: a “missed detection”.
You never know whether you’ve made an error (you’d need to know the truth). But once you’ve made a decision, only one of the errors is possible: after rejecting you might have made a Type I error; after failing to reject, a Type II error.
Describing errors in context
Section titled “Describing errors in context”Describe each error in words about the situation, not just “rejected when it was true”. For a test of against , where is the infection rate after a new hand-washing program:
- Type I: concluding that the new program lowers the infection rate below when it really doesn’t.
- Type II: not finding convincing evidence that the infection rate is below when the program really does lower it.
Then think about consequences: here, a Type I error means a hospital adopts a program that doesn’t work; a Type II error means it abandons one that does.
The probability of a Type I error
Section titled “The probability of a Type I error”If is true, you reject it whenever the p-value is at most , which happens with probability . So
That’s why is chosen before collecting data, based on how serious a Type I error would be. If a false alarm is costly or dangerous, choose a small such as .
Power and the probability of a Type II error
Section titled “Power and the probability of a Type II error”The power of a test is the probability that it correctly rejects when is false:
Power depends on the true value of the parameter: a test has more power to detect a big difference than a small one. A common goal is power of at least , so that .
What increases power
Section titled “What increases power”If everything else stays the same, the power increases (and decreases) when:
| Change | Why it helps |
|---|---|
| The sample size increases | The standard error shrinks, so a real difference stands out from sampling variability. |
| The standard error decreases (for example, through better measurement or design) | Same reason. |
| The true parameter is farther from | A bigger difference is easier to detect. |
| The significance level increases | It’s easier to reject at all. |
The last one is a trade-off: raising increases power, but it also raises . To reduce both error probabilities at once, you need a smaller standard error, usually by increasing the sample size (then you can keep small and still have good power). That costs time and money. So the consequences of a Type II error help decide how large the sample should be.
Calculating power
Section titled “Calculating power”Power is a probability about , so you can find it with two normal curves:
- Assume is true and find the rejection cut-off for . For , reject when , where has area above it.
- Now assume a particular true value . Power is the probability that lands beyond the cut-off, using the sampling distribution with mean and standard deviation .
On the AP exam
Section titled “On the AP exam”Describe errors in context, and for a “consequence” question, say what would actually happen as a result (a product recalled, a treatment adopted). Know the relationships in the table above, and that and . The two-curve power calculation is useful for understanding; on the exam you are more often given the power and asked to interpret it or use it.
Worked examples
Section titled “Worked examples”Example 1: Describing the errors
Section titled “Example 1: Describing the errors”A provincial health agency tests whether a new reminder system increases the proportion of residents who get a recommended screening, above last year’s . Here is the proportion of all residents who get the screening, and .
- (a) Describe a Type I error and a Type II error in context.
- (b) Give a consequence of each.
Solution.
(a) Type I: the agency finds convincing evidence that the reminder system increases the screening rate above , when in fact it doesn’t.
Type II: the agency doesn’t find convincing evidence that the screening rate is above , when the reminder system really does increase it.
(b) Type I: the agency spends money rolling out a reminder system that doesn’t help. Type II: the agency drops a system that would have increased screening, so fewer residents are screened than could have been.
Example 2: Which error is possible?
Section titled “Example 2: Which error is possible?”For each result, say which error could have been made.
- (a) A test of whether a coin is biased gives a p-value of at .
- (b) A test of whether a new website layout increases sign-ups gives a p-value of at .
Solution.
(a) , so we fail to reject . If the coin really is biased, we’ve made a Type II error.
(b) , so we reject . If the new layout really doesn’t increase sign-ups, we’ve made a Type I error.
Example 3: Choosing a significance level
Section titled “Example 3: Choosing a significance level”A bicycle-helmet maker tests each large batch before shipping. With the proportion of defective helmets in a batch, it tests against , and rejects (scraps) the batch if the test is significant. Should it use or ? Explain.
Solution.
- Type I error: scrapping a batch that is actually fine. That costs money.
- Type II error: shipping a batch with too many defective helmets. That puts riders at risk.
The Type II error is more serious, so the maker wants high power. With the sample size fixed, choosing the larger increases the power, at the cost of scrapping more good batches.
Example 4: Calculating power
Section titled “Example 4: Calculating power”A researcher plans to test against at with a random sample of . Find the power of the test if the true proportion is , and interpret it.
Solution.
Step 1: the cut-off. If is true, is approximately normal with mean and standard deviation . The upper starts at :
Step 2: the power. If , is approximately normal with mean and standard deviation . (Large Counts: and , both at least .)
So .
Interpret. If the true proportion is , there’s a probability that this test will find convincing evidence that . That’s less than the usual target of , so the researcher should consider a larger sample.
Common mistakes
Section titled “Common mistakes”Describing an error without context. “Rejecting when it’s true” is the definition, not a description. Say what you’d wrongly conclude about the situation.
Thinking α is the probability that you’ve made an error. is the probability of rejecting if is true. It is not the probability that a rejection you’ve already made is wrong; that depends on how often is true in the first place.
Naming the wrong error after a decision. If you rejected , a Type II error is impossible (you can only miss a detection by failing to reject). Check the decision first.
Thinking power is the probability that H₀ is false. Power is a probability about the test: the chance it rejects , calculated assuming a particular alternative value is true.
Thinking a smaller α is always better. Lowering reduces Type I errors but, with the same sample, increases Type II errors. Choose from the consequences.
Thinking a bigger sample lowers P(Type I error). , which you choose. A bigger sample increases power, so it lowers .
Practice
Section titled “Practice”1. (Warm-up) For each situation, say whether a correct decision, a Type I error, or a Type II error was made.
- (a) A new drug really does reduce headaches, but the test fails to find convincing evidence that it does.
- (b) A coin is fair, but a test concludes it’s biased.
- (c) A machine really is overfilling bottles, and the test finds convincing evidence that it is.
Solution
(a) Type II error ( is true, but we failed to reject ).
(b) Type I error ( is true, but we rejected it).
(c) Correct decision.
2. (Warm-up) A test is carried out at and has power against a particular alternative. Find and for that alternative.
Solution
. .
3. (Warm-up) A test gives a p-value of . Which type of error might have been made? Explain.
Solution
A Type II error. A p-value of is larger than any usual , so we fail to reject . The only possible error after failing to reject is a Type II error (if is actually true).
4. (Core) A seed company tests whether a new coating increases the germination rate of its tomato seeds above the current . With the proportion of all coated seeds that germinate, and . Describe a Type I error and a Type II error in context, and give a consequence of each.
Solution
Type I: the company finds convincing evidence that the coating increases the germination rate above when it really doesn’t. Consequence: it pays to coat seeds (and may advertise better germination) for no benefit.
Type II: the company doesn’t find convincing evidence that the germination rate is above when the coating really does increase it. Consequence: it misses out on a product improvement.
5. (Core) A test of against is planned with and . Say whether each change would increase or decrease the power (with everything else unchanged).
- (a) Using .
- (b) Using .
- (c) The true proportion turns out to be instead of .
Solution
(a) Increase: a larger sample means a smaller standard error.
(b) Decrease: a smaller makes it harder to reject .
(c) Increase: is farther from , so it’s easier to detect.
6. (Core) A city tests drinking-water samples for a contaminant. With the proportion of samples above the safe limit, it tests against , and issues a boil-water advisory if the result is significant. Which error is more serious? Would you choose or ?
Solution
Type I: issuing an advisory when the water is actually fine (inconvenient and costly). Type II: not issuing an advisory when the water really is contaminated (a health risk). The Type II error is more serious, so choose the larger to give the test more power.
7. (Core) A study says its test has power to detect a true proportion of when testing . Interpret the power in context, and find the probability of a Type II error for this alternative.
Solution
If the true proportion is , there is a probability that the test will find convincing evidence that is greater than (that is, correctly reject ). .
8. (Challenge) A test of against will use a random sample of and . Find the power of the test if the true proportion is .
Solution
Under : , so reject when .
If : .
9. (Challenge) A research team runs independent significance tests at . Suppose is true in every one.
- (a) Find the probability that at least one test gives a Type I error.
- (b) Explain why this matters when a study reports one “significant” result out of many tests.
Solution
(a) Each test avoids a Type I error with probability , so
(b) Even if nothing real is going on, running many tests makes at least one “significant” result more likely than not. A single significant result among many tests is weak evidence; it may well be a false alarm.
Homework
Section titled “Homework”Try these independently after the practice questions. Show your setup and explain your reasoning. Describe every error in context. Homework solutions are not provided on the published site.
All data in these questions are hypothetical.
Foundations
Section titled “Foundations”H1. (Foundations) For each situation, say whether a correct decision, a Type I error, or a Type II error was made.
- (a) A spam filter is tested to see whether its error rate is below . It really is below , and the test finds convincing evidence of this.
- (b) A new teaching method makes no difference to pass rates, but a test concludes that it increases them.
- (c) A batch of bolts really does have too many defects, but the inspection test doesn’t find convincing evidence of it.
H2. (Foundations) A test uses . Against a particular alternative, .
- (a) Find .
- (b) Find the power against that alternative.
H3. (Core) An airline tests whether the proportion of its flights that arrive late has risen above last year’s . With the proportion of all its flights that arrive late, and .
- (a) Describe a Type I error and a Type II error in context.
- (b) Give a consequence of each error for the airline.
H4. (Core) A school tested whether more than of its students would use a new study room (, ), using . The p-value was .
- (a) What decision was made?
- (b) Which error might have been made? Describe it in context.
H5. (Core) A researcher’s planned test has power , which she thinks is too low. List three things she could change to increase the power, and give a drawback of each.
H6. (Core) A test of against has power when the true proportion is .
- (a) Interpret the power in context, where is the proportion of a city’s households that own a pickup truck.
- (b) Find when , and interpret it.
- (c) Would the power be higher or lower if the true proportion were ? Explain.
Challenge
Section titled “Challenge”H7. (Challenge) A test of against will use a random sample of and .
- (a) Find the values of that would lead to rejecting .
- (b) Find the power of the test if the true proportion is .
H8. (Challenge) A test of against at needs power of at least if the true proportion is . Find the smallest sample size that achieves this. (Hint: the cut-off must be at least standard deviations below in the sampling distribution for .)
H9. (Challenge) A drug company screens compounds with a significance test each (). Suppose of the compounds have no effect ( true) and have a real effect, and each test has power against that effect.
- (a) How many compounds would you expect to be (wrongly) declared effective? How many correctly?
- (b) Of the compounds declared effective, what proportion are actually Type I errors?
- (c) Explain why this proportion is not .
H10. (Challenge) For a test of against with , and a true proportion of :
- (a) Find the power for , , and . (Use , , and .)
- (b) Describe the trade-off your answers show.