WebmasterID logoWebmasterID
Conversion & funnels

Stratification in experiments

Stratification splits the population into subgroups (strata) such as device, country, or new-vs-returning, then randomises within each so every variant gets a balanced share of each stratum. This prevents chance imbalance on a known high-variance dimension and, when the stratifying variable predicts the outcome, lowers the variance of the overall effect estimate — a variance-reduction technique alongside CUPED.

Partially verified

Balanced assignment within strata

Pure randomisation balances subgroups only in expectation; in any single run a high-variance dimension can end up skewed between variants by chance. Stratified (block) randomisation removes that risk by assigning within each stratum, guaranteeing each variant gets a proportional slice of every subgroup. This is most valuable when the stratifying variable both varies a lot and correlates with conversion.

Variance reduction and analysis

When the stratifying variable predicts the outcome, estimating the effect within strata and pooling (a stratified estimate) removes the between-stratum noise, narrowing the confidence interval for the same data. The catch is that strata must be defined before assignment and not be so fine that cells become tiny or identifying. Analyse with the same strata you assigned on.

Stratification and CUPED both cut variance; they can be combined.

How it appears in analytics and logs

Balanced strata across variants reduce the risk that an observed difference is really a subgroup-mix difference rather than a treatment effect.

Diagnostic use case

Stratify on a variable strongly tied to the outcome (e.g. device) so variants are balanced on it and the effect estimate is more precise.

What WebmasterID can help detect

WebmasterID's first-party dimensions (device, source, returning) supply coarse strata for balanced assignment and analysis.

Common mistakes

Privacy and accuracy notes

Stratify on coarse, aggregate attributes; avoid strata so granular they could single out an individual.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.