MathematicsCore24 min read

Sampling and Estimation

What a sample can tell you about a population it came from

This topic appears in:

01

Why sample at all

Definition

Random sample — A sample in which every member of the population is equally likely to be chosen, and the choices are independent of one another.

Measuring an entire population is usually impossible, ruinously expensive, or destructive — you cannot test every match in a factory by striking it. So a sample is taken and used to say something about the whole.

For that inference to be sound the sample must be random: every member of the population must have an equal chance of selection, and selections must be independent. A sample that is convenient rather than random is biased, and no amount of statistical machinery afterwards can repair it.

This is the reason opinion polls conducted only among people who volunteer answers are unreliable: those who choose to respond differ systematically from those who do not.

02

The distribution of the sample mean

Take a sample, compute its mean, and you get a number. Take another sample and you get a slightly different number. So the sample mean is itself a random variable, and it has its own distribution — the key object of the whole topic.

Two facts describe it. Its mean equals the population mean, so it is centred on the right answer. Its variance is σ²/n, so it is less spread out than the population, and increasingly so as the sample grows.

The central limit theorem supplies the third fact and is what makes the topic usable: for a large enough sample, is approximately normal regardless of the shape of the population. The population may be skewed, bimodal, or discrete; the distribution of its sample means still tends to a bell.

E(X̄) = μVar(X̄) = σ²/nso s.d.(X̄) = σ/√nfor large n:X̄ ~ N(μ, σ²/n)approximately(central limit theorem)the √n is why quadrupling the sample only halves the uncertainty
the sample meana random variable, different for each sample
σ/√n
the standard errorthe spread of the sample mean, not of the population
n large
usually n > 30not needed at all if the population is already normal

The sample mean is normally distributed about μ with standard deviation σ/√n. Because that spread shrinks as n grows, the same z-score corresponds to a much narrower band of actual values for a large sample than a small one.

σ/√n, not σ

When standardising a sample mean the denominator is the standard error σ/√n, not the population standard deviation. Using σ by itself treats one sample mean as though it were a single observation and produces a z-score that is too small by a factor of √n — which typically turns a significant result into a non-significant one.

03

Estimating what you do not know

The population mean is estimated by the sample mean, which needs no adjustment. The population variance is different: the obvious formula computed about the sample mean comes out systematically too small, because the sample mean sits, by construction, in the middle of its own data.

Dividing by n − 1 instead of n corrects exactly this. The result is the unbiased estimate , meaning that over many samples its average equals the true population variance.

unbiased estimate of μ:x̄ = Σx / nunbiased estimate of σ²:s² = ( Σx² − (Σx)²/n ) / (n − 1)= ( Σ(x − x̄)² ) / (n − 1)divide by n − 1, never by n, when estimating a population variance
n − 1
the degrees of freedomone is used up by estimating the mean
the unbiased estimateslightly larger than the sample variance
Σx²
the sum of squaressquare each value, then add — not the square of the sum
04

Confidence intervals

A single estimate is a point with no indication of how much to trust it. A confidence interval gives a range instead, built by taking the sample mean and reaching out a fixed number of standard errors either side.

The interpretation must be stated carefully, and examiners are strict about it. A 95% confidence interval does not mean there is a 95% probability that μ lies inside this particular interval — μ is a fixed number and is either in it or not. It means that if the procedure were repeated many times, 95% of the intervals produced would contain μ.

confidence interval for μ:x̄ ± z · σ/√n(σ known)x̄ ± z · s/√n(σ estimated, n large)z = 1.645for 90%z = 1.960for 95%z = 2.576for 99%higher confidence means a wider interval — certainty costs precision
z
the critical valuefrom the normal table for the stated confidence
σ/√n
the standard errorhalved by quadrupling the sample size
width
2z·σ/√nnarrower with a larger sample, wider with more confidence
Worked example

A sample of 100 components has mean length 25.4 mm. The population standard deviation is known to be 2 mm. Find a 95% confidence interval for the population mean.

  1. Standard error = σ/√n = 2/√100 = 0.2 mm.The spread of the sample mean, not of the individual components.
  2. For 95% confidence, z = 1.960.Leaving 2.5% in each tail, so the table value is for 0.975.
  3. Interval = 25.4 ± 1.960 × 0.2 = 25.4 ± 0.392.Reaching out just under two standard errors either side of the estimate.
  4. = (25.0, 25.8) mm.Quoted as an interval, which is what the question asks for.
  5. Interpretation: if this procedure were repeated many times, 95% of the intervals produced would contain the true mean.The correct phrasing. Saying "there is a 95% chance μ is in this interval" is the version that loses the mark.

(25.0, 25.8) mm

Points examiners return to

  1. The standard error is σ/√n, and it shrinks only with the square root of the sample size.
  2. Use n − 1 when estimating a population variance from a sample.
  3. The central limit theorem is not needed if the population is already normal.
  4. A wider interval means more confidence, not more accuracy.
  5. Quadrupling n halves the width of the interval.
  6. State the interpretation in terms of repeated sampling, never as a probability about this one interval.
