Sub topic 3
How much traffic is enough, and how to read a conversion rate
This chapter assumes you know what a conversion rate is (clicks divided by visitors), that you have set success and failure thresholds before launching a fake door test, and that you can read short Python.
Reading a conversion rate with uncertainty
A conversion rate from a small sample is an estimate, not a fact. A confidence interval gives the range of true rates that fit your data. If the interval is wider than the gap between your success and failure thresholds, the test cannot decide yet.
import math
def wilson_interval(successes, n, z=1.96):
"""Approximate 95% confidence interval for a conversion rate."""
if n == 0:
return (0.0, 1.0)
p = successes / n
denom = 1 + z**2 / n
centre = (p + z**2 / (2 * n)) / denom
margin = z * math.sqrt(p * (1 - p) / n + z**2 / (4 * n**2)) / denom
return (centre - margin, centre + margin)
low, high = wilson_interval(18, 400)
print(f"{18/400:.1%} observed, 95% interval {low:.1%} to {high:.1%}")With 18 clicks from 400 visitors, the output is about 4.5% observed, with an interval of roughly 2.9% to 7.0%.
Running fake door tests honestly
A fake door test shows a button for a feature that does not exist. Treat the people who click it fairly:
- Tell them right away that the feature is not available yet.
- Log only the event you need for the experiment.
- Offer a waitlist or a short survey if you want to follow up, and say so on the page.
- Never charge anyone or show a fake price.
> Honest follow-up is part of the test design, not an optional extra.
Biases and pitfalls: clicks are not purchases
- Curiosity clicks. People click to see what the button does. Count only clicks that match your hypothesis.
- Early stopping. Checking daily and stopping at the first good number inflates false positives. Stop at the planned sample size.
- Changing thresholds after the fact. Moving the success line to fit the result removes the test's value.
- Traffic mismatch. Visitors from a broad campaign may not be your target customer.
Deciding to proceed, pivot or stop
Apply the decision rule you wrote before launch:
If the confidence interval straddles both thresholds, the evidence is unclear. Retest with more traffic rather than deciding on a point estimate.
Exercise
A test shows 9 clicks from 200 unique visitors, and the plan requires at least 400 visitors. Can you decide yet?
Show answer
The rate is 4.5%, but 200 visitors is below the 400 minimum set in advance. Keep the test running until it reaches 400 visitors, then compare the interval with the thresholds.