Sub topic 2
Designing Subject Line Variants Worth Testing
Assume you know basic email terms, percentages, proportions, and averages. You should also understand that random assignment gives each recipient a known chance of receiving each version.
Designing subject line variants worth testing
Change one deliberate feature at a time. You might compare a clear benefit with a curiosity-based phrase, or a specific subject with a general one. Keep the sender, preview text, email body, audience, and send time the same.
Write a hypothesis before sending:
> If the subject states the benefit directly, then click rate will increase compared with the current subject, because recipients will understand the email's value sooner.
Use click rate as the primary metric when possible. Open rate can be a supporting metric, but privacy tools and image loading make it less reliable.
| Variant | Deliberate change | Example |
|---|---|---|
| A | Current subject | “Your weekly product update” |
| B | Clear benefit | “Save time with this week’s product update” |
Designing a send-time test
A send-time test compares delivery times while keeping the message and audience composition constant. Randomly divide eligible recipients into groups. Send the same email to each group at different times.
For example, compare Tuesday at 9:00 with Tuesday at 15:00 in each recipient’s local time. Do not send the same campaign to the same person at both times. Measure the same primary outcome for both groups.
Time zones, day of week, and other confounders
A confounder is a factor that changes with the variant and can imitate its effect. A test that sends one variant in the morning to customers in one region and another variant in the afternoon to a different region mixes timing with audience differences.
Control these factors by:
- Assigning recipients randomly within major regions or time zones.
- Using the same day of week when testing hours.
- Keeping eligibility rules, campaign content, and suppression rules identical.
- Recording holidays, outages, and other unusual events.
If you cannot control a factor, record it and limit your conclusion. You may be able to say that one schedule worked better for one segment, but not that the time alone caused the result.
Calculating sample size before you send
Estimate the baseline click rate and choose a minimum detectable effect, or MDE. The MDE is the smallest improvement worth acting on. A smaller MDE requires more recipients.
from math import ceil
from statistics import NormalDist
def sample_size_per_variant(p_base, p_target, alpha=0.05, power=0.8):
z_alpha = NormalDist().inv_cdf(1 - alpha / 2)
z_beta = NormalDist().inv_cdf(power)
variance = p_base * (1 - p_base) + p_target * (1 - p_target)
return ceil((z_alpha + z_beta) ** 2 * variance / (p_target - p_base) ** 2)
print(sample_size_per_variant(0.02, 0.025))This approximation uses a 5% significance level and 80% power. Calculate the required sample before launching. Do not stop when a variant briefly leads.
Exercise
You want to test two Tuesday send times, but one group contains only European recipients and the other contains only North American recipients. What is the main problem?
Show answer
Region is confounded with send time. Randomize within regions, or avoid claiming that time alone caused any difference.