3 Lessons from implementing Controlled-Experiment Using Pre-Experiment Data (CUPED) at Nubank

Abel Borges, Brando Morais, Luís Assunção, Paulo Rossi, Ramon Vilarino25 Nov 2025

Problem

Nubank runs A/B tests on millions of customers and hundreds of metrics. Small effects force long tests. The platform team added CUPED to cut variance and met three problems: the textbook estimator loses precision for unequal splits, one pre-experiment window had to fit very different products, and adjusted results looked different from the raw numbers teams were used to.

Example from the article: in a simulation with a 90%/10% split and a treatment covariance three times the control's, the pooled CUPED estimator was less precise than the plain difference in means.

Solution in brief

Estimate the CUPED coefficient θ* from both groups' own covariances instead of pooled data. Fix one 42-day pre-exposure window for every metric, chosen by simulation on past experiments. Explain to stakeholders in advance why the adjusted lift differs from the raw lift.

Questions this case answers
  • How to cut the variance of a treatment-effect estimate with pre-exposure covariates when groups are unequal in size and the treatment changes the covariate-outcome relationship
  • How to fix a single pre-period window for variance reduction that works for many metrics with different seasonality under a pipeline cost limit
  • How to implement CUPED on an experimentation platform when variants have unequal sizes?
  • How to choose one pre-experiment lookback window for CUPED across hundreds of metrics?

Tools and methods

  • CUPED — variance reduction with a pre-exposure covariate, here the same metric measured before exposure
  • Group-specific θ* — coefficient weighted from control and treatment regressions, safe for unequal groups
  • Simulation of lookback windows — picks one pre-period length from past experiments with injected effects
  • Delta method — variance and covariance of ratio metrics for CUPED
Continue reading — it's free

Google or a one-time email code. No password.