Control variates: why the variance gain depends on correlation and why the covariate must be unaffected by treatment

Quick Overview

Asks why the variance reduction from a control variate depends on its correlation with the outcome and why the covariate must not be affected by treatment. Tests the derivation of the optimal coefficient, CUPED in A/B tests and the bias from post-treatment covariates.

Control variates: why the variance gain depends on correlation and why the covariate must be unaffected by treatment

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: medium

Interview Round: Other

In the context of control variates (the idea behind CUPED in A/B testing), why is the variance gain driven by the correlation between the outcome and the control variate, and why must the control variate be unaffected by treatment? ```hint Minimize over the coefficient Write the variance of $Y - \theta X$ as a function of $\theta$, find the best $\theta$, and plug it back in. ``` ```hint Follow the adjustment term Write the adjusted difference in means between treatment and control. Ask what the expected value of the extra term is when the arms have the same covariate mean, and when they do not. ``` ### What a Strong Answer Covers - Derives the variance of the adjusted outcome and the coefficient that minimizes it. - Expresses the remaining variance in terms of the correlation and explains what part of the outcome is removed. - Writes the adjusted treatment-effect estimator and states when it is unbiased. - Explains what goes wrong when treatment moves the covariate, and how measurement timing prevents it. - Translates the variance reduction into sample size or power. ### Follow-up Questions - How do you estimate $\theta$ in practice, and does estimating it from the experiment data bias the result? - What changes if the relationship between the covariate and the outcome is nonlinear? - New users have no pre-experiment history. How would you handle them? - How does this adjustment relate to regressing the outcome on a treatment indicator plus the covariate?

Overview: Asks why the variance reduction from a control variate depends on its correlation with the outcome and why the covariate must not be affected by treatment. Tests the derivation of the optimal coefficient, CUPED in A/B tests and the bias from post-treatment covariates.

Nov 24, 2026
mediumData ScientistOtherAnalytics & Experimentation
0
0

In the context of control variates (the idea behind CUPED in A/B testing), why is the variance gain driven by the correlation between the outcome and the control variate, and why must the control variate be unaffected by treatment?

What a Strong Answer Covers Guidance

  • Derives the variance of the adjusted outcome and the coefficient that minimizes it.
  • Expresses the remaining variance in terms of the correlation and explains what part of the outcome is removed.
  • Writes the adjusted treatment-effect estimator and states when it is unbiased.
  • Explains what goes wrong when treatment moves the covariate, and how measurement timing prevents it.
  • Translates the variance reduction into sample size or power.

Follow-up Questions Guidance

  • How do you estimate θ\theta in practice, and does estimating it from the experiment data bias the result?
  • What changes if the relationship between the covariate and the outcome is nonlinear?
  • New users have no pre-experiment history. How would you handle them?
  • How does this adjustment relate to regressing the outcome on a treatment indicator plus the covariate?