Sub topic 12
Measuring incremental lift
This chapter assumes you know what a holdout group is (from the previous chapter on experimentation), can read basic Python and pandas, and understand conversion rate as conversions divided by people reached.
Why raw conversion is misleading
A personalised campaign often reports a high conversion rate. Much of that is not caused by the campaign. Customers in a "high propensity" segment buy often anyway. Incremental lift is the extra outcome caused by the treatment, compared with what would have happened without it.
The working model is simple. Randomly split eligible customers into a treated group and a holdout group. The holdout receives no personalisation, or only the default content. Because assignment is random, the two groups differ only in the treatment, so the difference in outcomes is the effect.
Absolute and relative lift
Two numbers are usually reported.
- Absolute lift is treated rate minus holdout rate, in percentage points.
- Relative lift is absolute lift divided by the holdout rate.
If the holdout converts at 4.0% and the treated group at 4.6%, absolute lift is 0.6 points and relative lift is 15%. Report both, because a 15% relative lift on a tiny base can be worth very little money.
Computing lift with a confidence interval
A lift estimate comes from a sample, so it carries uncertainty. The code below computes both lifts and a 95% confidence interval for the absolute difference, using the normal approximation for two proportions.
from math import sqrt
def lift_report(treated_n, treated_conv, holdout_n, holdout_conv, z=1.96):
p_t = treated_conv / treated_n
p_h = holdout_conv / holdout_n
absolute = p_t - p_h
relative = absolute / p_h
se = sqrt(p_t * (1 - p_t) / treated_n + p_h * (1 - p_h) / holdout_n)
return {
"treated_rate": round(p_t, 4),
"holdout_rate": round(p_h, 4),
"absolute_lift": round(absolute, 4),
"relative_lift": round(relative, 4),
"ci_low": round(absolute - z * se, 4),
"ci_high": round(absolute + z * se, 4),
}
print(lift_report(treated_n=45000, treated_conv=2070,
holdout_n=5000, holdout_conv=200))The treated rate is 4.6% and the holdout rate is 4.0%. The interval for the absolute lift is roughly -0.2 to 1.4 points, so it includes zero. Despite the attractive 15% relative lift, this result is not conclusive. The holdout of 5,000 customers is too small to detect a 0.6 point effect.
Common errors
- Comparing responders with non-responders. Only customers who opened or clicked are compared with everyone else. This builds in selection bias. Always compare whole groups as randomised.
- Comparing against a non-random baseline. Using last month's results or a "similar" audience mixes in seasonality and targeting differences.
- Contaminated holdouts. If holdout customers still receive the same content through another channel, lift is understated. Suppress them everywhere the campaign runs.
- Measuring the wrong outcome. Clicks are cheap to move. Prefer a downstream outcome such as purchases, revenue per customer or retention, and check it over a long enough window.
- Judging segments after the fact. Slicing results into many segments and reporting the best one finds noise. Pre-register the segments you will analyse.
From lift to value
Lift matters when it covers its cost. Multiply the incremental conversions by margin per conversion, then subtract the cost of content, tooling and any discounts given. A segment with high lift but a heavy discount can lose money.
Exercise
A treated group of 20,000 customers converts at 5.5%. A holdout of 20,000 converts at 5.0%. Calculate the absolute lift, the relative lift, and the number of incremental conversions in the treated group.
Show answer
Absolute lift is 5.5% - 5.0% = 0.5 percentage points. Relative lift is 0.5 / 5.0 = 10%. Incremental conversions are 20,000 × 0.005 = 100 conversions. The remaining 1,000 conversions in the treated group (1,100 total minus 100) would likely have happened anyway.
Exercise
A colleague reports that customers who clicked the personalised email bought at twice the rate of customers who did not. Why is this not a measure of lift, and what should be compared instead?
Show answer
Customers who click are self-selected and are likely to be more interested already, so the comparison is biased. Compare all customers randomly assigned to the treatment against all customers randomly assigned to the holdout, whether or not they clicked.