Skip to content
Family Table Math
Auto

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.

Every test ends with “reject H0H_0” or “fail to reject H0H_0”. Combine that with what’s actually true and there are four possibilities:

H0H_0 is trueH0H_0 is false (HaH_a is true)
Reject H0H_0Type I errorCorrect decision
Fail to reject H0H_0Correct decisionType II error
  • A Type I error means finding convincing evidence for HaH_a when HaH_a is not true: a “false alarm”.
  • A Type II error means not finding convincing evidence for HaH_a when HaH_a 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 H0H_0 you might have made a Type I error; after failing to reject, a Type II error.

Describe each error in words about the situation, not just “rejected H0H_0 when it was true”. For a test of H0:p=0.08H_0: p = 0.08 against Ha:p<0.08H_a: p \lt 0.08, where pp is the infection rate after a new hand-washing program:

  • Type I: concluding that the new program lowers the infection rate below 8%8\% when it really doesn’t.
  • Type II: not finding convincing evidence that the infection rate is below 8%8\% 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.

If H0H_0 is true, you reject it whenever the p-value is at most α\alpha, which happens with probability α\alpha. So

P(Type I error)=αP(\text{Type I error}) = \alpha

That’s why α\alpha 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 α\alpha such as 0.010.01.

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 H0H_0 when H0H_0 is false:

power=P(reject H0∣Ha is true)P(Type II error)=β=1−power\text{power} = P(\text{reject } H_0 \mid H_a \text{ is true}) \qquad P(\text{Type II error}) = \beta = 1 - \text{power}

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 0.800.80, so that P(Type II error)≤0.20P(\text{Type II error}) \le 0.20.

If everything else stays the same, the power increases (and P(Type II error)P(\text{Type II error}) decreases) when:

ChangeWhy it helps
The sample size increasesThe 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 p0p_0A bigger difference is easier to detect.
The significance level α\alpha increasesIt’s easier to reject H0H_0 at all.

