How do CUPED and post-stratification change sample size and runtime with unbalanced clients or small samples?

Quick Overview

Asks how CUPED and post-stratification change the sample size and runtime an A/B test needs. Tests the link between metric variance and power, and the extra care needed when a few large clients dominate the metric or when the experiment has only a small number of units.

How do CUPED and post-stratification change sample size and runtime with unbalanced clients or small samples?

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: hard

Interview Round: Other

What is the impact of variance reduction techniques like CUPED or post-stratification on required sample size or experiment runtime, especially with unbalanced client sizes or low sample sizes? "Unbalanced client sizes" means the randomized units differ a lot in size, for example a few large customer accounts that produce most of the traffic or revenue. ```hint Start from the formula Write down the usual sample size formula for a two-arm test. Which term do these methods change, and how does that change carry through to n and then to calendar time? ``` ```hint What gets estimated For the unbalanced and small-sample cases, ask what the adjustment has to estimate from the experiment's own data, and how many independent units you really have. ``` ### What a Strong Answer Covers - How much variance each method removes and how that maps to required sample size. - Why the runtime saving can differ from the sample-size saving. - How a few very large clients affect variance, and how stratification or post-stratification should be set up and weighted in that case. - What goes wrong with small samples: noisy adjustment coefficients, sparse strata and overfitting covariates. - The conditions that keep the adjusted estimate unbiased. ### Follow-up Questions - A B2B test randomizes 40 accounts, and one account produces a third of the revenue. How would you design and analyze it? - How do you apply CUPED to a ratio metric such as revenue per session? - Half the users in the test are new and have no pre-period data. What happens to the variance reduction, and how would you handle them? - When can post-stratification give a larger variance than the plain difference in means?

Overview: Asks how CUPED and post-stratification change the sample size and runtime an A/B test needs. Tests the link between metric variance and power, and the extra care needed when a few large clients dominate the metric or when the experiment has only a small number of units.

PracHub logo
General
Nov 24, 2026
hardData ScientistOtherAnalytics & Experimentation
0
0

What is the impact of variance reduction techniques like CUPED or post-stratification on required sample size or experiment runtime, especially with unbalanced client sizes or low sample sizes?

"Unbalanced client sizes" means the randomized units differ a lot in size, for example a few large customer accounts that produce most of the traffic or revenue.

What a Strong Answer Covers Guidance

  • How much variance each method removes and how that maps to required sample size.
  • Why the runtime saving can differ from the sample-size saving.
  • How a few very large clients affect variance, and how stratification or post-stratification should be set up and weighted in that case.
  • What goes wrong with small samples: noisy adjustment coefficients, sparse strata and overfitting covariates.
  • The conditions that keep the adjusted estimate unbiased.

Follow-up Questions Guidance

  • A B2B test randomizes 40 accounts, and one account produces a third of the revenue. How would you design and analyze it?
  • How do you apply CUPED to a ratio metric such as revenue per session?
  • Half the users in the test are new and have no pre-period data. What happens to the variance reduction, and how would you handle them?
  • When can post-stratification give a larger variance than the plain difference in means?