THIS EXPLANATION
THE ROOM
MAT·48 Mathematics & Statistics 6 MIN · 8 STATIONS

Stratified sampling

A Socratic walk-through of stratified sampling — reasoned out one step at a time, not lectured.

abcdefgh
a

The question we started with

THE QUESTION #

Why can splitting a population into groups before sampling beat sampling the whole at random?

Random selection is the thing that makes a sample trustworthy. Give every unit an equal chance and you have removed yourself from the choosing; any structure you impose afterwards looks like interference sneaking back in.

So it is worth asking plainly why the professionals almost never do it. A national survey does not draw names from one hat. It carves the population into regions, age bands, farm sizes — and then samples inside each piece, often at deliberately unequal rates. The question is what that carving buys, given that the simple version was already unbiased.

b

Reasoning it through

REASONING #

Take a town of 1,000 homes. Nine hundred are ordinary houses worth around 200 thousand, varying by about 20 thousand either way. One hundred are large properties worth around 2 million, varying by about 200 thousand. You want the average value, and you can afford to appraise 100 homes.

Draw those 100 at random. What decides your answer? Ask how many large properties you happen to catch. On average you catch ten — but eight is unremarkable, and so is thirteen. Each one you catch or miss moves the total by roughly 2 million against a sample of 100, which is 20 thousand on the mean. The estimate swings enormously, and it swings for a reason that has nothing to do with measurement error: it is the luck of the draw between two very different kinds of thing.

Work the numbers and the standard error of that simple random estimate is about 54 thousand, on a true mean of 380.

Now make the obvious move. You already know which homes are large — that is on the valuation roll, before any sampling. So do not let chance decide the mix. Take 90 ordinary houses and 10 large properties, deliberately, and estimate each group's mean from its own sample, then combine them with their known weights.

What has changed? Ask where the variability went. The huge spread between 200 thousand and 2 million was the main thing driving the error, and you have removed it from the sampling problem entirely, because the proportions are no longer being sampled at all — they are fixed at their true values. What remains is only the variation inside each group, and each group is far more uniform than the town as a whole. The standard error drops to about 6.6 thousand: an eightfold improvement from no extra appraisals whatever.

Here is the specialization at the heart of it. Each stratum gets its own dedicated sample, its own estimate, and its own share of the effort, and each of those estimators works inside a narrow, homogeneous world it can handle well — rather than one general-purpose estimator trying to cope with a population that contains two incompatible kinds of thing.

Push the specialization one step further and ask: should each group really get effort in proportion to its size? Where is the difficulty? The large properties vary by 200 thousand, ten times as much as the ordinary houses. Effort spent on a group that is nearly uniform is wasted; effort spent where readings scatter is what actually buys precision. Neyman's answer, from 1934, is to allocate in proportion to a stratum's size multiplied by its internal spread. Here that gives about 47 ordinary houses and 53 large properties — half the budget on a tenth of the population — and the standard error falls again, to about 3.8 thousand.

Notice that this is unequal sampling on purpose, and it is still unbiased, because the known weights put each stratum back in at its true share when the estimates are combined.

c

The analogy

THE ANALOGY #
THE FIGURE

A bakery turns out 900 near-identical rolls and 100 hand-decorated cakes a day, and has two inspectors. Send both wandering the whole floor tasting at random and they spend most of their time confirming that rolls are like rolls, while how many cakes they happen to reach is left to chance. Give one inspector the rolls and the other the cakes, and each works within a world that is internally consistent; the cake inspector, facing far more variety, is given the larger share of the day, and the number of each kind produced is known from the ledger rather than being discovered by wandering.

WHERE IT BREAKS DOWN

the inspectors can tell a roll from a cake by looking, whereas stratification demands that every unit's group be known from the sampling frame before selection — if you can only classify a unit once you have already drawn it, you have post-stratification, which is a weaker and more fragile relative.

d

Clarifying the model

THE MODEL #

Three refinements keep this honest.

Stratification helps only to the extent that the strata differ. Split the town by whether the house number is odd or even and the two groups have the same mean and the same spread; the between-group variation you removed was zero, and you have gained nothing (and lost a hair through the arithmetic of small samples). All the benefit comes from strata that are internally similar and mutually different — the more the grouping variable explains, the larger the gain.

It is not a bias correction. Simple random sampling was already unbiased; what stratification reduces is variance, meaning how far a typical sample lands from the truth. Those are different complaints and stratification answers only the second.

And it has a real cost, which is information. You need the stratifying variable for every unit in the frame in advance, plus the true stratum sizes for the weights. Neyman allocation additionally wants each stratum's internal spread, which you usually do not know and must guess from a prior survey — a good guess produces a large gain, and a poor one merely returns you towards the proportional case rather than doing harm.

e

A picture of it

THE PICTURE #
Stratified sampling
Stratified sampling Neyman's rule allocates sample in proportion to a stratum's size multiplied by its internal spread, so effort rises towards the top and the right; the large properties sit top-left, few in number yet claiming a large share of the budget because their values scatter so widely. {"generator":"[email protected]","source":"../Socrates/.diagram-cache/_src/stratified-sampling.md","sourceIndex":1,"sourceLine":4,"sourceHash":"95bbc2f40299d3433bc67fea6e16abed3dcf343a67223c553af5f833fb8e9b22","diagramType":"quadrantChart","layoutVariant":"source","repairedDuplicateIds":[],"motion":"entrance-with-reduced-motion-fallback","presentation":"editorial","attempt":1,"viewBox":{"x":0,"y":0,"width":720,"height":621},"qa":{"passed":true,"findings":[]}} Sample heavily Q1 Still oversample Q2 Barely sample Q3 Sample lightly Q4 Listed cottages Mixed terraces Ordinary houses Large properties Few units Many units Uniform inside Varied inside Where a survey should spend its effort

How to readNeyman's rule allocates sample in proportion to a stratum's size multiplied by its internal spread, so effort rises towards the top and the right; the large properties sit top-left, few in number yet claiming a large share of the budget because their values scatter so widely.

f

What became clearer

WHAT CLEARED #
WHAT CLEARED

Randomising over a population that contains genuinely different kinds of thing spends much of the sample discovering the mixture — a mixture that is often already known. Fixing the mixture in advance and giving each part its own specialised sample removes that source of error entirely, and lets the effort follow the difficulty rather than the headcount.

g

Where to go next

ONWARD #
  • Cluster sampling, which groups units for the opposite reason: to reduce cost rather than variance, and which usually increases the error.
  • Post-stratification and raking, for when the grouping variable is only observed after selection.
  • Design effects, the single number surveys use to report how much a complex design beat or trailed simple random sampling.
h

Key terms

TERMS #
TermWhat it means
Stratumone of the mutually exclusive groups the population is divided into before sampling.
Proportional allocationsampling each stratum at the same rate, so the sample mirrors the population's composition.
Neyman allocationallocating sample in proportion to stratum size times internal standard deviation.
Sampling framethe list of units from which a sample is drawn, carrying whatever is known in advance about each.

Every term the collection defines is gathered in the glossary.

Nearby on the shelf

4