TapCub is live — analytics, insights and live chat, free on one platform
Glossary

What is sequential testing? Peeking, methods and an example

Sequential testing lets you check an A/B test while it runs and stop early without inflating false positives. Why peeking breaks ordinary tests, the main methods (SPRT, group sequential, always-valid p-values) and a look-by-look example.

Lin Zhou Reviewed by Su He Also called sequential analysis Last updated Nov 7, 2026 Glossary

Quick answer

Sequential testing is a way of analysing an experiment repeatedly as data arrives, with stopping rules designed so that the overall false positive rate stays at the chosen level (for example 5%), allowing a test to stop early when the evidence is strong.

Formula: Stop at look k if |zₖ| ≥ boundary cₖ; otherwise continue

What is sequential testing?

Sequential testing is a way of analysing an experiment repeatedly while data comes in, with stopping rules built so the overall false positive rate stays at the level you chose, typically 5%. You can look at an A/B test every day and stop early when the evidence is strong, without fooling yourself.

The alternative, a fixed-horizon test, is analysed exactly once, at a sample size calculated in advance from the minimum detectable effect and statistical power. That works, as long as nobody looks early. In practice, almost everybody looks.

The peeking problem, in numbers

If a test has no real effect and you check it once, a 5% significance threshold gives a 5% chance of a false positive. If you check it repeatedly and stop the first time p < 0.05, every look is another chance for random noise to cross the line. We simulated this for equally spaced looks (40,000 runs per row):

Looks at the dataReal false positive rate
1 (fixed horizon)5.0%
514.1%
1019.5%
2024.7%

Checking daily for three weeks and stopping on the first "significant" day means roughly one in four winning tests is noise. Armitage and colleagues described this effect in 1969; it is a form of p-hacking that happens without any bad intent.

Sequential testing methods

MethodHow it worksGood for
SPRT (Wald, 1945)After each observation, compare the likelihood of the data under "no effect" vs "effect of size δ"; stop when the ratio crosses a boundContinuous monitoring with a specific effect size in mind
Group sequential designsPlan K looks in advance; use stricter thresholds early (Pocock, O'Brien-Fleming)Tests reviewed at fixed points, such as weekly
Alpha spendingDecide how much of the 5% to "spend" at each look; looks need not be planned exactlyFlexible review schedules
Always-valid p-values (mSPRT)p-values that remain valid however often you lookDashboards people check continuously

Many experimentation platforms now ship one of these by default. The important thing is to choose the method before the test starts.

A worked example: O'Brien-Fleming with five looks

Sample test: a new pricing page vs the old one, reviewed weekly for up to five weeks. For five equally spaced looks at α = 0.05 (two-sided), the O'Brien-Fleming boundaries are 4.56, 3.23, 2.63, 2.28 and 2.04.

LookData so farObserved zBoundaryNaive p-valueDecision
120%1.804.560.072Continue
240%2.403.230.016Continue (a naive test would have stopped here)
360%2.902.630.004Stop: significant

The boundaries are strict early, when the estimate is noisy, and close to the usual 1.96 at the end, so the test loses very little power compared with a single analysis. At look 2 the naive p-value was already below 0.05; stopping there would have been exactly the peeking error. At look 3 the evidence crossed a boundary designed for repeated looks, so stopping is legitimate.

Trade-offs

  • Faster decisions on big effects; small effects still need the full sample.
  • Slightly larger maximum sample size than a fixed test with the same power.
  • Effect estimates are biased upward when a test stops early, because it stopped on a high point. Report the estimate with that caveat, or use the method's adjusted estimate.
  • Planning is still required: the looks, method and maximum sample size must be set in advance.

When to use it

Use sequential testing when people will look at results before the end (they will), when stopping early on a harmful change matters, or when traffic is expensive. Use a fixed-horizon test when you can genuinely commit to one analysis. If the goal is to earn during the test rather than to measure an effect, a multi-armed bandit is a different tool.

Sequential testing and TapCub

TapCub does not run experiments or compute experiment statistics. If your testing tool assigns variants, send the variant as an event property (for example tapcub.track('pricing_view', { variant: 'B' })) and break down conversion, revenue and retention by it in event analysis. That shows what happened downstream; the stopping decision should follow the sequential method your experiment tool uses. Background on significance itself is in statistical significance and p-value.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Lin Zhou

Product Experience Specialist

Writes about product experience, practical workflows, and growth, turning complex processes into clear steps for everyday decisions.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What is the peeking problem?

Checking a fixed-sample A/B test repeatedly and stopping the first time p < 0.05. Each look is another chance for noise to cross the line, so the real false positive rate rises well above 5%.

What is the difference between sequential and fixed-horizon testing?

A fixed-horizon test is analysed once, at a sample size set in advance. A sequential test is analysed several times or continuously, with stricter thresholds early on, so it can stop early without extra false positives.

Does sequential testing need more data?

Its maximum sample size is slightly larger than a fixed test's, but because it often stops early when the effect is large, the average sample size is usually smaller.

What is SPRT?

The sequential probability ratio test, introduced by Abraham Wald in 1945. It compares the likelihood of the data under two hypotheses after each observation and stops when the ratio crosses an upper or lower bound.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics