CUPED

On this page
  1. Definition
  2. How to compute
  3. Pitfalls
  4. Related

Definition

CUPED (Controlled-experiment Using Pre-Experiment Data) reduces the variance of a metric using a covariate measured before the experiment. Part of a metric’s spread is explained by a user’s pre-experiment behaviour; subtracting the component predicted from it yields the same unbiased effect estimate with a smaller standard error.

How to compute

The adjusted metric is Y~=Y−θ(X−Xˉ)\tilde{Y} = Y - \theta (X - \bar X), where XX is the same metric or a proxy measured before launch and θ=Cov⁡(Y,X)/Var⁡(X)\theta = \operatorname{Cov}(Y, X)/\operatorname{Var}(X). The optimal θ\theta removes ρ2\rho^2 of the variance, so the standard error shrinks by roughly 1−ρ2\sqrt{1-\rho^2}. At ρ=0.7\rho = 0.7 that is about a 30% saving in sample size.

Pitfalls

XX must be pre-experiment and independent of the treatment, or the estimate is biased. The correlation has to be stable across arms; if the pre-period does not resemble the test window, θ\theta fits noise. For ratio metrics the covariance must be computed through the delta method, not directly.

Related terms

Mentioned in

Connections map

Terms, articles and projects connected to this concept. Hover a node to see its name; click to open.

← All terms