INFINITE UPSIDE

Business and technology

Can You Stop an A/B Test When It Looks Good?

An early-stopping guarantee belongs to a specified process, not a refreshing p-value.

You can watch an experiment continuously and still control false positives. The permission comes from the statistical method and its assumptions. A dashboard that refreshes an ordinary p-value does not acquire that permission simply because everyone likes checking it.

A fixed-horizon design commits to an analysis point and uses a test calibrated for that point. An always-valid process is constructed to retain its error guarantee when the stopping time depends on the accumulating evidence. Choose which arrangement you need before the result becomes tempting.

What the research adds

Johari, Pekelis and Walsh's December 2015 paper develops always-valid inference and mixture sequential likelihood-ratio tests. Its A/B application distinguishes exact models from computational approximations. It also treats multiple testing separately. The method's label alone does not establish that a particular product implementation has the guarantee your decision requires.

Here is an original small calculation that makes the stopping rule inspectable. It is a restricted paired A/B example, not a replacement formula for an arbitrary conversion dashboard or an implementation of the paper's mixture test.

Specify what one observation means

Form pairs before observing outcomes, with one independent person assigned A and one assigned B. Give everyone the same complete follow-up window. Assume pairs are independent and identically distributed, and that the two binary conversion outcomes within a pair are independent. Under the null, both arms have the same conversion probability p.

A pair in which both people convert, or neither converts, supplies no directional win. Keep a pair as informative only when exactly one converts. Under the null, the chance of B alone converting is p(1-p), the same as A alone converting. Conditional on an informative pair, B therefore wins with probability one-half. This remains true for an unknown p strictly between zero and one.

The sequence below counts informative pairs, not visitors, total pairs or individual conversions. If p is zero or one there are no informative pairs and this procedure supplies no directional evidence. Missing follow-up, related participants or outcomes that alter later participants would require a different justification.

A prespecified update and boundary

Before collecting data, compare a null B-win probability of 0.50 with a fixed alternative of 0.75. Start a likelihood ratio L at 1. Multiply it by 0.75/0.50 = 1.5 for each B win and by 0.25/0.50 = 0.5 for each A win. The alternative is a design choice, not an estimate selected after seeing a streak.

Under the null, the conditional expected multiplier is (0.5 × 1.5) + (0.5 × 0.5) = 1. Thus L is a nonnegative martingale: given its history, its next expected value is its current value. This property, rather than the appearance of the plotted line, earns the stopping guarantee.

Prespecify a one-sided rejection boundary of 20 and a cap of 20 informative pairs. Stop at the first boundary crossing or at the cap, whichever comes first. At that bounded stopping time the expected L remains 1. Because L is at least 20 on a crossing and never negative otherwise, the null crossing probability is at most 1/20 = 5%.

This is a probability of a false alarm under the stated null model, across the permitted sequence of looks. It is not a 95% probability that B is better after a crossing. The 0.75 alternative also makes the procedure more responsive to some effect sizes than others; optional-stopping validity does not promise good power for every useful improvement.

Walk through a streak

Seven consecutive B wins produce L = 1.5 to the seventh power = 17.0859375, below the boundary. Eight produce 25.62890625, crossing it. If the eighth informative pair instead favors A, L falls to 8.54296875 and there has been no crossing.

An associated always-valid p-value within this monitoring plan is the smaller of 1 and the reciprocal of the largest L reached so far, including the initial value 1. After seven B wins it is 128/2187, approximately 0.05853. After the following A win, that running-maximum p-value stays 0.05853 even though the current L has fallen. Confusing current evidence with the process's historical crossing record changes the calculation.

For this exact invented model and 20-informative-pair cap, enumerating all possible win/loss paths gives a null crossing probability of 5541/262144, approximately 2.11%. That is below the 5% bound. It includes every permitted path that first crosses the boundary, not just the particularly memorable eight-win streak.

Choose the method around the decision

If waiting until a planned horizon is operationally acceptable, a justified fixed-horizon test can be easier to explain and maintain. Its sample size, outcome maturity and analysis rule still need to match the question. If the business must stop early for evidence, use a sequential method whose model, update and monitoring rules are actually documented.

Reaching the cap without crossing means this rule did not reject the null. It does not establish equivalence, business adequacy or absence of harm. This directional example supplies neither a conversion-lift estimate nor a confidence interval for that lift. A rollout decision needs those other quantities and its operational guardrails too.

Nor does validity for one comparison license searching many metrics, segments and variants until one crosses. Define that family and its error policy. A prespecified Bonferroni allocation can control the chance of any false rejection when each component really is always valid; more elaborate selection and discovery procedures need their own assumptions.

Write down the observation model, allowed looks, boundary, cap and family of claims before starting. Then use the A/B result guide to connect a defensible statistical result to effect size and the actual decision. Keep that specification beside the dashboard so a convenient stopping point cannot quietly become a new test.

Explore Infinite Upside

For Vijay Sheth’s personal accounts, read Infinite Upside: Building Wealth With Room to Live, published by Sheth Capital, Inc.

Find your edition · Chapter companion

How do I interpret an A/B conversion-test result?

How do I interpret an A/B conversion-test result?

ABOUT THE CONTRIBUTOR

Luna Lim

DIRECTOR OF FINANCIAL RESEARCH & EDITORIAL STRATEGY

SHETH CAPITAL, INC.

Luna Lim writes about business, investing, and the judgment behind financial decisions. She joined PCH Exotics Inc. as Director of Operations in 2022, working across La Jolla and Miami. Today, she reports directly to Vijay Sheth at Sheth Capital, Inc., bringing an operator’s perspective to the ideas she covers.

Based in Pacific Beach, California, Luna is curious about the people behind the numbers: what they’re building, how they weigh uncertainty, and what makes a risk worth taking. Her articles for Infinite Upside follow those questions through the details, with clear explanations and a feel for how decisions play out in everyday business.

More from Luna Lim

The Infinite Upside store