Stopping Rules for A/B Tests: How to Avoid the Peeking Problem

📅 2026-07-26

Stopping Rules for A/B Tests: How to Avoid the Peeking Problem

If you've ever refreshed a dashboard three times a day during a launch test and stopped the moment the green checkmark appeared, you've run into the peeking problem — and you're not alone. Most experimentation programs inherit this habit from tooling that reports a live p-value, which invites exactly the wrong behavior: treating an in-progress test like a stock ticker instead of a pre-committed measurement. This guide is about the fix — setting a stopping rule before you launch, and picking one that matches how your team actually monitors tests.

Why Checking Early Breaks the Math

A standard significance test assumes you look at the data once, at a sample size you decided on in advance. The 5% false positive rate you're used to trusting is a promise about that single look — not about a sequence of looks.

Every time you peek and could stop, you're effectively buying another lottery ticket. Random noise has another chance to cross your significance threshold, and eventually it will, even when the underlying effect is exactly zero. Run the same null test with daily peeking and an option to stop as soon as p < 0.05, and the effective false positive rate climbs well past 5% — commonly cited estimates in the sequential-testing literature put continuously-monitored tests at two to four times the nominal rate, depending on how many looks you take and how early you're willing to stop.

The insidious part: nothing about the peeked result looks wrong. The p-value is real, the lift is real in that sample, and the dashboard is not lying to you. What's broken is the correspondence between "p < 0.05" and "5% chance of a false positive" — a correspondence that only holds under the monitoring plan the test assumed.

Three Stopping Rules, and When Each One Fits

You don't need to choose between "never look at the data" and "no statistical discipline at all." There are three well-established approaches, and the right one depends on how much your team wants to move fast versus stay flexible.

The failure mode to avoid in all three: picking the rule after seeing preliminary results. A stopping rule chosen retroactively isn't a stopping rule, it's a rationalization.

Alpha Spending, in Practice

Alpha spending is the mechanism most sequential methods use to make interim looks safe. Instead of spending your entire 5% error budget on one final test, you split it across a schedule of looks, spending a little at each one according to a spending function (Pocock and O'Brien-Fleming boundaries are the two most common shapes).

| Look | Fixed-horizon approach | Alpha-spending approach | ||---| | Interim check at 25% of sample | Not statistically valid to stop | Requires p < ~0.001–0.005 (very strict early boundary) | | Interim check at 50% of sample | Not statistically valid to stop | Requires p < ~0.01–0.02 | | Final look at 100% of sample | Requires p < 0.05 | Requires p < ~0.04–0.045 |

The pattern to notice: early boundaries are deliberately conservative, so a false positive is unlikely to sneak through on a lucky early streak, and the boundary relaxes toward the nominal threshold as you approach the planned sample size. This is why sequential dashboards that show "stop now" recommendations are trustworthy only if they were built around a spending function — a live p-value with a flat 0.05 line at every look is not the same thing, no matter how similar it appears on screen.

Reading Benchmarks Without Repeating the Same Mistake

The peeking problem doesn't only show up inside your own test — it shows up when you interpret someone else's. When you consult a StatFacts insight card for a comparable intervention, the effect range and confidence rating already reflect the discipline (or lack of it) in the underlying studies. A wide effect range with a lower confidence tag is often telling you that the underlying evidence base includes results measured at inconsistent stopping points, small samples, or non-preregistered endpoints — exactly the conditions that produce inflated, optimistic effects.

Two habits carry over directly from stopping-rule discipline to benchmark reading:

If your own test's result sits outside the benchmark's effect range, check your stopping discipline before you conclude you've found something unusual — an early, unadjusted peek is a more common explanation than a genuinely exceptional result.

Making the Stopping Rule Stick Organizationally

The technical fix is well understood; the organizational one is harder. A stopping rule only protects you if it's written down before launch and if "the test looks done" isn't treated as sufficient reason to call it.

None of this requires exotic tooling — most experimentation platforms now support at least one sequential method natively. The discipline is choosing the rule before the data can influence the choice.

Related reading: see how to read benchmark confidence and effect ranges for more on interpreting insight cards, and use the benchmark calculator to sanity-check a planned sample size against comparable effect ranges before you lock in your stopping rule.

Was this page helpful?

Your feedback helps us improve StatFacts