Professor Turing

Study guides

Type 1 and type 2 errors: what each one buys and risks

Last updated: 2026-11-26

A type 1 error rejects a null hypothesis that is true, and a type 2 error fails to reject one that is false. A false alarm, and a miss. Choosing a low alpha lowers the false-alarm rate by construction and, at a fixed sample size, raises the miss rate, which is why the two are named and tracked separately.

Start learning No account needed

1. The two wrong verdicts

A hypothesis test hands down one of two verdicts: reject H0, or fail to reject it. Reality also has two sides: H0 is true, or it is false. That gives four combinations, and two of them are errors. In a type I error the test throws out a null hypothesis that was in fact true. In a type II error the test lets a false null hypothesis stand. You will see them written with Roman numerals or with digits, and the meanings are the same.

H0 is trueH0 is false
Reject H0type 1 errorcorrect (power)
Fail to reject H0correct (1 − alpha)type 2 error (beta)

Each error has a probability. Alpha, the significance level you choose in advance, is the type 1 error rate, the chance of rejecting H0 when H0 is true. For a one-sided null such as a mean of at most 800, alpha is the rate when the mean is exactly 800, and the rate is no higher for any mean below that. Beta is the type 2 error rate, the chance of failing to reject H0 when a particular alternative is true. One minus beta is the power, the chance that the test detects that alternative.

2. A worked example: one test, both rates

A bakery claims each dough ball weighs 800 grams on average. The process spread is known from years of records, sigma = 20 grams, so, treating the weights as roughly normal, a z test applies, and the question is one-sided: has the mean moved above 800? Take n = 25 dough balls and alpha = 0.05. The standard error is 20 / √25 = 4 grams, and the cutoff comes from the standard normal distribution at 1.645, so the test rejects when the sample mean reaches 806.58 grams or more. The script computes the cutoff, both error rates and the power:

One-sided z test: H0 mean = 800 g, sigma = 20 g known, n = 25
standard error = 20 / sqrt(25) = 4.00 g
alpha = 0.05: cutoff z = 1.645, reject when the sample mean is at or above 806.58 g
alpha = 0.01: cutoff z = 2.326, reject when the sample mean is at or above 809.31 g
check: P(z >= 1.645 | H0 true) = 0.0500 (the type 1 error rate, alpha)
check: P(z >= 2.326 | H0 true) = 0.0100 (the type 1 error rate, alpha)

True mean 810 g, so the real shift is 10 g (z shift = 10 / se = 2.50):
  alpha = 0.05: power = 0.8038, type 2 rate = beta = 0.1962
  alpha = 0.01: power = 0.5689, type 2 rate = beta = 0.4311
the stricter cutoff buys alpha 0.01 and loses power: the 10 g shift
is missed more than four times in ten at the 0.01 cutoff, against
about once in five at the 0.05 cutoff

Smaller true shift, 4 g (z shift = 1.00), at alpha = 0.05:
  power = 0.2595, beta = 0.7405: a small real
  shift is missed about three times in four at n = 25

Same 10 g shift at alpha = 0.05 with a larger sample:
  n =  25: se = 4.00, power = 0.8038, beta = 0.1962
  n =  64: se = 2.50, power = 0.9907, beta = 0.0093
  n = 100: se = 2.00, power = 0.9996, beta = 0.0004
alpha stays at 0.05 in these rows, so only beta falls

Spend some of the extra data on a stricter cutoff, 10 g shift:
  n =  64, alpha = 0.01: power = 0.9529, beta = 0.0471
  both rates are below alpha = 0.05 and beta = 0.1962 at n = 25
checks passed

Read the block for a true mean of 810 grams first, because it shows the trade-off. If the true mean is 810 grams, the 10 gram improvement is real, and a test at alpha 0.05 catches it with probability 0.8038. The remaining 0.1962 is the type 2 error rate: about one test in five fails to see the change and reports no evidence. Move the cutoff to alpha 0.01 and the false-alarm rate drops to 0.01, as the check lines confirm, but the power drops to 0.5689. The same improvement now goes undetected more than four times in ten.

3. What a low alpha buys, and what it risks

A lower alpha pushes the cutoff further into the tail, so a true null crosses it less often. That drop in the type 1 rate is what you buy. The price is on the other side: a real effect of the same size now clears the cutoff less often, so beta rises. At a fixed sample size and effect size, the two rates move in opposite directions. Wikipedia's power article gives the same warning in brief: guarding hard against false positives can produce false negatives instead.

Size matters too. The 4 gram block shows that smaller shift going undetected about three times in four at n = 25, even at alpha 0.05. Power depends on how big the true effect is next to the noise, so a power figure holds only for the effect size it assumed.