The last one is a trade-off: raising α\alpha increases power, but it also raises P(Type I error)P(\text{Type I error}). To reduce both error probabilities at once, you need a smaller standard error, usually by increasing the sample size (then you can keep α\alpha 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.

Power is a probability about p^\hat{p}, so you can find it with two normal curves:

  1. Assume H0H_0 is true and find the rejection cut-off for p^\hat{p}. For Ha:p>p0H_a: p \gt p_0, reject when p^≥p0+z∗p0(1−p0)n\hat{p} \ge p_0 + z^*\sqrt{\dfrac{p_0(1 - p_0)}{n}}, where z∗z^* has area α\alpha above it.
  2. Now assume a particular true value pap_a. Power is the probability that p^\hat{p} lands beyond the cut-off, using the sampling distribution with mean pap_a and standard deviation pa(1−pa)n\sqrt{\dfrac{p_a(1 - p_a)}{n}}.
Two normal curves for p-hat with samples of 100. Top: the null distribution centred at 0.5; the area to the right of the cut-off 0.582 is shaded, alpha = 0.05. Bottom: the distribution when p = 0.6; the area to the right of 0.582 is shaded, the power, 0.641; the area to the left is beta, 0.359. If H₀ is true (p = 0.5) 0.3 0.4 0.5 0.6 0.7 0.8 α = 0.05 Type I error reject H₀ if p̂ ≥ 0.582 If the true p is 0.6 0.3 0.4 0.5 0.6 0.7 0.8 power = 0.641 β = 0.359 (fail to reject) reject H₀ if p̂ ≥ 0.582
Example 4: the same cut-off, p^≥0.582\hat{p} \ge 0.582, gives α=0.05\alpha = 0.05 under H0H_0 and power 0.6410.641 when p=0.6p = 0.6.

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 P(Type I)=αP(\text{Type I}) = \alpha and P(Type II)=1−powerP(\text{Type II}) = 1 - \text{power}. 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.

A provincial health agency tests whether a new reminder system increases the proportion of residents who get a recommended screening, above last year’s 55%55\%. Here pp is the proportion of all residents who get the screening, H0:p=0.55H_0: p = 0.55 and Ha:p>0.55H_a: p \gt 0.55.

  • (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 55%55\%, when in fact it doesn’t.

Type II: the agency doesn’t find convincing evidence that the screening rate is above 55%55\%, 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.

For each result, say which error could have been made.

  • (a) A test of whether a coin is biased gives a p-value of 0.210.21 at α=0.05\alpha = 0.05.
  • (b) A test of whether a new website layout increases sign-ups gives a p-value of 0.0030.003 at α=0.01\alpha = 0.01.

Solution.

(a) 0.21>0.050.21 \gt 0.05, so we fail to reject H0H_0. If the coin really is biased, we’ve made a Type II error.

(b) 0.003≤0.010.003 \le 0.01, so we reject H0H_0. If the new layout really doesn’t increase sign-ups, we’ve made a Type I error.

A bicycle-helmet maker tests each large batch before shipping. With pp the proportion of defective helmets in a batch, it tests H0:p=0.01H_0: p = 0.01 against Ha:p>0.01H_a: p \gt 0.01, and rejects (scraps) the batch if the test is significant. Should it use α=0.01\alpha = 0.01 or α=0.10\alpha = 0.10? 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 α=0.10\alpha = 0.10 increases the power, at the cost of scrapping more good batches.

A researcher plans to test H0:p=0.5H_0: p = 0.5 against Ha:p>0.5H_a: p \gt 0.5 at α=0.05\alpha = 0.05 with a random sample of n=100n = 100. Find the power of the test if the true proportion is p=0.6p = 0.6, and interpret it.

Solution.

Step 1: the cut-off. If H0H_0 is true, p^\hat{p} is approximately normal with mean 0.50.5 and standard deviation 0.5(0.5)100=0.05\sqrt{\dfrac{0.5(0.5)}{100}} = 0.05. The upper 5%5\% starts at z∗=1.645z^* = 1.645:

p^≥0.5+1.645(0.05)=0.5822\hat{p} \ge 0.5 + 1.645(0.05) = 0.5822

Step 2: the power. If p=0.6p = 0.6, p^\hat{p} is approximately normal with mean 0.60.6 and standard deviation 0.6(0.4)100=0.0490\sqrt{\dfrac{0.6(0.4)}{100}} = 0.0490. (Large Counts: 6060 and 4040, both at least 1010.)

power=P(p^≥0.5822)=P(Z≥0.5822−0.60.0490)=P(Z≥−0.36)=0.641\begin{aligned} \text{power} = P(\hat{p} \ge 0.5822) &= P\left(Z \ge \frac{0.5822 - 0.6}{0.0490}\right) \\ &= P(Z \ge -0.36) = 0.641 \end{aligned}

So P(Type II error)=1−0.641=0.359P(\text{Type II error}) = 1 - 0.641 = 0.359.

Interpret. If the true proportion is 0.60.6, there’s a 0.6410.641 probability that this test will find convincing evidence that p>0.5p \gt 0.5. That’s less than the usual target of 0.800.80, so the researcher should consider a larger sample.

Describing an error without context. “Rejecting H0H_0 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. α\alpha is the probability of rejecting H0H_0 if H0H_0 is true. It is not the probability that a rejection you’ve already made is wrong; that depends on how often H0H_0 is true in the first place.

Naming the wrong error after a decision. If you rejected H0H_0, 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 H0H_0, calculated assuming a particular alternative value is true.

Thinking a smaller α is always better. Lowering α\alpha reduces Type I errors but, with the same sample, increases Type II errors. Choose α\alpha from the consequences.

Thinking a bigger sample lowers P(Type I error). P(Type I)=αP(\text{Type I}) = \alpha, which you choose. A bigger sample increases power, so it lowers P(Type II)P(\text{Type II}).

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 (HaH_a is true, but we failed to reject H0H_0).

(b) Type I error (H0H_0 is true, but we rejected it).

(c) Correct decision.

2. (Warm-up) A test is carried out at α=0.05\alpha = 0.05 and has power 0.730.73 against a particular alternative. Find P(Type I error)P(\text{Type I error}) and P(Type II error)P(\text{Type II error}) for that alternative.

Solution

P(Type I)=α=0.05P(\text{Type I}) = \alpha = 0.05. P(Type II)=1−0.73=0.27P(\text{Type II}) = 1 - 0.73 = 0.27.

3. (Warm-up) A test gives a p-value of 0.380.38. Which type of error might have been made? Explain.

Solution

A Type II error. A p-value of 0.380.38 is larger than any usual α\alpha, so we fail to reject H0H_0. The only possible error after failing to reject is a Type II error (if HaH_a is actually true).

4. (Core) A seed company tests whether a new coating increases the germination rate of its tomato seeds above the current 85%85\%. With pp the proportion of all coated seeds that germinate, H0:p=0.85H_0: p = 0.85 and Ha:p>0.85H_a: p \gt 0.85. 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 85%85\% 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 85%85\% when the coating really does increase it. Consequence: it misses out on a product improvement.

5. (Core) A test of H0:p=0.30H_0: p = 0.30 against Ha:p>0.30H_a: p \gt 0.30 is planned with n=200n = 200 and α=0.05\alpha = 0.05. Say whether each change would increase or decrease the power (with everything else unchanged).

  • (a) Using n=500n = 500.
  • (b) Using α=0.01\alpha = 0.01.
  • (c) The true proportion turns out to be 0.400.40 instead of 0.350.35.
Solution

(a) Increase: a larger sample means a smaller standard error.

(b) Decrease: a smaller α\alpha makes it harder to reject H0H_0.

(c) Increase: 0.400.40 is farther from p0=0.30p_0 = 0.30, so it’s easier to detect.

6. (Core) A city tests drinking-water samples for a contaminant. With pp the proportion of samples above the safe limit, it tests H0:p=0.02H_0: p = 0.02 against Ha:p>0.02H_a: p \gt 0.02, and issues a boil-water advisory if the result is significant. Which error is more serious? Would you choose α=0.01\alpha = 0.01 or α=0.10\alpha = 0.10?

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 α=0.10\alpha = 0.10 to give the test more power.

7. (Core) A study says its test has power 0.850.85 to detect a true proportion of 0.650.65 when testing H0:p=0.55H_0: p = 0.55. Interpret the power in context, and find the probability of a Type II error for this alternative.

Solution

If the true proportion is 0.650.65, there is a 0.850.85 probability that the test will find convincing evidence that pp is greater than 0.550.55 (that is, correctly reject H0H_0). P(Type II error)=1−0.85=0.15P(\text{Type II error}) = 1 - 0.85 = 0.15.

8. (Challenge) A test of H0:p=0.20H_0: p = 0.20 against Ha:p>0.20H_a: p \gt 0.20 will use a random sample of 400400 and α=0.05\alpha = 0.05. Find the power of the test if the true proportion is 0.250.25.

Solution

Under H0H_0: σp^=0.20(0.80)400=0.02\sigma_{\hat{p}} = \sqrt{\dfrac{0.20(0.80)}{400}} = 0.02, so reject when p^≥0.20+1.645(0.02)=0.2329\hat{p} \ge 0.20 + 1.645(0.02) = 0.2329.

If p=0.25p = 0.25: σp^=0.25(0.75)400=0.02165\sigma_{\hat{p}} = \sqrt{\dfrac{0.25(0.75)}{400}} = 0.02165.

power=P(p^≥0.2329)=P(Z≥0.2329−0.250.02165)=P(Z≥−0.79)=0.785\text{power} = P(\hat{p} \ge 0.2329) = P\left(Z \ge \frac{0.2329 - 0.25}{0.02165}\right) = P(Z \ge -0.79) = 0.785

9. (Challenge) A research team runs 2020 independent significance tests at α=0.05\alpha = 0.05. Suppose H0H_0 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 0.950.95, so

P(at least one Type I error)=1−0.9520=1−0.358=0.642P(\text{at least one Type I error}) = 1 - 0.95^{20} = 1 - 0.358 = 0.642

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

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.

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 1%1\%. It really is below 1%1\%, 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 α=0.10\alpha = 0.10. Against a particular alternative, P(Type II error)=0.15P(\text{Type II error}) = 0.15.

  • (a) Find P(Type I error)P(\text{Type I error}).
  • (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 18%18\%. With pp the proportion of all its flights that arrive late, H0:p=0.18H_0: p = 0.18 and Ha:p>0.18H_a: p \gt 0.18.

  • (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 60%60\% of its students would use a new study room (H0:p=0.60H_0: p = 0.60, Ha:p>0.60H_a: p \gt 0.60), using α=0.05\alpha = 0.05. The p-value was 0.0240.024.

  • (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 0.550.55, 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 H0:p=0.40H_0: p = 0.40 against Ha:p<0.40H_a: p \lt 0.40 has power 0.620.62 when the true proportion is 0.330.33.

  • (a) Interpret the power in context, where pp is the proportion of a city’s households that own a pickup truck.
  • (b) Find P(Type II error)P(\text{Type II error}) when p=0.33p = 0.33, and interpret it.
  • (c) Would the power be higher or lower if the true proportion were 0.360.36? Explain.

H7. (Challenge) A test of H0:p=0.70H_0: p = 0.70 against Ha:p<0.70H_a: p \lt 0.70 will use a random sample of 200200 and α=0.05\alpha = 0.05.

  • (a) Find the values of p^\hat{p} that would lead to rejecting H0H_0.
  • (b) Find the power of the test if the true proportion is 0.620.62.

H8. (Challenge) A test of H0:p=0.5H_0: p = 0.5 against Ha:p>0.5H_a: p \gt 0.5 at α=0.05\alpha = 0.05 needs power of at least 0.900.90 if the true proportion is 0.550.55. Find the smallest sample size that achieves this. (Hint: the cut-off must be at least 1.28161.2816 standard deviations below 0.550.55 in the sampling distribution for p=0.55p = 0.55.)

H9. (Challenge) A drug company screens 10001000 compounds with a significance test each (α=0.05\alpha = 0.05). Suppose 900900 of the compounds have no effect (H0H_0 true) and 100100 have a real effect, and each test has power 0.800.80 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 α=0.05\alpha = 0.05.

H10. (Challenge) For a test of H0:p=0.5H_0: p = 0.5 against Ha:p>0.5H_a: p \gt 0.5 with n=100n = 100, and a true proportion of 0.60.6:

  • (a) Find the power for α=0.01\alpha = 0.01, 0.050.05, and 0.100.10. (Use z∗=2.326z^* = 2.326, 1.6451.645, and 1.2821.282.)
  • (b) Describe the trade-off your answers show.