Clustered randomization: how it inflates the variance of treatment effect estimates and how to account for it
Quick Overview
Explains clustered randomization, where whole groups such as cities or stores are assigned to an arm, and how within-cluster correlation changes the variance of the treatment effect. Tests the design effect, analysis methods that respect clustering, and design choices that recover power.
Clustered randomization: how it inflates the variance of treatment effect estimates and how to account for it
Role: Data Scientist
Category: Analytics & Experimentation
Difficulty: medium
Interview Round: Other
Explain the concept of clustered randomization and how it affects the variance of treatment effect estimates, and what strategies account for it.
For example, a delivery app may assign whole cities to treatment, or a search team may randomize by user while measuring a per-query metric.
```hint Count the independent units
Ask how much new information a second user from the same city adds compared with a user from a different city.
```
```hint Match the analysis to the design
Look at the level where treatment was assigned and check whether the variance estimate respects that level.
```
### What a Strong Answer Covers
- What clustered randomization is and why teams choose it
- Why within-cluster correlation inflates variance, stated through the ICC and the design effect
- What goes wrong when clustered data is analyzed as if every unit were independent
- Analysis methods that respect the clustering, and the conditions each one needs
- Design choices that recover power
### Follow-up Questions
- How would you size a city-level test, given an estimate of the ICC?
- You only have 20 cities to randomize. How would you analyze the test, and how far can you trust cluster-robust standard errors?
- You randomize by user but the metric is click-through rate per page view. Which variance estimator do you use?
- How do switchback experiments in a two-sided marketplace relate to clustered randomization?
Overview: Explains clustered randomization, where whole groups such as cities or stores are assigned to an arm, and how within-cluster correlation changes the variance of the treatment effect. Tests the design effect, analysis methods that respect clustering, and design choices that recover power.