Lesson 3 of 7 · 16 min
Calculating an approximate confidence interval
Build the approximate confidence interval from the normal approximation, and calculate it accurately from survey data.
What you will be able to do
- Explain where the interval comes from and why it is approximate.
- Calculate a confidence interval for at a given confidence level, with and without technology.
- State the conditions under which the interval is reasonable.
You now have both ingredients. From Topic 4, for a large random sample is approximately normal with mean and standard deviation . From the last lesson, 95% of a standard normal distribution lies between and . Put them together and you can say how far usually lands from .
In 95% of samples, is within standard deviations of . Turn that round: in 95% of samples, is within standard deviations of . That is a range we can calculate from one sample.
The distribution of for samples of 1200 when (standard deviation 0.014). 95% of samples give a in the shaded band , so for 95% of samples the interval reaches back to .
The derivation
For a large sample, is approximately , so
Multiply through by the standard deviation and rearrange for :
The endpoints still contain the unknown , so replace it with its estimate . The result is the approximate confidence interval. It is approximate twice over: is only approximately normal, and stands in for in the standard deviation.
Key idea
Approximate confidence interval for p
where is the standard normal quantile for the confidence level: for 90%, for 95%, for 99%. The quantity is the standard error of . The interval is often written .
Calculating a confidence interval
Find and
as a decimal, not a percentage.
Find
From the confidence level: given, recalled, or .
Calculate the standard error
. Keep full calculator accuracy.
Multiply by z to get the margin of error
.
Write the interval
, rounded at the end, usually to 3 decimal places.
Worked example
A 95% confidence interval from a survey
In a random sample of 1200 Queensland adults, 744 wore sunscreen the last time they spent more than an hour outdoors. Calculate an approximate 95% confidence interval for the proportion of all Queensland adults who wore sunscreen. Use and give the endpoints correct to 3 decimal places.
Step 1: Find the sample proportion
, with .
Step 2: Calculate the standard error
This estimates the standard deviation of , using in place of the unknown .
Step 3: Calculate the margin of error
Step 4: Write the interval
Step 5: Check the conditions
The sample is random, and and are both large, so the normal approximation is reasonable.
Try it yourself first, then check the working one step at a time.
Answer
The approximate 95% confidence interval is : we are 95% confident that between 59.3% and 64.7% of Queensland adults wore sunscreen.
Method
.
Standard error , kept to full accuracy.
standard error.
, rounded at the end.
Watch out for
Using 62 instead of 0.62 inside the square root.
Rounding the standard error to 0.01 before multiplying by 1.96.
Without a calculator: a random sample of 600 people gives . Using , find the 95% confidence interval for . Give the exact endpoints.
Common mistake
Three slips that cost marks
- Using a percentage: gives nonsense. Use .
- 'Rounding the standard error early: for and it is 0.012817…; rounding it to 0.01 gives instead of . Keep full accuracy until the end.'
- Missing the root: gives a margin of about 0.0003, far too small for a poll of 1500.
In a random sample of 500 Queensland nurses, 180 said they planned to leave the profession within five years. Calculate a 95% confidence interval for the proportion of all Queensland nurses who plan to leave within five years. Use and give the endpoints correct to 3 decimal places.
Worked example
A 99% interval, and why it is wider
In a random sample of 900 Queensland five-year-olds, 783 were fully vaccinated.
(a) Calculate an approximate 99% confidence interval for the proportion of all Queensland five-year-olds who are fully vaccinated, correct to 3 decimal places.
(b) The 95% interval from the same data is . Explain why the 99% interval is wider.
Step 1: Find the sample proportion and z
. For 99% confidence, .
Step 2: Calculate the standard error
Step 3: Calculate the margin of error
Step 4: Write the interval
Step 5: Explain the extra width
The data, and , are the same, so the standard error is the same. To capture in 99% rather than 95% of samples the interval must reach further from : rises from 1.96 to 2.576, so the margin of error rises from 0.022 to 0.029.
Confidence is bought with width. The only way to get more confidence without more width is a bigger sample.
Try it yourself first, then check the working one step at a time.
Answer
(a) . (b) Higher confidence needs a larger (2.576 instead of 1.96) with the same standard error, so the margin of error and the width are larger.
Method
Find for the confidence level.
Same and means the same standard error, so the margin is proportional to .
Watch out for
Thinking a 99% interval should be narrower because it is "more accurate".
Note
When is the approximation reasonable?
The interval relies on being approximately normal, which needs a random sample and a large enough . A common guide is that and should both be at least 10. With 744 successes and 456 failures in the sunscreen survey, that is easily met. A sample of 20 with 2 successes is not, and its interval would be unreliable.
Without technology
Paper 1 questions use numbers whose standard error is a tidy square root, such as , and give . Work exactly, then multiply by .
With technology
Most calculators have a one-proportion interval (often called 1-PropZInt): enter , and the level . Still write the formula with the numbers substituted, so the marker sees your method. The calculator uses to full accuracy, so its endpoints can differ from yours in the fourth decimal place.
Summary
The approximate confidence interval for is .
It comes from the normal approximation to , with replacing in the standard deviation.
Steps: , , standard error, margin , then , rounded at the end.
It needs a random sample and a large enough ( and both at least about 10).
The interval is centred on ; a 99% interval from the same data is wider than a 95% one.
Finished the lesson?
Try the 2 quick checks above and the lesson completes itself, or mark it complete now.