Introduction
Statistics starts with data, and data usually comes from a sample rather than the whole population. How you choose the sample decides whether your conclusions can be trusted. This topic covers the vocabulary (population, sample, census, sampling frame, sampling unit), the main sampling methods with their advantages and disadvantages, and how to choose between them.
Why it matters
In 1936 a US magazine polled 2.4 million people and predicted the wrong president, because its sample came from telephone directories and car registrations, which only richer voters had. A much smaller but well-chosen sample predicted correctly. How you sample matters more than how many you ask.
Intuitive explanation
Imagine tasting soup. If it is well stirred, one spoonful tells you about the whole pot. Random sampling is the stirring: it makes every part of the population equally likely to appear, so the sample looks like a small copy of the population. Bias is tasting only from the top, where the salt has not mixed in.
Formal definitions
- Population: the whole set of items of interest.
- Census: observes or measures every member of the population.
- Sample: a subset of the population.
- Sampling unit: an individual member that can be sampled.
- Sampling frame: a list of sampling units, used to select the sample.
- Simple random sampling: every sample of size is equally likely; use a numbered frame and random numbers.
- Systematic sampling: choose every th item from the frame, starting at a random point, where .
- Stratified sampling: split the population into groups (strata) and take a simple random sample from each, in proportion to the group size.
- Quota sampling: the interviewer fills quotas for each group, choosing whoever is available.
- Opportunity (convenience) sampling: use whoever is available at the time.
Notation
- is the population size and the sample size.
- Stratum sample size: .
Comparison table
| Method | Needs a frame? | Main advantage | Main disadvantage |
|---|---|---|---|
| Simple random | Yes | Free of bias | Frame may be hard to obtain |
| Systematic | Yes | Simple, quick for large populations | Bias if the list has a pattern |
| Stratified | Yes | Reflects population structure | Strata must be clearly defined |
| Quota | No | Quick, no frame needed | Not random; interviewer bias |
| Opportunity | No | Easy and cheap | Unlikely to be representative |
Key ideas
A census gives completely accurate information, but is expensive, slow, and impossible if testing destroys the item (such as testing how long batteries last). A sample is cheaper and quicker, but there is natural variation between samples, and it may be biased.
Larger random samples give better estimates, because sample-to-sample variation shrinks. A larger biased sample does not fix bias.
In a simple random sample of from , every member is chosen with probability , and every possible sample of size is equally likely. Systematic and proportional stratified samples also give every member probability , but they allow far fewer possible samples.
- Capture–recapture: mark animals; later catch , of which are marked. Then , so .
- Re-weighting: if a group makes up a share of the population, its sample result should count with weight , whatever its share of the sample.
Why randomness removes bias
With random selection, no personal choice decides who is included, so no group is systematically favoured. Every unit has the same chance, so on average the sample's composition matches the population's. Bias can still come from elsewhere: a poor frame, non-response, or leading questions.
Draw units one at a time without replacement, each time uniformly from those not yet chosen. A particular ordered sequence of distinct units has probability . Each unordered sample arises from orders, so every sample of size has probability
That is exactly the definition of a simple random sample. A given unit lies in of the samples, so it is chosen with probability .
∎With interval and a uniform random start, each unit belongs to exactly one of the possible samples, so it is chosen with probability . In a proportional stratified sample a unit in stratum is chosen with probability (Q49). So all three random methods give every unit the same chance. Only simple random sampling gives every subset of size the same chance: systematic sampling allows just subsets, and stratified sampling allows only the balanced ones (Q59).
∎Let indicate that unit is in the sample, so . If for every , linearity gives
Independence is never needed. The designs differ not in their mean but in their variance, which depends on the joint probabilities : see the next section.
∎Methods
Number the sampling frame to , generate random numbers (ignoring repeats and numbers out of range) until you have different units.
Compute , choose a random start between and , then take every th unit.
For each stratum, sample size , rounded sensibly so the total is . Then take a simple random sample within each stratum.
Examples
A school has 300 Year 12 and 200 Year 13 students. A stratified sample of 50: from Year 12 and from Year 13.
More examples are in the Worked examples tab.
Common mistakes
Quota sampling uses groups like stratified sampling, but the choice within each group is not random.
"It is quicker" earns nothing on its own. Say why in context: "no sampling frame is needed, so the researcher can start straight away in the town centre".
Systematic sampling needs a random starting point; otherwise it is not random.
Applications
- Opinion polls use quota and stratified methods by age, region and voting history.
- Quality control: a factory tests every 100th item from a production line (systematic).
- Ecology: quadrats placed at random positions estimate plant populations.
Connections
- Data presentation: summarising the data you collected.
- Hypothesis testing assumes a random sample.
- Distributions: sample results vary according to a distribution.
Summary
- Population, census, sample, sampling unit, sampling frame.
- Random: simple random, systematic (, random start), stratified (proportional).
- Non-random: quota, opportunity.
- Give advantages and disadvantages in context.
Worked examples
Try each one yourself first, then open the solution.
A company has 120 office staff, 240 factory staff and 40 managers. Describe how to take a stratified sample of 50 employees.
Show the solution
- 1Total
.
- 2Proportional sizes
Office , factory , managers .
- 3Select within strata
Number each group separately and use random numbers to choose 15, 30 and 5 people respectively.
15 office, 30 factory, 5 managers, chosen at random within each group
Describe how to take a systematic sample of 20 from a list of 600 customers.
Show the solution
- 1Interval
.
- 2Random start
Choose a random number between 1 and 30, say 17.
- 3Select
Take customers 17, 47, 77, ..., 587.
Every 30th customer from a random start in 1–30
A researcher wants the views of 60 shoppers: 30 men and 30 women. Explain the difference between using quota sampling and stratified sampling here.
Show the solution
- 1Quota
The researcher stands in the shopping centre and interviews any men and women until each quota of 30 is filled. No frame is needed, but the choice of who to ask is not random.
- 2Stratified
The researcher needs a list of all shoppers split by gender, and selects 30 of each at random. This is random but needs a frame, which is unlikely to exist for shoppers.
Both use groups; only stratified sampling selects randomly within them
A manufacturer wants to know the mean lifetime of its light bulbs. Explain why a census is not appropriate.
Show the solution
- 1Testing destroys
Measuring a bulb's lifetime means running it until it fails.
- 2Conclude
A census would destroy every bulb, leaving none to sell. A sample must be used.
Testing is destructive
University-level ideas and the deeper mathematics behind this topic. Not needed for exams, but this is where the subject really opens up.
Design-based inference: inclusion probabilities and variance (university)
In survey sampling the population values are fixed numbers. All randomness comes from the design: which units we choose. This is different from the usual statistical model, where the data themselves are random.
For a sampling design, is the first-order inclusion probability and the second-order one. For simple random sampling, and .
If every , then is an unbiased estimator of the population total , with
Write . Then . For the variance, , and .
∎Each sampled unit "stands for" units of the population; that is the idea behind the re-weighting in Q43. Units with (like people missing from the frame, Q17) can never be represented, and no estimator can recover them: this is why coverage matters more than cleverness.
Putting and the above into the Horvitz–Thompson variance, and dividing by to pass from totals to means, gives
which is the formula of Q52, written with the divisor . The factor is the finite population correction. Remarkably, when is large the precision depends on alone, not on : a poll of people is about as accurate for a country of million as for a city of million.
An unbiased estimate of this variance is , with the sample variance (divisor ). This is why textbooks use : under simple random sampling.
Why stratification works, and optimal allocation (university)
Split the population into strata with sizes , weights , means and within-stratum variances . Take independent simple random samples of size in each stratum and use .
The samples in different strata are independent, so the variances simply add. The crucial point is that only within-stratum variances appear.
The population variance splits into a within part and a between part:
Write and square. The cross term is , because deviations from a stratum's own mean add to zero.
∎Ignoring finite population corrections, proportional allocation () gives , while simple random sampling gives roughly . So proportional stratification is never worse (to this approximation), and removes the entire between-strata term. Stratify on whatever variable best separates the means: that is what made the design of Q53 thirty times better.
For fixed total (and ignoring finite population corrections), is minimised by , and the minimum is .
The proof is a single use of the Cauchy–Schwarz inequality (Q54). If sampling in stratum costs per unit and the budget is fixed, the same argument gives : sample more where the stratum is big, varied and cheap. Comparing with proportional allocation,
so Neyman beats proportional allocation exactly by the spread of the stratum standard deviations.
A systematic sample with interval takes exactly one unit from each block of consecutive units: it is like a stratified sample with strata, except that the position within each block is the same for all blocks. On a list with a trend this is excellent (Q56). On a list with a cycle of period the "same position" coincidence is fatal (Q44). The variance of a systematic sample can be written using the correlation between units in the same sample; roughly speaking, it beats simple random sampling when units in the same sample tend to be unlike each other.
When samples mislead: non-response, big data and clever designs (university)
The variance formulas above assume the design is carried out as planned. In practice the biggest errors are biases, and these do not shrink as grows.
Let if unit ends up in the data (by any process, random or not), , and . Then
where is the population correlation between and and is the population standard deviation of .
Over the population, . Since takes values with mean , . Hence .
∎The error is the product of data quality (), data quantity () and problem difficulty (). Random sampling makes with of order . A self-selected sample has of fixed size however large it is. With million, a self-selected "sample" of million (%) and a tiny correlation has the same error as a simple random sample of only about people. That is the Literary Digest story (Q58) in one formula.
If marked animals are present and a random sample of is caught, the number marked is hypergeometric, and maximises the likelihood (Q55). The method needs the recapture to be a genuine random sample with respect to marking: trap-happy or trap-shy animals give in Meng's sense, and the bias does not average out.
Sensitive questions produce untruthful answers, a bias that no sample size fixes. In Warner's design (Q60) each respondent uses a private random device, so that for known constants and . The estimator is unbiased, with variance inflated by the factor . This is an early example of local differential privacy: the answer reveals only a bounded amount about any one person, yet the population proportion is still estimable. Census bureaus now add calibrated noise to published tables for the same reason.
Precision comes from the size of a sample, but accuracy comes from how it was chosen. Random selection is what makes the sampling error measurable, by the formulas of the first section, and guarantees that it shrinks like . Without it, the error has an unknown sign and size, and a bigger sample only makes you more confident in the wrong answer.
Why does this work?
With random selection, every member of the population has the same chance of being chosen, so on average each group appears in the sample in the same proportion as in the population. Any difference between sample and population is then due to chance alone, and chance can be measured and controlled by taking larger samples. A non-random method can be wrong in a systematic direction that no amount of extra data will fix.
Beyond the syllabus
Mathematical curiosities
In the Second World War, analysts studied bullet holes on returning bombers to decide where to add armour. Abraham Wald pointed out that they should armour where returning planes had no holes: planes hit there did not come back. The sample of returning planes was biased.