- Introduced by
- Developed from cluster randomized trial methodology; popularized in digital experimentation by researchers at Facebook, LinkedIn, and Microsoft Research (2010s)
- Year
- 2010s (digital platforms); cluster RCT roots date to the 1970s–1980s
- Type
- Experimental design
- Family
- Experimental design
What does it do?
A cluster randomized A/B test is an experimental design in which intact groups (clusters), such as cities, schools, social network communities, or app user segments, are randomly assigned as whole units to either the treatment (A) or control (B) condition, rather than randomizing individual users.
It is used when treatment effects would spill over between individuals under individual-level randomization, or when the intervention can only be delivered at the group level.
The intuition behind the method
Imagine testing a new feature on a social platform where friends can see each other's activity. If individual users are randomly assigned to treatment and control, control-group users will still be influenced by their treated friends, which violates the assumption that the two groups are independent. By instead assigning entire social communities or geographic regions to one version, the intervention is contained within clusters and cross-contamination is reduced. The trade-off is that there are fewer independent randomized units (clusters rather than individuals), which reduces statistical power and requires analysis that accounts for within-cluster correlation.
History
Cluster randomization has a long history in public health and educational research. Digital platform practitioners adopted the design in the 2010s to address interference between users on social platforms. Ugander and colleagues' 2013 KDD paper proposed graph cluster randomization as a method for estimating average treatment effects when treatment spills over along a social network. Their Horvitz-Thompson estimator, which uses inverse network-exposure probabilities as weights, is unbiased only when the exposure model is properly specified.
When to use it
Use a cluster randomized A/B test when (1) individual-level randomization would cause spillover or interference between treatment and control units, as is common in social networks, educational settings, or community health programs; (2) the intervention is inherently delivered at the group level, such as a school policy, a city-wide nudge, or a platform algorithm applied to all users in a region; or (3) contamination between groups is a serious threat to validity. Do not use it when individual randomization is feasible and spillover is negligible, or when the research question concerns individual-level mechanisms that would be masked by cluster-level assignment. If the number of clusters per arm is below the practical minimum discussed in the limitations (roughly 10 to 15), the design is difficult to analyze validly and should be reconsidered before committing to it.
Limitations and considerations
- Statistical power is substantially lower than individual-level randomization for the same total sample size. The design effect, DEFF = 1 + (m-1)*ICC, where m is the average cluster size, can be large when clusters are internally homogeneous or large.
- A sufficient number of clusters is needed, typically at least 10 to 15 per arm, to achieve reliable covariate balance from randomization and valid asymptotic inference.
- Within-cluster treatment variation is absent: everyone in a cluster receives the same arm, so heterogeneity in individual treatment response cannot be estimated from the randomized contrast.
- Cluster boundaries are often a matter of judgment, and poor boundary choices can leave spillover unaddressed across the edges of the clusters.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Limits spillover and network interference that would bias estimates in individual-level A/B tests, because the treatment is kept within cluster boundaries.
- Matches deployment constraints when interventions are naturally applied at the group or community level, so the experiment reflects how the intervention would actually be rolled out.
- Randomizing whole clusters gives a valid basis for comparing arms even though individuals within a cluster are correlated with one another.
- Applies to both online experiments (for example geo-based holdouts) and offline field experiments (for example schools, clinics, or villages).
- Stratified or matched-pair cluster assignment can improve covariate balance across arms when the number of clusters is modest.
Applications
- Geo-based holdout experiments on e-commerce or advertising platforms, where ad exposure to one user affects others in the same geographic market.
- Social platform feature launches in which user-to-user interactions would contaminate an individual-level test (e.g., sharing, messaging, feed ranking).
- Cluster randomized educational trials comparing teaching interventions across classrooms or schools.
- Community health interventions randomizing villages, clinics, or neighborhoods to different public health programs.
- Policy evaluation studies where the treatment (e.g., a new law or regulation) applies uniformly to all residents of a jurisdiction.
- Ride-sharing or gig-platform experiments where driver and rider supply-demand effects make individual randomization economically unrealistic.
How it works
How it works
Identify the natural or constructed groupings that will serve as the unit of randomization, for example geographic regions, schools, matched pairs of cities, social graph communities, or app user cohorts. Clusters should be large enough to contain most of the interaction that could cause spillover, and numerous enough to allow randomization across arms. Pre-registering the cluster definitions prevents post-hoc redefinition.
Randomly assign each cluster to the A (treatment) or B (control) arm. When the number of clusters is small, stratified or matched-pair randomization is recommended to balance key covariates, such as cluster size or baseline outcome rates, across arms. The intraclass correlation coefficient (ICC) of the outcome within clusters should be estimated at this stage because it directly determines the required sample size.
Deliver the treatment to all members within each assigned cluster at the same time, so every member of a cluster receives the same version. This makes rollout simpler than individual randomization for interventions such as policy changes, platform feature launches, or educational programs delivered at the classroom level.
Collect outcome data at both the individual and cluster levels for the duration of the experiment. Individual-level metrics (for example conversion rate, time on site, or test scores) are recorded but must be analyzed with their nested structure taken into account. Cluster-level summaries (for example the mean outcome per cluster) can serve as the primary unit of analysis. Pre-specify the primary outcome, the observation window, and any planned covariates to avoid data dredging.
Use analysis methods that account for the clustered structure of the data, such as mixed-effects models, generalized estimating equations (GEE), or cluster-level summary statistics. Treating individual observations as independent when they come from clusters produces anti-conservative standard errors and inflated Type I error rates. Report the ICC alongside the main effect estimate. The ICC can be estimated before the experiment from pilot or historical cluster-level data, and it should be re-estimated from the observed data so that the reported value reflects the trial itself. Interpret the treatment effect at the level at which randomization occurred: it is the difference between arms in the cluster-level outcome (or the model-adjusted contrast), and its confidence interval should come from the clustered analysis, because effective precision depends mainly on the number of clusters, especially when the ICC is non-trivial.
Common pitfalls
- Ignoring the intraclass correlation (ICC) in sample size calculations. Failing to inflate the required sample size by the design effect produces severely underpowered studies.
- Analyzing at the individual level without accounting for clustering. Standard t-tests or chi-square tests on clustered data give falsely narrow confidence intervals and inflated Type I error.
- Too few clusters. Below the practical minimum of 10 to 15 per arm, asymptotic approximations for cluster-level summaries are unreliable and randomization may fail to balance covariates. With very few clusters (for example 4 to 6 per arm), permutation-based inference should be considered.
- Post-hoc redefinition of clusters to improve balance or outcomes. Cluster boundaries and the number of clusters must be fixed before any outcome data are examined.
Frequently asked questions
How many clusters do I need?
As a practical minimum, aim for at least 10 to 15 clusters per arm. Fewer clusters make it difficult to achieve covariate balance through randomization, and standard asymptotic inference becomes unreliable. With very few clusters, permutation tests or randomization inference are preferred over t-tests. A common approximation for power is the design-effect formula: n_individual × (1 + (m-1) × ICC), where n_individual is the sample size required under individual randomization and m is the average cluster size. This formula assumes roughly equal cluster sizes. When cluster sizes vary substantially, the design effect should be adjusted for that variation, and the power approximation should be checked before the experiment is fixed.
What is the intraclass correlation (ICC) and why does it matter?
The ICC measures how similar individuals within the same cluster are on the outcome, ranging from 0 (no clustering) to 1 (all variance lies between clusters). A higher ICC means more redundancy within clusters and a smaller effective sample size. Because the design effect grows with cluster size m, even a modest ICC can substantially increase the required sample size when clusters are large. Estimate or justify an ICC value before designing the experiment.
How is this different from a standard cluster RCT?
A cluster randomized A/B test is structurally the same as a cluster RCT. The differences are mainly contextual: cluster RCTs are common in clinical and public health settings, while the two-arm A/B framing is common in industry digital experimentation. The statistical principles, including cluster-level randomization, ICC adjustment, and mixed-effects or GEE analysis, are the same in both settings.
Can I use this design to test multiple variants simultaneously?
Yes. Extending to three or more arms (A/B/C or multi-arm) is straightforward: clusters are randomly assigned to each arm. This is sometimes called a multi-arm cluster randomized experiment. The minimum number of clusters per arm applies to each arm, so the total number of clusters required grows with the number of arms.
What analysis method should I use?
Three approaches are common: (1) cluster-level summaries analyzed with a t-test or ANCOVA, which is simple but discards within-cluster information; (2) mixed-effects linear or logistic regression with a random intercept for cluster, which is flexible and handles covariates; and (3) GEE with an exchangeable working correlation structure, which is robust to misspecification of the within-cluster correlation. All three can be valid. Choose based on the number of clusters and on whether individual-level covariate adjustment is needed.
Related methods
Sources
Ugander, J., Karrer, B., Backstrom, L., & Kleinberg, J. (2013). Graph cluster randomization: Network exposure to multiple universes. Proceedings of the 19th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 329–337.
Open DOI referenceHayes, R. J., & Moulton, L. H. (2017). Cluster Randomised Trials (2nd ed.). CRC Press.
ISBN: 9781498728874