Sub topic 4
Setting success and failure thresholds before you test
This chapter assumes you can state a hypothesis and know the difference between stated and behavioral evidence from earlier chapters. You should be comfortable with percentages. The Python snippets are optional but run as shown.
Why thresholds must come first
A test produces a number. Without a threshold fixed in advance, almost any number can be explained as success: "3% is great for a cold audience" or "3% is low, but the ad creative was weak". Once you have seen the data, you also want the idea to work. That bias bends your reading of results toward what you hoped for.
A pre-set threshold turns the test into a decision rule. You write down what result makes you build, what result makes you stop, and what happens in between. The result then cannot be reinterpreted afterwards.
Thresholds also protect against the opposite error. A team that sees a disappointing number can quietly lower its bar so it can keep working on an idea it likes. Writing the bar down makes any change visible, and a changed bar after the fact is a signal to distrust the conclusion.
The parts of a test plan
A complete plan fixes six things before any traffic arrives:
- Hypothesis. One falsifiable sentence naming the segment, the behavior and the price.
- Segment. Who counts as a valid participant. Visitors outside the segment are excluded from the denominator.
- Metric. One primary metric with exact start and end events, for example "clicks 'Start paid trial' and enters card details".
- Minimum sample. How many qualified visitors you collect before reading the result.
- Decision thresholds. The result that triggers build, and the result that triggers stop.
- Fallback. What you do when the result lands in between.
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"Commit this file to version control or send it to a teammate before launch. A timestamp shows the plan was fixed before the data arrived.
Choosing the numbers
Where the build threshold comes from
Do not pick 2% because it sounds reasonable. Work backwards from the business. Suppose you need 1,000 paying customers in year one to justify the project. You can estimate how many visitors you can realistically attract, and the visit-to-paid rate you need follows from that. Add a margin, because a fake-door click overstates real purchases: some people click and then abandon the card form, and some never convert after the trial.
Benchmarks from similar products can inform the number, but they are weak anchors. Conversion varies a lot by channel, price and audience, so treat a benchmark as a sanity check and not a target.
Where the stop threshold comes from
The stop threshold is the rate below which the idea cannot work even with generous assumptions about later improvements. It is usually lower than the build threshold. The gap between the two is the zone where the data do not settle the question.
Use intervals, not point estimates
Conversion from a few hundred visitors is noisy. The plan above compares the interval, not the observed rate, with the thresholds. Requiring the lower bound to clear the build threshold means that even a pessimistic reading of the data still supports building. Requiring the upper bound to fall below the stop threshold means that even an optimistic reading still says stop.
The function below computes a 95% Wilson interval and applies the rule.
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
def decide(successes, trials, build_low=0.02, stop_high=0.01):
low, high = wilson_interval(successes, trials)
if low >= build_low:
verdict = "build"
elif high < stop_high:
verdict = "stop"
else:
verdict = "inconclusive: change the offer or audience and rerun"
return low, high, verdict
for successes, trials in [(18, 400), (6, 300), (0, 300)]:
low, high, verdict = decide(successes, trials)
print(f"{successes}/{trials}: {low:.1%} to {high:.1%} -> {verdict}")Running it gives these results:
| Result | 95% interval | Verdict |
|---|---|---|
| 18 of 400 (4.5%) | about 2.9% to 7.0% | Build: the lower bound is above 2% |
| 6 of 300 (2.0%) | about 0.9% to 4.3% | Inconclusive: the lower bound is below 2% and the upper bound is above 1% |
| 0 of 300 (0%) | about 0% to 1.3% | Inconclusive: zero buyers, but the upper bound is still above 1% |
The second row shows why an observed rate equal to the build threshold is not a pass. The third row shows a subtler issue, covered next.
Check that the plan can reach a verdict
A plan is only useful if the sample can produce a build or stop result. With 300 visitors, even zero buyers leaves an upper bound of about 1.3%, which is above the 1% stop threshold. The test as written can never trigger "stop" from silence. Either raise the sample, raise the stop threshold, or accept that a stop verdict needs a larger test.
Check this before launch by running decide on the best and worst plausible outcomes at your planned sample size. If no outcome lands in "stop" or "build", the plan will always return "inconclusive" and you will have paid for traffic without learning anything.
Also check the traffic budget. If you need 300 qualified visitors and expect to pay $2 per click, that is about $600. If that is unaffordable, the plan is not realistic and you should redesign it now, not mid-test.
Rules for keeping the plan honest
- Do not peek and stop early. Checking results daily and ending the test the moment the interval looks good inflates false positives. Collect the planned sample, then read.
- Define "qualified" in advance. Excluding visitors after seeing who converted is a way to edit the result.
- Change one thing per rerun. If the "otherwise" branch triggers, change the offer or the audience, not both, so you learn which change mattered. Write a new plan with new thresholds for the rerun.
- Limit reruns. Set a maximum number of reruns, such as three. Unlimited reruns let you keep drawing until a lucky result appears.
- Record deviations. If the traffic source broke or the page went down, note it and say how it affects the reading.
Thresholds for other test types
The same structure applies outside fake-door pages.
- Interviews: "Build if at least 6 of 15 qualified interviewees describe paying for a workaround in the last 6 months."
- Preorders: "Build if at least 10 of the first 40 qualified leads place a refundable deposit within 14 days."
- Pricing: "Choose the higher price if its conversion is at least 70% of the lower price's, which keeps revenue per visitor higher."
Each names a count or rate, a population and a time window. Stronger evidence, such as money paid, usually deserves a lower numeric threshold than weak evidence such as email signups, because the signal per person is higher.
Exercise
You plan a smoke test with 200 qualified visitors, buildif lower bound at least 3%, and stopif upper bound below 1%. Before launching, what problem should you look for in this plan, and how would you fix it?
Show answer
Check whether the plan can reach a "stop" verdict. With 200 visitors and zero buyers, the Wilson upper bound is about 1.9%, which is above 1%, so "stop" can never trigger. Fix it by raising the sample size (roughly 400 or more visitors puts a zero-buyer upper bound near 1%), raising the stop threshold, or accepting that this test can only produce "build" or "inconclusive". Also confirm the ad budget can buy the larger sample.