Statistics

Futility Stopping: When to Shut Down an A/B Test

Futility stopping uses conditional power to shut down an A/B test that cannot win. How to compute it, where to put the threshold and what the error costs.

Flat illustration of a narrowing wedge of thin lines converging to a blunt stop, with a small circle floating unreachable beyond it, in deep green tones on a mint background

An A/B test that has burned half its planned traffic and is sitting on a tie usually will not turn around: in the worked example below, conditional power at the halfway point is 29.2 percent assuming the planned effect shows up over the remaining stretch, and only 1.1 percent if the observed trend continues. Shutting that test down returns 82,376 visitors and 14 calendar days to the next hypothesis. This guide covers futility stopping end to end: how to compute conditional power, where to set the threshold, how much power the decision costs, and why the evidence recommends caution. It is part of our complete guide to A/B testing and the companion to sequential testing, which handles the other half of the problem: stopping early when the result is good.

Two early stops, two different problems

Stopping early for a win is the subject of every article about peeking: looking at the result repeatedly and stopping the first time the p-value crosses 0.05 inflates false positives, which is why sequential methods exist.

Stopping early for futility is the mirror problem, and it is easier in one respect and harder in another. Easier because there is no false positive risk: nobody is declaring a winner. The FDA states this explicitly when discussing sequential designs: adding non-binding futility guidelines to a fixed sample trial, or to one with appropriate group sequential stopping rules for efficacy, does not increase the type I error probability and is often appropriate.

Harder because the cost turns up on the other side: every futility stop is one more chance to abandon a real effect. Type II error goes up, and the decision is only defensible when that increase is quantified and accepted before the test starts.

Conditional power: the number behind the decision

The quantity that answers “is it worth continuing?” is conditional power. Zhang and Clarke define it as the probability that the final analysis will reject the null hypothesis, given the data observed at the interim analysis and an assumption about the effect. The complement, 1 minus conditional power, has been called the futility index since Ware, Muller and Braunwald.

The calculation uses the B-value, the monitoring tool formalised by Lan and Wittes. With t as the information fraction (the share of the planned sample already collected) and z as the test statistic at that moment:

// Conditional power at information fraction t (Zhang and Clarke, 2009)
// zAlpha: winning threshold (1.9600 for a two-sided 5 percent test)
// drift: assumed effect over the remaining stretch, on the scale of the final z
function conditionalPower(z, t, drift, zAlpha = 1.959964) {
  const numerator = z * Math.sqrt(t) + drift * (1 - t) - zAlpha;
  return normCdf(numerator / Math.sqrt(1 - t));
}
// drift for the PLANNED effect = zAlpha + zBeta = 1.9600 + 0.8416 = 2.8016
// drift for the CURRENT TREND = z / Math.sqrt(t)

One adaptation needs to be stated: Zhang and Clarke develop the method for a one-sided test, with the 1 minus alpha percentile in place of zAlpha. Here zAlpha is the two-sided threshold of 1.9600, because that is the win threshold of the standard A/B test used across this blog. The formula is the same; what changes is the win line the conditional power is projected against.

Choosing the drift is the conceptual decision of the method, and it changes everything. Assuming the planned effect will materialise over the remaining stretch is the optimistic assumption, and it is the default in the clinical literature. Assuming the observed trend continues is the realistic one, and it produces far smaller numbers. Zhang and Clarke explain why the first route takes so long to flag futility: at early times, conditional power implicitly weights the assumed future data under the planned alternative more heavily than the data accumulated so far, so it drops slowly from the design value down past the threshold.

The worked test

The design: a 3 percent baseline conversion rate, a minimum detectable effect of plus 8 percent relative, 95 percent confidence and 80 percent power. That calls for 82,376 visitors per variant, 164,752 in total, which at 40,000 visitors per week means 29 days.

At the halfway point, with 41,188 visitors per variant, the scoreboard reads 1,236 conversions in control (3.0009 percent) against 1,248 in the variant (3.0300 percent).

Statistical significance calculator
Control (A)
Variation (B)
Control (A) · Rate-
Variation (B) · Rate-
Relative lift-
p-value-
95% CI of the difference-

Two-sided two-proportion z-test. "Not significant" almost always means not enough sample, not that the versions are equal.

Pasting those numbers into the calculator: z of 0.2445 and a p-value of 0.8069. Conditional power at the halfway point comes out as follows:

The gap between those two numbers is the conversation the team needs to have. The first asks “what if the hypothesis is right and the first half was bad luck?”. The second asks “what if what we are seeing is reality?”. Neither is wrong; they describe different scenarios, which is why the method asks that the threshold be chosen in advance, alongside the drift assumption.

