Sub topic 12
Designing the follow-up test
This chapter assumes you can read funnel metrics (CTR, CVR, CPA, ROAS), run a two-proportion z-test, and have already chosen a change to try using a ranked list and a scale, iterate, or stop decision. Now you turn that decision into an experiment that gives a clear answer.
What a follow-up test is for
A follow-up test answers one question left open by the review. It is not a second campaign launched in the hope that it does better. If you change the headline, the audience, and the landing page together, a better result tells you nothing about which change helped.
A well-designed test has seven parts:
- A hypothesis in the form "If we change X, then metric Y will move by about Z, because of reason R."
- One variable that differs between the control and the variant.
- One primary metric, chosen before launch.
- A minimum detectable effect (MDE), which is the smallest lift worth acting on.
- A required sample size and a planned duration.
- Guardrail metrics that must not get worse.
- Decision rules written down before the data arrives.
Start from the hypothesis
Take the output of the previous chapters. Suppose the funnel review showed that the campaign's CTR was healthy at 1.5%, but only 4% of clicks converted. Your top-ranked idea was "Shorten signup form". A usable hypothesis is:
> If we cut the signup form from seven fields to three, the click-to-conversion rate will rise from 4% to at least 5%, because the form is where visitors drop off.
This hypothesis names the change, the metric, the expected size, and the reason. The reason matters. If the test fails, the reason tells you which belief was wrong, and that is what goes into your learning log.
One variable, and what that means in practice
Change one thing that you can name. "Shorter form" is one variable even if three fields disappear. "Shorter form plus new headline" is two.
Sometimes you must ship a bundle, for example when a redesign cannot be split. In that case, say so in the test plan and treat the result as a verdict on the bundle only. Do not claim it proves any single element works.
Keep everything else equal for both arms:
- Same traffic source and targeting.
- Same budget pacing and bid settings.
- Same dates, so both arms see the same weekdays, promotions, and news.
- Same attribution window and conversion definition.
Choose the primary metric and guardrails
Pick the primary metric that sits closest to the change. A form change affects conversion rate, so conversion rate is the primary metric. CTR cannot move because the form comes after the click. ROAS is affected by the form but also by price, product mix, and order size, so it is too noisy to judge a form change.
Guardrails protect against wins that hurt the business. For the shorter form, reasonable guardrails are:
- Lead quality, for example the share of leads that become qualified or paying customers.
- Refund or unsubscribe rate.
- Cost per acquisition, if traffic cost could change.
A shorter form may raise CVR while bringing in lower-quality leads. If you only watch CVR, you will declare victory over a worse funnel.
Set the minimum detectable effect
The MDE is the smallest improvement that would change your decision. Set it from business value, not from what is easy to detect. Ask: what lift would pay for the work and justify scaling?
The MDE controls the cost of the test. Sample size grows with the inverse square of the effect, so halving the MDE roughly quadruples the traffic you need. If the traffic for your MDE is out of reach, you have three honest choices:
- Test a bigger change.
- Accept a larger MDE.
- Use a higher-traffic metric, such as a step earlier in the funnel, and say you are doing so.
Do not shrink the sample and hope.
Calculate the sample size
For a conversion rate, the sample size per variant for a two-sided test is:
n = (zα/2 + zβ)² × (p₁(1 − p₁) + p₂(1 − p₂)) / (p₂ − p₁)²
Here p₁ is the baseline rate and p₂ is the baseline plus the MDE. The z values come from your significance level α (usually 0.05) and power 1 − β (usually 0.8). Power is the chance the test detects a real effect of at least the MDE.
from math import ceil
from statistics import NormalDist
def sample_size_per_variant(p_baseline, p_target, alpha=0.05, power=0.8):
z_alpha = NormalDist().inv_cdf(1 - alpha / 2)
z_beta = NormalDist().inv_cdf(power)
variance = p_baseline * (1 - p_baseline) + p_target * (1 - p_target)
effect = p_target - p_baseline
return ceil((z_alpha + z_beta) ** 2 * variance / effect ** 2)
def duration_days(n_per_variant, variants, eligible_per_day):
total = n_per_variant * variants
return ceil(total / eligible_per_day)
n = sample_size_per_variant(p_baseline=0.04, p_target=0.05)
print(n)
print(duration_days(n, variants=2, eligible_per_day=1000))For a 4% baseline and a 5% target, the test needs roughly 6,700 visitors per variant, so about 13,500 in total. At 1,000 eligible visitors a day, that is about 14 days.
Compare this with the earlier two-proportion z-test example, which used 2,500 visitors per arm and saw 4.0% against 5.2%. A real lift of that size can still fail to reach significance with a smaller sample. This is why you calculate the sample size before launch and not afterwards.
Turn sample size into a schedule
Sample size gives a minimum number of days. Adjust it in three ways:
- Round up to whole weeks. Many campaigns have weekday and weekend patterns. A 10-day test overweights some days.
- Cover at least one full business cycle if your conversions lag. If purchases usually happen three days after the click, wait for that window to close before reading results.
- Check for events that distort traffic, such as a sale, a holiday, or a budget change. Move the test or extend it.
Do not stop early because the numbers look good. Checking results daily and stopping at the first significant reading inflates false positives well beyond the 5% you chose. If you need to monitor, use a sequential method designed for repeated looks. Otherwise, look only at the planned end.
Assign traffic correctly
How users are split matters as much as how many there are.
- Randomize at the level of the person or device, not the day. Running A on Monday and B on Tuesday confounds the variant with the weekday.
- Keep each user in the same arm for the whole test. A visitor who sees both forms contaminates both groups.
- Use an even split unless there is a reason not to. An uneven split, such as 90/10 to limit risk, makes the test take longer to reach the same power.
- On ad platforms, use the built-in experiment or split-test feature. Manually duplicating campaigns lets the platform's delivery optimization send different audiences to each copy.
- Check the split after launch. If you planned 50/50 and see 55/45 on a large sample, something is wrong with assignment, and the results are not trustworthy.
Write decision rules before launch
Tie the outcomes back to the scale, iterate, or stop rules from the previous chapter. Write them in advance in a form like this:
| Outcome at planned end | Action |
|---|---|
| Variant better, p below 0.05, lift at least MDE, guardrails hold | Scale the variant |
| Variant better, but p above 0.05 or lift below MDE | Iterate: keep the control, refine the idea |
| Variant better, but a guardrail worsened | Do not scale; investigate quality |
| No difference, with enough sample to rule out the MDE | Stop this idea |
| Variant worse, p below 0.05 | Stop and record why the hypothesis was wrong |
Note that "no significant difference" does not always mean "no effect". If the test had full power for your MDE, a null result tells you the effect is smaller than the MDE, which is useful. If the test ended early or ran short on traffic, a null result is inconclusive.
Worked test plan
Here is the plan for the shorter form, written as you might record it:
- Hypothesis: Reducing the form from seven fields to three raises click-to-conversion from 4% to at least 5%.
- Variable: Number of form fields.
- Primary metric: Conversion rate among visitors who reach the form.
- Guardrails: Qualified-lead rate at 30 days, and CPA.
- MDE and statistics: +1 percentage point, α = 0.05, power 0.8.
- Sample: About 6,700 per variant.
- Duration: 14 days, from a Monday to a Sunday, with one more week allowed for late conversions.
- Assignment: 50/50, random by user ID, platform split-test tool.
- Decision rules: As in the table above.
Common mistakes
- Choosing the primary metric after seeing which one moved.
- Testing several variants at once without adjusting for multiple comparisons. Each extra variant raises the chance of a false win and adds to the traffic needed.
- Reading segment results from a test that was not designed for them. Segments are fine as hypotheses for the next test, but a test sized for the whole audience is underpowered inside a small segment.
- Changing the test mid-flight, such as editing the page or budget. Restart the test instead.
- Treating a significant result as a guaranteed lift. The measured lift is an estimate with an interval around it.
Exercise
Your baseline conversion rate is 5%. You want to detect a lift to 6% with α = 0.05 and power 0.8. About 8,000 eligible visitors per variant are needed. You have 800 eligible visitors a day and two variants. How many days does the test need before rounding, and what would you do about rounding?
Show answer
Total visitors needed are 8,000 × 2 = 16,000. At 800 per day that is 20 days. Round up to whole weeks, so run 21 days (three full weeks), and allow extra time if conversions lag the click.
Exercise
After four days, the variant shows a p-value of 0.03 and your planned test length is 14 days. A colleague wants to stop and scale. What is the problem, and what should you do?
Show answer
Stopping at the first significant reading inflates the false positive rate above the chosen 5%, because repeated looks give many chances for a random fluctuation to cross the threshold. Keep the test running to the planned end, then apply the decision rules. If you must monitor continuously, use a sequential testing method designed for it.
Exercise
A test of a new ad headline raises CTR from 1.5% to 1.8%, but conversion rate from click to purchase drops, and CPA rises. Which metric should have been the primary one, and which result acts as a guardrail here?
Show answer
If the goal is acquiring customers efficiently, CPA (or click-to-conversion rate with CPA as the check) should be primary. CTR is an earlier-stage metric. Here CPA and conversion rate act as guardrails that show the higher CTR brought in less qualified clicks, so the headline should not be scaled on CTR alone.