Free EditionNo. 465
Freemium: CUPED in A/B Testing
Business Analytics Newsletter
· 6 min read
In this edition · 8 sections
Hello!
Welcome to today’s edition of Business Analytics Review!
Here is some uncomfortable arithmetic: required sample size scales linearly with metric variance. Double the noise and you double the users, which turns a two-week test into a four-week one. Yet much of that noise has nothing to do with your treatment. Some customers spend $400 a month and others spend $4, and every test must wade through that gap.
Teams respond predictably: run longer, accept bigger minimum detectable effects, or ship on “directional” reads. Meanwhile, a technique from Microsoft researchers sits unused in many stacks, even though it costs one extra table join. Today we unpack CUPED (Controlled-experiment Using Pre-Experiment Data).
The Core Problem: Why Status-Quo Approaches Fail
A standard difference-in-means test treats every user as an interchangeable draw. That ignores data you already own: how each user behaved last month. If a heavy spender lands in treatment by chance, the treatment average inflates. Randomization balances this out on average, but never inside a single experiment, so estimates bounce and confidence intervals widen to cover the bounce.
The usual fixes are blunt. Longer tests burn calendar time and create queues when teams share traffic. Bigger samples help only as a square root: halving the interval width takes four times the users. Capping outliers changes the metric you report and leaves the baseline gap untouched.
The cost compounds. A team running 200 experiments a quarter pays this noise tax 200 times, and after enough “inconclusive” verdicts on real improvements, product teams decide experimentation cannot measure their work.
Key Takeaway: Much of your metric’s variance is predictable from user history. Remove the predictable part before testing, and you pay only for the noise that is genuinely new.
The Paradigm Shift: What You Need to Know
The Adjustment: CUPED builds a new metric, Y’ = Y - θ(X - mean(X)), where Y is the in-experiment value, X is the same user’s pre-experiment value, and θ is the regression slope of Y on X. Because X was measured before assignment, treatment cannot influence it, so the estimate stays unbiased. You remove noise without shifting the answer.
The Payoff Formula: Variance shrinks by a factor of (1 - ρ²), where ρ is the pre/post correlation. At ρ = 0.7, variance drops about 51%, roughly halving the sample you need. At ρ = 0.3, the gain is only about 9%, so correlation is your go/no-go screen. Stable, high-variance numeric metrics like revenue per user win; sparse binary metrics often barely move.
The Boundaries: CUPED needs history, so new users and brand-new metrics get no benefit. Fit θ on pooled data across both arms, and commit to adjusted or unadjusted reporting before the test starts. Choosing after the fact inflates false positives.
A Quick Story From the Field
Etsy published a candid account of its rollout. In 2021 the team implemented CUPED for metrics like conversion rate, and the measured variance reduction was about 7%, shortening experiments by almost one day on average. Useful, but far from the 50% figures vendors advertise. The cause was the data: purchases are sparse and weakly correlated across periods, while visit-based metrics correlate much more strongly.
Rather than stop, Etsy treated it as a modeling problem. Following DoorDash’s CUPAC idea (Control Using Predictions as Covariate), they replaced the single pre-period value with predictions from a LightGBM model, expanding from 3 features to over 100 pre-experiment signals. A prediction captures non-linear behavior a plain regression cannot.
The lesson is calibration. Before promising leadership a 50% speedup, replay CUPED on your last 20 finished experiments and measure what each metric truly gains. Then make sure your planning calculator uses the adjusted variance, or you will keep scheduling tests as if CUPED did not exist.
What This Means for You
Treat variance reduction as infrastructure, not an analysis trick. Check whether your platform feeds adjusted variance into sample size planning, works with sequential testing, and covers ratio metrics. The tradeoff is a modest pipeline cost (a pre-period join and a stored covariate) against potentially halving runtime on your noisiest metrics, so adopt ML covariates only after the linear version plateaus.
Start with one high-variance metric. Backtest on past experiments, run A/A tests to confirm the false positive rate stays near 5%, and review each covariate for leakage (anything that could change after assignment). Agree on one shared pre-period definition so everyone computes the same thing.
AI & LLM Hacks: Practical Workflows for CUPED
Covariate Audit: Paste your metric definitions and table schema into an LLM. Prompt: “You are a senior experimentation scientist. For each metric, rank candidate pre-experiment covariates by expected correlation, flag any that treatment could influence (leakage), and list metrics lacking history for new users.” Verify the flags manually.
A/A Test Generator: Prompt: “Write a Python script that runs 2,000 simulated A/A tests on a dataframe with user_id, pre_value, post_value. Randomly split users, run a t-test with and without CUPED (θ fit on pooled data), and report false positive rate and variance reduction. Flag any CUPED false positive rate above 6%.” Run it before any live rollout.
Sample Size Translator: Prompt: “Given baseline mean M, standard deviation S, MDE of X%, 80% power and alpha 0.05, compute sample per arm. Recompute with ρ of 0.3, 0.5 and 0.7 using variance times (1 - ρ²), and convert savings to days at N users per day.” Have the model write code for the math rather than trusting its arithmetic.
Recommended Reads
Reducing Experiment Duration with Predicted Control Variates
Etsy details its CUPED rollout, the modest 7% variance reduction it first saw, and the move to LightGBM-based covariates. Practitioners learn why metric type drives results. Read MoreCUPED Explained
An intuitive walkthrough using a runner’s mile-time example, showing how pre-experiment data normalizes post-experiment results. It stresses that the idea is simple but implementation can be tricky and expensive. Read MoreReducing Variance in A/B Testing with CUPED
Monte Carlo code that proves the math. In the simulation, lift variance dropped from 5.66 to 0.80, matching the theoretical prediction. Ideal for building intuition before touching production. Read More
Trending in AI and Data Science
Let’s catch up on some of the latest happenings in the world of AI and Data Science
Mirror Particle Is Building a ‘World Model’ of Human Behavior
San Francisco-based startup Mirror Particle is developing a foundational “world model” from scratch to predict consumer behavior. Rejecting traditional LLM roleplay as outdated, the company simulates evolving human motivations over time by leveraging customer data, current events, and social media. The prediction engine aims to reshape market research by uncovering the “why” behind demographic choices.
Mistral’s New 1T Model Aims to Leapfrog Closed and Open Rivals
French AI lab Mistral AI released Mistral Large 4 (ML4), a massive one-trillion-parameter multimodal model nicknamed “Le Chonk”. Positioned as Europe’s “third way” in AI, the system targets enterprise workloads like cybersecurity and finance. Currently available via a public guarded endpoint, Mistral plans to release the model’s open weights in three weeks following extensive safety testing.
Reflection Debuts Beam, an Open-Weight AI Model to Rival Chinese Models
Nvidia-backed Reflection AI debuted Beam, a 501-billion-parameter text-only model tailored for coding and agentic workloads. Utilizing a sparse mixture-of-experts architecture, Beam matches leading Chinese open models on reasoning benchmarks at a lower inference cost. The Brooklyn startup intends to help enterprises and sovereign nations build customized local “AI factories”.
Trending AI Tool: Gemini 4 Argon
Gemini 4 Argon is a frontier AI model engineered for deep reasoning in complex, long-horizon workflows featuring an industry-leading output token limit of 1 million. The model achieves state-of-the-art performance across software engineering, multimodal video understanding, and cybersecurity benchmarks while deploying a phased safety rollout. Learn More
More on Metrics, free by email
If this was useful, the Free Edition is more of the same in your inbox. No card needed.
Email sign-ups open soon
Every Free Edition is already open on the web, and the feed works in any reader.