Course outline

Stratified and Blocked Randomisation

By the end of this lesson, you should be able to: say what stratification actually removes, compute the ceiling on what it can buy, choose between stratifying and adjusting afterwards, and explain why a coarse stratum captures less than the covariate is worth.

The defence of simple randomisation, and what it leaves out

"Random assignment gives balanced groups." True, and incomplete in a way that matters.

Take Meridian's 60,000 riders and their pre-period trip counts. Assign treatment by coin flip, 4,000 separate times, and measure the gap in prior trips between the two groups each time:

AssignmentMean imbalanceSDWorst
Simple−0.000110.022880.0821
Stratified+0.000010.010090.0373

Both are unbiased: the mean imbalance is essentially zero for both, exactly as promised.

Look at the SD column. Simple randomisation's imbalance scatters more than twice as widely, and its worst draw is more than twice as bad.

You are running one experiment, not four thousand. Unbiasedness is a property of the average over hypothetical repeats. What you get is one draw, and the spread of that draw is what a confidence interval is made of. Stratifying cut it by 56%.

Two panels. Left, two overlaid histograms of covariate imbalance between arms, both centred on zero: a wide amber distribution for simple randomisation and a much narrower teal one for stratified. Right, reduction in standard error against the correlation between covariate and outcome, with a measured indigo curve rising from near zero to about 29% at correlation 0.8, sitting under a dotted theoretical ceiling, and a dashed rose line marking Meridian's covariate at 0.108.
Left: same centre, half the spread. Right: what the technique is worth, against how much the covariate knows.

How it works

Split users into strata on something you know before assignment, then randomise within each stratum. Meridian uses quintiles of pre-period trips:

StratumUsersMean prior tripsBaseline conversion
09,0890.000.1562
111,4321.000.1626
210,3222.000.1767
314,5583.430.1897
414,5997.090.2504

Half of each stratum goes to treatment, so the two arms are forced to have the same mix of light and heavy riders. The imbalance that simple randomisation would have produced is removed before the experiment starts rather than adjusted for afterwards.

Blocking is the same idea taken to its limit: form blocks of two matched users and flip a coin inside each. Same mechanism, finest possible strata.