Type I and Type II Errors and the Power of a Test | Applications and Interpretation IB Maths notes

Free preview: Type I and Type II Errors and the Power of a Test

Two Ways a Test Can Go Wrong

Applications and interpretation: HL only (AHL 4.18)

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

  1. A Type I error happens when X lands in the critical region although H0 is true.
  2. So P(Type I)=P(X∈critical region∣H0 true). This is the actual significance level.
  3. This probability is called the size of the test.

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

What I writeWhy I do it
H0:λ=4, H1:λ>4, critical region X⩾9Start from the test as set up.
P(Type I)=P(X⩾9∣λ=4)Type I uses the H0 value.
=1−P(X⩽8)=1−0.9786=0.0214Poisson CD with λ = 4.

💡 In plain words

  • Type I: crying wolf. Its probability is the size, worked out using H0.
  • For a discrete test the size is usually a bit below the stated significance level, because X jumps in whole numbers.

✏️ 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−P(X⩽6)=0.0335 (3 s.f.).

Type II Errors and Power

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

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(X∉critical region∣true value). Why: a miss means not rejecting, even though the true value is different.

👀 Watch me do it: suppose the true rate is λ = 7. Find P(Type II) and the power

What I writeWhy I do it
Critical region X⩾9, so we do not reject when X⩽8The region was found with λ = 4.
P(Type II)=P(X⩽8∣λ=7)=0.7291Now switch to the true value, λ = 7.
Power=1−0.7291=0.2709The chance of correctly spotting the increase.

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 HL: Further hypothesis testing (AHL 4.18)

  1. One-Tailed Hypothesis Tests for a Binomial Proportion
  2. Two-Tailed Binomial Tests and Critical Regions
  3. Testing for Correlation with the Product Moment Correlation Coefficient
  4. Hypothesis Tests for the Mean of a Normal Distribution
  5. Hypothesis Tests for the Mean of a Poisson Distribution
  6. Type I and Type II Errors and the Power of a Test
  7. z-Tests for a Population Mean Using the Central Limit Theorem
  8. The One-Sample t-Test for a Mean

What's inside for this topic

8 teacher notes, 64 practice questions, 38 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: Hypothesis Tests for the Mean of a Poisson Distribution Next note: z-Tests for a Population Mean Using the Central Limit Theorem

All Applications and Interpretation IB Maths topics · IB Maths