Sampling distribution and confidence interval for a mean
The sampling distribution of the sample mean, the central limit theorem, SD of y-bar equal to sigma over root n, the standard error s over root n, the large-sample 95% interval y-bar plus or minus 2 SE, how to read it, and its limits.
Textbook: Ch. 11, sections 11.1 to 11.3 and "Cautions about interpreting confidence intervals" · Sessions: Module 10, last lecture and tutorial · About 55 minutes
The sampling distribution of a mean and the central limit theoremImportant
Draw many random samples of size n from a population with mean μ and standard deviation σ, and compute each sample mean ȳ. The distribution of those means is the sampling distribution of ȳ:
The central limit theorem (CLT): when the sample is large enough, ȳ is approximately normal, whatever the shape of the population. The more skewed the population, the larger n has to be; the course works with large samples (as a rule of thumb, n of 30 or more), and uses independence (a random sample under 10% of the population) as the other condition.
Filling bottles
A machine fills bottles with a mean of 500 ml and an SD of 6 ml. An inspector weighs samples of 36 bottles.
Spread of the mean
One bottle between 498 and 502 ml
Sample mean between 498 and 502 ml
Averages vary √36 = 6 times less than single bottles. A sample mean of 497 ml would be 3 SDs below 500 ml and a clear signal that the machine needs adjusting.
The confidence interval for a mean (large sample)Important
In practice σ is unknown, so we replace it by the sample standard deviation s. That gives the standard error of the mean, and with the 95 of the 68-95-99.7 rule the interval from the formula sheet:
Average basket value
A random sample of 64 shoppers spends on average 52.40 euro per visit, with s = 9.60 euro.
Givens
Conditions
Standard error
Margin of error
Interval
We are about 95% confident that the mean spending of all shoppers lies between 50.00 and 54.80 euro. TI-84: ZInterval with σ = 9.6, x̄ = 52.4, n = 64 (it uses 1.96: 50.05 to 54.75 euro). In R: t.test(y) on the raw data.
The same reasoning as for proportions applies: a larger n gives a narrower interval (four times n halves the margin of error), and a higher confidence level gives a wider one.
Cautions about interpreting the intervalImportant
- The interval is about the population mean, not about individual values. Most single shoppers spend far outside 50.00 to 54.80 euro.
- The 95% belongs to the method: about 95% of intervals from repeated samples capture μ. Do not say "μ lies in this interval with probability 0.95".
- The interval only accounts for sampling error. A biased sample (chapter 8) gives a misleading interval no matter how narrow it is.
- With a small sample from a skewed population, ȳ ± 2 s/√n is not justified. Statistics II replaces the normal model by the t-distribution for that case.
A claimed value of μ that lies outside the interval is not supported by the data; a value inside it is plausible. Formal hypothesis tests that build on this idea follow in Statistics II.
Key takeaways
- E(ȳ) = μ and SD(ȳ) = σ/√n.
- CLT: for a large random sample, ȳ is approximately normal whatever the population shape.
- SE(ȳ) = s/√n.
- Large-sample 95% interval: ȳ ± 2 s/√n (TI-84 ZInterval uses 1.96).
- The interval is about μ, not about individuals, and does not fix bias.
- Small samples from skewed populations need other methods (Statistics II).
Multiple choice (8)
Population SD 12, samples of 36. SD(ȳ) =
The central limit theorem says that for large n...
n = 100, ȳ = 80, s = 15. The approximate 95% interval is...
To halve the margin of error of a mean you need...
A 95% interval for mean commute time is 24 to 28 minutes. Which statement is wrong?
Which situation is NOT suited to ȳ ± 2 s/√n?
Single values are N(50, 10). For samples of 25, P(ȳ > 54) is about...
A survey with only volunteers gives a very narrow interval. This means...
Exam-style open questions (2)
Interval from summary statistics
A random sample of 81 delivery drivers drives on average 142 km a day, with s = 27 km. Build an approximate 95% interval for the mean, interpret it, and say whether a manager's claim of 150 km is plausible.
Show the worked outline
- SE = 27/√81 = 3 km; ME = 2 × 3 = 6 km.
- Interval 142 ± 6: from 136 to 148 km.
- We are about 95% confident that the mean daily distance of all drivers lies between 136 and 148 km.
- 150 km lies outside the interval, so the data do not support the claim.
One value versus a mean
Daily sales of a shop have mean 1,200 euro and SD 300 euro. (a) What is the SD of the mean of 50 days? (b) Is a 50-day average above 1,300 euro likely? (c) Why can the CLT be used even if daily sales are skewed?
Show the worked outline
- (a) 300/√50 ≈ 42.4 euro.
- (b) z = 100/42.4 ≈ 2.36; P ≈ 0.009: very unlikely.
- (c) n = 50 is large, so the mean of independent days is approximately normal whatever the shape of daily sales.
LabConfidence interval for a mean
The default numbers are the basket value example.
LabCentral limit theorem lab
The default numbers are the bottle filling example.