Sampling and estimation
🎯What you need to be able to do
- Explain what a random sample is and why sampling is used.
- Use the distribution of the sample mean, \( \mathrm{N}\!\left(\mu, \frac{\sigma^{2}}{n}\right) \).
- State and apply the Central Limit Theorem.
- Calculate unbiased estimates of a population mean and variance.
- Construct a confidence interval for a population mean.
- Construct a confidence interval for a population proportion, and interpret it correctly.
📚The mathematics
Samples
A random sample is one in which every member of the population has an equal chance of being selected, and the selections are independent. Sampling is used because a census is usually too slow, too expensive, or destructive — you cannot test every fuse to destruction and still have fuses to sell.
Questions often ask why a proposed method is not a random sample. The answer names the group that is systematically over- or under-represented: asking people in a shopping centre on a weekday morning excludes everyone at work, so the sample is biased regardless of its size. A large biased sample is worse than a small random one, because it produces a confident wrong answer.
The distribution of the sample mean
From S2 2, for a sample of size \(n\) drawn from a population with mean \( \mu \) and variance \( \sigma^{2} \):
If the population is normal, \( \bar{X} \) is exactly normal. The quantity \( \dfrac{\sigma}{\sqrt{n}} \) is called the standard error of the mean.
The Central Limit Theorem
For a large sample — in practice \( n > 30 \) —
whatever the distribution of the population. That last clause is the whole content of the theorem, and it is what the mark is for: the population may be skewed, discrete, or of unknown shape, and the sample mean is still approximately normal.
The theorem is about \( \bar{X} \), not about the population — a large sample from a skewed population does not make the data normal. If the population is already normal, no theorem is needed and no restriction on \(n\) applies.
Unbiased estimates
An estimator is unbiased if its expected value equals the parameter it estimates. For the mean, the sample mean does the job. For the variance, the divisor is \( n - 1 \):
Confidence intervals for a mean
with \( z = 1.96 \) for 95%, \( 1.645 \) for 90% and \( 2.576 \) for 99%. When \( \sigma \) is unknown, use \(s\) in its place — legitimate here because the sample is large.
Note what determines the width: the confidence level and \( \sqrt{n} \). Higher confidence means a wider interval, and halving the width needs four times the sample. There is no free lunch in either direction.
Confidence intervals for a proportion
With \( \hat{p} = \dfrac{\text{number of successes}}{n} \),
This is the normal approximation to the binomial from S1 5, divided through by \(n\).
What a confidence interval means
This is examined as a written statement, and the wrong version is very common. A 95% confidence interval means:
If many samples were taken and an interval constructed from each, about 95% of those intervals would contain the true population mean.
It does not mean there is a 95% probability that \( \mu \) lies in this particular interval. \( \mu \) is a fixed number: it is either in this interval or it is not. The 95% describes the reliability of the method, not the status of one interval.
✏️Worked example
(a) The unbiased estimate of the mean is
and, using the \( n - 1 \) divisor,
so \( s = 4.462 \).
(b) The standard error is \( \dfrac{s}{\sqrt{n}} = \dfrac{4.462}{\sqrt{50}} = 0.6310 \). With \( n = 50 > 30 \) the Central Limit Theorem applies, so
giving \( (23.1,\ 25.5) \) hours.
(c) Here \( \hat{p} = \dfrac{80}{200} = 0.4 \), so
giving \( (0.332,\ 0.468) \).
(d) If the sampling procedure were repeated many times and an interval constructed from each sample, about 95% of those intervals would contain the true mean lifetime. It is a statement about the long-run reliability of the method, not about this one interval.
📝Practise
Work through these, then reveal the answer.
1. A sample of 8 values is 12, 15, 11, 14, 18, 13, 16, 17. Find unbiased estimates of the population mean and variance.
2. State the Central Limit Theorem, and explain why it is needed when the population distribution is unknown.
3. A random sample of 36 measurements has mean 500 from a population with known standard deviation 12. Construct a 90% confidence interval for the population mean.
4. With \( \sigma = 12 \), what sample size is needed for a 95% confidence interval of total width 2?
5. A student says: "The 95% confidence interval is (23.1, 25.5), so there is a 95% probability that \( \mu \) lies between 23.1 and 25.5." Explain why this is wrong.
6. In a survey, 45 of 300 people said they cycle to work. Construct a 90% confidence interval for the population proportion.
🔗Go deeper — other people’s work
These are external resources, not mine. If one stops working, tell me and everything above it on this page still stands.
- Seeing Theory (Brown University) — the Central Limit Theorem and confidence intervals, both animated
- Khan Academy — sampling distributions and confidence intervals
- Rossman/Chance applets — simulate many intervals and watch roughly 95% of them capture \( \mu \)