How CUPED adjusts an A/B test metric using pre-experiment data and a predicted baseline

Quick Overview

Explain how CUPED uses a pre-experiment covariate to adjust the observed metric in an A/B test, how the coefficient theta is estimated, and what the predicted baseline term removes. It tests variance reduction, why the effect estimate stays unbiased, and practical limits such as users with no history.

How CUPED adjusts an A/B test metric using pre-experiment data and a predicted baseline

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: medium

Interview Round: Other

Walk through the mechanics of how CUPED adjusts the observed metric in an A/B test, and the role of pre-existing data and the predicted baseline. ```hint Where the coefficient comes from Write the adjusted metric as $Y - \theta X$ and ask which value of $\theta$ makes its variance smallest. ``` ```hint What the covariate must not depend on Think about what would happen to the effect estimate if the treatment could move the covariate. ``` ### What a Strong Answer Covers - How the pre-experiment covariate is chosen and why it has to be measured before assignment - How $\theta$ is estimated and on which units - The adjusted metric formula and what the predicted baseline means for a single user - Why the treatment effect estimate stays unbiased while its variance drops, and by how much - Practical limits such as users with no history, weak correlation and outliers ### Follow-up Questions - How does CUPED relate to a regression of the metric on a treatment indicator and the covariate? - What would you do for users who have no pre-period data? - What changes if the covariate is a model's prediction built from many pre-period features? - How would you apply CUPED to a ratio metric such as revenue per session?

Overview: Explain how CUPED uses a pre-experiment covariate to adjust the observed metric in an A/B test, how the coefficient theta is estimated, and what the predicted baseline term removes. It tests variance reduction, why the effect estimate stays unbiased, and practical limits such as users with no history.

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

Walk through the mechanics of how CUPED adjusts the observed metric in an A/B test, and the role of pre-existing data and the predicted baseline.

What a Strong Answer Covers Guidance

  • How the pre-experiment covariate is chosen and why it has to be measured before assignment
  • How θ\theta is estimated and on which units
  • The adjusted metric formula and what the predicted baseline means for a single user
  • Why the treatment effect estimate stays unbiased while its variance drops, and by how much
  • Practical limits such as users with no history, weak correlation and outliers

Follow-up Questions Guidance

  • How does CUPED relate to a regression of the metric on a treatment indicator and the covariate?
  • What would you do for users who have no pre-period data?
  • What changes if the covariate is a model's prediction built from many pre-period features?
  • How would you apply CUPED to a ratio metric such as revenue per session?