FDE Times dataFDE jobs open 932▼14 Change in open roles over 7 days, like-for-like: roles from companies we started tracking this week are left outNew in 7 days 62Companies hiring 202Remote-friendly 24%Median US pay $201kTop hirer Databricks 92
中文VI

The newspaper of the Forward Deployed Engineer

Guides

Pre-pilot data can halve the noise in measuring AI's impact

It works only if the correlation is high enough, the groups are split properly and the way results will be read is fixed before the tool goes live.

ShareLinkedInFacebookX

In brief

  • After CUPED, variance falls to (1 − ρ²) of its original level: at ρ = 0.7 about half remains; at ρ = 0.3 it drops by only 9%.
  • The covariate must be measured before the AI tool is switched on; Datadog's default uses each subject's data from the 30 days before the experiment.
  • CUPED cannot fix bad group assignment or self-selected tasks. Lock the task list and the way results will be read before the pilot begins.
Dot plot comparing two confidence intervals for the effect of an AI assistant on ticket handling time, on an axis from −2 to 1 minutes. Without CUPED: estimate −0.7, interval −1.95 to 0.55, 2.5 minutes wide. With CUPED: estimate −0.68, interval −1.57 to 0.21, about 1.8 minutes wide. Both intervals cross the zero line.
CUPED narrows the confidence interval, but with 40 employees it still spans zero, so there is not yet enough evidence to say the tool has an effect. Source: illustrative results on simulated data in the article (OLS regression, HC1 standard errors).

In a post on variance reduction, Spotify’s experimentation platform, Confidence, offers an easy number to remember: if a covariate correlates 0.7 with the outcome, variance falls by about 51%, leaving roughly half the noise.

Microsoft has published a number that runs the other way. In one of its products, more than 68% of metrics had an effective traffic multiplier of no more than 1.05, meaning the gain was equivalent to at most 5% more traffic.

Both numbers concern CUPED, a technique that uses data measured before an experiment to make the estimate of its impact less noisy. For FDEs this is everyday work. AI pilots at clients tend to have few users and short timelines, while the person holding the budget asks a single question: does the tool make their team faster?

With small samples, noise easily hides a real effect. This guide walks through the whole process on a laptop, from choosing a covariate to reading the result, and shows when to drop CUPED altogether.

What you will build, and what you need

The running example is hypothetical: a client gives an AI assistant to 40 customer support agents, randomly assigning 20 to use it and 20 not to. The primary metric is each agent’s average handling time per ticket (in minutes) over a four-week pilot. You also have the same metric for several weeks before the pilot.

You need Python with pandas and statsmodels, plus a table with four columns: agent_id, treat (1 for the AI group), y_pre (the metric before the pilot) and y_post (the metric during the pilot).

The code below is simplified for illustration, and every printed result in this article comes from simulated data, not real figures. Check against the documentation for the library versions you use.

Step 1: fix the metric and covariate before the tool goes live

Matteo Courthoud, in his explainer on CUPED, points out that the higher the correlation between the outcome and the covariate, the more the variance falls. That makes the first candidate to try the primary metric itself, measured in the period before the pilot.

The covariate should be measured before the intervention starts. Take data from the pre-pilot period; Datadog’s default, for instance, is each subject’s observations in the 30 days before exposure to the experiment.

The number of tickets each agent receives during pilot weeks cannot serve as a covariate, because the AI assistant may already have changed how tickets are routed.

One principle FDEs should treat as law: decide before the pilot starts whether you will rely on the result with CUPED or without it. Running both and picking the nicer number fools yourself and the client.

Step 2: pull pre-pilot data, and watch for new hires

At the client, choose a pre-pilot window long enough for each agent’s ticket volume to be stable, then write that window into the measurement plan. Datadog’s 30-day mark is a reasonable starting point.

import pandas as pd

df = pd.read_csv("pilot.csv")  # agent_id, treat, y_pre, y_post
print(df["y_pre"].isna().sum(), "agents with no pre-pilot data")

Check: count who is missing y_pre. GrowthBook notes that CUPED can be less effective when a metric is rare or when it measures the behavior of new users. If a third of the team has just been hired, do not expect much from CUPED.

Step 3: compute ρ before promising anyone anything

Spotify describes the adjustment as reducing variance by a factor of (1 − ρ²), where ρ is the correlation between the covariate and the outcome. LaunchDarkly puts it similarly: the reduction is roughly the square of the correlation, so a weak correlation brings only a small benefit.

rho = df[["y_pre", "y_post"]].corr().iloc[0, 1]
print("rho =", round(rho, 2), "| remaining variance:", round(1 - rho**2, 2))

On the simulated data for the 40-agent example, the output is:

rho = 0.7 | remaining variance: 0.51

Try a few more values. At ρ = 0.7, 1 − 0.49 = 0.51, so about half the variance remains. At ρ = 0.3, 1 − 0.09 = 0.91, a reduction of just 9%, even though Statsig treats a correlation above 0.3 as the level at which CUPED probably starts to help.

Microsoft’s 68% figure now reads more clearly. Microsoft states the multiplier as 1/(1 − R²); working backwards, metrics that gain at most 1.05 times correspond to an R² of about 0.048 or less, a correlation of roughly 0.22. Microsoft does not give the cause, but mathematically the covariates for those metrics explain almost nothing.

Step 4: estimate theta and the adjusted metric

