Skip to content
AnantCausal

Why a stop rule compares to control

A guardrail on the treated arm alone trips whenever a metric moves, for any reason. Comparing with control stops it blaming your change for the weather.

AnantCausal, Engineering · · 6 min read

Reviewed by Team Anant

A stop rule has one job: stop a change that is doing harm. A rule that only watches the group receiving the change has a flaw you notice at the worst possible moment. This post explains the flaw, gives business examples, and shows how comparing with a control group fixes it.

What is a stop rule, and what is it for?

A stop rule is a limit on a measured metric, written before a run starts, that says when to stop or alert. It exists because enthusiasm is a poor monitor. The people running a test want it to work, and a limit written in advance does not share that bias.

Typical guardrail metrics are complaints, refund rate, error rate, unsubscribes, support contacts and page load failures. They are things you do not want to trade away for the gain you are testing.

What goes wrong when a rule watches only the treated group?

The metric can move for reasons that have nothing to do with your change. The rule cannot tell the difference, so it trips anyway.

Here are three hypothetical examples.

  • The holiday week

    A retailer tests a new promotional email. Unsubscribes rise during a heavy sale week because everyone is getting more mail. A treated-only rule halts the test. The email did nothing wrong.

  • The upstream outage

    A bank tests a redesigned payment screen. A payment provider has a bad afternoon, and errors rise in every group. The rule blames the screen.

  • The seasonal swing

    A travel site tests a new checkout flow in the week before a holiday. Cancellations climb everywhere. The rule reads it as damage from the flow.

Each of these is a false alarm. The cost is not only a wasted test. People learn that the guardrails cry wolf and begin to ignore them, which is how real harm eventually slips through.

What does comparing to control change?

It changes the question. Instead of asking whether the metric is high, it asks whether the treated arm is worse than the control arm at the same time. A metric that rises in both arms produces a difference near zero and does not trip the rule.

Treated arm aloneTreated minus control
Trips on anything that moves the metricTrips only on what the change caused
A metric rising everywhere looks like harmA metric rising in both arms is ignored
Halts for a reason you cannot defendHalts for a reason you can name
Teaches teams to ignore the alertsKeeps the alerts credible

For the rule to work, both arms need to be measured over the same window. That is why a stop rule on a difference is also a reason to keep a real comparison group running, not just a holdout that nobody reads.

How do you set a threshold that means something?

Three settings do most of the work.

  1. An allowed difference

    How much worse than control is acceptable? Decide this in terms of cost. One extra complaint per thousand customers may be cheap. One extra payment error per thousand may not be.

  2. A minimum sample

    Require a minimum number of units before the rule can act, so a few early events do not halt a run.

  3. Readings in a row

    Where the metric is noisy, require several consecutive readings past the threshold. A single spike is not a trend.

A rule can also require the difference to be beyond its interval before it acts. That suits metrics where a noisy single reading should not stop a run, at the price of reacting later.

Halt or alert: which should the rule do?

Write the choice before the run starts, based on what continuing costs.

  • Halt when the harm is hard to reverse or affects people who did not choose to be in a test: payment failures, safety complaints, regulatory exposure.
  • Alert when a person should look but waiting an hour costs little: a drift in engagement, a small rise in support contacts.

Only a rule written to halt stops the run, and the halt names the metric, so whoever reviews it knows what happened. Anyone on the project can still halt by hand. Stopping is never gated behind the permission that starting is.

Why freeze the rules while the run is going?

Because a threshold changed after seeing results is a choice made with hindsight. If the line was inconvenient, it is tempting to move it. Freezing the rules at the start removes that option, and a reviewer can trust that what the run was judged against is what was written down.

What if the metric lives in a data warehouse?

Metrics can be pulled from your warehouse on a timer through the same read-only path as dataset queries, instead of waiting for someone to report them. A source that keeps failing is announced, and its rule shows as unread rather than fine.

That last point matters. Silence from a monitor is not the same as safety. A rule with no readings is guarding nothing, and the console says so.

What this does not tell you

The business cases are illustrative patterns. They do not report any company's results.

What to do next

Look at the guardrails on your last three tests. If they watched only the treated group, ask how many times a false alarm would have fired in a seasonal week. Then read how rules fit into a governed run, and the glossary entries for a stop rule and a holdout.

Frequently asked questions

What is a guardrail metric in an experiment?
A guardrail is a metric you must not harm while testing a change, such as complaints, error rate, refunds or unsubscribes. A stop rule is the pre-agreed limit on it that tells you when to stop or alert.
Should a stop rule halt the run or only alert?
Halt when continuing could cause harm that is hard to reverse, such as errors in payments or safety complaints. Alert when a person should look but the cost of continuing is small. Write the choice before the run starts.
Why can't a threshold be changed after the run starts?
A threshold moved after seeing results is a choice made with hindsight. Freezing rules while a run is going keeps the decision honest and makes the result easier to defend to a reviewer.
How many readings should a rule need before acting?
Use a minimum number of units so a handful of events cannot trip it, and where noise is high require several readings in a row. Both reduce false alarms from looking often.

Keep reading

  • learning · experiments

    A model that learns only from experiments

    A model fitted to the results of its own decisions reinforces selection effects. Ours learns only from a recorded experiment, and previews first.

    · 6 min read