Bell Statistics

What is cluster randomization?

Cluster randomization assigns whole groups — accounts, households, markets or network communities — to a variant rather than assigning individuals one at a time. It is the standard remedy for interference: the situation where treating one person changes another person's outcome and breaks the comparison.

Also called
group randomisation, cluster randomised trial, account-level assignment, network bucketing
Allon Korem

Written by Allon Korem

Chief Executive Officer

Last updated

In plain English

Individual randomisation rests on an assumption that one person's assignment does not affect another person's outcome. It fails whenever people interact: colleagues in a shared workspace, friends on a social network, buyers and sellers in a marketplace, households sharing a television. Cluster randomization is the standard response — assign the whole group to one arm, so any spillover happens inside an arm rather than across the comparison.

The point is to make the boundary of the cluster wider than the reach of the interference. A collaboration feature spills within a workspace, so workspaces are clustered. Word of mouth spreads within a friendship group, so communities are. Advertising spills across a media market, so geographic regions are — a geo experiment is cluster randomisation with markets as clusters. If the spillover crosses your cluster boundary, the design has not solved the problem, only reduced it.

The cost is severe and predictable. Users within a cluster resemble each other, so a cluster of thirty contributes much less than thirty independent observations. The design effect quantifies it — one plus the average cluster size minus one, times the intraclass correlation — and at typical values it inflates the required sample several times over. Nine hundred workspaces containing twenty-four thousand users can be worth about five thousand independent users, and no amount of extra users inside existing clusters improves that. More clusters is what buys power.

That last point governs the design. If you can choose the clustering level, prefer many small clusters over few large ones: two thousand clusters of ten beats two hundred of a hundred, even at identical total users, because the effective sample is driven by cluster count. It is also why geo experiments with a handful of markets are so underpowered — twenty markets is twenty units, whatever their population.

The analysis has to respect the clustering too, which is where implementations commonly fail. Standard errors must be computed at cluster level, either by aggregating each cluster to a single value or by using cluster-robust errors. Analysing the individuals inside clusters as independent reproduces exactly the overconfidence the design was chosen to avoid — see the analysis unit for the general form of that mistake.

The formula

One factor governs the cost and one consequence follows from it: power comes from the number of clusters, not the number of people inside them.

Design effect
DEFF = 1 + ( m − 1 ) · ICC

m is average cluster size, ICC the intraclass correlation. Multiply your required sample by this.

Effective sample
n_eff = n / DEFF

At m = 30 and ICC = 0.1, DEFF ≈ 3.9 — so 24,000 users behave like about 6,200.

Why cluster count dominates
as m grows, n_eff → k / ICC

k is the number of clusters. Adding people to existing clusters hits a ceiling; adding clusters does not.

The analysis requirement
aggregate to cluster, or use cluster-robust standard errors

Analysing individuals as independent undoes the design — see the sample size calculator.

Worked example

A social app tests a feature that lets people react to friends' posts. Individual randomisation is impossible: a treated user's reactions are visible to untreated friends, so control sees part of the treatment. Two cluster designs are compared over the same 180,000 users.

Design A: 600 large communities
mean 300 users, ICC 0.08
Design A design effect
1 + 299 × 0.08 = 24.9
Design A effective sample
180,000 / 24.9 ≈ 7,230
Design B: 6,000 friend groups
mean 30 users, ICC 0.08
Design B design effect
1 + 29 × 0.08 = 3.3
Design B effective sample
180,000 / 3.3 ≈ 54,500

The same users, clustered two ways, give effective samples differing by more than sevenfold — 7,230 against 54,500.

Nothing about the population changed; only the choice of cluster. Smaller clusters keep the design effect down, so 6,000 friend groups of thirty retain seven times the information of 600 communities of three hundred. The constraint is whether the smaller boundary still contains the spillover: if reactions are mostly seen by close friends, friend groups work; if the app surfaces activity across whole communities, they do not, and the larger cluster is the honest choice despite its cost. That is the real decision, and it should be settled by looking at where interaction actually happens in the product rather than by the power arithmetic. Worth noting how brutal the large-cluster option is — a design effect of 24.9 means 180,000 users buying the precision of about 7,200, which for most effects is not enough to run at all.

Common misconceptions

Cluster randomization is just randomising at a different level.
It is that, and the statistical consequences are large. Users inside a cluster are correlated, so the effective sample size is a fraction of the headline count, and the analysis must be conducted at cluster level. Treating it as an implementation choice with no analytical implications is how cluster designs end up reporting intervals that are far too narrow.
Adding more users to each cluster increases power.
It helps only until the design effect dominates, then flattens. Effective sample size approaches the number of clusters divided by the intraclass correlation, regardless of cluster size. Once you are near that ceiling, only additional clusters buy precision — which is why geo experiments with twenty markets stay underpowered however large those markets are.
If the clusters are randomised, the analysis can proceed normally.
Only if it is conducted at cluster level. Aggregate each cluster to a single value, or use cluster-robust standard errors. Analysing individuals as independent observations reintroduces the overconfidence the design was chosen to avoid, and produces intervals that can be several times too narrow.

Frequently asked questions

When do I need cluster randomization?
When treating one unit can change another unit's outcome — shared workspaces, social features, marketplaces, households, or anything where people can see each other's experience. The diagnostic question is whether a control user could encounter the treatment through somebody else. If they can, individual randomisation produces a biased estimate that no analysis afterwards can repair.
How do I choose the clustering level?
The smallest grouping that still contains the spillover. Smaller clusters mean a lower design effect and much better power, so there is real pressure to go fine, but a boundary that leaks defeats the purpose. Work out where interaction actually happens in your product — most collaboration is within a team rather than across a company — and cluster there rather than at the most conservative level available.
What if my clusters are very different sizes?
Unequal sizes reduce efficiency further, because a few large clusters dominate the estimate and effectively shrink the cluster count. Stratifying by size before assignment helps by ensuring both arms get a comparable mix, and weighting the analysis appropriately handles the rest. Where a handful of clusters are far larger than the others, consider whether they should be analysed separately — one enormous account can otherwise decide the experiment.

Related terms

  • Analysis unit

    The mismatch that makes confidence intervals two or three times too tight, with nothing in the output to show it.

  • Exposure point

    Assigned is not the same as exposed — and the gap between them is where most of your effect size goes.

  • Randomization unit

    What gets assigned decides what counts as independent — and that decides whether your p-values mean anything.

  • Switchback test

    Randomise the clock instead of the users — the answer when everyone shares one supply pool.

Calculate it

  • A/B test sample size

    Size a two-proportion experiment before you launch, then read the lift and its interval once it lands.

  • One-way ANOVA

    Three or more independent groups on one continuous outcome — size it, then run the F test.

Knowing the term is the easy part

Applying it to a live measurement problem is the part that goes wrong. If you are designing an experiment, reading a result you do not trust, or trying to work out what your marketing actually caused, that is the work we do.