Conditional power through the test under two assumptionsChart with the information fraction on the horizontal axis from zero to one and conditional power on the vertical axis from zero to one. Two curves start from the left. The upper curve, labelled planned effect, begins high near 0.8 and declines smoothly, passing about 0.29 at the halfway point and falling close to zero near the end. The lower curve, labelled observed trend, drops far faster: it is already near 0.05 in the first quarter and practically flat on the axis from the halfway point onward. A dashed horizontal line marks a conditional power threshold of 0.2, and a highlighted point at the halfway mark shows the worked case with conditional power of 0.2924 under the planned effect.Same evidence, two assumptions about what comes nextshare of the planned sample collected00.250.500.751.000.00.51.0threshold 0.20worked case: 0.2924planned effect (optimistic)observed trend (realistic)
Conditional power for a tied test, computed under the planned effect and under continuation of the observed trend. The choice of assumption decides the verdict long before the threshold does.

The decision tables

With the design fixed (3 percent baseline, plus 8 percent relative, 95 percent and 80 percent), conditional power depends on only two things: where the test is and what its z is at that moment. Assuming the planned effect over the remaining stretch:

z at the interim analysis quarter of the way halfway three quarters of the way
-1.0 0.3393 0.0367 0.0000
-0.5 0.4500 0.0984 0.0004
0.0 0.5648 0.2145 0.0059
+0.5 0.6743 0.3856 0.0492
+1.0 0.7705 0.5829 0.2156
+1.5 0.8483 0.7609 0.5315

Assuming instead that the observed trend continues:

z at the interim analysis quarter of the way halfway three quarters of the way
-1.0 0.0000 0.0000 0.0000
-0.5 0.0003 0.0001 0.0000
0.0 0.0118 0.0028 0.0000
+0.5 0.1338 0.0382 0.0028
+1.0 0.5184 0.2201 0.0536
+1.5 0.8851 0.5903 0.3243

Two readings jump out. First: in the first quarter, almost nothing counts as futility under the planned assumption. A z of minus 1.0 (variant losing) still returns 34 percent conditional power, because three quarters of the experiment are still ahead. That is the effect Zhang and Clarke describe, and it is why very early futility analyses rarely earn their keep.

Second: from three quarters of the way onward, the verdict is nearly binary. With a z below 1.0 at that stage, conditional power is already at 21 percent or less even under the optimistic assumption. But by then only 25 percent of the traffic remains, so the saving is small while the risk of being wrong is not.

The useful point is the middle. Inverting the formula lets you publish the boundary directly in z, which is the number the team actually sees on the dashboard:

conditional power threshold stop if z is below (quarter) stop if z is below (halfway) stop if z is below (three quarters)
0.10 -2.5022 -0.4908 +0.7145
0.20 -1.7402 -0.0508 +0.9685
0.30 -1.1907 +0.2664 +1.1517

The worked case had a z of 0.2445 at the halfway point, just below the 0.2664 boundary that corresponds to a 30 percent threshold, and well above the minus 0.4908 boundary that corresponds to the conservative 10 percent threshold. In other words: the loose rule kills the test, the conservative rule keeps it running. The rule has to be chosen beforehand, not after seeing that number.

The price of stopping, in power

Futility is not free, and the price is known. Zhang and Clarke cite the result of Lan, Simon and Halperin: with continuous monitoring and a rule that stops when conditional power falls below gamma, the overall type II error is bounded by beta divided by 1 minus gamma.

threshold gamma maximum type II error (starting from 20 percent) minimum final power relative inflation of type II error
0.10 22.22 percent 77.78 percent 11.11 percent
0.20 25.00 percent 75.00 percent 25.00 percent
0.30 28.57 percent 71.43 percent 42.86 percent
0.50 40.00 percent 60.00 percent 100.00 percent

That is why the literature calls the 0.1 threshold conservative: it costs at most 11.11 percent of type II error inflation, which in practice is close to nothing, but in exchange it almost never fires. Moving to 0.3 doubles the aggressiveness and charges 42.86 percent inflation. Zhang and Clarke recommend keeping gamma below 0.5 and cite numerical evidence that aggressive boundaries push both errors, type I and type II, substantially away from their nominal levels.

What stopping gives back

The other side of the ledger is what the team gains. In the worked design, the whole test consumes 164,752 visitors and 29 days:

stopping point traffic already spent traffic returned days returned
quarter of the way 41,188 123,564 21
halfway 82,376 82,376 14
three quarters of the way 123,564 41,188 7

Two weeks of returned traffic is half of another complete experiment on the same flow. In a programme that runs one test at a time, that is the throughput ceiling moving: it is not a cost saving, it is one more hypothesis tested per quarter.

The evidence recommends caution

Here is the honest counterweight, and it comes from data rather than opinion. Jitlal, Khan, Lee and Hackshaw retrospectively re-analysed ten randomised cancer trials that reached their target sample size, applying futility analyses after 25, 50 and 75 percent of events observed. The result cuts both ways.

On the favourable side: after 50 percent of the target number of events, three of the five trials with no benefit could have stopped early, with conditional power of 15 percent or less. In two of them the duration would have fallen by between 4 and 24 months, saving between 44,000 and 231,000 pounds (the third had already stopped recruiting, so no savings would have been made).

