Stratified randomization vs. post-stratification for variance reduction: differences and when to use each

Quick Overview

Compares stratified randomization at assignment time with post-stratification at analysis time as ways to reduce variance in A/B tests. Tests whether you know where each method removes noise, what each one requires, and which to choose for a given experiment setup.

Stratified randomization vs. post-stratification for variance reduction: differences and when to use each

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: medium

Interview Round: Other

Describe the difference between stratified randomization at design time and post-stratification at analysis time as variance reduction techniques. When would you use each? For context, picture an online A/B test whose metric varies a lot across user segments, such as platform or prior spend level. ```hint Where the variance goes Split the metric's variance into a part within segments and a part between segments. Ask which part each method removes, and whether the timing changes how much it removes. ``` ```hint What each method needs Think about what you must know, and what you must control, at the moment a user is assigned. Then think about which covariates are safe to use once the test has run. ``` ### What a Strong Answer Covers - Where the strata enter each method (assignment versus estimation) and the weighted per-stratum estimator they share. - Why grouping by strata lowers variance, and how the two methods compare at small and large sample sizes. - What each method requires in practice, including control over assignment and covariates the treatment cannot affect. - A clear rule for choosing between them, with the risks of each: empty cells, strata picked after seeing results, and an analysis that ignores the design. ### Follow-up Questions - How does post-stratification relate to regression adjustment and to CUPED? - If you stratify at design time but analyze with a plain difference in means, what happens to the point estimate and the standard error? - Users arrive one at a time and are assigned on arrival. How would you stratify? - How many strata is too many, and what do you do with a stratum that has only a handful of users in one arm?

Overview: Compares stratified randomization at assignment time with post-stratification at analysis time as ways to reduce variance in A/B tests. Tests whether you know where each method removes noise, what each one requires, and which to choose for a given experiment setup.

General logo
General
Nov 24, 2026
mediumData ScientistOtherAnalytics & Experimentation
0
0

Describe the difference between stratified randomization at design time and post-stratification at analysis time as variance reduction techniques. When would you use each?

For context, picture an online A/B test whose metric varies a lot across user segments, such as platform or prior spend level.

What a Strong Answer Covers Guidance

  • Where the strata enter each method (assignment versus estimation) and the weighted per-stratum estimator they share.
  • Why grouping by strata lowers variance, and how the two methods compare at small and large sample sizes.
  • What each method requires in practice, including control over assignment and covariates the treatment cannot affect.
  • A clear rule for choosing between them, with the risks of each: empty cells, strata picked after seeing results, and an analysis that ignores the design.

Follow-up Questions Guidance

  • How does post-stratification relate to regression adjustment and to CUPED?
  • If you stratify at design time but analyze with a plain difference in means, what happens to the point estimate and the standard error?
  • Users arrive one at a time and are assigned on arrival. How would you stratify?
  • How many strata is too many, and what do you do with a stratum that has only a handful of users in one arm?