LightMySky

Stratified Sampling

Work out how many to take from each group so that a sample matches the proportions in the population, and round the results sensibly.

Start learning thisNo account needed. Progress saves in this browser.

What a learner can do afterwards

  • Work out each group's share of the population before sampling
  • Calculate how many to sample from one group for a stated sample size
  • Say why the numbers may need adjusting after rounding

1 · Read

Last stop the fix was a list and a generator: number all 900 members, let chance pick 60. Every member gets the same chance, and that is fair. It can still land oddly. One draw might come back with four volunteers when twelve is their share, because chance cannot read the membership list. Stratified sampling settles the shares first. Split the population into groups that do not overlap and leave nobody out, called strata, and one of them is a stratum. Then decide how many places each group gets before a single person is picked.

Plots240Volunteers180Park480
The three groups are different sizes, so a sample that matches the site gives them different numbers of places.

A group's share of the population is the group's size divided by the total. Multiply that share by the sample size and you have the group's places. A group of 240 out of 900 has a share of 240 / 900, so in a sample of 60 it gets 240 / 900 x 60 = 16 places. The same sum works the other way round: 60 out of 900 is 1 in 15, and 240 / 15 = 16. It runs backwards: 32 park places from 480 members is 1 in 15, so the sample is 900 / 15 = 60.

Try it together

Wren Lane has 240 plot holders, 180 volunteers and 480 park members, 900 in all. For a sample of 60 the three sums give 240 / 900 x 60 = 16, 180 / 900 x 60 = 12 and 480 / 900 x 60 = 32. Check the total: 16 + 12 + 32 = 60. A second check: the groups sit in the ratio 4:3:8, and 16:12:32 is that ratio times four. A group with more places than its share is over-represented, and none is here.

Two checks: the places add to the sample size, and the ratio matches.

Tap each dot and count out loud.
The site in fifteen dots: four plot holders, three volunteers, eight park members. Multiply every group by four and you have the sample of 60.

Real numbers rarely divide so kindly. Take the same three groups for a sample of 50. 240 / 900 x 50 comes to about 13.3, 180 / 900 x 50 is exactly 10, and 480 / 900 x 50 is about 26.7. Nobody can ask part of a person, so round each to the nearest whole number: 13, 10 and 27, which totals 50. Round both decimals up instead and you get 14, 10 and 27, which is 51. Rounding pushed the 13.3 furthest, so pull it back to 13 and the total is 50 again.

Two things stratifying does not do. It fixes the shares of the groups you chose to split by and nothing else, so a difference you never thought of can still be missing from the sample. And somebody still has to pick the 16 and the 12 inside each group. If that picking happens at the Saturday gate, the bias from last stop walks straight back in. Strata earn their keep when the groups tend to answer differently, so splitting by something unrelated to the question just gives you groups that are copies of each other.

A group's share is its size divided by the population, and that share times the sample size gives the group's places. Add the places up to check they make the sample size, and compare the ratio with the population's. When the division leaves a decimal, round each group and then fix the total. Stratifying sets the shares; picking at random inside each group is what keeps them honest.

Adapted from OpenStax Statistics (CC-BY 4.0), openstax.org · license

More to read

1.6 Sampling Experiment

Stratified sampling starts by splitting the population into groups called strata. A school splits by year, a factory by shift, a town by neighbourhood. Each group is sampled on its own, so no group can vanish by bad luck.

Shares follow the population fractions. If seniors hold 2/5 of a club, they hold 2/5 of the sample too. Working out each group's share before sampling turns the sample into a true miniature of the whole.

1.2 Data, Sampling, and Variation in Data and Sampling

Calculating group samples is ratio work. A year holding 125 of 500 pupils holds 1/4 of the school, so it takes 1/4 of a 40-person sample: 10 pupils. A 1:2:3 split of a 60-person sample gives 10, 20 and 30. Total the parts, value one part, multiply out.

The method beats pure random sampling for small groups. A 10% group might miss a random sample entirely, but stratification reserves its seats. Whenever a subgroup matters, stratify rather than hoping.

4.4: Sampling Techniques

Rounding is the fiddly end of stratified sampling. Exact shares like 10.5 pupils cannot be sampled, so round to whole people and recheck the total. If the rounded parts total 29 instead of 30, adjust one group by a single pupil.

The adjustment keeps fairness while staying practical. Tiny shifts from exact shares cost almost nothing, but an unchecked total breaks the plan.

Explore more

2 · Watch

3 · Play

