Stop peeking: how we read experiments that are still running

Checking an A/B test every morning and stopping when it looks good inflates false positives. How Neural's sequential results let you look as often as you like.

Hilde Varga

Head of Data Science

A white database icon on a dark navy dithered field

Every team that runs A/B tests eventually does the same thing. The test is planned for four weeks. On day six, the variant is ahead with p = 0.03. Someone asks why we are waiting, and the test is stopped.

This is called peeking, and it is the most common way experiments produce wins that later disappear. This post explains why it happens, and how Neural’s experiment results are built so that looking early is safe.

Why peeking breaks a fixed-horizon test

A classic t-test assumes you look at the result once, at a sample size you chose in advance. Its 5% false positive rate is a promise about that single look.

If you look every day and stop the first time the p-value dips below 0.05, you are giving random noise many chances to cross the line. With no real difference between variants, here is how often a daily check would eventually declare a winner:

Days the test runs, checked daily

Chance of a false “win”

1 (one look)

5%

7

15%

14

21%

28

27%

We ran that simulation on 10,000 A/A tests drawn from real customer traffic, where both arms got the same experience. More than a quarter of them would have shipped a “winning” change that did nothing.

The fix most people suggest, and why it does not stick

The textbook answer is discipline. Calculate the sample size up front, do not look until it is reached, then decide.

It is correct, and almost nobody follows it. The dashboard is right there. Product managers have a release train to catch. A rule that depends on people not looking at a chart they can see will be broken.

So we changed the statistics instead of asking people to change their habits.

Sequential results

Neural experiments use an always-valid method: the confidence interval on each variant is built so that the 5% false positive rate holds no matter how many times you look, or when you stop.

The trade-off is width. Early in a test, the intervals are wider than a fixed-horizon test would show. They narrow as data arrives, and by the planned end date they are close to what a classic test would give.

In practice, this means three things on the results page:

  • The headline is a chance to beat control, which you can read at any point without adjusting it.

  • The interval around each variant is honest about how much you do not yet know.

  • A verdict appears only once the interval clears zero, or once the planned duration ends.

If the result page says “keep running”, that is the statistics telling you the variant could still lose. It is not a suggestion.

Guardrails, not just a goal metric

A test that raises conversion by 3% and doubles support tickets is not a win. Each Neural experiment has one goal metric and up to five guardrail metrics.

Guardrails use the same sequential method, but with a lower bar for alarm. If a guardrail moves the wrong way with 90% confidence, the experiment page flags it, and the owner gets a Slack message. You can also attach a guardrail to the feature flag itself, so the rollout pauses automatically.

The most common guardrails we see customers use:

  1. Page load time on the tested page

  2. Error rate in the tested flow

  3. Support contact rate in the following seven days

  4. Refund or cancellation rate

Sample ratio mismatch

One more check runs on every test. If you split traffic 50/50 and one arm has 52% of users after a week, something is broken: a redirect drops people, a bot hits one variant, or the flag is evaluated before the user is identified.

Neural runs a chi-squared check on assignment counts every hour. When it fails, the results page hides the verdict and explains why. In the past quarter, 3.8% of customer experiments tripped this check. Most were caused by caching that served one variant to logged-out users.

What to do differently tomorrow

If you run experiments in Neural already, nothing changes in your setup. The results you see are sequential by default.

If you run them elsewhere, or analyse them by hand:

  • Decide the stopping rule before the test starts, and write it in the test description.

  • Treat early wins with suspicion until the planned duration is up.

  • Add at least one guardrail.

  • Check the split. An uneven split makes every other number unreliable.

Peeking is human. The statistics should allow for it.

experiments

statistics

ab testing

Portrait of Callum Pryce

Written by

Hilde Varga

Head of Data Science

Keep reading

Buy template

Create a free website with Framer, the website builder loved by startups, designers and agencies.