Type I and Type II Errors | Cambridge A Level Maths notes

Free preview: Type I and Type II Errors

Two Ways a Test Can Go Wrong

9709 Paper 6: Probability & Statistics 2 (A Level)

Let's start with a smoke alarm. It can go off when there's no fire (a false alarm), or stay silent when there is a fire (a miss). Both are mistakes, but they are very different mistakes. A hypothesis test can make exactly the same two kinds.

H0 is trueH0 is false
Reject H0Type I error (false alarm)Correct decision
Do not reject H0Correct decisionType II error (miss)
  • A Type I error is rejecting H0 when it is true.
  • A Type II error is not rejecting H0 when it is false.
  • We never know for sure which column we are in. That is why we talk about the probability of each error.

Probability of a Type I error

  • A Type I error happens when the test statistic lands in the critical region although H0 is true.
  • So P(Type I)=P(in critical region∣H0 true). This is the actual significance level.

👀 Watch me do it: the Poisson calls test from the earlier note. Find P(Type I)

What I writeWhy I do it
H0:λ=2, H1:λ>2, critical region X⩾6Start from the test as set up.
P(Type I)=P(X⩾6∣λ=2)Type I uses the H0 value.
=1−e−2(1+2+222!+233!+244!+255!)The tail never ends, so 1 minus the lower sum.
=1−0.9834=0.0166A little below the 5% level, because X jumps in whole numbers.

💡 In plain words

  • Type I: crying wolf. Its probability is worked out using the H0 value.
  • For a binomial or Poisson test it is usually a bit below the stated significance level, because X jumps in whole numbers.
  • For a test based on the normal distribution it equals the significance level exactly.

✏️ YOUR TURN 1

Try this first:

A new drug is tested to see whether it reduces the rate of headaches. Describe a Type I error and a Type II error in context.

Answer:

  • Type I: concluding the drug reduces headaches when in fact it does not.
  • Type II: concluding there is no evidence the drug works when in fact it does reduce headaches.

✏️ YOUR TURN 2

Try this first:

H0:λ=3, H1:λ>3, using one observation of X~Po(λ). The critical region is X⩾7. Find the probability of a Type I error.

Answer:

  • P(X⩾7∣λ=3)=1−e−3(1+3+92+276+8124+243120+729720)
  • =1−19.4125e−3=1−0.9665=0.0335 (3 s.f.).

✏️ YOUR TURN 3

Try this first:

A binomial test uses X~B(20,p) with H0:p=0.3, H1:p<0.3 and critical region X⩽2. Find P(Type I).

Answer:

  • P(X⩽2∣p=0.3)=0.720+20(0.3)(0.7)19+190(0.3)2(0.7)18
  • =0.0008+0.0068+0.0278=0.0355.

Type II Errors

A Type II error is trickier. To find its probability you need a specific true value of the parameter, because H1 covers many values. "λ > 2" could mean 2.1 or 20, and a test is much better at spotting 20. The question gives the true value.

Method

  1. Find the critical region (using H0).
  2. Write the acceptance region: everything not in the critical region.
  3. Use the given true value: P(Type II)=P(not in critical region∣true value). Why: a miss means not rejecting, even though the true value is different.

👀 Watch me do it: in the calls test, suppose the true rate is λ = 5. Find P(Type II)

What I writeWhy I do it
Critical region X⩾6, so we do not reject when X⩽5The region was found with λ = 2.
P(Type II)=P(X⩽5∣λ=5)Now switch to the true value, λ = 5.
=e−5(1+5+522!+533!+544!+555!)=0.616Six terms, 0 to 5.
The test misses a real increase to 5 about 62% of the time.One 10-minute period is very little data.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in Hypothesis tests (6.5)

  1. The Language of Hypothesis Testing
  2. One-Tailed Hypothesis Tests for a Binomial Proportion
  3. Two-Tailed Binomial Tests and Critical Regions
  4. Hypothesis Tests for the Mean of a Poisson Distribution
  5. Hypothesis Tests for the Mean of a Normal Distribution
  6. z-Tests for a Population Mean Using the Central Limit Theorem
  7. Type I and Type II Errors

What's inside for this topic

7 teacher notes, 161 practice questions, 40 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: z-Tests for a Population Mean Using the Central Limit Theorem

All Cambridge A Level Maths topics · A Level Maths