Sub topic 12
Measuring incremental lift
This chapter assumes you know what a holdout group is (from the previous chapter on testing), can read basic Python and pandas, and understand conversion rate as conversions divided by people. It covers how to turn test results into a defensible number for the effect personalisation caused.
Why raw conversion rate misleads
A personalised campaign reports a 6% conversion rate among customers who received it. That number tells you nothing about personalisation. Some of those customers would have bought anyway, especially the high-value segments that a model picks as most likely to respond.
Incremental lift is the difference between what happened with the treatment and what would have happened without it. You cannot observe the second quantity for the same person, so you estimate it from a comparable group that did not receive the treatment. That group is the control (or holdout).
Three terms recur through the chapter:
- Absolute lift is treatment rate minus control rate, in percentage points.
- Relative lift is absolute lift divided by the control rate.
- Incremental conversions are absolute lift multiplied by the number of treated customers. This is the count of outcomes the campaign caused.
The basic calculation
Suppose 20,000 customers in a segment were randomly split. 18,000 received the personalised email and 2,000 were held out.
| Group | Customers | Conversions | Rate |
|---|---|---|---|
| Treatment | 18,000 | 1,080 | 6.00% |
| Control | 2,000 | 100 | 5.00% |
Absolute lift is 1.0 percentage point. Relative lift is 1.0 / 5.0 = 20%. Incremental conversions are 0.01 × 18,000 = 180. The other 900 treatment conversions would likely have happened without the email.
import math
def lift_summary(n_t, c_t, n_c, c_c, z=1.96):
p_t, p_c = c_t / n_t, c_c / n_c
diff = p_t - p_c
se = math.sqrt(p_t * (1 - p_t) / n_t + p_c * (1 - p_c) / n_c)
return {
"treatment_rate": p_t,
"control_rate": p_c,
"absolute_lift": diff,
"relative_lift": diff / p_c,
"incremental_conversions": diff * n_t,
"ci_low": diff - z * se,
"ci_high": diff + z * se,
}
result = lift_summary(n_t=18000, c_t=1080, n_c=2000, c_c=100)
for key, value in result.items():
print(f"{key}: {value:.4f}")The function also returns a 95% confidence interval for the absolute lift, using the normal approximation for a difference of two proportions. With these numbers the interval runs from about -0.3 to +2.3 percentage points. It includes zero, so this test cannot rule out that the true effect is nothing. The 20% relative lift looks impressive but is not yet established.
Uncertainty and sample size
The interval is wide because the control group is small. The standard error is dominated by the smaller group. A 10% holdout is a common compromise, but the right size depends on the effect you need to detect.
A rough planning formula for the per-group sample size to detect an absolute difference d between rates near p at 5% significance and 80% power is:
n ≈ 16 × p(1 − p) / d²
For p = 0.05 and d = 0.01, n ≈ 16 × 0.0475 / 0.0001 = 7,600 per group. The 2,000-person control above is far too small for a one-point effect. Sizing before launch avoids the common outcome where a real effect is called inconclusive.
Two consequences follow:
- Small effects need large controls. If a segment has only 3,000 customers, you may be unable to measure a lift below two or three points.
- Holding out more customers costs revenue if personalisation works. Teams often use a larger holdout at first, then shrink it, or keep a small permanent "global holdout" to track long-run effect.
Choosing the right outcome metric
The metric must match the business goal and the exposure window.
- Conversion within a fixed window (for example 7 days after send) is simple. Fix the window before the test. A window chosen after seeing results inflates false positives.
- Revenue per customer captures order value, not just orders. It is skewed by a few large buyers, so use a trimmed mean, a log transform, or bootstrap intervals rather than the proportion formula above.
- Guardrail metrics such as unsubscribe rate, complaint rate and returns. A campaign that lifts clicks while raising unsubscribes can destroy value.
- Long-term outcomes such as 90-day retention catch cases where a discount pulls forward purchases that would have happened later.
Compute lift on every customer assigned to treatment, whether or not they opened the message. This is the intention-to-treat approach. Comparing only openers to the whole control group is biased, because openers are already more engaged.
Where the comparison breaks
Lift is only valid if the two groups differ in nothing but the treatment. These are the usual failures.
Non-random assignment
If the control is "customers the model scored low" and treatment is "customers scored high," the groups differ before any message is sent. Randomise inside each segment, after the segment is defined. Assign using a stable hash of customer ID and an experiment name so a customer stays in the same arm across sends.
Sample ratio mismatch
If you planned a 90/10 split and the data shows 92/8, something is wrong, such as a filter applied only to one arm or a delivery failure. Check the arm sizes with a chi-square test before reading any outcome. A mismatch means the results are unreliable until the cause is found.
Contamination
Control customers who still see the personalised content, through another channel, a shared device, or a household member, dilute the measured lift. Define holdouts at the level where exposure happens, which is often the household or account rather than the individual.
Selection after assignment
Removing customers from the analysis for reasons that depend on treatment (for example, dropping bounced emails only in the treatment arm) breaks randomisation. Apply identical exclusion rules to both arms.
Segment-level comparison with a model-driven choice
A bandit or next-best-action system chooses content based on observed performance. The groups it creates are not randomly assigned. To measure the whole system, keep a random holdout that receives a fixed default experience, and compare the system against it.
Segment-level and heterogeneous effects
An average lift can hide a segment that responds well and another that is harmed. Report lift per segment, but treat the results with care. Splitting into many segments multiplies the chance that one looks significant by luck. Pre-register which segments you will examine, or apply a multiple-comparison correction such as Bonferroni (divide the significance level by the number of comparisons).
Segment lift also tells you where to spend. A segment with high conversion and zero lift is a "sure thing" that does not need a message. A segment with low conversion and positive lift is where personalisation earns its cost. This is the idea behind uplift modelling, which predicts the lift per customer instead of the likelihood of converting. It needs randomised data to train, which is another reason to keep a holdout running.
Turning lift into value
Convert incremental conversions into money using incremental, not total, revenue and subtract costs.
def incremental_value(n_treated, abs_lift, value_per_conversion,
margin, cost_per_send):
incremental = n_treated * abs_lift
gross_profit = incremental * value_per_conversion * margin
cost = n_treated * cost_per_send
return {"incremental_conversions": incremental,
"net_profit": gross_profit - cost}
print(incremental_value(18000, 0.01, 60.0, 0.4, 0.002))With 180 incremental conversions at 60 currency units and a 40% margin, gross profit is 4,320 and send cost is 36, so net profit is 4,284. Apply the same calculation to the lower end of the confidence interval to see whether the programme still pays under a pessimistic reading.
Common mistakes
| Mistake | Effect | Fix |
|---|---|---|
| Comparing to last month's rate | Seasonality counted as lift | Use a concurrent control |
| Reporting only relative lift | Small effects look large | Report absolute lift and interval |
| Stopping when the result looks good | Inflated false positives | Fix duration or sample size in advance |
| Analysing openers only | Engagement bias | Use intention-to-treat |
| Ignoring guardrails | Hidden harm | Track unsubscribes and complaints |
Exercise
A test sends a personalised offer to 9,000 customers and holds out 1,000. Treatment converts 720 customers and the holdout converts 60. Compute the absolute lift, relative lift and incremental conversions. Then say whether you would trust the result and why.
Show answer
Treatment rate is 720/9,000 = 8.0%. Control rate is 60/1,000 = 6.0%. Absolute lift is 2.0 points. Relative lift is 2.0/6.0 = 33%. Incremental conversions are 0.02 × 9,000 = 180. The standard error is sqrt(0.08×0.92/9000 + 0.06×0.94/1000) = sqrt(0.00000818 + 0.0000564) ≈ 0.00805, so the 95% interval is 0.02 ± 0.0158, about 0.4 to 3.6 points. It excludes zero, so the lift is likely real, but it is imprecise because the holdout is small. Before trusting it, confirm assignment was random and the 90/10 split held (sample ratio check), and that the outcome window was fixed in advance.
Exercise
Why does comparing only customers who opened the personalised email to the whole holdout overstate lift?
Show answer
Openers are more engaged than average and would convert at a higher rate even without the message. The holdout includes both engaged and unengaged customers, so the comparison mixes a selection effect with the treatment effect. Using all customers assigned to treatment (intention-to-treat) keeps the two groups comparable.