The code below estimates theta by regressing the pilot outcome on the pre-pilot outcome. The adjusted metric equals the original outcome minus theta times the covariate’s deviation from its mean.

import statsmodels.formula.api as smf

theta = smf.ols("y_post ~ y_pre", data=df).fit().params["y_pre"]
df["y_cuped"] = df["y_post"] - theta * (df["y_pre"] - df["y_pre"].mean())

print(df.groupby("treat")[["y_post", "y_cuped"]].agg(["mean", "var"]))

Illustrative output on simulated data:

      y_post        y_cuped
        mean   var     mean   var
treat
0       7.90  4.10     7.88  2.10
1       7.20  3.90     7.21  2.00

Check: in each group, the mean of y_cuped is almost identical to y_post, while variance falls from about 4 to about 2, matching the 0.51 predicted in step 3. Microsoft ExP describes the variance reduction as the share explained by the linear model in both the treatment and control groups.

The original ticket data is untouched; only the explained part of the noise is removed from the estimate. That is the sentence you will need when the client asks why “the numbers were changed”.

Step 5: do it with a regression with interactions

Another approach, more rigorous for reporting, is to put the covariate straight into a regression. Winston Lin (2013) proved that OLS regression with full interactions between treatment and covariate cannot reduce asymptotic precision.

# Simplified: center the covariate, Huber-White (HC1) standard errors
df["x_c"] = df["y_pre"] - df["y_pre"].mean()
m0 = smf.ols("y_post ~ treat", data=df).fit(cov_type="HC1")
m = smf.ols("y_post ~ treat * x_c", data=df).fit(cov_type="HC1")
for name, fit in [("no covariate", m0), ("with covariate", m)]:
    print(name, round(fit.params["treat"], 2), fit.conf_int().loc["treat"].round(2).tolist())

Illustrative output on simulated data:

no covariate -0.7 [-1.95, 0.55]
with covariate -0.68 [-1.57, 0.21]

Check: the coefficient on treat is the estimated effect of the AI tool, here about 0.7 minutes per ticket. The confidence interval narrows from 2.5 minutes wide to about 1.8 minutes, a ratio close to the square root of 0.51.

The telling detail is that both intervals still contain zero. CUPED sharpens the result, but with 40 people in this example you still lack grounds to claim the tool works.

Do not treat the narrower interval as a certainty either: Lin’s result holds only for large enough samples, and a 40-person pilot is far from large.

If the interval does not narrow, go back to the value of ρ in step 3. When ρ is low, there was little noise for the covariate to remove in the first place.

What if there is no history?

Many AI pilots measure by task, and new tasks have no past data. METR’s early-2025 study of open-source developers shows another way.

It used developers’ time forecasts for each issue as a proxy for difficulty, then put those forecasts into the regression to reduce noise. Each issue was then randomly assigned, like a coin toss, to a condition with or without AI allowed.

At a client you can do something similar: ask users to estimate a task’s difficulty before they know whether it will be done with AI, so the intervention cannot affect the covariate. Then still run step 3 to see how well those forecasts correlate with actual time.

Mistakes CUPED cannot rescue

The most serious is bad group assignment. In clinical trials, the Catalogue of Bias describes allocation bias as arising when those running a trial know or can guess which group the next participant will join. If the client’s team lead hand-picks the best agents for the AI group, no covariate can undo that.

METR ran into a subtler version at the task-submission stage. Its February 2026 announcement said that, when surveyed, 30% to 50% of developers reported not submitting some tasks because they did not want to do them without AI, and METR decided to change the study design.

The lesson for FDEs: covariate adjustment only improves a design that is already sound. Lock the task list before the draw, so nobody knows which tasks will get AI when deciding what to submit; METR also discusses options such as giving each person a fixed task, or randomizing by person rather than by task.

The other two mistakes are smaller but common. One is using a covariate measured after the tool was switched on. The other is applying CUPED to sparse or rare metrics regardless: Spotify says that for purchase conversion or binary activation the reduction is often only 20-30%, and Statsig warns that random metrics with no historical pattern will gain nothing.

At the client, measurement starts at kickoff

Bring a one-page measurement plan to the kickoff meeting: the primary metric, the covariate, the pre-pilot data window, how groups will be split, the task list locked before the draw, and the commitment on whether to use the CUPED result.

At the wrap-up, that effort pays off as a narrower confidence interval, giving the client grounds to decide whether to scale. If ρ is low, or if, as in the example above, the interval still contains zero, you have to say plainly that more users or more time are needed.

If you want to move into an FDE role, put exactly this sequence into your portfolio: a notebook with simulated data, the ρ calculation, confidence intervals before and after adjustment, and a paragraph explaining it for a non-technical reader.

On your CV, describe outcomes, for example “designed pilot measurement, narrowed confidence intervals using pre-pilot data”, rather than just “knows A/B testing”. In interviews, be ready to explain why you fixed the way results would be read before the pilot ran.

The first thing to do at your next client: before the tool goes live, write into the measurement plan the covariate you will use and your commitment on whether to read the result with CUPED. A good number after a pilot persuades a client only when the way to read it was written down before day one.

Was this article useful?

Use with your AI assistantAsk Claude ↗Ask ChatGPT ↗
11 sources
Read next on the roadmap · Stage 6: MeasurementFixing a wrong number so the client still trusts the next oneEvery correction costs some trust, but how you name the error decides whether the client sees a careless slip or something being hidden.