hanegreefs.com/Statistics I
Chapter 10 of 10

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 ȳ:

Formula
E(ȳ) = μSD(ȳ) = σ / √n

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.

Worked example

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.

1

Spread of the mean

SD(ȳ) = 6/√36 = 1 ml
2

One bottle between 498 and 502 ml

z from −0.33 to 0.33: about 26% (if single fills are normal)
3

Sample mean between 498 and 502 ml

z from −2 to 2: about 95%
Answer

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.

Common trapσ/√n is the spread of the sample mean, not of the individual values. The individual values keep spreading with σ, however large the sample.

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:

Formula
SE(ȳ) = s / √n95% interval: ȳ ± 2 × s / √n (only for a large sample)
Worked example

Average basket value

A random sample of 64 shoppers spends on average 52.40 euro per visit, with s = 9.60 euro.

1

Givens

n = 64, ȳ = 52.40 euro, s = 9.60 euro; asked: a 95% interval for the mean spending μ of all shoppers
2

Conditions

random sample, far fewer than 10% of all shoppers, and n = 64 is large
3

Standard error

SE = 9.60/√64 = 9.60/8 = 1.20 euro
4

Margin of error

ME = 2 × 1.20 = 2.40 euro
5

Interval

52.40 ± 2.40, from 50.00 to 54.80 euro
Answer

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).

Loading cards
Question
Click, tap or press space to flip
Answer

Multiple choice (8)

Question 1 · Chapter 10

Population SD 12, samples of 36. SD(ȳ) =

Why: 12/√36.
Question 2 · Chapter 10

The central limit theorem says that for large n...

Why: It is about the sampling distribution of ȳ.
Question 3 · Chapter 10

n = 100, ȳ = 80, s = 15. The approximate 95% interval is...

Why: 80 ± 2 × 1.5.
Question 4 · Chapter 10

To halve the margin of error of a mean you need...

Why: SE falls with √n.
Question 5 · Chapter 10

A 95% interval for mean commute time is 24 to 28 minutes. Which statement is wrong?

Why: The interval is about the mean, not individuals.
Question 6 · Chapter 10

Which situation is NOT suited to ȳ ± 2 s/√n?

Why: Small n and skewness break the normal approximation.
Question 7 · Chapter 10

Single values are N(50, 10). For samples of 25, P(ȳ > 54) is about...

Why: SD(ȳ) = 2, so z = 2.
Question 8 · Chapter 10

A survey with only volunteers gives a very narrow interval. This means...

Why: Width only reflects sampling error.

Exam-style open questions (2)

Open question · Chapter 10

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.
Open question · Chapter 10

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.