Lesson 5 of 8 · 15 min
Confidence intervals for a mean
Turn one sample's mean and standard deviation into an approximate confidence interval for the population mean, choosing the right for the confidence level.
What you will be able to do
- Explain the difference between a point estimate and an interval estimate of .
- Find the quantile for a confidence level, and recall , and .
- Calculate the approximate confidence interval , using when it is known.
So far you have started from and asked where is likely to fall. In practice it runs the other way: you have one sample and want to know . A survey of 50 Brisbane workers finds a mean commute of minutes. The single number is a point estimate of . It is almost certainly not exactly right, so a range of plausible values is more honest and more useful.
Definition
Interval estimate
An interval estimate for a parameter is a range of plausible values for it, calculated from sample data. A confidence interval is an interval estimate made by a method that captures the parameter for a known proportion of samples, the confidence level (such as 95%). You built these for a proportion in Methods; now the parameter is a mean .
The idea comes straight from the distribution of . For large , is approximately , so about 95% of sample means land within standard errors of . Turn that round: for about 95% of samples, is within standard errors of .
The central 95% of lies between and , leaving in each tail. Change the shading to find the for 90% and 99%.
| Confidence level | 80% | 90% | 95% | 98% | 99% |
|---|---|---|---|---|---|
| 1.282 | 1.645 | 1.960 | 2.326 | 2.576 |
Key idea
Approximate confidence interval for μ
From a random sample of size with mean and standard deviation , an approximate confidence interval for the population mean is
where is the standard normal quantile for the confidence level. It is approximate because it uses the normal approximation for and estimates by , so it needs a large sample ().
Where the interval comes from
If , then
Multiply through by and rearrange the inequalities to isolate :
The random quantity here is , so the interval is random and is fixed. Replacing with (fine for ) and with the observed gives the formula.
Worked example
A 95% confidence interval for a mean commute time
A random sample of Brisbane workers had a mean one-way commute time of minutes, with standard deviation minutes. Calculate an approximate 95% confidence interval for the mean commute time of all Brisbane workers, and interpret it. Give the endpoints correct to 2 decimal places.
Step 1: Check the conditions
The sample is random and , so is approximately normal and is a reasonable estimate of .
Step 2: Find z
For 95% confidence, .
Step 3: Calculate the margin of error
Keep full calculator accuracy for and round only the endpoints.
Step 4: Write the interval
Step 5: Interpret in context
We are 95% confident that the mean one-way commute time of all Brisbane workers is between 31.54 and 36.86 minutes.
Try it yourself first, then check the working one step at a time.
Answer
minutes. We are 95% confident that the population mean commute time lies in this interval.
Method
Check the sample is random and .
Choose for the confidence level.
Calculate and write .
Interpret in context with "confident".
Watch out for
Using , which forgets the .
Saying "there is a 95% probability that is in the interval".
A random sample of Year 12 students studied for a mean of hours in a week, with hours. Calculate an approximate 95% confidence interval for the population mean . Give the endpoints correct to 2 decimal places.
Note
σ known or estimated by s?
If the population standard deviation is known (say from years of records for a machine), use it in place of : . Usually is unknown and you estimate it with the sample standard deviation (the calculator's , not ). Both give approximate intervals when the population isn't normal, because they rely on the central limit theorem.
Which value of is used for an approximate 90% confidence interval for ?
Common mistake
s is not the margin of error
The interval is , not . Forgetting the gives an interval roughly times too wide, and it describes individual values, not the mean (see the last lesson of this topic).
Exam tip
Show the substitution and interpret
Write the formula with numbers substituted, , then the interval, then a sentence in context: "We are 95% confident that the mean commute time of all Brisbane workers is between 31.54 and 36.86 minutes."
Summary
is a point estimate of ; a confidence interval is an interval estimate.
The approximate confidence interval for is , for large .
, , for 90%, 95%, 99%; in general .
Use in place of when it is known.
Interpret in context: "We are 95% confident that the mean … is between … and …".
Finished the lesson?
Try the 2 quick checks above and the lesson completes itself, or mark it complete now.