Experiment design: which choices change the call
Counting orders as independent added 17 false alarms per 100 random splits of one store over four weeks.
Over twelve weeks it added 34. Data, method, the predictions and how they came out, the changes made after the results, the checks, a glossary and the downloads.
Data and licences
| Dataset | Rows | Licence | Used for |
|---|---|---|---|
| Criteo uplift, version 2.1 (Criteo AI Lab) | 13,979,592 | CC BY-NC-SA 4.0, non-commercial: fine for this page, not for a product | adjustment, segments, the relabelling replay |
| ASOS Digital Experiments (Liu and others, ASOS and Imperial College) | 24,153 | CC BY 4.0 | daily checks against the sequential rule |
| Online Retail II (UCI repository) | 1,067,371 | CC BY 4.0 | per-order metrics, store replay |
| MineThatData e-mail test (Kevin Hillstrom) | 64,000 | shared publicly for analysis, credited, not copied here | classic adjustment, the readout |
The data files are not copied here; the README gives the sources and checksums. Large files were read in chunks of a million rows with DuckDB, never whole.
What each part does
- Daily checks. For each of the 381 tests, a two-sided Welch test on the running means at the first snapshot of each day (a Welch-style z test, normal approximation). The daily check calls at the first p under 0.05. The sequential rule is a mixture sequential probability ratio test that calls when the ratio reaches 20, with the mixing scale fixed at 0.01 standard deviations. It plugs in the observed variances and standard deviation at each look, a large-sample approximation of a rule whose guarantee assumes both known; its false alarms are measured by the replay. In a change added after the results, a third rule calls at a fixed bar as strict as the sequential rule (a z of at least 3.33, matched on its number of calls). The yardstick is the same Welch test at the last snapshot.
- Relabelling replay. One seeded arrival order, 14 equal days, 2,000 relabellings. Each user is A or B with even odds; done exactly per day by a binomial draw of the arm size and a hypergeometric draw of its visits. A test checks this against explicit relabelling.
- Per-order metrics. Orders are invoices, cancellations dropped, four weeks from 3 to 30 October 2011 and twelve weeks from 8 August. The order-level test is a Welch test on order values; the delta method uses customer sums.
- Adjustment. Separate straight-line fits per arm, centred on the pooled mean of the features. The binned version predicts each user from 20 bins per feature, fitted on the other half of the data.
- Segments. Cuts at the 20th to 80th percentiles; each segment against the rest, difference of the arm differences; Holm and Benjamini-Hochberg at 5%.
How much each choice moves, per 100 decisions: checking daily at the usual bar left 30.7 calls per 100 real readings that the last-snapshot test did not confirm, 23.6 more than the sequential rule (compared like for like, added after the results); counting orders as independent added 16.8 false alarms per 100 no-effect splits at four weeks and 34 at twelve; uncorrected segments, 0.1. On the no-effect replay, daily checks at the usual bar raised about 20 more false alarms per 100 splits than the sequential rule (20.5% against 0.6%).
Predictions written down before the first run
9 of 13 came out as expected, 2 the opposite, and 2 in between. One outcome moved with the daily-look change below: the sequential rule's share of last-snapshot results reached was 47%, in between, and is now 61%, as expected.
| What was predicted | Result | Outcome |
|---|---|---|
| Criteo visits: noise removed by straight-line adjustment, expected 10% to 40% | 25.8% | As expected |
| Criteo visits: binned prediction removes at least 3 points more noise than the straight line | −4.0 points | The opposite |
| E-mail test spend: noise removed by prior spend alone, expected under 5% | 0.04% | As expected |
| Daily check: share of its calls that do not hold, expected 25% to 50% | 53.4% | Neither |
| Sequential rule: share of its calls that do not hold, expected 10% or less | 29.7% | Neither |
| Sequential rule: share of last-snapshot results it reaches, expected 50% to 85% | 61.0% | As expected |
| Replay: daily check's false alarms over 14 looks, expected 15% to 25% | 20.5% | As expected |
| Replay: sequential rule's false alarms, expected 5% or less | 0.60% | As expected |
| Store: false alarms counting orders as independent, expected 10% to 30% | 21.7% | As expected |
| Store: false alarms with the customer as the unit, expected 3% to 7% | 5.0% | As expected |
| Segments found at 5% that hold elsewhere, expected 50% or less | 99.8% | The opposite |
| Segments found after the Holm correction that hold elsewhere, expected 80% or more | 100.0% | As expected |
| Split check: Criteo and the e-mail test pass, at least one ASOS arm flagged | 12 | As expected |
Changes made after the first results
- Series without variances. 15 arm and metric series carry no variances in the records. The first version counted them as tests with no call (396 tests); the design said to drop such series, and they are now dropped (381 tests). No call changed. Per 100 tests, calls that did not hold moved from 20.2 to 21.0 for the daily check and from 5.6 to 5.8 for the sequential rule; the money figures moved with them.
- The daily look. It was first taken only at whole-day snapshots, as the design said, which the 96 series recorded at half-day offsets never reach. It is now the first snapshot of each day, so every series is read daily. This also added looks to 140 of the other 285 series, which skip a day or start at a half day, and changed a call or its day on 31. The daily check's calls went from 158, 80 not holding, to 219 and 117; the sequential rule's from 71 and 22 to 91 and 27. The gap in shares stays clear of zero (14 to 33 points), the sequential rule is lower on all four metrics, and the gap counting only calls before the last snapshot also excludes zero.
- A daily check as strict. A third rule on the same looks: the usual test at a fixed bar matched to the sequential rule's number of calls. Its share of calls that did not hold was predicted to be below the daily check's (held: 31% against 53%) and above the sequential rule's by 5 points or more (missed: 30%, difference −2 to 6 points). So the real-test gap is credited to strictness.
- By metric and before the last snapshot. The sequential rule's calls on each metric, and the shares counting only calls before the last snapshot, with their own interval.
- New outputs from the same draws. The sequential rule's false alarms by look, and the combined rule with its end test at 4.5%. Every earlier replay number is unchanged.
- New checks. An interval for the share of calls that did not hold, resampling whole experiments, and a unit test of the sequential rule with the variance estimated at each look.
- Stopping and the per-order unit, like for like. Stopping's difference from the sequential rule, beside the per-order metric's extra false alarms, as given above.
Checks
- Unit tests: the adjustment matches a least-squares fit, the delta method equals the simple interval when each unit has one event and is wider when events cluster, the sequential rule holds its error rate under daily looks with the variance known and with it estimated at each look, and the replay shortcut matches explicit relabelling.
- The split between arms: Criteo against its stated share, the e-mail test against equal thirds, each retailer arm against an even split.
Glossary
- Usual test
- The standard 5% significance test (here Welch's), built for one look at the planned end.
- Significant at 5%
- If there were no real effect, a difference at least this large would turn up in under 5% of tests.
- Sequential rule
- A test designed to be checked as often as you like while keeping its false alarms at 5% or less; here an approximation, with its false alarms measured.
- Relabelling replay
- Real users with the arms thrown away and redrawn at random; any difference found is a false alarm. Also called an A/A test.
- Delta method
- The interval for a ratio such as revenue per order, computed with the customer as the unit.
- CUPED
- Adjusting a test's metric for data from before the test, to cut its noise.
- Holm correction
- A stricter bar when many segments are tested, so chance finds are rarer.
- Guardrail
- A metric that must not get worse for a change to ship.
- Did not hold
- An early call that the same test at the last recorded snapshot did not confirm: no longer significant at 5%, or significant the other way.
Reproduce and download
The code, the results and the predictions are in this folder: README, predictions, results summary, money assumptions. Every random draw is seeded. Python 3.12 with DuckDB, NumPy and SciPy.