05

How samples are actually taken

Questions ask you to name and evaluate a sampling method, so the common ones are worth distinguishing — particularly on the point of whether each produces a genuinely random sample.

In simple random sampling every member has an equal chance, usually via numbered lists and random numbers. Systematic sampling takes every kth member from a random start — quick, but it fails badly if the list has a repeating pattern of period k. Stratified sampling divides the population into groups and samples each in proportion, which improves accuracy when the groups genuinely differ. Opportunity sampling takes whoever is available, and is not random at all.

MethodHowMain weakness
Simple randomrandom numbers on a numbered listneeds a full list of the population
Systematicevery kth from a random startbreaks if the list has a period of k
Stratifiedproportional shares of each groupgroup sizes must be known
Opportunitywhoever is to handnot random — biased by who was there
Self-selectedvolunteers respondvolunteers differ from non-volunteers

Larger is not the same as better

A biased sample does not improve by being bigger — it just measures the wrong thing more precisely. A survey of ten thousand volunteers is less trustworthy than a genuinely random sample of two hundred, because increasing n narrows the confidence interval around an answer that was systematically wrong to begin with.

Practice questions

5 questions · 16 marks · full working on every one

Try each one on paper first, then open the working. The marks are shown where they are actually awarded, because that is where they are actually lost.

Short questions

3 · 6 marks

Two marks each, in the style of the short-question section of the paper. Answer in two or three lines.

SQ1[2 marks]
Explain what is meant by a random sample, and why a non-random sample cannot be corrected afterwards.
Model answer

A random sample is one in which every member of the population has an equal chance of being selected and the selections are independent. A non-random sample is biased — it systematically over- or under-represents part of the population — and since the direction and size of that bias are unknown, no calculation performed afterwards can remove it.

Examiner tip. One mark for the definition, one for identifying bias as systematic and unquantifiable.

SQ2[2 marks]
State the mean and variance of the sample mean X̄ for a sample of size n from a population with mean μ and variance σ².
Model answer

E(X̄) = μ and Var(X̄) = σ²/n. The standard deviation of X̄, called the standard error, is therefore σ/√n.

Examiner tip. One mark each. The variance divides by n; the standard deviation divides by √n.

SQ3[2 marks]
Why is the population variance estimated by dividing by n − 1 rather than n?
Model answer

The deviations are measured from the sample mean, which sits in the middle of the sample by construction. This makes the sum of squared deviations systematically smaller than it would be about the true population mean, so dividing by n would underestimate the variance. Dividing by n − 1 corrects the bias exactly.

Examiner tip. The mark is for identifying the underestimate and its cause, not merely stating the rule.

Solved numericals

1 · 4 marks

Full working, one step per line, with the marks shown where they are awarded.

N1[4 marks]
A sample of 8 measurements gives Σx = 96 and Σx² = 1180. Calculate unbiased estimates of the population mean and variance.
Full working
  1. x̄ = 96/8 = 12The sample mean is already unbiased and needs no correction.[1]
  2. s² = (Σx² − (Σx)²/n)/(n − 1) = (1180 − 96²/8)/7Setting up with n − 1 in the denominator.[1]
  3. = (1180 − 1152)/7 = 28/796²/8 = 9216/8 = 1152.[1]
  4. s² = 4Dividing by 8 instead of 7 would give 3.5, the standard wrong answer.[1]

x̄ = 12, s² = 4

Exam questions

1 · 6 marks

Multi-part questions with a full mark scheme.

Q1[6 marks]
The masses of bags of sugar have standard deviation 12 g. A random sample of 64 bags has mean 1002 g.
(a) Calculate a 99% confidence interval for the population mean.
(b) State the width of the interval.
(c) Find the sample size needed to halve that width.
(d) Interpret the interval correctly.
Mark scheme
  1. (a) Standard error = 12/√64 = 1.5 g√64 = 8, so the standard error is much smaller than σ.[1]
  2. z = 2.576 for 99% confidence, so interval = 1002 ± 2.576 × 1.5 = 1002 ± 3.864A higher confidence level needs a larger z and gives a wider interval.[1]
  3. = (998.1, 1005.9) gQuoted to one decimal place.[1]
  4. (b) Width = 2 × 3.864 = 7.73 gThe full width is twice the half-width.[1]
  5. (c) Width is proportional to 1/√n, so halving it needs n multiplied by 4: n = 256The √n is why the cost of precision grows so quickly.[1]
  6. (d) If the sampling procedure were repeated many times, 99% of the intervals constructed would contain the true population mean.Phrasing it as a probability about this one interval loses the mark, since μ is fixed.[1]

(a) (998.1, 1005.9) g; (b) 7.73 g; (c) n = 256; (d) repeated-sampling interpretation