Every testing platform shows live results, and almost every team looks at them daily. Yet the statistics most teams use assume you look only once, at the end. Evan Miller put a price on that habit in his 2010 essay "How Not To Run an A/B Test". If you check after every visitor, a 5% false-positive rate becomes 26.1%. Curiosity is harmless. False winners come from the gap between how often a team looks and the single look its p-values were built for. A method chosen before launch closes that gap.
A green dashboard can manufacture a winner
On day three the dashboard turns green: the p-value is below 0.05, product wants to ship, and the analyst knows tomorrow's look could turn it red again. That worry is justified. A standard p-value assumes the sample size and the moment of analysis were fixed before the data came in. If you use the same threshold to stop after many looks, its error guarantee no longer holds.
Sequential A/B testing is a way, agreed in advance, to look at results as they build up while keeping the false-positive rate where you set it. A convincing chart plays no part in it. A false winner can send engineering, pricing and later experiments in the wrong direction.
Before launch, set when you'll look, the rule for stopping, the main metric, who is included and the minimum exposure. Then let the rule decide when to stop.
Repeated looks spend the error budget
A false positive (a Type I error) means declaring an effect that doesn't exist. One standard test at 5% has a 5% chance of this, and that 5% is built for one decision point.
Say a team checks at 25%, 50%, 75% and 100% of the planned data and stops at the first p-value below 0.05. The looks are linked, because early users are still counted later, so the error doesn't grow as fast as with independent tests. But it still rises above 5%.
The problem also shows up when:
- A dashboard refreshes every hour and someone waits for a good moment to announce.
- The sample target is extended after a disappointing result, then the test is stopped as soon as it turns significant.
- Conversion is checked daily, but retention is looked at only after conversion goes up.
- Analysts look at ten slices of data and promote the one that crosses the line.
Only the first three are repeated looks at one test. The fourth is a different problem, many comparisons, and needs its own plan. Sequential designs split, or "spend", the 5% error budget across the planned looks. Early looks need stronger evidence, because there are more chances left to be misled.
Picture a stopping line at each look. The first line demands an unusually large difference to declare a win. Later lines demand less. At the last look the bar is close to the usual one, though it may stay a bit stricter.
Fixed horizons and planned stopping rules
A fixed-length test asks one question after the planned sample is in: could this difference be due to chance? It's easy to explain and useful when decisions can wait. But it may keep sending traffic to a test that is already decided.
A group-sequential design asks a question at each planned share of the data: has the evidence crossed a line set for this exact schedule of looks? It can stop early with a win while keeping the overall false-positive rate close to the target (alpha).
| Design | Inspection rule | Valid stopping decision | Main trade-off |
|---|---|---|---|
| Fixed horizon | Analyze once at planned sample size | Stop at final analysis | Clear, familiar, but may keep traffic in a decided test |
| Naive peeking | Inspect whenever data refreshes | None: ordinary p-values are miscalibrated | Fast-feedback illusion and inflated false winners |
| Group sequential alpha spending | Inspect at pre-set information fractions with calibrated boundaries | Stop only at a boundary crossing or planned final look | Requires pre-launch design work and information tracking |
| Always-valid p-values | Monitor a statistic valid under optional stopping | Stop under the chosen always-valid policy | Requires a method matched to metric and estimator, not a standard dashboard p-value |
This article uses a two-sided group-sequential design with alpha spending. It suits teams that already have natural check points, such as weekly meetings or traffic milestones. Always-valid p-values allow more flexible checking. But they only work if the statistic is built and updated the right way, so a renamed dashboard p-value doesn't count.
Don't mix methods. A team can't run a fixed-length test, peek freely for two weeks and then call the final result a fixed-length test. Nor can it use boundaries built for four looks while checking twelve times. The stopping rule is part of the test, just like random assignment.
Proof artifact: a simulation that catches false wins
It's easy to nod along to claims about inflated errors and then forget them, so measure it. The R script below simulates 200,000 experiments where the change does nothing. Each has four looks, at 25%, 50%, 75% and 100% of the data. There is no real difference between the groups. The script compares three approaches: a single final test, naive peeking and a two-sided O'Brien-Fleming-style alpha-spending design from the gsDesign package. If you need to watch all the time rather than at planned points, use an always-valid method instead, such as the mixture sequential probability ratio test described by Johari, Pekelis and Walsh. They report using it in a large commercial A/B testing platform across hundreds of thousands of experiments.
# install.packages("gsDesign")
library(gsDesign)
set.seed(20260829)
B <- 200000
info <- c(0.25, 0.50, 0.75, 1.00)
delta_info <- diff(c(0, info))
# Brownian information increments under the null hypothesis
inc <- matrix(rnorm(B * length(info)), nrow = B)
inc <- sweep(inc, 2, sqrt(delta_info), "*")
Z <- t(apply(inc, 1, cumsum))
Z <- sweep(Z, 2, sqrt(info), "/")
# One final fixed-horizon analysis
fixed_fp <- mean(abs(Z[, 4]) > qnorm(0.975))
# Incorrect: reuse the 0.05 threshold at every look
naive_fp <- mean(apply(abs(Z) > qnorm(0.975), 1, any))
# Correctly specified: four planned looks, two-sided alpha = 0.05
seq_design <- gsDesign(k = 4, test.type = 2, alpha = 0.05, sfu = "OF")
boundary <- seq_design$upper$bound
sequential_fp <- mean(apply(
sweep(abs(Z), 2, boundary, ">"), 1, any
))
round(c(fixed = fixed_fp,
naive_peeking = naive_fp,
sequential = sequential_fp), 4)
Simulated results vary a little with each run, so check two things in the output: the order and the level. naive_peeking should come out above 0.05. fixed and sequential should land near the 0.05 target, give or take random noise. If the sequential error is clearly too high, check the boundary direction, the number of looks, alpha and the data shares against the design you declared.
The shape of the stopping line shows exactly what naive peeking ignores. It goes back to Peter O'Brien and Thomas Fleming's 1979 paper in Biometrics on multiple testing in clinical trials. Lan and DeMets's 1983 alpha-spending function is what lets the look schedule shift without breaking the error rate. The rounded values below illustrate a four-look O'Brien-Fleming-style two-sided boundary. Take the exact values from the method and software you chose before launch.
Absolute Z needed to stop for efficacy
4.4 | x
4.0 |
3.6 |
3.2 | x
2.8 |
2.4 | x
2.0 | x
+-----------------------------
25% 50% 75% 100%
about 4.3 3.0 2.4 2.0
At the first look, a Z score near 2.0, which usually means p is about 0.05, isn't enough. It may vanish as more data comes in. A line near 4.3 asks for far stronger evidence when only a quarter of the data is in. The final line is lower because there are no more chances left after it.
Check power instead of assuming it survived
Controlling false positives is only half the design. An honest test can still be too small to detect the smallest effect worth shipping. That ability is called power. The extension below adds a real effect to the simulated data. Here theta gives a single final look about 80% power, using the normal approximation.
# Add a true standardized effect under the alternative
# This is synthetic data for a design check, not a product forecast.
theta <- qnorm(0.975) + qnorm(0.80)
mean_shift <- theta * delta_info
inc_alt <- inc + matrix(rep(mean_shift, each = B), nrow = B)
Z_alt <- t(apply(inc_alt, 1, cumsum))
Z_alt <- sweep(Z_alt, 2, sqrt(info), "/")
fixed_power <- mean(abs(Z_alt[, 4]) > qnorm(0.975))
sequential_power <- mean(apply(
sweep(abs(Z_alt), 2, boundary, ">"), 1, any
))
round(c(fixed_power = fixed_power,
sequential_power = sequential_power), 4)
Well-set stopping lines protect the false-positive rate, but they don't guarantee 80% power at the sample size of a single-look test. Depending on the type of line and the number of looks, a sequential design may need a bit more data in total for the same power. Size the test with the sequential method you chose. Then simulate false positives and power before you send any traffic.
The simulation uses a normal approximation and equal data shares. Yes-or-no conversion, uneven revenue, assignment by group, missing results and unequal splits may need methods made for that kind of number. The look schedule still rules, but you can't copy the calculations blindly from one metric to another.
Delayed outcomes make early signals less complete
These calculations also assume that every look sees final results, and often that's not true. Conversion often happens in the same session. Retention, refunds, chargebacks, margin and renewals can take days or weeks. Stopping on a quick metric can give a correct answer to the wrong business question.
Treat the main metric and its measurement window as one thing. If the metric is "activated and still active after seven days", someone who joined yesterday hasn't given you a final answer yet. Counting them as complete changes what your "50% look" means. The stopping line may be right for 50% of finished results, not for 50% of assigned users.
Keep two clocks apart:
- Sign-up clock: how many eligible users have been randomly assigned.
- Data clock: how many main results are final and have passed checks.
For a delayed main metric, stop adding new users early only if the plan allows it. Then let that group's results mature before you declare a win. This protects you from raising quick completions while hurting later retention or net revenue.
Treat guardrails the same way. A payment-flow test may use completed checkout as the main metric and refund rate as a guardrail. If refunds come after the conversion decision, say whether the launch is provisional, how long you'll monitor and which change in the guardrail triggers a rollback. A guardrail whose data hasn't matured isn't clean evidence.
Repeated looks are a different problem from interactions between parallel experiments. If users can be in several tests at once, plan exposure and interactions separately; this guide to concurrent A/B test interactions covers that separate bias source.
Gates that prevent premature stopping
A correct stopping line can't fix broken assignment, missing events or a test that ran through only one unusual business period. Put practical checks before the statistical decision. A check can block stopping after the line is crossed. It can never allow stopping without a crossing.
Minimum run. Set a minimum number of days before the first look. This has nothing to do with p-values. Time captures weekday patterns, billing cycles, campaign changes or slowdowns that user counts miss. Base the length on your product cycles and traffic. A number borrowed from another team's test rarely fits.
Exposure. Count users who were eligible, assigned and actually saw the change as planned. Users who were assigned but never saw it can water down the result. Removing them afterwards can bias it. Decide first exactly what you are estimating, then make sure assignment, exposure and analysis records match.
Data quality. Require fresh events, stable definitions, the expected group split, no duplicates and an agreed limit on missing data. Uneven delays in the data pipeline matter. A 57/43 split between groups may be chance at low volume, but find out why before a big launch.
No leaks. Confirm that the new version didn't reach the control group, that feature flags match assignment and that bots, employees and test accounts are handled as planned. Don't change who is excluded because the first result is inconvenient.
Follow this order: check the data, confirm how much of the planned data is in, check the minimum run, compare with the stopping line set in advance and then look at guardrails. Looking at the green result first and finding reasons afterwards turns that order upside down.
The pre-registration that survives a tense review
Keeping that order under pressure is much easier when it was written down before anyone saw the data. A pre-registration is an agreement about the decision, written before anyone knows which version is ahead. It rarely needs legal formality. Keep it with the test ticket, record real changes as new versions and label anything added after launch. A short template removes dangerous vagueness.
| Field | Record before randomization |
|---|---|
| Decision and hypothesis | If [treatment] changes, [primary metric] changes by at least [minimum meaningful effect] because [mechanism]. |
| Population | Eligibility, randomization unit, allocation ratio, geo/platform restrictions, exclusion handling. |
| Metrics | One primary metric with formula and maturity window; diagnostics; named guardrails and rollback conditions. |
| Horizon | Maximum sample or information, minimum calendar run, planned information fractions, final decision date. |
| Sequential method | Two-sided alpha, boundary family or always-valid method, software/package version, efficacy-only or futility stopping. |
| Analysis details | Estimator, variance method, skewed-metric transformation, missing-data handling, exploratory or confirmatory segments. |
| Quality gates | Exposure logging, assignment-ratio check, event-latency rule, bot policy, release/flag verification. |
| Decision owners | Analyst, product owner, approver, and exact ship, hold, rollback, or retest outcomes. |
When pressure rises, the template makes it obvious if someone proposes a new success metric after the first look. A follow-up test is still possible, but a finding you stumbled on can't be relabeled as proof.
The stopping rule is written before traffic arrives
Choose a main metric worth deciding on, the smallest effect worth acting on and the maximum amount of data. Then choose either a single-look test or a properly set sequential design. If stopping early matters, set the looks and stopping lines before anyone is enrolled. Simulate both "no effect" and your chosen effect with the same code you'll use to read the result.
If a dashboard turns green and no stopping rule is on file, you have two honest options. Keep the test running to its planned end and read it once. Or record the early result as exploratory and run the test again with a sequential design agreed in advance. Shipping on the green day and calling it proven is the one option the error rate can't absorb. A single-look threshold reused after every refresh no longer means what it says.