Sub topic 14
Testing and holdouts without relying on opens
This chapter assumes you know how open and click rates are computed, why opens are inflated by Apple Mail Privacy Protection and scanners, and why delivered is the usual denominator. If any of that is unfamiliar, review the earlier chapters on denominators and open inflation first.
Why open-based tests fail
A classic A/B test picks a winner by open rate. Subject line A gets 42% and B gets 38%, so A wins. That conclusion breaks when a large share of opens are machine-generated. Prefetched opens fire for both variants regardless of what the subject line said. They add the same noise to each arm and shrink the real difference between them. Image blocking removes some real opens from the count. The result is a test that often declares a winner with no real difference behind it.
A subject line test is still worth running. The measurement is what has to change.
Choose a metric closer to the goal
Pick a primary metric before the test starts, and pick one that a machine is unlikely to trigger.
| Test goal | Better primary metric | Caveat |
|---|---|---|
| Subject line | Unique clicks per delivered | Subject lines influence opening, so check that clicks follow |
| Body or call to action | Click rate per delivered | Filter known scanner clicks |
| Offer or landing page | Conversion rate per delivered | Needs enough volume |
| Re-engagement | Replies or conversions | Replies are rare, so tests run longer |
Use delivered as the denominator for every arm. Compare unique counts, not total events, so one enthusiastic recipient cannot move the result.
Holdout groups
An A/B test compares two sends. A holdout compares sending against not sending. You randomly withhold a small share of the audience, such as 5% to 10%, and send nothing to them. Afterward you compare a business outcome, such as purchases or sign-ups, between the two groups.
This answers the question that opens cannot: did the email cause anything? People who click were often going to buy anyway. Only the gap between the sent group and the holdout shows the extra effect of the campaign.
import random
def assign_groups(recipient_ids, holdout_share=0.1, seed=42):
rng = random.Random(seed)
groups = {}
for rid in recipient_ids:
groups[rid] = "holdout" if rng.random() < holdout_share else "sent"
return groups
def lift(conv_sent, n_sent, conv_hold, n_hold):
rate_sent = conv_sent / n_sent if n_sent else 0.0
rate_hold = conv_hold / n_hold if n_hold else 0.0
return rate_sent - rate_hold
groups = assign_groups(range(1, 20001))
n_hold = sum(1 for g in groups.values() if g == "holdout")
n_sent = len(groups) - n_hold
print(f"Sent: {n_sent}, Holdout: {n_hold}")
# Example outcomes counted after the campaign window
print(f"Absolute lift: {lift(540, n_sent, 48, n_hold):.2%}")Assign groups at random, once, before sending. Do not build the holdout from non-openers or any other behavior, because that bakes a difference into the groups before the test begins.
Common errors
- Declaring a winner too early. Fix the sample size and the end date before you start.
- Testing many variants and picking the best one. Each extra comparison raises the chance of a false winner.
- Measuring the holdout over a different window than the sent group.
- Holding out so few people that the baseline rate is mostly noise.
- Using opens as a tiebreaker when clicks are close. That reintroduces the problem you removed.
Exercise
A team sends 18,000 delivered emails and withholds 2,000 people. In the sent group 450 people buy, and in the holdout 30 people buy. What is the absolute lift, and why is it a better measure than the sent group's click rate?
Show answer
The sent group converts at 450 / 18,000 = 2.50%. The holdout converts at 30 / 2,000 = 1.50%. The absolute lift is 1.00 percentage point. It is better than click rate because it compares against people who got no email, so it measures what the campaign caused and not behavior that would have happened anyway, and no pixel or scanner can distort it.