On the unfavourable side, which matters more: two of the four trials with moderate treatment effects could also have been stopped at some point, although they eventually showed worthwhile benefit. The authors’ conclusion is the one that should shape programme policy: futility should be used more often, because it stops future participants receiving an ineffective treatment, but unless there is very good evidence for futility, it is often best to continue to the planned end.

The translation to product experimentation is direct. The cost of being wrong here is not ethical, it is portfolio-shaped: killing a test that would have won means filing away a good hypothesis with a “tested” stamp on it, and it rarely makes its way back into the queue.

Binding rules against guidelines

The FDA separates two kinds of futility rule, and the distinction matters outside the clinical context too:

For a product experimentation programme the guideline form is almost always the right pick: it gives the team the right to continue when context justifies it (an unusual holiday in the middle of the test, a campaign that shifted the traffic mix) at no statistical cost. What it demands is honesty about the criterion having been written first.

It is worth recording the order of magnitude that interim analysis buys, also from the FDA: a group sequential design with a single interim analysis and a commonly used efficacy stopping boundary reduces the expected sample size by roughly 15 percent relative to a comparable fixed sample trial. That is a real and modest gain, not a revolution, and it is a good calibration point for expectations.

How to put this in the plan

Four lines in the pre-registered analysis plan settle it:

  1. How many interim analyses and when, expressed as information fractions (a single one at the halfway point, for instance). Fixing them by fraction rather than by date keeps the calendar from deciding the statistics.
  2. The drift assumption: planned effect or observed trend. Publish both in the report and decide on one.
  3. The threshold gamma and the type II error inflation it implies, written as a number.
  4. Whether the rule is a guideline or binding, and who has the authority not to follow it.

A word on discipline: an interim futility analysis is not a licence to check the p-value daily. The futility boundary is about conditional power, it is one-directional, and it is declared in advance. Peeking at the result hunting for a win is still peeking, with the usual false positive cost.

Common mistakes

Make this automatic with Donnu

The decision to shut down a test that cannot conclude usually arrives late, and out of fatigue, because the dashboard only shows the current p-value and the p-value does not answer the question “is it worth continuing?”.

At Donnu, every experiment starts with its planned sample and its information fraction visible on the dashboard, so the interim analysis happens at the agreed point instead of whenever someone remembers, and the report shows the distance still to go rather than just the current verdict. To redo the calculations by hand, the significance calculator returns the z for any interim cut, the test duration calculator turns the remaining sample into calendar days, and the test velocity calculator shows what the returned traffic buys in hypotheses tested.

References

Read next: Sequential testing explained · The peeking problem · Equivalence testing · Pre-registered analysis plan · Test duration calculator · Leia em português

Frequently asked questions

What is futility stopping in an A/B test?
It is shutting the test down before the planned end when the chance of finishing with significance has become too small to justify the remaining traffic. The decision is different from stopping for a win: nobody declares a winner here, the team simply accepts that the question will not be answered by the current design. The calculation behind the decision is called conditional power.
What is conditional power?
It is the probability that the final analysis will reject the null hypothesis, given the data observed so far at the interim analysis and an assumption about the effect over the remaining stretch. Zhang and Clarke define it exactly that way and note that the complementary quantity, 1 minus conditional power, has been called the futility index since Ware, Muller and Braunwald. The calculation uses the Brownian motion B-value formalised by Lan and Wittes.
Which conditional power threshold should you use?
The choice is subjective and has a stated price. According to Zhang and Clarke, a common practice among investigators is to stop when conditional power computed at the originally designed effect falls below 0.1, and that rule is conservative: it rarely recommends stopping. Lan, Simon and Halperin showed that with continuous monitoring and a threshold gamma, the overall type II error is bounded by beta divided by 1 minus gamma, which for gamma of 0.1 means inflation of at most 11.11 percent.
Does stopping for futility break the statistics of the test?
No, provided the rule is non-binding. The FDA states that adding non-binding futility guidelines to a fixed sample trial, or to a trial with appropriate group sequential stopping rules for efficacy, does not increase the type I error probability and is often appropriate. What futility costs is power, not false positive rate: the chance of missing a real effect goes up, and that is the calculation that has to be declared up front.
What is the difference between binding and non-binding rules?
A non-binding rule is a guideline: it may or may not be followed depending on the totality of the interim results. A binding rule requires the trial to stop whenever the criterion is met. According to the FDA, binding rules offer some advantages in the efficacy analysis, but type I error control only holds if they are followed, and a trial that continues after crossing a binding boundary is likely to be considered as having failed to provide evidence of efficacy, regardless of the final outcome.
Can futility stopping kill a test that would have won?
It can, and there is empirical evidence of it. Jitlal, Khan, Lee and Hackshaw re-analysed ten randomised cancer trials and found both sides: most of the trials with no benefit could have stopped early on low conditional power, saving months and tens of thousands of pounds, but two of the four trials with moderate effects would also have been stopped at some point despite eventually showing worthwhile benefit. Their conclusion is direct: unless there is very good evidence for futility, it is often best to continue to the planned end.