Sub topic 1
What an A/B Test Is and When It Is Worth Running
Prerequisites
This chapter assumes you know basic email marketing terms (list, campaign, open rate, click rate). You should be comfortable with percentages and proportions, and have a basic idea of probability and averages. The Python snippets are short and optional to read.
What an A/B test is
An A/B test is a controlled experiment. You send two versions of one email, A and B, to similar groups of recipients at the same time. Then you compare a pre-chosen metric between the groups.
The key word is controlled. Recipients are assigned to a version by chance, and only one thing differs between versions. If B gets more clicks, you can then credit the difference to the change you made. Chance can still produce a gap, which later chapters show how to measure.
In this tutorial the thing you change is either the subject line or the send time.
How it differs from just comparing campaigns
Many teams compare last week's newsletter with this week's and call it a test. That comparison is not controlled. The audience, the offer, the day, and the season all changed along with the subject line. You cannot tell which change moved the result.
An A/B test removes those differences. Both versions go out together, to groups drawn from the same list, so outside factors affect both groups equally.
When a test is worth running
A test costs effort and, if the list is small, time. Run one when these conditions hold:
- You can act on the answer. If you would send the same email whatever the result, skip the test.
- The list is large enough. Small differences in click rate need thousands of recipients per version. A later chapter shows how to calculate this.
- The decision repeats. A lesson about subject lines or send times pays off across many campaigns. A one-off announcement gives you little to reuse.
- You have a specific idea. "Does a question in the subject line beat a statement?" is testable. "Let's see what works" is not.
Consider skipping a test when your list has only a few hundred people. The result will be too noisy to trust, and you would do better to rely on best practice or a larger, less frequent test.
Why chance matters
Even if two versions are identical, their results will differ a little, because different people behave differently. This is why we need statistics. Run this simulation to see the effect. Both groups have the same true 2% click rate.
import random
random.seed(7)
def simulate_clicks(n, rate):
return sum(random.random() < rate for _ in range(n))
n = 2000
for trial in range(1, 6):
a = simulate_clicks(n, 0.02) / n
b = simulate_clicks(n, 0.02) / n
print(f"trial {trial}: A={a:.3%} B={b:.3%} gap={b - a:+.3%}")Each trial shows a gap even though nothing differs between the groups. A test is only useful if it can separate a real effect from this background noise.
Common mistakes at the start
- Changing several things at once, such as the subject line and the sender name, so you cannot tell which one mattered.
- Choosing the metric after seeing the results.
- Splitting the list by hand, for example the first half versus the second half, which may hide differences in sign-up date or engagement.
Exercise
Your team sends a monthly newsletter to 600 subscribers. The editor wants to test two subject lines, and will send whichever wins in future months. Is this test worth running? Give two reasons.
Show answer
Probably not as designed. The list is small, so with a click rate near 2% each version would produce only a handful of clicks and the difference would mostly be noise. Also, a monthly newsletter changes in content each month, which makes it hard to reuse one result. A better approach is to test on a larger send or to repeat the same kind of test across several months and combine the evidence.