← Back to Data Scientist Mind Map
中文·English
📈 Data ScientistID: ds-cuped-variance-reduction-derivation

CUPED Variance Reduction Derivation

CUPED 方差缩减严格数学推导
🎯Core Definition
Controlled-experiment Using Pre-Experiment Data (CUPED, Deng et al. 2013, Microsoft) establishes optimal variance reduction for online experimentation, slashing required sample sizes and experiment durations by up to 50% without altering sample traffic; Mathematical formulation: let YY denote the experimental metric, and XX a pre-experiment covariate strictly independent of treatment (e.g. pre-experiment 7-day metric where E[XT]=E[XC]\mathbb{E}[X_T] = \mathbb{E}[X_C]); constructing the unbiased adjusted estimator Y~=Y−θ(X−E[X])\tilde{Y} = Y - \theta (X - \mathbb{E}[X]), expanding variance yields Var(Y~)=Var(Y)+θ2Var(X)−2θCov(Y,X)\text{Var}(\tilde{Y}) = \text{Var}(Y) + \theta^2 \text{Var}(X) - 2\theta \text{Cov}(Y, X); setting first derivative dVardθ=0\frac{\mathrm{d}\text{Var}}{\mathrm{d}\theta} = 0 yields the optimal regression projection parameter: θ∗=Cov(Y,X)Var(X)\theta^* = \frac{\text{Cov}(Y, X)}{\text{Var}(X)}; substituting θ∗\theta^* yields the minimized variance: Var(Y~∗)=Var(Y)⋅(1−ρXY2)\text{Var}(\tilde{Y}^*) = \text{Var}(Y) \cdot (1 - \rho_{XY}^2); when correlation ρ=0.7\rho = 0.7, variance plummets by $51\%$, doubling experimental sensitivity.
💡Use Cases
Enterprise A/B experimentation platforms (Microsoft, Meta, ByteDance) and detecting sub-percent metric lifts.
⚡Key Problems Solved
Mature products struggle to measure 0.2% lifts due to high background user variance; CUPED strips out predictable user baseline variance, halving sample requirements at zero cost.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of CUPED Variance Reduction Derivation.
Use Cases
In production engineering, what are the primary use cases for CUPED Variance Reduction Derivation and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Derive the mathematical proof of optimal θ∗=Cov(Y,X)Var(X)\theta^* = \frac{\text{Cov}(Y, X)}{\text{Var}(X)} and variance reduction factor (1−ρ2)(1 - \rho^2) via variance minimization calculus?
2
Why must covariate XX be strictly pre-treatment? Explain the disaster of post-treatment conditioning absorbing the true causal treatment effect?
3
Derive the Multivariate CUPED extension using multi-feature OLS regression projections to absorb orthogonal variance dimensions?
4
How should CUPED handle cold-start new users lacking pre-experiment history without violating unbiasedness (zero-imputation vs subgroup mean)?
5
Explain how modern ML-assisted variance reduction replaces linear θX\theta X with non-linear GBDT predictions Y^=f(Xpre)\hat{Y} = f(X_{\text{pre}})?
🔗Foundational Prerequisite Cards (Click to Review)
Updated 2026-08-14
🎯
Test Your Knowledge: Practice Questions for "CUPED Variance Reduction Derivation"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice ➔
← Previous CardBootstrap Resampling & Empirical CINext Card →SRM Detection & Chi-Square Diagnostics

🔗 More Data Scientist Knowledge Cards

Hypothesis Testing, Type I/II & PowerSample Size Derivation & MDE BudgetP-hacking, Peeking & mSPRT SequentialMultiple Comparisons: FWER vs FDR-BH