Priority labels: ImportantNeutralLess important show where to spend revision time.
From proportions to meansNeutral
The logic of the previous chapter carries over unchanged; only the ingredients change. The parameter is now a mean μ, the statistic is the sample mean ȳ, and the reference model becomes Student's t rather than the Normal.
| Proportion | Mean | |
|---|---|---|
| Data | Categorical (success/failure) | Quantitative |
| Parameter → statistic | p → p̂ | μ → ȳ |
| SD of the statistic (known) | √(pq/n) | σ/√n |
| Standard error (estimated) | √(p̂q̂/n) | s/√n |
| Reference model | Normal (z) | Student's t, df = n − 1 |
The Central Limit Theorem and the meanImportant
Averages of independent observations become approximately Normal as n grows, whatever the population looks like. The CLT is about the distribution of sample means, not of the raw data. Heavier skew needs a bigger n before the approximation is good; very skewed data can need well over a hundred observations.
Averaging cancels noise, hence the √n. In practice σ is unknown, so you estimate it with s and report the standard error SE(ȳ) = s/√n. With s ≈ 9.84, n = 25 gives SE ≈ 1.97, while n = 100 gives ≈ 0.98: four times the data, half the uncertainty.
Why t instead of zImportant
Swapping σ for s adds a second source of randomness, particularly in small samples. William Gosset (writing as "Student", 1908) showed that the standardised mean then follows a distribution with heavier tails than the Normal.
- t is symmetric, bell-shaped and centred at 0; fewer degrees of freedom means fatter tails.
- As df grows, t converges to the standard Normal.
- For the same confidence level t* > z*, so t-intervals are wider. Use t whenever σ is estimated — in this course, practically always.
Why n − 1? The deviations from ȳ are forced to add to zero, so only n − 1 of them are free. One degree of freedom is spent for each parameter estimated from the same data.
| Confidence | z* | t* (df 9) | t* (df 29) |
|---|---|---|---|
| 90% | 1.645 | 1.833 | 1.699 |
| 95% | 1.960 | 2.262 | 2.045 |
| 99% | 2.576 | 3.250 | 2.756 |
The one-sample t-intervalImportant
Average customer age
A survey of 25 customers gives ȳ = 31.84 years and s = 9.84 years. Find a 95% interval for the mean age.
Standard error
Critical value
Margin and interval
We are 95% confident that the mean customer age is between about 27.8 and 35.9 years.
Given a reported interval [L, U] you can work backwards: ȳ = (L + U)/2 and ME = (U − L)/2.
Conditions to check firstImportant
- Independence. Randomisation, plus the 10% condition when the population is small. You judge this from how the data were gathered; the data cannot prove it.
- Nearly Normal. Inspect a histogram, boxplot or Normal probability plot of the sample.
| Sample size | What you need |
|---|---|
| n < 15 | Very nearly Normal: no outliers, no visible skew |
| 15 – 40 | Unimodal and reasonably symmetric |
| 40 – 100 | Fine unless extremely skewed; mention outliers |
| 100 + | Generally safe; still watch outliers |
Bimodal data suggest two mixed groups (split them). Strong skew may call for a transformation or a non-parametric method (chapter 11). A genuine outlier should not be deleted silently: analyse with and without it.
What controls the widthImportant
- More confidence → larger t* → wider.
- Larger n → smaller SE → narrower.
- More variability (bigger s) → wider.
Misreadings to avoid: "95% of customers are between 27.8 and 35.9" (the interval is about the mean, not individuals) and "there is a 95% chance μ is in here" (μ is fixed).
Sample size for a target marginImportant
Before collecting data df is unknown, so use z* in place of t* and bring an estimate of s from a pilot study, history or expert knowledge.
Tightening the age interval
With s ≈ 9.84, how many customers give a 95% margin of 2 years?
Apply the formula
Round up to 93 customers. The realised margin will differ slightly because the new s and t* differ.
Bootstrap interval (optional reading)Less important
The lecturer flags the bootstrap as interesting but not examinable. Idea: resample the data with replacement many times, record each resample's mean, and take the middle 95% of those means as the interval. It needs no Normality assumption but does need software and a representative sample.
Tools: TI-84 and RNeutral
TI-84: STAT ▸ TESTS ▸ 8:TInterval (data or summary statistics); critical values via invT(area left, df). R: the interval is part of the t-test output.
Key takeaways
- SE(ȳ) = s/√n; standardising ȳ with s gives a t statistic with n − 1 degrees of freedom.
- Interval = ȳ ± t*·SE; t-intervals are wider than z-intervals, especially for small n.
- Check independence and near-Normality (more strictly for small n); plan n with (z*s/ME)².