Sub topic 4
Setting success and failure thresholds before you test
This chapter assumes you can state a testable hypothesis (the previous chapters cover this) and that you know the difference between stated and behavioral evidence. You should also be comfortable with percentages. The Python snippets are optional reading.
Why thresholds come first
A test result is only a number until you decide what it means. If you pick the meaning after you see the number, you will tend to read it kindly. A 1.5% conversion rate looks "promising" if you hoped for 1% and "disappointing" if you hoped for 3%. Fixing the thresholds first removes that room for reinterpretation.
A threshold is a pre-agreed value of a metric that triggers a specific action. You need two:
- A build threshold: the result that justifies moving forward.
- A stop threshold: the result that tells you to abandon or change the idea.
Results between the two are not a failure. They mean the test was inconclusive, and you change the offer or audience and rerun it.
The parts of a test plan
A usable plan fixes five things in writing before launch:
- The segment: who counts as a qualified visitor.
- The metric: the single behavior you measure.
- The minimum sample: how many qualified visitors you need before reading the result.
- The build threshold.
- The stop threshold.
Here is a plan for a fake-door pricing page:
hypothesis: "Freelance designers will pay $19/month for automated invoice reminders"
segment: "Freelance designers who invoice at least 5 clients per month"
test: "Fake-door pricing page with a 'Start paid trial' button"
metric: "Share of qualified visitors who click 'Start paid trial' and enter card details"
minimum_sample: 300 qualified visitors
build_if: "Lower bound of the 95% confidence interval is at least 2%"
stop_if: "Upper bound of the 95% confidence interval is below 1%"
otherwise: "Change the offer or the audience and rerun the test"The thresholds use the confidence interval, not the raw rate. With a small sample, the observed rate can sit well away from the true rate. Requiring the lower bound to clear the build line means you build only when even a pessimistic reading is good enough.
Checking the plan against real data
The Wilson interval gives a plausible range for the true conversion rate. Suppose 18 of 400 qualified visitors entered card details:
import math
def wilson_interval(successes, trials, z=1.96):
"""95% Wilson score interval for a conversion rate."""
if trials <= 0:
raise ValueError("trials must be positive")
if not 0 <= successes <= trials:
raise ValueError("successes must be between 0 and trials")
p = successes / trials
denom = 1 + z**2 / trials
centre = (p + z**2 / (2 * trials)) / denom
margin = z * math.sqrt(p * (1 - p) / trials + z**2 / (4 * trials**2)) / denom
return centre - margin, centre + margin
low, high = wilson_interval(successes=18, trials=400)
print(f"Observed rate: {18 / 400:.1%}")
print(f"95% interval: {low:.1%} to {high:.1%}")The observed rate is 4.5%. The interval is roughly 2.9% to 7.0%. The lower bound is above 2%, so this plan says build. Had the interval been 0.8% to 3.5%, the plan would say neither build nor stop, and you would adjust and retest.
Common errors
- Choosing thresholds from hope. Base the build line on what the business needs, such as the conversion rate at which the unit economics work, not on a number that feels good.
- Peeking and stopping early. Checking results daily and stopping when they look good inflates false positives. Wait for the minimum sample.
- Counting unqualified traffic. Visitors outside your segment dilute the rate and make the interval meaningless.
- Moving the line afterwards. If you change a threshold after seeing data, record that the test was not pre-registered and treat the result as weaker evidence.
Exercise
A test has a build threshold of "lower bound at least 3%" and a stop threshold of "upper bound below 1%". After the minimum sample, the 95% interval is 1.8% to 5.2%. What do you do, and why?
Show answer
Neither build nor stop. The lower bound (1.8%) is below 3%, so the build condition fails, and the upper bound (5.2%) is above 1%, so the stop condition fails. The result is inconclusive. Change the offer or audience, or collect more qualified traffic, and rerun the test against the same thresholds.