Confidence intervals for a mean
Build and interpret a 95% confidence interval for a mean from a sample of 25 invoices, with the z interval when σ is known and the t interval when it is not, and say what 95% confidence means.
It opens on
A sample of 25 invoices averages $212.40 and σ is $40. Is the range likely to catch the true mean of all invoices about $2, about $16 or about $60 either side of $212.40?
Why it matters
A manager gets one sample mean and must report a range for the true mean that other people can act on, together with how much to trust that range.
Good to know first
- standard error
Step by step
The interval when σ is known
Compute and read a 95% z interval x̄ ± z*σ/√n for the mean invoice.
The margin of error is 1.96 × 8 = 15.68, so the interval is 212.40 ± 15.68.
1.96 × 8 = 15.68
A common mix-up
There is a 95% probability that μ lies in this particular interval.
In fact: μ is fixed, and 95% describes the method: about 95% of intervals built this way catch it, though we cannot tell if this one did.
The t interval and Excel
Compute a 95% t interval when only s is known, and read the matching Excel output.
The margin of error is 2.0639 × 7.70 = 15.89, which is the last line of the Excel output.
2.0639 × 7.70 = 15.89
A common mix-up
With s in place of σ we can still use 1.96.
In fact: The extra uncertainty from s needs the t multiplier, which is larger, especially for small samples.
What 95% confidence means
Explain 95% confidence as the long-run success rate of the method, using repeated samples from a known population.
A common mix-up
A 95% interval contains 95% of the individual invoices.
In fact: It is a range for the mean, and individual invoices vary far more, with a standard deviation of about 38.5.
Try it
A sample of 36 deliveries has mean 4.2 days and known σ = 1.2. Find the 95% z interval.Answer
SE = 0.2, margin 0.392, so 3.81 to 4.59 days
Hint: x̄ ± 1.96 × σ / √n
A sample of 16 orders has mean $80 and s = $12. With t* = 2.1314, find the 95% interval.Answer
SE = 3, margin 6.39, so $73.61 to $86.39
Hint: x̄ ± t* s / √n
A report says the 95% interval for the mean delivery time is 3.8 to 4.6 days. Say what that means in one sentence.Answer
We are 95% confident that the mean delivery time of all deliveries lies between 3.8 and 4.6 days
Hint: It is about the mean
For 99% confidence, z* = 2.576. What is the margin of error?Answer
2.576 × 8 = 20.61
A sample of 16 has the same s. How many degrees of freedom does it have, and is its t* larger or smaller than 2.0639?Answer
15 degrees of freedom, and t* = 2.1314 is larger
