Marketplace experiment designs
Part 1 of 2 in Driver incentives, from test to decision
Short switchback blocks undercount an incentive whose effect lingers: in a simulated city where 70% of its pull carried over each slot, the test measured half the gain and shipped it in 14% of runs, not 93%.
500 simulated ride-hailing cities for each situation, and four ways to test the incentive. A switchback, which flips whole regions between the old and new policy in time blocks, was the most precise, but its 3-slot blocks carried the incentive's pull across each switch. I would measure how long the effect lingers before choosing block length: here, at the 70% memory I set, 12-slot blocks measured 85% of the gain and covered it in 92% of runs, for 72% more spread.
| Real gain shipped, lingering effect 14% of switchback runs under the ship rule at 70% memory; 82% at 30%, 3% at 80%; 93% with no lingering | Switchback coverage, lingering effect 45% 224 of 500 runs covered the true effect (should be 95%); 12-slot blocks: 92% at 70% memory, 79% at 85% | Test time with planned checks 61% of the planned switchback test on average, with no lingering; power 99% either way, near the ceiling, so a loss could not show; early stops averaged 1.14 times the true gain | False wins, usual bar every time 12% of no-effect runs, worst design; 4% to 6% with adjusted thresholds |
Main limitation One simulated city with settings the study chose, so the numbers show how each design fails, not how often designs fail in a real market. The switchback's miss is set mostly by how much of the incentive's pull carries over each slot, 70% in the main run: in a declared sweep its ship rate ran from 82% at 30% to 3% at 80%. | |||
In plain words
Operations wants to know whether a driver incentive, such as extra pay for staying online at busy times, adds rides across a city. The obvious test gives the incentive to half the drivers and compares the two halves. In a ride-hailing market that test can mislead, because drivers share riders: a driver on the incentive serves riders another driver would have served, so the comparison counts some reshuffled rides as gains. Testing whole regions, or switching regions on and off over time, avoids most of that. Switching has its own trap, an effect that lingers after the incentive switches off.
A business cares because an incentive costs money every week it runs. A test that overstates the gain keeps paying for rides that were never added; one that understates it stops a change that works.
I simulated a small city 500 times for each of five situations and ran four test designs on the same cities, so every estimate can be checked against that city's true full-rollout effect. Without the incentive the city completes about 3,871 rides in the part of the test that is scored; the incentive adds about 572, a 15% lift. The city stands in for driver-supply tests in a ride-hailing market. It is simulated so that no company or rider data is shared.
The switchback was the most precise design and the right kind for changes that touch the whole market. With short blocks and a lingering effect (70% of the pull carried over each slot), though, it measured about 263 extra rides when the true gain was 523, so a fixed ship, stop or keep-testing rule mostly kept testing a change that worked. Longer blocks fix most of that at a price in precision, so I would measure how long the effect lingers before choosing them. At 30% memory the same test shipped the gain in 82% of runs, at 80% in 3%. Planned checks with stricter early thresholds cut the switchback's test time by about 39% where its power was near 100%, so no loss could show; designs with power below 90% lost 1 to 3 points of it and used 81% to 96% of the planned time. Runs that stopped early overstated the gain: the switchback's averaged 1.14 times the true gain, other designs' up to 1.99 times.
- Driver A/B
- Half the drivers get the incentive for the whole test.
- CUPED
- An adjustment that uses each driver's rides before the test to remove noise. Same test, tighter answer.
- Region cluster
- Half the regions get the incentive.
- Switchback
- Regions flip between incentive and none in blocks of time, so each region is compared with itself.
- Slot, block, washout
- A slot is one period of the test; the model does not fix its length. A block is a run of slots between switches. The first slot after each switch is discarded as washout.
- Lingering effect, memory
- A lingering effect, also called carryover: drivers keep responding after the incentive switches off. Its memory is the share of the response each slot keeps from the slot before: 70% in the main run; a declared sweep tries 0% to 90%.
- Spillover
- One driver's incentive changes another driver's rides.
- Full-rollout effect
- Extra rides when every driver gets the incentive, against none. The simulator knows it for every city.
- Coverage
- How often a 95% interval contains the true effect. It should be about 95%.
- Power
- How often a test detects an effect that is really there.
- False win
- A change that does nothing, called a win.
- Ship rule
- A fixed rule that turns a result into ship, stop or keep testing. It was written before this study and used unchanged.
What each design measured
Each run draws one city, applies all four designs to it, and compares each estimate with the same city's full-rollout effect.
| Design | Share of the real gain measured | Interval covered the real gain | Detected the gain | Ship rule shipped |
|---|---|---|---|---|
| No interference | ||||
| Driver A/B | 100% | 95% | 44% | 18% |
| Driver A/B with CUPED | 100% | 94% | 94% | 73% |
| Region cluster | 99% | 96% | 28% | 16% |
| Region/time switchback | 101% | 97% | 99% | 93% |
| Lingering effect (carryover) | ||||
| Driver A/B | 100% | 95% | 37% | 13% |
| Driver A/B with CUPED | 100% | 94% | 91% | 62% |
| Region cluster | 99% | 96% | 25% | 13% |
| Region/time switchback | 50% | 45% | 55% | 14% |
| Spillovers between drivers | ||||
| Driver A/B | 136% | 91% | 68% | 0% (39% without the checks) |
| Driver A/B with CUPED | 136% | 77% | 99% | 0% (96% without the checks) |
| Region cluster | 119% | 95% | 50% | 0% (30% without the checks) |
| Region/time switchback | 120% | 86% | 100% | 0% (99% without the checks) |
results.json · scenarios.csv (every run) · decision.json
- The ship rule ships only when it is 95% sure the extra rides beat the incentive's cost by a clear margin, so a low ship rate on a real gain means more testing, a delay. With no effect it shipped in at most 1.0% of runs, whatever the design.
- With spillovers, riders a busy driver cannot serve go to a nearby driver with spare time, across region borders. Drivers on the incentive have more spare time, so a test credits them with some rides the city would have served anyway: driver A/B overstated the gain by 36%, regions and switchbacks by about 19%. With 12% to 19% of rides served by another driver, the rule's interference check sent every run back, although the gain was real.
How long switchback blocks should be
With 3-slot blocks and one discarded slot, most scored slots still carry the other policy's effect. A second run on the same cities held the test at 24 slots and changed only the block length.
Switchback with a lingering effect, 500 runs per point. The test stays 24 slots long and the first slot of every block is discarded, so each length has its own scored slots and effect. The main run uses 3-slot blocks (highlighted). Hollow points: persistent demand shocks.
Show the data
| Shocks and block length | Blocks | Scored slots | Effect | Gap | Share missed | SD | Coverage | Power | False wins |
|---|---|---|---|---|---|---|---|---|---|
| Independent shocks, 2-slot blocks | 12 | 12 | 392.2 | −232.0 | 59.1% | 92.8 | 43.0% | 32.6% | 4.2% |
| Independent shocks, 3-slot blocks | 8 | 16 | 522.7 | −259.8 | 49.7% | 116.0 | 44.8% | 54.6% | 4.2% |
| Independent shocks, 4-slot blocks | 6 | 18 | 588.3 | −267.6 | 45.5% | 121.7 | 49.2% | 66.8% | 5.0% |
| Independent shocks, 6-slot blocks | 4 | 20 | 654.5 | −226.4 | 34.6% | 129.4 | 63.0% | 88.0% | 4.0% |
| Independent shocks, 12-slot blocks | 2 | 22 | 722.5 | −107.0 | 14.8% | 200.1 | 91.8% | 81.8% | 5.8% |
| Persistent shocks, 2-slot blocks | 12 | 12 | 392.2 | −225.4 | 57.5% | 105.0 | 42.6% | 36.4% | 6.4% |
| Persistent shocks, 3-slot blocks | 8 | 16 | 522.1 | −262.0 | 50.2% | 110.9 | 43.8% | 55.8% | 3.6% |
| Persistent shocks, 4-slot blocks | 6 | 18 | 588.2 | −252.5 | 42.9% | 127.1 | 57.0% | 68.2% | 5.6% |
| Persistent shocks, 6-slot blocks | 4 | 20 | 654.6 | −217.7 | 33.3% | 131.7 | 67.2% | 86.6% | 4.4% |
| Persistent shocks, 12-slot blocks | 2 | 22 | 722.6 | −106.4 | 14.7% | 194.2 | 92.8% | 82.2% | 4.2% |
Source: block-length sweep on the same simulated cities, with a lingering effect.
- Even 12-slot blocks miss part of the effect, and that length was picked in this simulator at the memory I set: at 85% memory 12-slot blocks covered the effect in 79% of runs and shipped it in 14%. Block length should follow a measured memory.
- Two 12-slot blocks give each region one on-off pair, so precision rests on 16 regions: power was 82%, against 55% for the 3-slot design whose estimate was half the size. Matching the 3-slot precision would take roughly 3 times as many regions.
How much the memory decides it
A declared sweep reran the switchback on the same 500 cities at eight memories, from none to 90% of the pull kept each slot, with 3, 6 and 12-slot blocks and one to three slots discarded after each switch. The ship rule is unchanged.
| Memory kept each slot | Gain measured, 3-slot blocks | Coverage, 3-slot blocks | Shipped, 3-slot, 1 slot discarded | Shipped, 3-slot, 2 discarded | Shipped, 6-slot, 3 discarded | Shipped, 12-slot, 1 discarded |
|---|---|---|---|---|---|---|
| 0% | 101% | 97% | 93% | 70% | 80% | 74% |
| 30% | 93% | 95% | 82% | 65% | 79% | 73% |
| 50% | 77% | 82% | 55% | 45% | 72% | 69% |
| 60% | 64% | 68% | 34% | 29% | 62% | 63% |
| 70% | 50% | 45% | 14% | 15% | 46% | 50% |
| 80% | 35% | 28% | 3% | 5% | 18% | 30% |
| 85% | 28% | 25% | 1% | 3% | 8% | 14% |
| 90% | 21% | 31% | 0% | 1% | 2% | 4% |
- Discarding a second slot at 70% memory raised coverage from 45% to 78% but left the ship rate at 15%: fewer scored slots cost power.
- Longer blocks cost power too: 12-slot blocks shipped the gain in 50% of runs at 70% memory and in 74% with no lingering at all.
carryover-sweep.json · carryover-sweep.csv (every run) · carryover-sweep-protocol.json
Can a team stop early?
Here the same runs are read at four planned checks, after 6, 12, 18 and 24 of the 24 slots. Stopping at the first result that clears the usual 5% bar calls too many no-effect changes wins, so the planned design uses thresholds that start very strict (a z-score above 4.33 at the first check) and end near the usual bar (2.01), the O'Brien-Fleming shape. They were fixed before this run.
Mean share of the 24-slot test run before stopping, no interference, real effect, 500 runs. A run that never crosses a threshold runs to the end.
Show the data
| Situation and design | One test at the end: detected | Adjusted: detected | Adjusted: time used | Usual bar: detected | Usual bar: time used | Adjusted: early estimate ÷ true effect |
|---|---|---|---|---|---|---|
| No interference, effect, Driver A/B | 43.6% | 41.6% | 91.2% | 53.8% | 65.7% | 1.76× |
| No interference, effect, Driver A/B with CUPED | 94.0% | 94.2% | 63.9% | 96.0% | 36.2% | 1.20× |
| No interference, effect, Region cluster | 28.2% | 27.0% | 95.1% | 37.6% | 75.5% | 1.88× |
| No interference, effect, Region/time switchback | 99.4% | 99.4% | 60.6% | 99.6% | 32.9% | 1.14× |
| Carryover, effect, Driver A/B | 37.4% | 34.2% | 93.6% | 42.8% | 76.8% | 1.88× |
| Carryover, effect, Driver A/B with CUPED | 91.2% | 90.8% | 71.4% | 92.6% | 47.3% | 1.18× |
| Carryover, effect, Region cluster | 25.4% | 23.8% | 96.5% | 30.0% | 83.1% | 1.99× |
| Carryover, effect, Region/time switchback | 54.6% | 52.4% | 91.1% | 65.0% | 71.1% | 0.81× |
| Spillovers, effect, Driver A/B | 68.0% | 66.6% | 80.6% | 74.4% | 50.3% | 1.91× |
| Spillovers, effect, Driver A/B with CUPED | 99.4% | 99.4% | 53.2% | 99.4% | 28.7% | 1.55× |
| Spillovers, effect, Region cluster | 50.4% | 47.4% | 89.0% | 61.4% | 59.6% | 1.89× |
| Spillovers, effect, Region/time switchback | 99.6% | 99.8% | 53.4% | 100.0% | 28.4% | 1.37× |
| No effect, no spillovers*, Driver A/B | 4.8% | 3.8% | 99.5% | 8.2% | 94.8% | none |
| No effect, no spillovers*, Driver A/B with CUPED | 5.6% | 5.6% | 99.6% | 12.4% | 93.8% | none |
| No effect, no spillovers*, Region cluster | 4.6% | 4.4% | 99.6% | 7.4% | 95.8% | none |
| No effect, no spillovers*, Region/time switchback | 4.2% | 4.0% | 99.6% | 9.4% | 96.1% | none |
| Spillovers, no effect, Driver A/B | 5.0% | 4.2% | 99.2% | 8.0% | 95.6% | none |
| Spillovers, no effect, Driver A/B with CUPED | 5.4% | 4.8% | 99.5% | 10.6% | 94.8% | none |
| Spillovers, no effect, Region cluster | 4.2% | 3.8% | 99.8% | 8.4% | 95.3% | none |
| Spillovers, no effect, Region/time switchback | 4.8% | 5.2% | 99.5% | 10.6% | 95.5% | none |
sequential.json · sequential-runs.csv (every run) · looks.csv.gz (every run at every check, gzip)
Source: every city of the main run, read at four planned checks.
Share of 500 no-effect runs declared a win at any of the four checks, no interference, with Monte Carlo intervals. The dashed line marks 5%.
Show the data
| Situation and design | One test at the end | Adjusted, four checks | Monte Carlo interval | Usual bar, four checks | Monte Carlo interval |
|---|---|---|---|---|---|
| No effect, no spillovers*, Driver A/B | 4.8% | 3.8% | 2.4% to 5.9% | 8.2% | 6.1% to 10.9% |
| No effect, no spillovers*, Driver A/B with CUPED | 5.6% | 5.6% | 3.9% to 8.0% | 12.4% | 9.8% to 15.6% |
| No effect, no spillovers*, Region cluster | 4.6% | 4.4% | 2.9% to 6.6% | 7.4% | 5.4% to 10.0% |
| No effect, no spillovers*, Region/time switchback | 4.2% | 4.0% | 2.6% to 6.1% | 9.4% | 7.1% to 12.3% |
| Spillovers, no effect, Driver A/B | 5.0% | 4.2% | 2.8% to 6.3% | 8.0% | 5.9% to 10.7% |
| Spillovers, no effect, Driver A/B with CUPED | 5.4% | 4.8% | 3.2% to 7.0% | 10.6% | 8.2% to 13.6% |
| Spillovers, no effect, Region cluster | 4.2% | 3.8% | 2.4% to 5.9% | 8.4% | 6.3% to 11.2% |
| Spillovers, no effect, Region/time switchback | 4.8% | 5.2% | 3.6% to 7.5% | 10.6% | 8.2% to 13.6% |
Source: the no-effect cities of the main run, read at four planned checks.
- Stopping early does not repair a lingering effect: the carryover switchback used 91% of the planned time and still measured about half the gain.
- The ship rule itself has no adjustment for repeated looks: checked at every check, it shipped a little more often with no effect (table under All results), so a team that watches it daily should add one.
All results
Show every chart and table (gap, coverage, ship rule, power, CUPED, persistent shocks, every comparison)
Gap: mean estimate minus the full-rollout effect (every driver on the incentive minus none), in completed rides, real-effect situations. The city completes about 3,871 rides in the scored slots without the incentive. Bars are 95% Monte Carlo intervals over 500 runs.
Show the data
| Situation and design | Effect | Gap | Monte Carlo interval |
|---|---|---|---|
| No interference, Driver A/B | 572.3 | −1.0 | −28.9 to 26.8 |
| No interference, Driver A/B with CUPED | 572.3 | −2.2 | −16.1 to 11.7 |
| No interference, Region cluster | 572.3 | −7.1 | −40.0 to 25.8 |
| No interference, Region/time switchback | 572.3 | +7.2 | −2.6 to 17.0 |
| Spillovers, Driver A/B | 655.8 | +235.2 | 203.8 to 266.5 |
| Spillovers, Driver A/B with CUPED | 655.8 | +234.0 | 216.5 to 251.5 |
| Spillovers, Region cluster | 655.8 | +126.8 | 93.8 to 159.8 |
| Spillovers, Region/time switchback | 655.8 | +128.4 | 117.2 to 139.5 |
| Carryover, Driver A/B | 522.7 | −0.6 | −28.5 to 27.2 |
| Carryover, Driver A/B with CUPED | 522.7 | −1.8 | −15.7 to 12.2 |
| Carryover, Region cluster | 522.7 | −6.7 | −39.5 to 26.0 |
| Carryover, Region/time switchback | 522.7 | −259.8 | −269.8 to −249.8 |
Source: main run, 500 simulated cities per situation.
Share of 500 runs whose 95% interval contains that run's full-rollout effect, with Monte Carlo intervals. The dashed line marks 95%.
Show the data
| Situation and design | Coverage | Monte Carlo interval | Mean interval width (rides) |
|---|---|---|---|
| No interference, Driver A/B | 95.2% | 93.0% to 96.8% | 1,283 |
| No interference, Driver A/B with CUPED | 94.0% | 91.6% to 95.8% | 610 |
| No interference, Region cluster | 95.8% | 93.7% to 97.2% | 1,593 |
| No interference, Region/time switchback | 96.6% | 94.6% to 97.9% | 495 |
| Spillovers, Driver A/B | 90.8% | 87.9% to 93.0% | 1,456 |
| Spillovers, Driver A/B with CUPED | 76.6% | 72.7% to 80.1% | 753 |
| Spillovers, Region cluster | 94.8% | 92.5% to 96.4% | 1,600 |
| Spillovers, Region/time switchback | 85.6% | 82.3% to 88.4% | 558 |
| Carryover, Driver A/B | 95.4% | 93.2% to 96.9% | 1,283 |
| Carryover, Driver A/B with CUPED | 94.2% | 91.8% to 95.9% | 610 |
| Carryover, Region cluster | 95.6% | 93.4% to 97.1% | 1,588 |
| Carryover, Region/time switchback | 44.8% | 40.5% to 49.2% | 488 |
Source: main run, 500 simulated cities per situation.
Share of 500 runs in which the ship rule ships, with Monte Carlo intervals. Every positive-effect run here has a true gain above the rule's bar, so each ship is a correct call and each missing ship is a delay or a lost gain. Spillover rows show the rule without its interference checks; with them, every spillover run is sent back.
Show the data
| Situation and design | True net gain | Mean estimate | Ship | Stop | Keep testing | Wrong ship | Wrong stop | Ship without checks |
|---|---|---|---|---|---|---|---|---|
| No interference, effect, Driver A/B | 459 | 458 | 17.6% | 0.4% | 82.0% | 0.0% | 0.4% | 17.6% |
| No interference, effect, Driver A/B with CUPED | 459 | 457 | 73.0% | 0.0% | 27.0% | 0.0% | 0.0% | 73.0% |
| No interference, effect, Region cluster | 459 | 452 | 15.8% | 0.4% | 83.8% | 0.0% | 0.4% | 15.8% |
| No interference, effect, Region/time switchback | 459 | 466 | 92.6% | 0.0% | 7.4% | 0.0% | 0.0% | 92.6% |
| Carryover, effect, Driver A/B | 410 | 410 | 13.0% | 0.6% | 86.4% | 0.0% | 0.6% | 13.0% |
| Carryover, effect, Driver A/B with CUPED | 410 | 409 | 62.4% | 0.0% | 37.6% | 0.0% | 0.0% | 62.4% |
| Carryover, effect, Region cluster | 410 | 404 | 12.6% | 0.8% | 86.6% | 0.0% | 0.8% | 12.6% |
| Carryover, effect, Region/time switchback | 410 | 157 | 13.8% | 1.6% | 84.6% | 0.0% | 1.6% | 13.8% |
| Spillovers, effect, Driver A/B | 540 | 770 | 0.0% | 0.0% | 100.0% | 0.0% | 0.0% | 39.4% |
| Spillovers, effect, Driver A/B with CUPED | 540 | 769 | 0.0% | 0.0% | 100.0% | 0.0% | 0.0% | 96.4% |
| Spillovers, effect, Region cluster | 540 | 664 | 0.0% | 0.0% | 100.0% | 0.0% | 0.0% | 30.2% |
| Spillovers, effect, Region/time switchback | 540 | 666 | 0.0% | 0.0% | 100.0% | 0.0% | 0.0% | 98.6% |
| No effect, no spillovers*, Driver A/B | 0 | −1 | 0.2% | 7.6% | 92.2% | 0.2% | 0.0% | 0.2% |
| No effect, no spillovers*, Driver A/B with CUPED | 0 | −2 | 0.4% | 19.2% | 80.4% | 0.4% | 0.0% | 0.4% |
| No effect, no spillovers*, Region cluster | 0 | −8 | 1.0% | 10.2% | 88.8% | 1.0% | 0.0% | 1.0% |
| No effect, no spillovers*, Region/time switchback | 0 | 7 | 0.8% | 23.0% | 76.2% | 0.8% | 0.0% | 0.8% |
| Spillovers, no effect, Driver A/B | 0 | 5 | 0.0% | 0.0% | 100.0% | 0.0% | 0.0% | 0.6% |
| Spillovers, no effect, Driver A/B with CUPED | 0 | 4 | 0.0% | 0.0% | 100.0% | 0.0% | 0.0% | 1.4% |
| Spillovers, no effect, Region cluster | 0 | −11 | 0.0% | 0.0% | 100.0% | 0.0% | 0.0% | 0.8% |
| Spillovers, no effect, Region/time switchback | 0 | 2 | 0.0% | 0.0% | 100.0% | 0.0% | 0.0% | 1.0% |
| Situation and design | Prior SD 250 | Prior SD 500 | Prior SD 1,000 |
|---|---|---|---|
| No interference, effect, Driver A/B | 3.6% | 17.6% | 27.0% |
| No interference, effect, Driver A/B with CUPED | 60.6% | 73.0% | 75.2% |
| No interference, effect, Region cluster | 4.0% | 15.8% | 24.0% |
| No interference, effect, Region/time switchback | 84.8% | 92.6% | 93.8% |
| Carryover, effect, Driver A/B | 2.2% | 13.0% | 22.0% |
| Carryover, effect, Driver A/B with CUPED | 47.2% | 62.4% | 66.4% |
| Carryover, effect, Region cluster | 3.2% | 12.6% | 19.8% |
| Carryover, effect, Region/time switchback | 8.6% | 13.8% | 15.6% |
| Spillovers, effect, Driver A/B | 0.0% | 0.0% | 0.0% |
| Spillovers, effect, Driver A/B with CUPED | 0.0% | 0.0% | 0.0% |
| Spillovers, effect, Region cluster | 0.0% | 0.0% | 0.0% |
| Spillovers, effect, Region/time switchback | 0.0% | 0.0% | 0.0% |
| No effect, no spillovers*, Driver A/B | 0.0% | 0.2% | 1.2% |
| No effect, no spillovers*, Driver A/B with CUPED | 0.0% | 0.4% | 0.8% |
| No effect, no spillovers*, Region cluster | 0.2% | 1.0% | 1.6% |
| No effect, no spillovers*, Region/time switchback | 0.6% | 0.8% | 0.8% |
| Spillovers, no effect, Driver A/B | 0.0% | 0.0% | 0.0% |
| Spillovers, no effect, Driver A/B with CUPED | 0.0% | 0.0% | 0.0% |
| Spillovers, no effect, Region cluster | 0.0% | 0.0% | 0.0% |
| Spillovers, no effect, Region/time switchback | 0.0% | 0.0% | 0.0% |
Source: the ship rule applied to every city of the main run.
Share of 500 runs detecting the gain at the 5% level, real-effect situations. Under spillovers and carryover a detection can come from a contrast that differs from the full-rollout effect.
Show the data
| Situation and design | Detected | Monte Carlo interval |
|---|---|---|
| No interference, Driver A/B | 43.6% | 39.3% to 48.0% |
| No interference, Driver A/B with CUPED | 94.0% | 91.6% to 95.8% |
| No interference, Region cluster | 28.2% | 24.4% to 32.3% |
| No interference, Region/time switchback | 99.4% | 98.3% to 99.8% |
| Spillovers, Driver A/B | 68.0% | 63.8% to 71.9% |
| Spillovers, Driver A/B with CUPED | 99.4% | 98.3% to 99.8% |
| Spillovers, Region cluster | 50.4% | 46.0% to 54.8% |
| Spillovers, Region/time switchback | 99.6% | 98.6% to 99.9% |
| Carryover, Driver A/B | 37.4% | 33.3% to 41.7% |
| Carryover, Driver A/B with CUPED | 91.2% | 88.4% to 93.4% |
| Carryover, Region cluster | 25.4% | 21.8% to 29.4% |
| Carryover, Region/time switchback | 54.6% | 50.2% to 58.9% |
| Situation and design | Called a win | Monte Carlo interval |
|---|---|---|
| No interference or carryover, Driver A/B | 4.8% | 3.2% to 7.0% |
| No interference or carryover, Driver A/B with CUPED | 5.6% | 3.9% to 8.0% |
| No interference or carryover, Region cluster | 4.6% | 3.1% to 6.8% |
| No interference or carryover, Region/time switchback | 4.2% | 2.8% to 6.3% |
| Spillovers, Driver A/B | 5.0% | 3.4% to 7.3% |
| Spillovers, Driver A/B with CUPED | 5.4% | 3.7% to 7.7% |
| Spillovers, Region cluster | 4.2% | 2.8% to 6.3% |
| Spillovers, Region/time switchback | 4.8% | 3.2% to 7.0% |
Source: main run, 500 simulated cities per situation.
Variance reduction of A/B with CUPED relative to plain A/B, same runs, with bootstrap intervals. The no-effect row without spillovers covers both the no-interference and the carryover no-effect runs.
Show the data
| Situation | Reduction | Monte Carlo interval |
|---|---|---|
| Real effect, no interference | 75.1% | 71.4% to 78.3% |
| Real effect, spillovers | 71.4% | 67.4% to 74.8% |
| Real effect, carryover | 75.2% | 71.8% to 78.3% |
| No effect, no spillovers | 74.8% | 70.8% to 78.1% |
| No effect, spillovers | 69.3% | 65.3% to 73.1% |
Source: main run, A/B with and without CUPED on the same cities.
Standard deviation of the estimate when demand shocks persist from slot to slot (0.8 of a shock carries to the next slot), divided by the standard deviation with independent shocks, with a bootstrap interval. 1 means no change.
Show the data
| Situation and design | SD, independent | SD, persistent | Ratio | Bootstrap interval | Coverage, independent | Coverage, persistent | Detected, independent | Detected, persistent |
|---|---|---|---|---|---|---|---|---|
| No interference, Driver A/B | 322 | 318 | 0.99 | 0.95 to 1.03 | 95.2% | 95.8% | 43.6% | 43.4% |
| No interference, Driver A/B with CUPED | 161 | 170 | 1.06 | 0.98 to 1.15 | 94.0% | 93.4% | 94.0% | 92.6% |
| No interference, Region cluster | 373 | 378 | 1.01 | 0.98 to 1.05 | 95.8% | 95.6% | 28.2% | 29.2% |
| No interference, Region/time switchback | 120 | 114 | 0.95 | 0.87 to 1.04 | 96.6% | 97.0% | 99.4% | 99.6% |
| Spillovers, Driver A/B | 359 | 356 | 0.99 | 0.95 to 1.04 | 90.8% | 91.0% | 68.0% | 71.2% |
| Spillovers, Driver A/B with CUPED | 192 | 198 | 1.03 | 0.95 to 1.12 | 76.6% | 77.4% | 99.4% | 99.6% |
| Spillovers, Region cluster | 372 | 370 | 1.00 | 0.96 to 1.04 | 94.8% | 93.8% | 50.4% | 49.6% |
| Spillovers, Region/time switchback | 140 | 138 | 0.99 | 0.91 to 1.08 | 85.6% | 87.0% | 99.6% | 100.0% |
| Carryover, Driver A/B | 322 | 317 | 0.99 | 0.95 to 1.03 | 95.4% | 95.4% | 37.4% | 38.0% |
| Carryover, Driver A/B with CUPED | 160 | 169 | 1.05 | 0.97 to 1.15 | 94.2% | 93.8% | 91.2% | 89.0% |
| Carryover, Region cluster | 372 | 376 | 1.01 | 0.98 to 1.05 | 95.6% | 95.4% | 25.4% | 25.0% |
| Carryover, Region/time switchback | 116 | 111 | 0.96 | 0.87 to 1.04 | 44.8% | 43.8% | 54.6% | 55.8% |
Source: declared sensitivity run, persistent shocks compared with the main run.
| Situation and design | Effect | Gap | SD of estimate | Coverage | Detected or false win |
|---|---|---|---|---|---|
| No interference, effect, Driver A/B | 572.3 | −1.0 | 322.3 | 95.2% | 43.6% |
| No interference, effect, Driver A/B with CUPED | 572.3 | −2.2 | 160.9 | 94.0% | 94.0% |
| No interference, effect, Region cluster | 572.3 | −7.1 | 373.1 | 95.8% | 28.2% |
| No interference, effect, Region/time switchback | 572.3 | +7.2 | 119.7 | 96.6% | 99.4% |
| Spillovers, effect, Driver A/B | 655.8 | +235.2 | 358.6 | 90.8% | 68.0% |
| Spillovers, effect, Driver A/B with CUPED | 655.8 | +234.0 | 191.7 | 76.6% | 99.4% |
| Spillovers, effect, Region cluster | 655.8 | +126.8 | 371.7 | 94.8% | 50.4% |
| Spillovers, effect, Region/time switchback | 655.8 | +128.4 | 139.8 | 85.6% | 99.6% |
| Carryover, effect, Driver A/B | 522.7 | −0.6 | 321.6 | 95.4% | 37.4% |
| Carryover, effect, Driver A/B with CUPED | 522.7 | −1.8 | 160.2 | 94.2% | 91.2% |
| Carryover, effect, Region cluster | 522.7 | −6.7 | 371.6 | 95.6% | 25.4% |
| Carryover, effect, Region/time switchback | 522.7 | −259.8 | 116.0 | 44.8% | 54.6% |
| No interference or carryover, no effect*, Driver A/B | 0.0 | −0.7 | 316.7 | 95.2% | 4.8% |
| No interference or carryover, no effect*, Driver A/B with CUPED | 0.0 | −1.8 | 158.9 | 94.4% | 5.6% |
| No interference or carryover, no effect*, Region cluster | 0.0 | −8.6 | 360.5 | 95.4% | 4.6% |
| No interference or carryover, no effect*, Region/time switchback | 0.0 | +7.5 | 112.3 | 95.8% | 4.2% |
| Spillovers, no effect, Driver A/B | 0.0 | +5.5 | 361.0 | 95.0% | 5.0% |
| Spillovers, no effect, Driver A/B with CUPED | 0.0 | +4.3 | 200.2 | 94.6% | 5.4% |
| Spillovers, no effect, Region cluster | 0.0 | −11.7 | 371.5 | 95.8% | 4.2% |
| Spillovers, no effect, Region/time switchback | 0.0 | +2.2 | 128.9 | 95.2% | 4.8% |
* With zero effect there is nothing to carry over, so the carryover no-effect run is the no-interference no-effect run, city for city. The study has five distinct situations.
| Situation and design | Ship, once | Ship, every check | Wrong ship, once | Wrong ship, every check | Wrong stop, once | Wrong stop, every check | Time used, every check |
|---|---|---|---|---|---|---|---|
| No interference, effect, Driver A/B | 17.6% | 25.4% | 0.0% | 0.0% | 0.4% | 0.6% | 84.9% |
| No interference, effect, Driver A/B with CUPED | 73.0% | 82.2% | 0.0% | 0.0% | 0.0% | 0.0% | 53.9% |
| No interference, effect, Region cluster | 15.8% | 20.6% | 0.0% | 0.0% | 0.4% | 0.6% | 87.6% |
| No interference, effect, Region/time switchback | 92.6% | 95.2% | 0.0% | 0.0% | 0.0% | 0.0% | 43.7% |
| Carryover, effect, Driver A/B | 13.0% | 15.4% | 0.0% | 0.0% | 0.6% | 1.8% | 91.0% |
| Carryover, effect, Driver A/B with CUPED | 62.4% | 68.2% | 0.0% | 0.0% | 0.0% | 1.0% | 68.6% |
| Carryover, effect, Region cluster | 12.6% | 15.8% | 0.0% | 0.0% | 0.8% | 1.6% | 90.8% |
| Carryover, effect, Region/time switchback | 13.8% | 23.0% | 0.0% | 0.0% | 1.6% | 4.2% | 88.7% |
| Spillovers, effect, Driver A/B | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 100.0% |
| Spillovers, effect, Driver A/B with CUPED | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 100.0% |
| Spillovers, effect, Region cluster | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 100.0% |
| Spillovers, effect, Region/time switchback | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 100.0% |
| No effect, no spillovers*, Driver A/B | 0.2% | 1.4% | 0.2% | 1.4% | 0.0% | 0.0% | 93.5% |
| No effect, no spillovers*, Driver A/B with CUPED | 0.4% | 2.0% | 0.4% | 2.0% | 0.0% | 0.0% | 87.4% |
| No effect, no spillovers*, Region cluster | 1.0% | 1.6% | 1.0% | 1.6% | 0.0% | 0.0% | 92.4% |
| No effect, no spillovers*, Region/time switchback | 0.8% | 1.8% | 0.8% | 1.8% | 0.0% | 0.0% | 84.6% |
| Spillovers, no effect, Driver A/B | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 100.0% |
| Spillovers, no effect, Driver A/B with CUPED | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 100.0% |
| Spillovers, no effect, Region cluster | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 100.0% |
| Spillovers, no effect, Region/time switchback | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 100.0% |
| Block length, slots discarded, memory | Effect | Gain measured | Coverage | Power | Shipped | Kept testing | Stopped |
|---|---|---|---|---|---|---|---|
| 3-slot, 1 discarded, 0% | 572.3 | 101% | 97% | 99% | 93% | 7% | 0% |
| 3-slot, 1 discarded, 30% | 567.9 | 93% | 95% | 98% | 82% | 18% | 0% |
| 3-slot, 1 discarded, 50% | 555.7 | 77% | 82% | 93% | 55% | 45% | 0% |
| 3-slot, 1 discarded, 60% | 543.9 | 64% | 68% | 78% | 34% | 66% | 0% |
| 3-slot, 1 discarded, 70% | 522.7 | 50% | 45% | 55% | 14% | 85% | 2% |
| 3-slot, 1 discarded, 80% | 481.0 | 35% | 28% | 29% | 3% | 86% | 11% |
| 3-slot, 1 discarded, 85% | 442.1 | 28% | 25% | 18% | 1% | 80% | 19% |
| 3-slot, 1 discarded, 90% | 374.7 | 21% | 31% | 10% | 0% | 69% | 30% |
| 3-slot, 2 discarded, 0% | 286.7 | 101% | 96% | 94% | 70% | 30% | 0% |
| 3-slot, 2 discarded, 30% | 285.7 | 97% | 96% | 92% | 65% | 35% | 0% |
| 3-slot, 2 discarded, 50% | 281.1 | 85% | 93% | 81% | 45% | 55% | 0% |
| 3-slot, 2 discarded, 60% | 275.9 | 74% | 88% | 66% | 29% | 70% | 1% |
| 3-slot, 2 discarded, 70% | 265.9 | 60% | 78% | 45% | 15% | 84% | 1% |
| 3-slot, 2 discarded, 80% | 245.6 | 44% | 63% | 21% | 5% | 91% | 4% |
| 3-slot, 2 discarded, 85% | 226.3 | 35% | 61% | 14% | 3% | 88% | 9% |
| 3-slot, 2 discarded, 90% | 192.4 | 27% | 63% | 8% | 1% | 83% | 16% |
| 6-slot, 1 discarded, 0% | 714.9 | 99% | 97% | 100% | 95% | 5% | 0% |
| 6-slot, 1 discarded, 30% | 710.1 | 96% | 97% | 100% | 93% | 7% | 0% |
| 6-slot, 1 discarded, 50% | 695.8 | 87% | 92% | 100% | 82% | 18% | 0% |
| 6-slot, 1 discarded, 60% | 681.2 | 78% | 83% | 96% | 66% | 34% | 0% |
| 6-slot, 1 discarded, 70% | 654.5 | 65% | 63% | 88% | 37% | 63% | 1% |
| 6-slot, 1 discarded, 80% | 601.9 | 47% | 39% | 54% | 10% | 87% | 3% |
| 6-slot, 1 discarded, 85% | 552.8 | 37% | 30% | 32% | 2% | 85% | 13% |
| 6-slot, 1 discarded, 90% | 468.3 | 26% | 30% | 15% | 1% | 70% | 30% |
| 6-slot, 2 discarded, 0% | 571.7 | 99% | 97% | 100% | 90% | 10% | 0% |
| 6-slot, 2 discarded, 30% | 570.2 | 98% | 97% | 100% | 89% | 11% | 0% |
| 6-slot, 2 discarded, 50% | 562.1 | 92% | 95% | 99% | 81% | 19% | 0% |
| 6-slot, 2 discarded, 60% | 552.1 | 85% | 90% | 96% | 70% | 30% | 0% |
| 6-slot, 2 discarded, 70% | 532.3 | 73% | 77% | 88% | 47% | 53% | 0% |
| 6-slot, 2 discarded, 80% | 491.2 | 55% | 55% | 59% | 16% | 83% | 1% |
| 6-slot, 2 discarded, 85% | 452.2 | 44% | 47% | 37% | 6% | 86% | 8% |
| 6-slot, 2 discarded, 90% | 384.4 | 32% | 43% | 18% | 1% | 78% | 21% |
| 6-slot, 3 discarded, 0% | 428.6 | 99% | 95% | 98% | 80% | 20% | 0% |
| 6-slot, 3 discarded, 30% | 428.1 | 98% | 95% | 98% | 79% | 21% | 0% |
| 6-slot, 3 discarded, 50% | 423.9 | 94% | 95% | 96% | 72% | 28% | 0% |
| 6-slot, 3 discarded, 60% | 417.8 | 88% | 95% | 93% | 62% | 38% | 0% |
| 6-slot, 3 discarded, 70% | 404.4 | 78% | 86% | 82% | 46% | 54% | 0% |
| 6-slot, 3 discarded, 80% | 374.8 | 61% | 73% | 56% | 18% | 81% | 1% |
| 6-slot, 3 discarded, 85% | 346.1 | 49% | 61% | 38% | 8% | 88% | 4% |
| 6-slot, 3 discarded, 90% | 295.4 | 37% | 56% | 19% | 2% | 83% | 14% |
| 12-slot, 1 discarded, 0% | 786.3 | 99% | 95% | 93% | 74% | 26% | 0% |
| 12-slot, 1 discarded, 30% | 781.6 | 98% | 94% | 92% | 73% | 27% | 0% |
| 12-slot, 1 discarded, 50% | 766.9 | 95% | 94% | 90% | 69% | 31% | 0% |
| 12-slot, 1 discarded, 60% | 751.4 | 92% | 93% | 87% | 63% | 37% | 0% |
| 12-slot, 1 discarded, 70% | 722.5 | 85% | 92% | 82% | 50% | 50% | 0% |
| 12-slot, 1 discarded, 80% | 664.3 | 73% | 85% | 70% | 30% | 70% | 0% |
| 12-slot, 1 discarded, 85% | 609.6 | 63% | 79% | 52% | 14% | 84% | 3% |
| 12-slot, 1 discarded, 90% | 516.0 | 50% | 71% | 31% | 4% | 88% | 9% |
What went wrong or was missed
- The interference check cannot tell helpful spillover from harmful. It counts rides served by another driver, so it failed every spillover run, where the gain was real. It cannot see carryover at all: no ride moves between drivers, so the rule trusted the half-size switchback estimate.
- Only one kind of spillover. Every spillover here comes from spare capacity, and the full rollout still adds rides. A market where the incentive mostly moves rides from one driver to another, so the city gains little (cannibalization), was not tested.
- Early stops overstate. Switchback runs that stopped early averaged 1.14 times the true effect; plain driver A/B's rare early stops, 1.76 times. After an early stop I would report a bias-adjusted estimate.
- A small city. 16 regions and 64 drivers, so driver A/B detected the gain in only 44% of runs. A bigger city raises every design's power but leaves the carryover and spillover gaps, which come from measuring a different quantity.
- Left out. Waiting times, prices and drivers joining or leaving, so the model cannot test retention questions such as how many bad sessions it takes before a driver leaves.
What I would use when
| Approach | Use it for | Watch out for |
|---|---|---|
| Driver A/B, with CUPED | Changes that do not move riders between drivers: app features, training, how pay is shown. Add CUPED whenever there is pre-test data; here it cut variance by about 75%. | Anything that lets one driver take another's riders: with spillovers it overstated the gain by 36%. |
| Region clusters | Changes that stay inside a region and cannot switch on and off, such as a new onboarding flow for one zone. | Few clusters, little power: 28% here with 16 regions. Riders who cross borders. |
| Region switchback | Market-wide levers that can flip on and off: incentives, pricing, dispatch rules. The most precise design here. | Lingering effects: at 70% memory, 3-slot blocks measured half the gain. Size blocks and washout from a measured memory. |
| Comparison markets | A change that reaches a whole market at once and cannot be randomized: compare with similar markets that did not get it. | Few markets and seasonality. Weaker evidence than a randomized test. |
| Planned checks with adjusted thresholds | Any test leadership will want to call early. | Fix the checks before launch, and report a bias-adjusted estimate after an early stop. |
| An experimentation platform | Assignment, logging and standard readouts for driver-level tests at volume. | A platform that sets sample size and intervals assumes the units are independent. Check that it can switch by region and time and cluster intervals by region. |
For a driver incentive in a market where drivers share riders, I would run a region switchback, size its blocks from a measured memory before launch, plan four checks with adjusted thresholds, and read a failed interference check as a design that cannot answer the question, never as a verdict on the change. In this city, at the 70% memory I set, that means 12-slot blocks instead of 3. Where the incentive system can only target drivers, I would use driver A/B with CUPED and expect it to overstate when riders are shared.
For users who share small groups, such as families or teams, a separate part compares user, group and graph-cluster tests: testing a change when users share groups. A follow-up page on the same groups compares forecasts of monthly active users: forecasting active users in shared groups. A third page runs a retention test on those simulated apps, randomizing users against groups: a retention test when group-mates pull each other along.
How I would roll this out with a team
- First two weeks (about three days of a data scientist's time, my estimate). Agree the ship bar with product and finance before any test, in US$ a week after the incentive's cost and before anyone sees a p-value. Estimate how long a driver's response lasts after an incentive ends, from past on and off periods. That sets block length and washout.
- First month (about two engineer-weeks, my estimate). Engineering adds region-and-time switching to the incentive system and logs which driver served each ride, and where. The data scientist builds the readout: estimate, interval, the two interference checks, and four planned checks with adjusted thresholds.
- Second month (one test, end to end). Operations tells drivers the incentive will switch on and off by area and time, and flags local events that would distort a block. Run the first switchback with memory-sized blocks, and a driver A/B with CUPED beside it where the change allows, as a check on direction.
- Every week. Thirty minutes with product, data, operations and finance on each live test, its checks and the decision due.
- Bad news. When a test leadership expects to win comes back as redesign or stop, the data scientist tells the executive sponsor before the review, in one sentence, with the US$ at stake and the date of the rerun.
- Feasibility. The incentive system must target by region and hour; if it can only target drivers, budget more engineering time. Drivers will see pay change with the clock, so operations owns that message.
- In all, on my estimates: about two engineer-weeks and three to four data-scientist-weeks over two months, on the existing incentive and dispatch systems, with no new licence. If the team has no one for it, the first hire is a data scientist who owns experiment design and the readout.
What it is worth
Three results carry money. Adjusted checks end a switchback test about 6 days sooner on a 2-week test. Checking against the usual bar every time adds about 5 false wins per 100 tests of changes that do nothing. A short-block switchback keeps testing a working change in 85% of runs, each time at least one extra round. The money depends on two inputs this study cannot measure, so the table shows three levels of each. A false win is assumed to run 8 weeks before anyone notices.
| Level | Assumed net gain a week from a change that works | Planned checks: worth per winning test | One extra round avoided | Assumed weekly cost of an incentive that does nothing | No peeking: spend saved per no-effect test |
|---|---|---|---|---|---|
| Low | US$10,000 | US$7,900 | US$20,000 | US$10,000 | US$4,300 |
| Middle | US$20,000 | US$16,000 | US$40,000 | US$25,000 | US$11,000 |
| High | US$40,000 | US$32,000 | US$80,000 | US$50,000 | US$22,000 |
Even at the low level, one avoided round (US$20,000) is worth about 11 times the 3 analyst-days a memory estimate takes (about US$1,800 at US$75 an hour, my estimate), and adjusted checks cost only the planning. So I would put adjusted checks on every test from the first month and estimate the memory before any switchback.
Where AI fits
The dangerous errors in an experiment readout are plausible numbers with no error attached. The short-block switchback produced exactly that: half the real gain, a tidy interval, and nothing in the ride log to flag it. An AI model writing the readout would repeat it with confidence.
My method with AI is to ask it for answers I already know and compare them like a control group, then build what it gets wrong into hard checks and rules it must follow. This study is a ready-made answer key: 500 cities per situation, each with a known true effect. The test I would run gives an AI readout agent the same runs, scores its ship, stop or keep-testing calls against the truth beside the fixed rule, and turns its misses into rules such as "no switchback readout without a memory estimate" and "a failed interference check means redesign". That test has not been run yet.
Two related studies: agent-ready data marts measures how much documentation a model needs to answer correctly from tables, and AI adoption measurement sizes a randomized trial for rolling out an AI tool, the same design question in a different market.
Method and checks
The simulator's random shocks do not carry over from one slot to the next, so the switchback's precision might be built in. A declared rerun with persistent shocks tested that, and the switchback's spread came out 0.95 times its main-run value. So the precision comes from comparing each region with itself.
What the simulator assumes
A 4 by 4 grid of regions with four drivers each (16 regions, 64 drivers). Each slot, riders request rides from their home driver; a driver completes up to its capacity. The incentive adds up to one ride of capacity per driver per slot. A test runs 8 blocks of 3 slots; the first slot of every block is discarded for every design, leaving 16 scored slots. The outcome is completed rides across the whole city in those slots.
Three mechanisms, each with zero and positive effect: no interference; spillovers, where unserved requests can go to spare capacity within 1.25 grid units, across region borders; and carryover, where exposure follows state = 0.3 × assignment + 0.7 × previous state. The model has no trip duration, waiting time, price response, retention or driver entry. Full assumptions: DESIGN.md.
Designs, estimators and intervals
Driver A/B treats half the drivers; region clusters treat half the regions; the switchback randomizes on-off or off-on independently for each region and pair of adjacent blocks. A/B and clusters use a city-scaled difference in means with Welch intervals; the switchback uses twice the signed block totals with intervals clustered by region (15 degrees of freedom). CUPED fits its coefficient on two pre-test windows and adjusts with a third, so assignment and outcomes never enter the fit.
The full-rollout effect and the gap
Each run also simulates the same city with every driver treated and with none treated, sharing all random draws. Their difference is the run's full-rollout effect. The gap is the mean estimate minus that effect. Under spillovers or carryover it mixes estimator error with a different target, so it is not bias in the design's own randomized comparison.
Why the switchback is so precise here
Comparing each region with itself across adjacent blocks removes persistent driver quality and catchment popularity, the largest source of variation between drivers. A/B has to average over those differences, which is why CUPED, using pre-test rides, cuts A/B variance by about 75%. The declared rerun with persistent shocks tested the other candidate explanation, independent slot shocks, and found the switchback's spread 0.95 times its value in the main run; no design moved by more than about 6%. Real driver data would give CUPED less: drivers here have stable habits by construction.
The ship, stop or keep-testing rule
The rule is the one from the experiment readout study. Each design's final estimate and standard error become net gain per 1,000 driver slots (rides × 1,000 ÷ (64 drivers × 16 slots)), less the incentive's assumed cost of 0.10 ride per treated driver slot (100 units) when the situation has an effect, 0 when it has none. Prior: normal with mean 0 and standard deviation 500 units (250 and 1,000 also reported). Ship when the chance that the net gain exceeds 100 is at least 95% and the expected loss from shipping is at most 25; stop in the mirror case; otherwise keep testing.
Two interference checks run first, from the ride log of the design's own run: one fails when more than 1% of completed rides were served by a driver other than the rider's own, the other when more than 5% were matched across regions. Either failure means keep testing. Both apply to every design as written, although a ride borrowed inside a region does not break a region-level comparison; for clusters and switchbacks the first check is stricter than it needs to be. A ship is wrong when the run's true net gain is at or below 100; a stop is wrong when it is above 100.
Planned checks and thresholds
Each run is read after 2, 4, 6 and 8 of its 8 blocks (6, 12, 18 and 24 slots), with the same estimators applied to the slots so far. An outcome in a slot depends only on assignments up to that slot, so these are the same runs read earlier, and the last check equals the main run exactly. CUPED's coefficient is scaled by the share of scored slots seen, because its covariate is a full-window pre-test total.
Thresholds: Lan-DeMets spending of the O'Brien-Fleming type, 2.5% per side, stopping for an effect only; z thresholds 4.33, 2.96, 2.36, 2.01. Early-stop overstatement is the estimate at stopping, scaled to the full window, divided by the run's full-window effect.
How the runs were declared
- Main run: 500 cities per situation, 6 declared situations (5 distinct), 4 analyses, 12,000 result rows. Every design and situation sees the same cities.
- Sensitivity run, declared before it ran: 500 cities per cell, 12,000 rows with persistent shocks and 10,000 block-sweep rows. The persistence of 0.8 was chosen from the block length before running: the shock correlation three slots apart is 0.8 cubed, about 0.51.
- Decision and sequential run, declared before it ran: the same cities as the main run, read at every check.
- Memory sweep, declared before it ran: the same 500 cities, 24,000 switchback rows over eight memories and six block settings, with a lingering effect only (with no effect there is nothing to carry over).
- Monte Carlo intervals: Wilson for rates, Student t for mean gaps, 1,000 bootstrap resamples for variances and CUPED ratios.
Checks declared before each run
Checks that could fail on a wrong model or estimator:
- Main run: false wins at most 10.9% in every no-effect cell (highest observed 5.6%); no-interference mean gap within 4 Monte Carlo standard errors plus 0.1 ride. Both passed.
- Reference test before collection: 2,000 Gaussian experiments must give a false-positive rate between 2.5% and 7.5% and coverage between 92.5% and 97.5%. Passed.
- Sensitivity run: the rerun with persistent shocks, and no-effect cells above the main tolerance: 0. Decision and sequential run: adjusted no-effect cells above the main tolerance: 0.
Checks that confirm the code ran as declared but cannot fail on a wrong model:
- No-effect truth exactly zero, because both worlds share every draw; thresholds match the published O'Brien-Fleming values.
- No outcome was rerun with other random draws; a failed check would have been reported and kept.
Reproduce
With Python 3.12 and uv: uv sync --frozen, then uv run python -m sim.run --seed 7. The run checks that the declared source files are unchanged, simulates and checks the main study, runs the declared sensitivity, decision and sequential runs, and writes the results, charts, notebook and this page. uv run python -m sim.carryover_sweep runs the declared memory sweep. uv run python -m pytest tests -q runs the analytic and statistical reference tests. No API, credential or downloaded dataset is used.
Where each chart's numbers come from
- Carryover miss and spread by block length: sensitivity.json; every run in sensitivity-blocks.csv.
- Share of the planned time used: sequential.json; every run in sequential-runs.csv and every check in looks.csv.gz.
- False wins: sequential.json.
- Gap from the full-rollout effect: results.json; every run in scenarios.csv.
- Interval coverage: results.json.
- Share of runs the rule ships: decision.json; every run in decision-runs.csv.
- Power and false wins: results.json.
- CUPED variance reduction: results.json.
- Spread with persistent shocks: sensitivity.json; every run in sensitivity-ar1.csv.
Files
- analysis.ipynb: the executed notebook (tables and the four original charts)
- results.json and scenarios.csv: main run summaries and every run
- sensitivity.json, sensitivity-ar1.csv and sensitivity-blocks.csv: the declared sensitivity run
- decision.json and decision-runs.csv: the ship rule applied to every run
- sequential.json, sequential-runs.csv and looks.csv.gz (gzip): the four-check run
- protocol.json, sensitivity-protocol.json and decision-protocol.json: what was declared before each run
- carryover-sweep.json, carryover-sweep.csv and carryover-sweep-protocol.json: the declared memory sweep
- DESIGN.md (assumptions), DECISIONS.md (design choices), README.md, NOTICE.txt
Use this at your company
To run the same comparison on your own experiments, paste this prompt into an AI assistant that can read your data.
This method comes from Diogo Travassos's study "Marketplace experiment designs" (https://diogotravassos.dev/marketplace-experiments/). If you can open links, read it first: it works the method through end to end, with its checks. The steps below stand on their own if you can't. Help me choose a test design for a change in a market where workers share customers, such as drivers sharing riders. Compare three designs: treat half the workers, treat whole regions, or switch regions on and off over time. Data you need from me: completed jobs per worker per time slot, each worker's region, and a few weeks of history before the test. Method: 1. Build a small simulation of my market from that history, with a true effect I set, so every design can be scored against the truth. 2. Add the two problems that mislead tests here: spillover (treated workers serve customers others would have served) and carryover (the effect lingers after a region switches off). 3. Run each design a few hundred times in each situation. Record how far its estimate lands from the true effect of rolling the change out to everyone, how often its interval covers that effect, and how often a fixed ship, stop or keep-testing rule decides right. Checks before trusting the answer: - With no effect, each design should claim a gain about 1 time in 20, no more. - With no spillover or carryover, intervals should cover the true effect about 95% of the time. - Rerun with shocks that persist over time, to see whether any design's precision is built into the simulation. Report back: which design to use and why, how long each on or off block must be for the effect to wear off, and the limits, meaning what the simulation leaves out and which of my settings drive the result. In your report, say which study you followed and link it: https://diogotravassos.dev/marketplace-experiments/