KS Maths
Topic 4.18 · AI Higher Level

Type I and Type II errors

The two errors sit on opposite sides of one line.

Move the line to make a Type I error rarer and a Type II error becomes commoner. Only one thing shrinks both.

Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

mean
The total of all values divided by how many values there are.The mean of 2, 4, 6 is 4.
probability
How likely it is that something happens, from 0 to 1.The probability of heads is one half.
sample
A small group chosen from a bigger group.We asked a sample of 50 students.
power
A small raised number that shows how many times to multiply a number by itself.2 to the power 3 is 8.
greater than
Bigger than. The sign is >.5 is greater than 3.
standard deviation
A number that shows how far data are from the mean on average.A small standard deviation means data are close together.
distribution
How data or probabilities are spread over the possible values.The distribution shows how likely each value is.
predict
Say what you think will happen using the data.Predict the score for 5 hours of study.
binomial
Having two parts or two possible outcomes, like success and failure.A coin toss is a binomial trial.
comment
Give your opinion about the result, with a reason.Comment on the size of the spread.

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

Four quick ones from earlier work. Try each on paper before you open the answer; a slip here shows you what to watch for later in the lesson.

  1. Work out 6 ÷ √9.
    Answer

    √9 = 3, so 6 ÷ 3 = 2. This is the standard error: the spread of a sample mean, not of one value.

  2. A sample mean is 504, from a distribution with mean 500 and standard deviation 2. How many standard deviations above the mean is it?
    Answer

    (504 − 500) ÷ 2 = 2, so z = 2. Standardising turns any normal probability into a question about z.

  3. P(Z < 1.645) = 0.95. Find P(Z > 1.645).
    Answer

    1 − 0.95 = 0.05. The two tails of the same cut-off add to 1. This is why 1.645 is the 5% boundary for a one-sided test.

  4. A test at the 5% significance level gives p = 0.08. What do you conclude?
    Answer

    0.08 is greater than 0.05, so there is insufficient evidence to reject H₀. A p-value above the level means do not reject.

Words used in this lesson
Type I error
rejecting H₀ when it is actually true: a false alarm. For example: stopping a machine that was working properly.
Type II error
failing to reject H₀ when it is actually false: a miss. For example: letting a faulty machine keep running.
significance level (α)
the probability you accept of a Type I error. For example: a 5% level means α = 0.05.
power
the probability of correctly rejecting a false H₀. For example: a power of 0.9 means a real change is caught 9 times in 10.
alternative hypothesis (H₁)
what is true if H₀ is false. For example: H₁: the mean is greater than 500.
critical value
the boundary: past it you reject H₀. For example: reject if the sample mean is above 503.
drift
a gradual move away from the intended value. For example: a machine that slowly fills bottles with more water.
conclude
state what the test result means in the situation. For example: “conclude in context” needs a sentence about the machine, not about H₀.
comment
give a reasoned opinion about the consequences. For example: “comment on the choice of significance level” wants costs and trade-offs.
stricter
needing more evidence before a decision. For example: a 1% level is stricter than a 5% level.

Predict first. With the sample size held fixed, you are going to slide the line to the right, so that fewer batches are rejected. What do you expect to happen to the Type I error and to the Type II error? Decide, and say why, before you look.

Then check

Now slide the line and read α and β at three different positions. Did both move the way you predicted? What would you have to change, other than the line, to make both small at once?

Higher Level

A drinking water plant near Bangkok should fill each bottle to a mean of 500 ml. The left curve is what sample means look like if it is working. The right curve is what they look like if it has drifted to 505. You reject above the line. Slide the line and read the two errors.

496500504508512distribution of the sample meanif μ = 500 (H₀ true)if μ = 505 (drifted)reject above 502.5
10.6%α, Type I
10.6%β, Type II
89.4%power

Both errors are areas under curves, cut by the same line. There is nowhere to put it that makes both small.

Now leave the line where 5% of good batches get rejected, and increase the sample size instead.

With α held at 5%, more data separates the two curves and β falls on its own.

The two mistakes

H₀ is trueH₀ is false
reject H₀Type I
probability α
correct
probability = power
do not rejectcorrect
probability 1 − α
Type II
probability β

Type I: rejecting a true H₀. A false alarm. You stop a line that was fine. When the test statistic is continuous, like the sample mean here, its probability is exactly the significance level you chose, so α = 0.05 at the 5% level. With a count (binomial or Poisson) it is usually a little less: see below.

Type II: failing to reject a false H₀. A miss. The line had drifted and you let it run. Its probability, β, you do not choose: it follows from α, from n, and from how far the truth has drifted.

β has no single value until you say what the alternative truly is. “H₀ is false” covers a drift to 501 and a drift to 540, and those are missed at wildly different rates. A question asking for β must therefore hand you a specific alternative mean, and on this page that alternative is 505.

The rest of this lesson is in the full course

Still to come in this lesson:

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

IB Diploma plan: AI HL$99Every Diploma lesson in both courses and both levels, so a change of course never locks you out, and every lesson from Year 7 for the refreshers. $99 for 12 months or $149 for 2 years.

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

AI HL Mock Exam Pack, $25BuyPlan $99