TapCub is live — analytics, insights and live chat, free on one platform
Glossary

What is CUPED? Variance reduction for A/B tests explained

CUPED uses each user’s behaviour before an experiment to remove noise from the result, so tests reach a reliable answer with less traffic. The intuition, the formula, a worked example and when it helps.

Emma Collins Reviewed by Chen Yu Also called Controlled-experiment Using Pre-Experiment Data Last updated Nov 4, 2026 Glossary

Quick answer

CUPED (Controlled-experiment Using Pre-Experiment Data) is a variance-reduction technique for A/B tests that adjusts each user’s outcome using a correlated measurement from before the experiment, which makes the treatment effect easier to detect without biasing it.

Formula: Y_adj = Y − θ (X − mean(X)), with θ = cov(X, Y) / var(X)

What is CUPED?

CUPED (Controlled-experiment Using Pre-Experiment Data) is a way to make A/B test results less noisy. It was published by researchers at Microsoft in 2013 and is now built into most experimentation platforms.

The idea: much of the difference between users in a test is just who they are. Heavy users spend more in both groups. If you know how much each user spent before the test, you can subtract out that predictable part and compare what is left.

The formula

For each user, with outcome Y during the test and the same (or a related) metric X before it:

Y_adj = Y − θ (X − mean(X))

θ = cov(X, Y) / var(X)

θ is the slope you would get regressing Y on X. Compare the average Y_adj between groups instead of the average Y. Since the treatment cannot change X (it happened earlier), the expected difference between groups stays the same; only the noise shrinks.

A small worked example

Five users, pre-period sessions X, test-period sessions Y, with θ = 0.8 and mean(X) = 10 (sample numbers):

UserX (before)Y (during)Y_adj = Y − 0.8 (X − 10)
A2410.4
B6811.2
C101111.0
D141410.8
E181811.6

The raw values range from 4 to 18. The adjusted ones range from 10.4 to 11.6. The average barely changes (11.0 in both cases), but the spread is far smaller, so a real treatment effect stands out sooner.

How much does it help?

Variance falls by about ρ², where ρ is the correlation between X and Y:

Correlation ρVariance removedEquivalent traffic gain
0.39%1.1×
0.525%1.3×
0.749%2.0×
0.981%5.3×

Engagement and revenue metrics for returning users often correlate strongly week to week, so gains of 30–50% are common for them. Conversion of first-time visitors, with no history, gains little.

Choosing the covariate and pitfalls

  • Use the same metric from before the test when you can; it usually correlates best.
  • The window must end before assignment. Anything measured after users saw the change can be affected by it and will bias the result.
  • New users have no history; give them the mean value (no adjustment) or handle them as a separate stratum.
  • Estimate θ on both groups pooled, not separately per group.
  • CUPED raises power; it does not fix peeking, many comparisons (see Bonferroni correction) or a broken randomisation.

In TapCub

TapCub does not run experiments or apply CUPED. If you run tests with another tool, you can compute the pre-period covariate from TapCub data: export per-person events for the weeks before the test started and count sessions or purchases per user, then join that with your experiment assignments in a notebook. Person-level analysis needs identified mode, because anonymous visitors have no profile to join on.

Was this explanation clear?

We use your answers to fix and expand this page.

Emma Collins

Product Analyst

Focuses on event analysis, conversion funnels, and retention, using clear metric definitions and structured analysis to explain product performance.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What does CUPED stand for?

Controlled-experiment Using Pre-Experiment Data. It was introduced by researchers at Microsoft in 2013.

How much does CUPED reduce variance?

By about ρ², where ρ is the correlation between the pre-period metric and the outcome. A correlation of 0.7 removes about 49% of the variance, which is like having roughly twice the traffic.

Does CUPED change the measured effect?

No, not on average. Because the pre-period data cannot be affected by the treatment, the adjustment removes noise without biasing the difference between groups.

What if a user has no pre-period data?

New users are common. Set their pre-period value to the overall mean (so no adjustment) or add an indicator for "no history"; CUPED then helps only for users with history.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics