Sub topic 14
Sending the winner to the rest of the list
This chapter assumes you can already run a two-proportion z-test and size a test with the formula from earlier chapters. It also assumes you know your platform's basic terms: list, segment, campaign, click rate. It covers the last step of a test-and-send-winner campaign: choosing a winner and sending it to everyone who has not yet received the email.
What a winner rollout is
In a test-and-send-winner campaign, you send each variant to a small random slice of the list. You wait. You pick the better variant and send it to the remainder. The test slices are the test cells. The remainder is the rollout group.
The design has one real benefit: most of your audience gets the better version of the email. It also has costs:
- The test cells must be large enough to detect the effect you care about.
- The rollout group is sent later, so it differs from the test cells in timing.
- The winner is chosen by a rule, and a bad rule picks bad winners.
If the learning is the main goal (for example, a send-time test you want to reuse), a plain split of the whole list is often better. You then have the largest possible sample.
Fix the rule before you send
Write down four things before launch:
- Primary metric. Use the metric from your hypothesis. Clicks per delivered email is usually safer than opens, because Mail Privacy Protection inflates opens.
- Test cell size. Take it from your sample size calculation, not from a round percentage.
- Wait window. Decide how long to wait before judging.
- Decision rule and fallback. Define what counts as a winner and what you send if there is none.
Changing any of these after you see data is peeking in another form. It produces false winners.
Size the test cells from the calculation
Many platforms ask for a test percentage, such as 10% or 20%. Work backward from the sample size instead. Using the formula for a click rate moving from 2% to 2.5%, you need about 13,800 recipients per variant. For two variants that is about 27,600 recipients.
On a list of 200,000, that leaves about 172,000 for the rollout. The following code does that arithmetic and refuses a list that is too small:
def split_plan(list_size, n_per_variant, variants=2):
test_total = n_per_variant * variants
if test_total >= list_size:
raise ValueError("List is too small to hold the test and a rollout group.")
return {
"per_variant": n_per_variant,
"rollout_group": list_size - test_total,
"test_share": test_total / list_size,
}
plan = split_plan(200_000, 13_807)
print(plan)Two situations call for a different approach:
- The list is barely larger than the test cells. Little is left to roll out, so the winner choice has almost no value. Run a normal split test and use the result on future campaigns.
- The list is much smaller than the required sample. The test is underpowered. A "winner" will usually be noise. Either test a bigger change (a larger minimum detectable effect) or do not test.
Wait long enough, and wait the same for every cell
Choose the wait window before sending. It must be the same for each variant, and measured from each recipient's own send time.
For clicks, 24 hours covers most of the engagement for typical marketing email. A window of one or two hours is common in platform defaults. It over-represents people who check email immediately, who may not be typical of your list. If the variants differ in how fast people react, a short window can also pick the wrong winner.
The wait has a cost: the rollout group receives the email later. For a time-sensitive offer, you may have to accept a shorter window and a weaker test. Decide that trade-off on purpose.
The decision rule
A simple, defensible rule has three outcomes:
- The difference is significant at your chosen alpha, and the better variant is the winner.
- The difference is not significant, so there is no winner. Send a pre-declared default, usually the control.
- The difference is significant but too small to matter in practice. Treat this as no winner too, if the variants cost the same to produce and you have a stated minimum lift.
The code below implements this rule with the pooled z-test from the earlier chapter:
from math import sqrt
from statistics import NormalDist
def choose_winner(clicks_a, sent_a, clicks_b, sent_b,
alpha=0.05, min_lift=0.0, default="A"):
p_a = clicks_a / sent_a
p_b = clicks_b / sent_b
pooled = (clicks_a + clicks_b) / (sent_a + sent_b)
se = sqrt(pooled * (1 - pooled) * (1 / sent_a + 1 / sent_b))
z = (p_b - p_a) / se
p_value = 2 * (1 - NormalDist().cdf(abs(z)))
lift = p_b - p_a
if p_value < alpha and abs(lift) >= min_lift:
winner = "B" if lift > 0 else "A"
else:
winner = default
return {"winner": winner, "lift": lift, "z": z, "p_value": p_value}
result = choose_winner(400, 20000, 470, 20000, min_lift=0.002)
print(result)With 400 clicks against 470 clicks on 20,000 sends each, B's click rate is 2.35% against 2.00%. The lift is 0.35 percentage points, z is about 2.40, and p is about 0.016. B clears both the alpha threshold and the minimum lift, so B is sent to the rollout group.
Why platform "auto-winner" settings need checking
Many email platforms automate the winner step. Before you trust one, check these settings:
| Setting | Risk | What to do |
|---|---|---|
| Winner metric is open rate | Mail Privacy Protection opens are automated, so opens are inflated and unevenly spread across variants | Pick clicks, or a downstream action, if the platform allows it |
| Short default wait (1 to 4 hours) | Favors fast responders | Lengthen it to your chosen window |
| Winner is the higher raw number | No significance check, so noise wins about half the time when there is no real difference | Record counts and run your own test, or require a margin |
| Test cells are a fixed percentage | May be too small for your effect size | Set the percentage from your sample size calculation |
| Ties pick a variant at random | You cannot tell it was a tie | Set the default to the control |
A raw higher number is the largest trap. With no real difference at all, one variant is still higher almost every time. An automated rule that always declares a winner will always report one.
Send-time tests need a different design
Rollout does not work cleanly for send-time tests. The test cells receive the email at, say, 9:00 and 17:00 on Tuesday. The rollout group then receives the winning time on another day. Day of week, news, and your own other campaigns can all change behavior. The measured lift may not carry over.
Two safer options are:
- Use the rollout only to deliver the email, and treat the test result as a hypothesis. Confirm it with a second test on a later campaign.
- Keep a small random holdout at the losing time during rollout. This gives you ongoing evidence that the winning time still works.
Expect the winner to look smaller later
The variant that wins a test is selected partly because it got lucky. Its measured lift is, on average, larger than its true lift. This is the winner's curse, a form of regression to the mean. If the test reports a 0.35 point lift, plan for the rollout to deliver less. This matters most when the test was barely powered or when you picked the best of several variants.
You can check this directly. Compare the rollout group's click rate for the winner against the winner's click rate in the test. If the rollout rate is consistently lower across campaigns, your tests are too small or your wait windows too short.
Record what you decided
For each rollout, log the following so the next campaign can reuse it:
- The hypothesis, metric, alpha, minimum lift, and wait window as written before sending.
- Sent counts, click counts, lift, p-value, and which variant won.
- Whether the rule gave a winner or fell back to the default.
- The rollout group's later result, to track how much the winner shrank.
Exercise
You test two subject lines on 5,000 recipients each, with a 24-hour window. Variant B has 110 clicks and variant A has 95. The platform's auto-winner setting declares B the winner after 2 hours and sends B to the remaining 90,000 people. Name two problems with this process.
Show answer
First, the winner was chosen after 2 hours instead of the pre-declared 24-hour window, so the decision favors fast responders and acts on early data. Second, the difference (2.2% against 1.9% on 5,000 each) is small for this sample size and almost certainly not significant. A pooled z-test gives z of about 1.0, so the pick is probably noise. A correct process would wait the full window, run the test, and send the default control if there is no significant difference.
Exercise
Your list has 30,000 people. Your sample size calculation says you need 13,800 per variant for two variants. What should you do?
Show answer
Do not run a test-and-send-winner campaign. The two test cells would use 27,600 of the 30,000 recipients, leaving about 2,400 for the rollout, so the winner choice would barely matter. Either test a larger effect, which needs fewer recipients, or send a plain split across the whole list and use the result for future campaigns.