KS Maths
Topic 4.16 · AI Higher Level

Confidence intervals

95% is a claim about the method, not your answer.

A hundred samples from the same population, a hundred intervals, and the handful that miss. Then how to compute one.

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.

interval
All the values between two numbers.The interval from 2 to 5 includes 3.5.
confidence interval
A range of values that likely contains the true value.The mean is between 48 and 52.
mean
The total of all values divided by how many values there are.The mean of 2, 4, 6 is 4.
sample
A small group chosen from a bigger group.We asked a sample of 50 students.
significant figure
A digit that matters for the size of a number. Counting starts at the first non-zero digit.0.0382 to 2 significant figures is 0.038.
decimal place
A digit after the decimal point. We count places from the point.3.14 has two decimal places.
population
The whole group that we want to know about.The population is all students in the school.
standard deviation
A number that shows how far data are from the mean on average.A small standard deviation means data are close together.
square root
A number that gives the original number when multiplied by itself.The square root of 25 is 5.
degree
The highest power of x in a polynomial. Also, the unit for measuring angles.The degree of x cubed plus x is 3.

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 15 ÷ √36.
    Answer

    √36 = 6, so 15 ÷ 6 = 2.5. Take the square root of the 36 first, then divide. This is the standard error step in every interval.

  2. An interval runs from 12.4 to 17.8. What number is exactly in the middle?
    Answer

    (12.4 + 17.8) ÷ 2 = 15.1. The sample mean sits at the midpoint of a confidence interval, and half the width is the margin of error.

  3. A sample mean is 30 and the margin of error is 4.2. Write the interval as two numbers.
    Answer

    30 − 4.2 = 25.8 and 30 + 4.2 = 34.2, so (25.8, 34.2). Subtract for the lower end, add for the upper end.

  4. Work out 2.131 × 1.5, to 2 decimal places.
    Answer

    2.131 × 1.5 = 3.20 to 2 decimal places, which is a margin of error just over 3. The margin of error is a t-value times a standard error: this is the last step of the formula.

Words used in this lesson
confidence interval
a range of values that is likely to contain the population mean. For example: (47.9, 52.9) is one interval for a mean.
confidence level
how often the method captures the true value over many samples. For example: at a 95% level, about 95 in every 100 intervals cover the true mean, in the long run.
margin of error
half the width of the interval: how far each end is from the mean. For example: an interval of (20, 30) has a margin of error of 5.
standard error
the standard deviation of the sample mean, s divided by √n. For example: s = 10 and n = 25 give a standard error of 2.
population mean (μ)
the true mean of everyone, which you do not know. For example: the true mean height of all students in a country.
sample mean (x̅)
the mean of the values you actually measured. For example: the mean height of the 25 students you measured.
degrees of freedom
n − 1 for a mean: it picks the right t-value. For example: a sample of 12 has 11 degrees of freedom.
method
the procedure, repeated over many samples. For example: “the method captures μ 95% of the time”.
interpret
say in words what a result means in the situation. For example: “interpret the interval” asks what it tells you about the mean in context.
significant figures
digits counted from the first non-zero digit. For example: 7.384 to 3 significant figures is 7.38.

Predict first. Every interval in the figure is built in the same correct way from a fresh sample. Out of 100 intervals, how many do you expect to miss μ? And after only the first 25 intervals, do you expect the coverage to be exactly 95%? Decide first.

Then check

Now press play to draw all 100 and read the miss count. Then drag the slider back to 25, and then to 50, and read the coverage each time. Compare what you see with your prediction. What does 95% promise about the long run, and what does it not promise about any one batch of intervals?

Higher Level

The population mean is the dotted line at μ = 50, and it never moves. Each horizontal bar is a 95% interval from a fresh sample of 25. Twenty five are drawn already; press play to build all one hundred from scratch.

one hundred 95% intervalsμ = 50 throughout44485256
22cover μ = 50
3miss it
88%coverage

3 of 25 miss μ entirely. Nothing was done wrong in those samples. A 95% method is wrong about one time in twenty, by design.

So what does 95% attach to? Not to the interval in front of you, which either contains μ or does not. It attaches to the method: repeated indefinitely, 95% of the intervals it produces cover the true mean. You never learn whether yours is one of them.

Computing one

Interval for a mean, σ unknown: x̅ ± tn−1 × sn−1√n. In practice your calculator does this: give it x̅, sn−1, n and the confidence level, and read off the two ends.

If a question gives you the population standard deviation σ, the uncertainty in s is gone and the normal distribution replaces t: x̅ ± z × σ√n, with z = 1.96 for 95%. Read which one the question gives before you choose.

given x̅ = 50.4, sn−1 = 6, n = 25, 95% se= 6√25 = 65 = 1.2 t24= 2.064 24 degrees of freedom, not 1.96 margin= 2.064 × 1.2 = 2.48 interval= (47.9, 52.9) to 3 significant figures

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