Sequential Testing: Stop When You Have Enough Data
Instead of running a test for a fixed duration, sequential testing lets you peek at data and stop as soon as you have a statistically significant winner. It's used in A/B testing to ship features faster.
Why it exists
Traditional A/B testing requires you to calculate a sample size and run the test to completion, even if a clear winner emerges early. This is often inefficient, wasting traffic, time, and money. Sequential testing was developed to solve this by allowing for early stopping without compromising statistical validity, answering the question: "Can I stop this test now?".
The mental model
Think of it like a race. In a classic fixed-horizon test, all runners must complete the full 100-meter dash. In a sequential test, the race ends as soon as one runner is so far ahead that their victory is statistically inevitable. You don't make them run the full distance just for the sake of it. The key is defining "far enough ahead" with statistical rigor before the race starts.
How it works
Instead of one analysis at the end, sequential testing involves continuous or periodic monitoring. At each check-in, you apply a special statistical test that accounts for the fact you're looking multiple times. These tests use "stopping boundaries." If your test statistic (like the difference in conversion rates) crosses a boundary, you stop the test and declare a winner or conclude there's no difference. These boundaries are wider than in a fixed-horizon test to control the rate of false positives that arises from repeated peeking.
When to use it
Use sequential methods when the cost of experimentation is high or the opportunity cost of delaying a decision is significant. It's ideal for high-traffic A/B testing platforms, clinical trials where patient outcomes are at stake, or any online experiment where you want to iterate faster. If you want to ship a winning feature the moment it proves its worth, this is the tool.
When not to use it
Avoid sequential testing if you need to measure the precise magnitude of an effect, not just declare a winner. Because they are designed to stop early, sequential tests can overestimate the effect size of the winning variant (an effect known as the "winner's curse"). They are also more complex to set up than traditional tests. If you lack the right statistical tools, a simple fixed-horizon test is safer.
One canonical example
An e-commerce site tests a new checkout button. Using a sequential approach, they monitor conversions daily with a stopping rule: "Stop if the new button is winning with 95% significance, or after 4 weeks." On day 5, the new button's performance crosses the significance boundary. They stop the test and ship the change, saving weeks of running the experiment and capturing the revenue lift immediately.
Interview question
In which situation would sequential testing be less suitable than a traditional fixed-horizon A/B test?
- a.The primary goal is to identify a statistically significant winner as quickly as possible.
- b.The research objective requires a precise and unbiased estimate of the treatment effect's magnitude.Correct
- c.The experiment involves a high-traffic website where quick iteration is crucial.
- d.The team has limited resources and wants to minimize the overall duration of the experiment.
Why? this is the answer
Sequential testing is designed for early stopping, which can lead to an overestimation of the effect size (winner's curse). Therefore, it's less suitable when a precise, unbiased estimate of the effect magnitude is required. Options A, B, and D describe scenarios where sequential testing is advantageous, not less suitable.
Just read this? Test yourself on what you have been reading.
Read the original → en.wikipedia.org
Put your scrolling time to good use
Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on statistics — each one lists the topics its interview covers.
See open roles