4. A common misconception: a low alpha makes the test safer

Lowering alpha moves risk from one error to the other and does not remove it. Alpha 0.01 is the better choice when a false alarm costs much more than a miss. The balance can tip the other way: Wikipedia's article on the two errors notes that medical screening tests have many false positives and are still valued, because they greatly improve the chance of finding disorders early. NIST's handbook, which gives the z statistic we used, says to choose a small alpha, with 0.01, 0.05 and 0.10 as usual values, and the section we read leaves the weighing of the two costs to you. Calling a test with a low alpha strict hides which verdict became harder to reach, which is rejection. Failing to reject became easier.

Raising n changes the picture. A larger sample shrinks the standard error, so the sample mean scatters less around the true value whether or not H0 holds. With alpha held at 0.05, the type 1 rate stays at 0.05 and beta falls: the same 10 gram shift reached power 0.9907 at n = 64 and 0.9996 at n = 100. You can also spend some of the extra data on a stricter cutoff. At n = 64 and alpha = 0.01, power is 0.9529 and beta is 0.0471, so both rates are lower than the 0.05 and 0.1962 of the test with n = 25. When someone asks whether to loosen alpha to catch an effect, collecting more data is a third option.

5. Test yourself

Close this page and answer three questions from memory: which error does a lower alpha reduce; what happens to beta at the same sample size; and what happens to beta when n grows and alpha stays fixed. Then reopen and compare. The one you hesitated on is the part to study again.

The test itself is built up in what is hypothesis testing, and the tail probability it reads out is explained in what is a p-value. For the surrounding course, see how to study for a statistics exam, and for checking an answer without help, see how to test yourself.

What the sources found, and their limits

NIST/SEMATECH e-Handbook of Statistical Methods, section 7.2.2. NIST is the U.S. National Institute of Standards and Technology, and its site notice says information on NIST sites is public and may be distributed or copied unless marked as copyrighted. The section gives the z statistic for a known standard deviation and compares it with a standard normal critical value (written out for the two-sided case, with the other cases handled similarly). It calls for a small alpha and gives 0.01, 0.05 and 0.10 as usual values. Source: 7.2.2, Are the data consistent with the assumed process mean?, read on 2026-11-25.

Wikipedia, "Type I and type II errors". It gives the two definitions, the trade-off between the two error rates, and the remark on medical screening. CC BY-SA 4.0. Source: Type I and type II errors, read on 2026-11-25.

Wikipedia, "Statistical power". It defines power, alpha and beta, and warns that care to avoid false positives can create false negatives. CC BY-SA 4.0. Source: Statistical power, read on 2026-11-25.

Limits: one government handbook section and two encyclopedia articles, not course texts. The bakery numbers, the 10 gram and 4 gram effects and the sample sizes are ours, invented to make the arithmetic visible, and scripts/type-1-vs-type-2-errors-worked-example.py computes every figure shown. The wording here is ours.

How Professor Turing helps

Professor Turing is a tutor for adults learning any subject, in college or on their own. It asks you questions instead of giving the final answer, does not grade a bare guess, and remembers what you got wrong. No account is needed to start.

Bring the question you cannot settle, such as which error a chosen alpha moves. Its first reply asks what you already know before it teaches anything. If you answer with a bare guess, it asks how you got there instead of saying right or wrong, and when you stay stuck it changes its approach and makes the next step smaller instead of handing over the answer. Later in a session it can offer a short test without help, scored apart from the tutoring, so you can tell what you can do alone from what the tutor carried you through. You must be 18 or older, and guest conversations are deleted 7 days after the last activity.

FAQ

Which error does a low alpha reduce? A low alpha reduces the type 1 error rate, the chance of rejecting a true null hypothesis, because the test sets that rate through alpha. The cost is a higher type 2 error rate: at the same sample size and the same true effect, moving the cutoff from 1.645 to 2.326 pushed our power down from 0.8038 to 0.5689, so beta rose from 0.1962 to 0.4311. With more data you can use a smaller alpha and still have a smaller beta.

Why can both error rates fall at the same time? The trade-off between them holds at a fixed sample size, and more data shrink the standard error. For our 10 gram true shift at alpha 0.05, power rose from 0.8038 at n = 25 to 0.9907 at n = 64, where only beta fell. Tighten alpha to 0.01 at n = 64 and power is 0.9529, so both rates, 0.01 and 0.0471, sit below the 0.05 and 0.1962 of the smaller test.

Start with what you're working on

Tell the tutor which test you are setting up and let it ask you the questions.

Start learning No account needed

See also: what is hypothesis testing · what is a p-value · how to study for a statistics exam · how to test yourself · all study guides