The gate is gone and the office list is out. Wren Lane's 900 members are 240 plot holders, 180 volunteers and 480 park members, and the crew wants 60 of them. The quickest suggestion in the room is 20 each: three groups, 60 places, done.

Before that goes on the board, check it against the site.

Plots240Volunteers180Park480
  • Twenty each is right, since it splits 60 evenly

    It splits the sample evenly, and the site is not even. Park members are more than half of Wren Lane and would get a third of the places.

  • Volunteers are a fifth of the site but a third of the sample, so their view would count too heavily (The answer)

    Yes. 180 of 900 is a fifth, and 20 of 60 is a third. That split hands the smallest group over one and a half times the weight it has on site.

  • The sample should be 240, 180 and 480, to match the groups

    That is not a sample, that is everybody. The point is to keep the shape of the site while asking far fewer people.

Equal numbers from unequal groups is not equal treatment. The places have to follow the sizes.

So each group's places come from its share. Plot holders are 240 of the 900 members, and the sample is 60.

How many of the 60 places belong to plot holders?

  • 16 (The answer)

    Yes. 240 / 900 x 60 = 16. The other way round works too: 60 out of 900 is 1 in 15, and 240 / 15 = 16.

  • 24

    That looks like 240 with the zero dropped. Run the share instead: 240 / 900 is about 0.27, and 0.27 of 60 is nearer 16.

  • 4

    That is 240 / 60. The division goes the other way: the group's share of the population, then times the sample size.

Sixteen plot holders. The same sum gives volunteers 180 / 900 x 60 = 12 and park members 480 / 900 x 60 = 32.

Mia wants the shares on the whiteboard before anyone rings a single member. Volunteers are 180 of the 900 members on the site.

The bar below is the whole membership, cut into five equal parts. Shade the volunteers' share of it.

One fifth of the site, so one fifth of the sample: 60 / 5 = 12 volunteers. The shares of the three groups add to 16 + 12 + 32 = 60.

The budget shrinks. Sam has to redo it for a sample of 50, and this time nothing divides neatly: 13.3 plot holders, 10 volunteers, 26.7 park members. He rounds both decimals up, writes 14, 10 and 27, and reaches for his coat.

Stop him. What is wrong with 14, 10 and 27?

13.3 rounded up to 1426.7 rounded up to 27total 51, not 50
  • The three figures add to 51, one member more than the sample he costed for (The answer)

    Yes. 14 + 10 + 27 = 51. Round to the nearest whole instead and 13.3 goes down to 13, which gives 13 + 10 + 27 = 50.

  • Decimals mean the shares were worked out wrongly

    The shares are fine. 13.3 + 10 + 26.7 = 50 exactly. Only whole people cause the trouble, and that arrives after the shares.

  • He should have rounded both decimals down instead

    Then 13 + 10 + 26 = 49, one short. Rounding in one fixed direction misses either way, which is why the total gets checked.

Round each group to the nearest whole, add them up, then adjust the group whose rounding moved it furthest.

The numbers are settled: 16, 12 and 32. The obvious way to collect them is at the Saturday market, sixteen plot holders, twelve volunteers and thirty-two park members, first come first served until each group is full.

What does that do to the sample?

  • Nothing, since the group numbers are still correct

    The numbers survive. The people do not. Every member who is never at the market on a Saturday still has no chance of being one of them.

  • It makes the sample better, because members at the market are easier to reach

    Easy to reach is the whole problem. It is the same gate from last stop, now with tidier totals written above it.

  • It brings the old bias back, because the sixteen and the twelve are picked at a gate (The answer)

    Yes. Stratifying decides how many come from each group. Which people come from each group is still a separate decision, and it needs the list and the generator.

Right shares, wrong people, and the write-up would never show it. Pick inside each group the way you picked last stop.

You caught an even split that was not fair, worked each group's places from its share, handled a sample that refused to divide, and stopped the gate creeping back in at the last moment. Wren Lane's 60 now look like Wren Lane.

  • A group's places are its size divided by the population, times the sample size
  • Bigger group, more places. Equal numbers from unequal groups is not fair
  • Round each group, add the total, then adjust the one that moved furthest
  • Stratifying sets how many. Random picking inside each group sets who

Take it off screen

Print a worksheetA4 with an answer key page for grown-ups. No screen, no internet.

Where it sits

Where this leads

Jobs that lean on this skill. Follow one to see everything it is built on.

Then practise

33 questions wait behind this lesson, each with its answer explained. Every answer feeds the sky: stars light as they are learned, and dim when it is time to come back.

Start learning this