How would you implement CUPED for ratio metrics, and what method estimates their variance?

Quick Overview

Asks how to apply CUPED variance reduction to ratio metrics such as click-through rate in a user-randomized experiment, and how their variance is estimated. Tests linearization of ratio metrics, building a pre-period covariate, choosing the adjustment coefficient and computing a correct standard error.

How would you implement CUPED for ratio metrics, and what method estimates their variance?

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: hard

Interview Round: Other

How would you implement `CUPED` for ratio metrics, and what statistical method is used to estimate the variance of such metrics? A typical case is click-through rate defined as total clicks divided by total page views, in an experiment randomized by user. ```hint Why the usual formula fails Ask what the independent unit is when users are randomized but the metric divides clicks by page views. ``` ```hint Make it an average CUPED works on means of independent per-unit values. Look for a way to rewrite the ratio, to first order, as one. ``` ```hint Pick the covariate The covariate should be the same metric from before the experiment, transformed the same way as the metric. ``` ### What a Strong Answer Covers - Why a ratio metric randomized at the user level needs special treatment for its variance - The variance method: the per-user linearized value and the resulting variance formula - How to build the pre-period covariate and estimate the adjustment coefficient for a ratio - The adjusted treatment effect and its standard error - Pitfalls such as averaging per-user ratios, a covariate contaminated by the treatment, and users with no pre-period data ### Follow-up Questions - How would you check that the standard error is right for your data? - What do you do with users who have no pre-period activity? - How does the method extend to several covariates, for example in a regression? - When is the first-order approximation behind the variance formula poor?

Overview: Asks how to apply CUPED variance reduction to ratio metrics such as click-through rate in a user-randomized experiment, and how their variance is estimated. Tests linearization of ratio metrics, building a pre-period covariate, choosing the adjustment coefficient and computing a correct standard error.

Nov 25, 2026
hardData ScientistOtherAnalytics & Experimentation
0
0

How would you implement CUPED for ratio metrics, and what statistical method is used to estimate the variance of such metrics?

A typical case is click-through rate defined as total clicks divided by total page views, in an experiment randomized by user.

What a Strong Answer Covers Guidance

  • Why a ratio metric randomized at the user level needs special treatment for its variance
  • The variance method: the per-user linearized value and the resulting variance formula
  • How to build the pre-period covariate and estimate the adjustment coefficient for a ratio
  • The adjusted treatment effect and its standard error
  • Pitfalls such as averaging per-user ratios, a covariate contaminated by the treatment, and users with no pre-period data

Follow-up Questions Guidance

  • How would you check that the standard error is right for your data?
  • What do you do with users who have no pre-period activity?
  • How does the method extend to several covariates, for example in a regression?
  • When is the first-order approximation behind the variance formula poor?