Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Synthetic data

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.

Key figures
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 lingeringSwitchback 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 gainFalse 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.

Each row is 500 simulated cities. A design that works measures about 100% of the gain and covers it in about 95% of runs.
DesignShare of the real gain measuredInterval covered the real gainDetected the gainShip rule shipped
No interference
Driver A/B100%95%44%18%
Driver A/B with CUPED100%94%94%73%
Region cluster99%96%28%16%
Region/time switchback101%97%99%93%
Lingering effect (carryover)
Driver A/B100%95%37%13%
Driver A/B with CUPED100%94%91%62%
Region cluster99%96%25%13%
Region/time switchback50%45%55%14%
Spillovers between drivers
Driver A/B136%91%68%0% (39% without the checks)
Driver A/B with CUPED136%77%99%0% (96% without the checks)
Region cluster119%95%50%0% (30% without the checks)
Region/time switchback120%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.

Longer blocks shrink the carryover miss from 50% to 15% of the effect and lift coverage to 92%, but the spread rises from 116 to 200 rides.

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.

Carryover miss and spread by block lengthShare of the effect missed: 59%, 50%, 45%, 35%, 15% for 2, 3, 4, 6 and 12-slot blocks. Spread: 93, 116, 122, 129, 200 rides. Persistent shocks give nearly the same values.Independent shocksPersistent shocksEstimate falls short of the effect by0%20%40%60%Spread of the estimate (SD, rides)08016024022-slot blocks, lingering effect: the estimate falls short of the effect by 59.1% with independent shocks and 57.5% with persistent shocks; spread 92.8 and 105.0 rides59%9333-slot blocks, lingering effect: the estimate falls short of the effect by 49.7% with independent shocks and 50.2% with persistent shocks; spread 116.0 and 110.9 rides50%11644-slot blocks, lingering effect: the estimate falls short of the effect by 45.5% with independent shocks and 42.9% with persistent shocks; spread 121.7 and 127.1 rides45%12266-slot blocks, lingering effect: the estimate falls short of the effect by 34.6% with independent shocks and 33.3% with persistent shocks; spread 129.4 and 131.7 rides35%1291212-slot blocks, lingering effect: the estimate falls short of the effect by 14.8% with independent shocks and 14.7% with persistent shocks; spread 200.1 and 194.2 rides15%200Slots per block (24-slot experiment)
Show the data
Switchback block-length sweep with a lingering effect
Shocks and block lengthBlocksScored slotsEffectGapShare missedSDCoveragePowerFalse wins
Independent shocks, 2-slot blocks1212392.2−232.059.1%92.843.0%32.6%4.2%
Independent shocks, 3-slot blocks816522.7−259.849.7%116.044.8%54.6%4.2%
Independent shocks, 4-slot blocks618588.3−267.645.5%121.749.2%66.8%5.0%
Independent shocks, 6-slot blocks420654.5−226.434.6%129.463.0%88.0%4.0%
Independent shocks, 12-slot blocks222722.5−107.014.8%200.191.8%81.8%5.8%
Persistent shocks, 2-slot blocks1212392.2−225.457.5%105.042.6%36.4%6.4%
Persistent shocks, 3-slot blocks816522.1−262.050.2%110.943.8%55.8%3.6%
Persistent shocks, 4-slot blocks618588.2−252.542.9%127.157.0%68.2%5.6%
Persistent shocks, 6-slot blocks420654.6−217.733.3%131.767.2%86.6%4.4%
Persistent shocks, 12-slot blocks222722.6−106.414.7%194.292.8%82.2%4.2%

sensitivity.json · sensitivity-blocks.csv (every run)

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.

Switchback with a lingering effect, by memory: 500 cities per cell, ship rule unchanged
Memory kept each slotGain measured, 3-slot blocksCoverage, 3-slot blocksShipped, 3-slot, 1 slot discardedShipped, 3-slot, 2 discardedShipped, 6-slot, 3 discardedShipped, 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.

Adjusted checks let a switchback team stop after 61% of the planned time on average; it still detected the gain in 99% of runs (99% running to the end), near the ceiling, where a loss could not show.

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.

Share of the planned test used before stoppingAdjusted thresholds: switchback 61%, A/B with CUPED 64%. The usual bar stops sooner but raises false wins.Adjusted thresholdsDriver A/B, Adjusted thresholds: 91% of the planned test used before stoppingDriver A/B91%A/B + CUPED, Adjusted thresholds: 64% of the planned test used before stoppingA/B + CUPED64%Region cluster, Adjusted thresholds: 95% of the planned test used before stoppingRegion cluster95%Switchback, Adjusted thresholds: 61% of the planned test used before stoppingSwitchback61%Usual 5% bar every timeDriver A/B, Usual 5% bar every time: 66% of the planned test used before stoppingDriver A/B66%A/B + CUPED, Usual 5% bar every time: 36% of the planned test used before stoppingA/B + CUPED36%Region cluster, Usual 5% bar every time: 76% of the planned test used before stoppingRegion cluster76%Switchback, Usual 5% bar every time: 33% of the planned test used before stoppingSwitchback33%0%25%50%75%100%Share of planned time used
Show the data
Significance tests at four planned checks, 500 runs per row
Situation and designOne test at the end: detectedAdjusted: detectedAdjusted: time usedUsual bar: detectedUsual bar: time usedAdjusted: early estimate ÷ true effect
No interference, effect, Driver A/B43.6%41.6%91.2%53.8%65.7%1.76×
No interference, effect, Driver A/B with CUPED94.0%94.2%63.9%96.0%36.2%1.20×
No interference, effect, Region cluster28.2%27.0%95.1%37.6%75.5%1.88×
No interference, effect, Region/time switchback99.4%99.4%60.6%99.6%32.9%1.14×
Carryover, effect, Driver A/B37.4%34.2%93.6%42.8%76.8%1.88×
Carryover, effect, Driver A/B with CUPED91.2%90.8%71.4%92.6%47.3%1.18×
Carryover, effect, Region cluster25.4%23.8%96.5%30.0%83.1%1.99×
Carryover, effect, Region/time switchback54.6%52.4%91.1%65.0%71.1%0.81×
Spillovers, effect, Driver A/B68.0%66.6%80.6%74.4%50.3%1.91×
Spillovers, effect, Driver A/B with CUPED99.4%99.4%53.2%99.4%28.7%1.55×
Spillovers, effect, Region cluster50.4%47.4%89.0%61.4%59.6%1.89×
Spillovers, effect, Region/time switchback99.6%99.8%53.4%100.0%28.4%1.37×
No effect, no spillovers*, Driver A/B4.8%3.8%99.5%8.2%94.8%none
No effect, no spillovers*, Driver A/B with CUPED5.6%5.6%99.6%12.4%93.8%none
No effect, no spillovers*, Region cluster4.6%4.4%99.6%7.4%95.8%none
No effect, no spillovers*, Region/time switchback4.2%4.0%99.6%9.4%96.1%none
Spillovers, no effect, Driver A/B5.0%4.2%99.2%8.0%95.6%none
Spillovers, no effect, Driver A/B with CUPED5.4%4.8%99.5%10.6%94.8%none
Spillovers, no effect, Region cluster4.2%3.8%99.8%8.4%95.3%none
Spillovers, no effect, Region/time switchback4.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.

Checking four times at the usual 5% bar called a no-effect change a win in up to 12% of runs; adjusted thresholds kept it at 4% to 6%.

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%.

False wins with and without adjusted thresholdsUsual bar every time: 8%, 12%, 7%, 9% by design; adjusted: 4%, 6%, 4%, 4%.Adjusted thresholdsDriver A/B, Adjusted thresholds: 4% of no-effect runs called a win, interval 2.4% to 5.9%Driver A/B4%A/B + CUPED, Adjusted thresholds: 6% of no-effect runs called a win, interval 3.9% to 8.0%A/B + CUPED6%Region cluster, Adjusted thresholds: 4% of no-effect runs called a win, interval 2.9% to 6.6%Region cluster4%Switchback, Adjusted thresholds: 4% of no-effect runs called a win, interval 2.6% to 6.1%Switchback4%Usual 5% bar every timeDriver A/B, Usual 5% bar every time: 8% of no-effect runs called a win, interval 6.1% to 10.9%Driver A/B8%A/B + CUPED, Usual 5% bar every time: 12% of no-effect runs called a win, interval 9.8% to 15.6%A/B + CUPED12%Region cluster, Usual 5% bar every time: 7% of no-effect runs called a win, interval 5.4% to 10.0%Region cluster7%Switchback, Usual 5% bar every time: 9% of no-effect runs called a win, interval 7.1% to 12.3%Switchback9%0%5%10%15%20%No-effect runs called a win
Show the data
No-effect runs called a win, 500 runs per row
Situation and designOne test at the endAdjusted, four checksMonte Carlo intervalUsual bar, four checksMonte Carlo interval
No effect, no spillovers*, Driver A/B4.8%3.8%2.4% to 5.9%8.2%6.1% to 10.9%
No effect, no spillovers*, Driver A/B with CUPED5.6%5.6%3.9% to 8.0%12.4%9.8% to 15.6%
No effect, no spillovers*, Region cluster4.6%4.4%2.9% to 6.6%7.4%5.4% to 10.0%
No effect, no spillovers*, Region/time switchback4.2%4.0%2.6% to 6.1%9.4%7.1% to 12.3%
Spillovers, no effect, Driver A/B5.0%4.2%2.8% to 6.3%8.0%5.9% to 10.7%
Spillovers, no effect, Driver A/B with CUPED5.4%4.8%3.2% to 7.0%10.6%8.2% to 13.6%
Spillovers, no effect, Region cluster4.2%3.8%2.4% to 5.9%8.4%6.3% to 11.2%
Spillovers, no effect, Region/time switchback4.8%5.2%3.6% to 7.5%10.6%8.2% to 13.6%

sequential.json

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)
With carryover the switchback falls 260 rides short of a 523-ride full-rollout effect; with spillovers driver A/B lands 235 rides above it.

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.

Gap from the full-rollout effect by situation and designMean estimate minus full-rollout effect. Carryover switchback −260 rides; spillover driver A/B +235; every no-interference design within 8 rides of zero.No interferenceDriver A/B, No interference: the mean estimate minus the full-rollout effect is −1 rides, interval −28.9 to 26.8Driver A/B−1A/B + CUPED, No interference: the mean estimate minus the full-rollout effect is −2 rides, interval −16.1 to 11.7A/B + CUPED−2Region cluster, No interference: the mean estimate minus the full-rollout effect is −7 rides, interval −40.0 to 25.8Region cluster−7Switchback, No interference: the mean estimate minus the full-rollout effect is +7 rides, interval −2.6 to 17.0Switchback+7SpilloversDriver A/B, Spillovers: the mean estimate minus the full-rollout effect is +235 rides, interval 203.8 to 266.5Driver A/B+235A/B + CUPED, Spillovers: the mean estimate minus the full-rollout effect is +234 rides, interval 216.5 to 251.5A/B + CUPED+234Region cluster, Spillovers: the mean estimate minus the full-rollout effect is +127 rides, interval 93.8 to 159.8Region cluster+127Switchback, Spillovers: the mean estimate minus the full-rollout effect is +128 rides, interval 117.2 to 139.5Switchback+128CarryoverDriver A/B, Carryover: the mean estimate minus the full-rollout effect is −1 rides, interval −28.5 to 27.2Driver A/B−1A/B + CUPED, Carryover: the mean estimate minus the full-rollout effect is −2 rides, interval −15.7 to 12.2A/B + CUPED−2Region cluster, Carryover: the mean estimate minus the full-rollout effect is −7 rides, interval −39.5 to 26.0Region cluster−7Switchback, Carryover: the mean estimate minus the full-rollout effect is −260 rides, interval −269.8 to −249.8Switchback−260−300−1500+150+300Gap (completed rides)
Show the data
Gap in completed rides, with 95% Monte Carlo intervals
Situation and designEffectGapMonte Carlo interval
No interference, Driver A/B572.3−1.0−28.9 to 26.8
No interference, Driver A/B with CUPED572.3−2.2−16.1 to 11.7
No interference, Region cluster572.3−7.1−40.0 to 25.8
No interference, Region/time switchback572.3+7.2−2.6 to 17.0
Spillovers, Driver A/B655.8+235.2203.8 to 266.5
Spillovers, Driver A/B with CUPED655.8+234.0216.5 to 251.5
Spillovers, Region cluster655.8+126.893.8 to 159.8
Spillovers, Region/time switchback655.8+128.4117.2 to 139.5
Carryover, Driver A/B522.7−0.6−28.5 to 27.2
Carryover, Driver A/B with CUPED522.7−1.8−15.7 to 12.2
Carryover, Region cluster522.7−6.7−39.5 to 26.0
Carryover, Region/time switchback522.7−259.8−269.8 to −249.8

results.json · scenarios.csv (every run)

Source: main run, 500 simulated cities per situation.

Intervals covered the effect in about 95% of runs, except the switchback under carryover (45%) and three of the four designs under spillovers.

Share of 500 runs whose 95% interval contains that run's full-rollout effect, with Monte Carlo intervals. The dashed line marks 95%.

Interval coverage of the full-rollout effectCarryover switchback 45%; spillover A/B with CUPED 77%; spillover switchback 86%; every no-interference design near 95%.No interferenceDriver A/B, No interference: the interval covered the full-rollout effect in 95% of runs, interval 93.0% to 96.8%Driver A/B95%A/B + CUPED, No interference: the interval covered the full-rollout effect in 94% of runs, interval 91.6% to 95.8%A/B + CUPED94%Region cluster, No interference: the interval covered the full-rollout effect in 96% of runs, interval 93.7% to 97.2%Region cluster96%Switchback, No interference: the interval covered the full-rollout effect in 97% of runs, interval 94.6% to 97.9%Switchback97%SpilloversDriver A/B, Spillovers: the interval covered the full-rollout effect in 91% of runs, interval 87.9% to 93.0%Driver A/B91%A/B + CUPED, Spillovers: the interval covered the full-rollout effect in 77% of runs, interval 72.7% to 80.1%A/B + CUPED77%Region cluster, Spillovers: the interval covered the full-rollout effect in 95% of runs, interval 92.5% to 96.4%Region cluster95%Switchback, Spillovers: the interval covered the full-rollout effect in 86% of runs, interval 82.3% to 88.4%Switchback86%CarryoverDriver A/B, Carryover: the interval covered the full-rollout effect in 95% of runs, interval 93.2% to 96.9%Driver A/B95%A/B + CUPED, Carryover: the interval covered the full-rollout effect in 94% of runs, interval 91.8% to 95.9%A/B + CUPED94%Region cluster, Carryover: the interval covered the full-rollout effect in 96% of runs, interval 93.4% to 97.1%Region cluster96%Switchback, Carryover: the interval covered the full-rollout effect in 45% of runs, interval 40.5% to 49.2%Switchback45%0%25%50%75%100%Runs whose interval covered the effect
Show the data
Coverage of the full-rollout effect
Situation and designCoverageMonte Carlo intervalMean interval width (rides)
No interference, Driver A/B95.2%93.0% to 96.8%1,283
No interference, Driver A/B with CUPED94.0%91.6% to 95.8%610
No interference, Region cluster95.8%93.7% to 97.2%1,593
No interference, Region/time switchback96.6%94.6% to 97.9%495
Spillovers, Driver A/B90.8%87.9% to 93.0%1,456
Spillovers, Driver A/B with CUPED76.6%72.7% to 80.1%753
Spillovers, Region cluster94.8%92.5% to 96.4%1,600
Spillovers, Region/time switchback85.6%82.3% to 88.4%558
Carryover, Driver A/B95.4%93.2% to 96.9%1,283
Carryover, Driver A/B with CUPED94.2%91.8% to 95.9%610
Carryover, Region cluster95.6%93.4% to 97.1%1,588
Carryover, Region/time switchback44.8%40.5% to 49.2%488

results.json

Source: main run, 500 simulated cities per situation.

With a lingering effect the switchback ships its real gain in 14% of runs instead of 93%.

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.

Share of runs the rule ships, by situation and designSwitchback ships in 93% of runs without interference and 14% with a lingering effect; without the checks, the spillover switchback ships in 99%.No interferenceDriver A/B, No interference: the rule ships in 18% of runs, interval 14.5% to 21.2%Driver A/B18%A/B + CUPED, No interference: the rule ships in 73% of runs, interval 68.9% to 76.7%A/B + CUPED73%Region cluster, No interference: the rule ships in 16% of runs, interval 12.9% to 19.3%Region cluster16%Switchback, No interference: the rule ships in 93% of runs, interval 90.0% to 94.6%Switchback93%Lingering effectDriver A/B, Lingering effect: the rule ships in 13% of runs, interval 10.3% to 16.2%Driver A/B13%A/B + CUPED, Lingering effect: the rule ships in 62% of runs, interval 58.1% to 66.5%A/B + CUPED62%Region cluster, Lingering effect: the rule ships in 13% of runs, interval 10.0% to 15.8%Region cluster13%Switchback, Lingering effect: the rule ships in 14% of runs, interval 11.1% to 17.1%Switchback14%Spillovers, without the checksDriver A/B, Spillovers, without the checks: the rule ships in 39% of runs, interval 35.2% to 43.7%Driver A/B39%A/B + CUPED, Spillovers, without the checks: the rule ships in 96% of runs, interval 94.4% to 97.7%A/B + CUPED96%Region cluster, Spillovers, without the checks: the rule ships in 30% of runs, interval 26.3% to 34.4%Region cluster30%Switchback, Spillovers, without the checks: the rule ships in 99% of runs, interval 97.1% to 99.3%Switchback99%0%25%50%75%100%Runs the rule ships
Show the data
What the rule decides, 500 runs per row (net gain in rides per 1,000 driver slots after the incentive's cost)
Situation and designTrue net gainMean estimateShipStopKeep testingWrong shipWrong stopShip without checks
No interference, effect, Driver A/B45945817.6%0.4%82.0%0.0%0.4%17.6%
No interference, effect, Driver A/B with CUPED45945773.0%0.0%27.0%0.0%0.0%73.0%
No interference, effect, Region cluster45945215.8%0.4%83.8%0.0%0.4%15.8%
No interference, effect, Region/time switchback45946692.6%0.0%7.4%0.0%0.0%92.6%
Carryover, effect, Driver A/B41041013.0%0.6%86.4%0.0%0.6%13.0%
Carryover, effect, Driver A/B with CUPED41040962.4%0.0%37.6%0.0%0.0%62.4%
Carryover, effect, Region cluster41040412.6%0.8%86.6%0.0%0.8%12.6%
Carryover, effect, Region/time switchback41015713.8%1.6%84.6%0.0%1.6%13.8%
Spillovers, effect, Driver A/B5407700.0%0.0%100.0%0.0%0.0%39.4%
Spillovers, effect, Driver A/B with CUPED5407690.0%0.0%100.0%0.0%0.0%96.4%
Spillovers, effect, Region cluster5406640.0%0.0%100.0%0.0%0.0%30.2%
Spillovers, effect, Region/time switchback5406660.0%0.0%100.0%0.0%0.0%98.6%
No effect, no spillovers*, Driver A/B0−10.2%7.6%92.2%0.2%0.0%0.2%
No effect, no spillovers*, Driver A/B with CUPED0−20.4%19.2%80.4%0.4%0.0%0.4%
No effect, no spillovers*, Region cluster0−81.0%10.2%88.8%1.0%0.0%1.0%
No effect, no spillovers*, Region/time switchback070.8%23.0%76.2%0.8%0.0%0.8%
Spillovers, no effect, Driver A/B050.0%0.0%100.0%0.0%0.0%0.6%
Spillovers, no effect, Driver A/B with CUPED040.0%0.0%100.0%0.0%0.0%1.4%
Spillovers, no effect, Region cluster0−110.0%0.0%100.0%0.0%0.0%0.8%
Spillovers, no effect, Region/time switchback020.0%0.0%100.0%0.0%0.0%1.0%
Ship rate under three prior widths
Situation and designPrior SD 250Prior SD 500Prior SD 1,000
No interference, effect, Driver A/B3.6%17.6%27.0%
No interference, effect, Driver A/B with CUPED60.6%73.0%75.2%
No interference, effect, Region cluster4.0%15.8%24.0%
No interference, effect, Region/time switchback84.8%92.6%93.8%
Carryover, effect, Driver A/B2.2%13.0%22.0%
Carryover, effect, Driver A/B with CUPED47.2%62.4%66.4%
Carryover, effect, Region cluster3.2%12.6%19.8%
Carryover, effect, Region/time switchback8.6%13.8%15.6%
Spillovers, effect, Driver A/B0.0%0.0%0.0%
Spillovers, effect, Driver A/B with CUPED0.0%0.0%0.0%
Spillovers, effect, Region cluster0.0%0.0%0.0%
Spillovers, effect, Region/time switchback0.0%0.0%0.0%
No effect, no spillovers*, Driver A/B0.0%0.2%1.2%
No effect, no spillovers*, Driver A/B with CUPED0.0%0.4%0.8%
No effect, no spillovers*, Region cluster0.2%1.0%1.6%
No effect, no spillovers*, Region/time switchback0.6%0.8%0.8%
Spillovers, no effect, Driver A/B0.0%0.0%0.0%
Spillovers, no effect, Driver A/B with CUPED0.0%0.0%0.0%
Spillovers, no effect, Region cluster0.0%0.0%0.0%
Spillovers, no effect, Region/time switchback0.0%0.0%0.0%

decision.json · decision-runs.csv (every run)

Source: the ship rule applied to every city of the main run.

Power ranges from 25% to 100%; with no effect every design called a win in 4% to 6% of runs.

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.

Power to detect the real effectPower by design: switchback and A/B with CUPED highest, region cluster lowest.No interferenceDriver A/B, No interference: 44% of runs detected the gain, interval 39.3% to 48.0%Driver A/B44%A/B + CUPED, No interference: 94% of runs detected the gain, interval 91.6% to 95.8%A/B + CUPED94%Region cluster, No interference: 28% of runs detected the gain, interval 24.4% to 32.3%Region cluster28%Switchback, No interference: 99% of runs detected the gain, interval 98.3% to 99.8%Switchback99%SpilloversDriver A/B, Spillovers: 68% of runs detected the gain, interval 63.8% to 71.9%Driver A/B68%A/B + CUPED, Spillovers: 99% of runs detected the gain, interval 98.3% to 99.8%A/B + CUPED99%Region cluster, Spillovers: 50% of runs detected the gain, interval 46.0% to 54.8%Region cluster50%Switchback, Spillovers: 100% of runs detected the gain, interval 98.6% to 99.9%Switchback100%CarryoverDriver A/B, Carryover: 37% of runs detected the gain, interval 33.3% to 41.7%Driver A/B37%A/B + CUPED, Carryover: 91% of runs detected the gain, interval 88.4% to 93.4%A/B + CUPED91%Region cluster, Carryover: 25% of runs detected the gain, interval 21.8% to 29.4%Region cluster25%Switchback, Carryover: 55% of runs detected the gain, interval 50.2% to 58.9%Switchback55%0%25%50%75%100%Runs detecting the gain
Show the data
Power, real-effect situations
Situation and designDetectedMonte Carlo interval
No interference, Driver A/B43.6%39.3% to 48.0%
No interference, Driver A/B with CUPED94.0%91.6% to 95.8%
No interference, Region cluster28.2%24.4% to 32.3%
No interference, Region/time switchback99.4%98.3% to 99.8%
Spillovers, Driver A/B68.0%63.8% to 71.9%
Spillovers, Driver A/B with CUPED99.4%98.3% to 99.8%
Spillovers, Region cluster50.4%46.0% to 54.8%
Spillovers, Region/time switchback99.6%98.6% to 99.9%
Carryover, Driver A/B37.4%33.3% to 41.7%
Carryover, Driver A/B with CUPED91.2%88.4% to 93.4%
Carryover, Region cluster25.4%21.8% to 29.4%
Carryover, Region/time switchback54.6%50.2% to 58.9%
False wins, no-effect situations
Situation and designCalled a winMonte Carlo interval
No interference or carryover, Driver A/B4.8%3.2% to 7.0%
No interference or carryover, Driver A/B with CUPED5.6%3.9% to 8.0%
No interference or carryover, Region cluster4.6%3.1% to 6.8%
No interference or carryover, Region/time switchback4.2%2.8% to 6.3%
Spillovers, Driver A/B5.0%3.4% to 7.3%
Spillovers, Driver A/B with CUPED5.4%3.7% to 7.7%
Spillovers, Region cluster4.2%2.8% to 6.3%
Spillovers, Region/time switchback4.8%3.2% to 7.0%

results.json

Source: main run, 500 simulated cities per situation.

CUPED cut driver A/B variance by about 75% but left the spillover gap at +234 rides.

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.

CUPED variance reduction by situationBetween 69% and 75% lower variance in every situation.Real effectNo interference, Real effect: CUPED cut the variance by 75%, interval 71.4% to 78.3%No interference75%Spillovers, Real effect: CUPED cut the variance by 71%, interval 67.4% to 74.8%Spillovers71%Carryover, Real effect: CUPED cut the variance by 75%, interval 71.8% to 78.3%Carryover75%No effectNo spillovers, No effect: CUPED cut the variance by 75%, interval 70.8% to 78.1%No spillovers75%Spillovers, No effect: CUPED cut the variance by 69%, interval 65.3% to 73.1%Spillovers69%0%25%50%75%100%Variance reduction
Show the data
CUPED variance reduction
SituationReductionMonte Carlo interval
Real effect, no interference75.1%71.4% to 78.3%
Real effect, spillovers71.4%67.4% to 74.8%
Real effect, carryover75.2%71.8% to 78.3%
No effect, no spillovers74.8%70.8% to 78.1%
No effect, spillovers69.3%65.3% to 73.1%

results.json

Source: main run, A/B with and without CUPED on the same cities.

Persistent shocks left every design's spread between 0.95 and 1.06 times its value with independent shocks.

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.

Spread with persistent shocks relative to independent shocksSwitchback, no interference: 0.95 (interval 0.87 to 1.04). No design moves by more than about 6%.No interferenceDriver A/B, No interference: the spread with persistent shocks is 0.99 times the spread with independent shocks, interval 0.95 to 1.03Driver A/B0.99A/B + CUPED, No interference: the spread with persistent shocks is 1.06 times the spread with independent shocks, interval 0.98 to 1.15A/B + CUPED1.06Region cluster, No interference: the spread with persistent shocks is 1.01 times the spread with independent shocks, interval 0.98 to 1.05Region cluster1.01Switchback, No interference: the spread with persistent shocks is 0.95 times the spread with independent shocks, interval 0.87 to 1.04Switchback0.95SpilloversDriver A/B, Spillovers: the spread with persistent shocks is 0.99 times the spread with independent shocks, interval 0.95 to 1.04Driver A/B0.99A/B + CUPED, Spillovers: the spread with persistent shocks is 1.03 times the spread with independent shocks, interval 0.95 to 1.12A/B + CUPED1.03Region cluster, Spillovers: the spread with persistent shocks is 1.00 times the spread with independent shocks, interval 0.96 to 1.04Region cluster1.00Switchback, Spillovers: the spread with persistent shocks is 0.99 times the spread with independent shocks, interval 0.91 to 1.08Switchback0.99CarryoverDriver A/B, Carryover: the spread with persistent shocks is 0.99 times the spread with independent shocks, interval 0.95 to 1.03Driver A/B0.99A/B + CUPED, Carryover: the spread with persistent shocks is 1.05 times the spread with independent shocks, interval 0.97 to 1.15A/B + CUPED1.05Region cluster, Carryover: the spread with persistent shocks is 1.01 times the spread with independent shocks, interval 0.98 to 1.05Region cluster1.01Switchback, Carryover: the spread with persistent shocks is 0.96 times the spread with independent shocks, interval 0.87 to 1.04Switchback0.960.80.91.01.11.2SD with persistent shocks÷ SD with independent shocks
Show the data
Spread, coverage and power with independent and persistent shocks (500 runs each)
Situation and designSD, independentSD, persistentRatioBootstrap intervalCoverage, independentCoverage, persistentDetected, independentDetected, persistent
No interference, Driver A/B3223180.990.95 to 1.0395.2%95.8%43.6%43.4%
No interference, Driver A/B with CUPED1611701.060.98 to 1.1594.0%93.4%94.0%92.6%
No interference, Region cluster3733781.010.98 to 1.0595.8%95.6%28.2%29.2%
No interference, Region/time switchback1201140.950.87 to 1.0496.6%97.0%99.4%99.6%
Spillovers, Driver A/B3593560.990.95 to 1.0490.8%91.0%68.0%71.2%
Spillovers, Driver A/B with CUPED1921981.030.95 to 1.1276.6%77.4%99.4%99.6%
Spillovers, Region cluster3723701.000.96 to 1.0494.8%93.8%50.4%49.6%
Spillovers, Region/time switchback1401380.990.91 to 1.0885.6%87.0%99.6%100.0%
Carryover, Driver A/B3223170.990.95 to 1.0395.4%95.4%37.4%38.0%
Carryover, Driver A/B with CUPED1601691.050.97 to 1.1594.2%93.8%91.2%89.0%
Carryover, Region cluster3723761.010.98 to 1.0595.6%95.4%25.4%25.0%
Carryover, Region/time switchback1161110.960.87 to 1.0444.8%43.8%54.6%55.8%

sensitivity.json · sensitivity-ar1.csv (every run)

Source: declared sensitivity run, persistent shocks compared with the main run.

All situation and design results, main run, 500 runs each
Situation and designEffectGapSD of estimateCoverageDetected or false win
No interference, effect, Driver A/B572.3−1.0322.395.2%43.6%
No interference, effect, Driver A/B with CUPED572.3−2.2160.994.0%94.0%
No interference, effect, Region cluster572.3−7.1373.195.8%28.2%
No interference, effect, Region/time switchback572.3+7.2119.796.6%99.4%
Spillovers, effect, Driver A/B655.8+235.2358.690.8%68.0%
Spillovers, effect, Driver A/B with CUPED655.8+234.0191.776.6%99.4%
Spillovers, effect, Region cluster655.8+126.8371.794.8%50.4%
Spillovers, effect, Region/time switchback655.8+128.4139.885.6%99.6%
Carryover, effect, Driver A/B522.7−0.6321.695.4%37.4%
Carryover, effect, Driver A/B with CUPED522.7−1.8160.294.2%91.2%
Carryover, effect, Region cluster522.7−6.7371.695.6%25.4%
Carryover, effect, Region/time switchback522.7−259.8116.044.8%54.6%
No interference or carryover, no effect*, Driver A/B0.0−0.7316.795.2%4.8%
No interference or carryover, no effect*, Driver A/B with CUPED0.0−1.8158.994.4%5.6%
No interference or carryover, no effect*, Region cluster0.0−8.6360.595.4%4.6%
No interference or carryover, no effect*, Region/time switchback0.0+7.5112.395.8%4.2%
Spillovers, no effect, Driver A/B0.0+5.5361.095.0%5.0%
Spillovers, no effect, Driver A/B with CUPED0.0+4.3200.294.6%5.4%
Spillovers, no effect, Region cluster0.0−11.7371.595.8%4.2%
Spillovers, no effect, Region/time switchback0.0+2.2128.995.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.

The ship rule checked once at the end, or at every check
Situation and designShip, onceShip, every checkWrong ship, onceWrong ship, every checkWrong stop, onceWrong stop, every checkTime used, every check
No interference, effect, Driver A/B17.6%25.4%0.0%0.0%0.4%0.6%84.9%
No interference, effect, Driver A/B with CUPED73.0%82.2%0.0%0.0%0.0%0.0%53.9%
No interference, effect, Region cluster15.8%20.6%0.0%0.0%0.4%0.6%87.6%
No interference, effect, Region/time switchback92.6%95.2%0.0%0.0%0.0%0.0%43.7%
Carryover, effect, Driver A/B13.0%15.4%0.0%0.0%0.6%1.8%91.0%
Carryover, effect, Driver A/B with CUPED62.4%68.2%0.0%0.0%0.0%1.0%68.6%
Carryover, effect, Region cluster12.6%15.8%0.0%0.0%0.8%1.6%90.8%
Carryover, effect, Region/time switchback13.8%23.0%0.0%0.0%1.6%4.2%88.7%
Spillovers, effect, Driver A/B0.0%0.0%0.0%0.0%0.0%0.0%100.0%
Spillovers, effect, Driver A/B with CUPED0.0%0.0%0.0%0.0%0.0%0.0%100.0%
Spillovers, effect, Region cluster0.0%0.0%0.0%0.0%0.0%0.0%100.0%
Spillovers, effect, Region/time switchback0.0%0.0%0.0%0.0%0.0%0.0%100.0%
No effect, no spillovers*, Driver A/B0.2%1.4%0.2%1.4%0.0%0.0%93.5%
No effect, no spillovers*, Driver A/B with CUPED0.4%2.0%0.4%2.0%0.0%0.0%87.4%
No effect, no spillovers*, Region cluster1.0%1.6%1.0%1.6%0.0%0.0%92.4%
No effect, no spillovers*, Region/time switchback0.8%1.8%0.8%1.8%0.0%0.0%84.6%
Spillovers, no effect, Driver A/B0.0%0.0%0.0%0.0%0.0%0.0%100.0%
Spillovers, no effect, Driver A/B with CUPED0.0%0.0%0.0%0.0%0.0%0.0%100.0%
Spillovers, no effect, Region cluster0.0%0.0%0.0%0.0%0.0%0.0%100.0%
Spillovers, no effect, Region/time switchback0.0%0.0%0.0%0.0%0.0%0.0%100.0%
Every cell of the memory sweep, 500 cities each
Block length, slots discarded, memoryEffectGain measuredCoveragePowerShippedKept testingStopped
3-slot, 1 discarded, 0%572.3101%97%99%93%7%0%
3-slot, 1 discarded, 30%567.993%95%98%82%18%0%
3-slot, 1 discarded, 50%555.777%82%93%55%45%0%
3-slot, 1 discarded, 60%543.964%68%78%34%66%0%
3-slot, 1 discarded, 70%522.750%45%55%14%85%2%
3-slot, 1 discarded, 80%481.035%28%29%3%86%11%
3-slot, 1 discarded, 85%442.128%25%18%1%80%19%
3-slot, 1 discarded, 90%374.721%31%10%0%69%30%
3-slot, 2 discarded, 0%286.7101%96%94%70%30%0%
3-slot, 2 discarded, 30%285.797%96%92%65%35%0%
3-slot, 2 discarded, 50%281.185%93%81%45%55%0%
3-slot, 2 discarded, 60%275.974%88%66%29%70%1%
3-slot, 2 discarded, 70%265.960%78%45%15%84%1%
3-slot, 2 discarded, 80%245.644%63%21%5%91%4%
3-slot, 2 discarded, 85%226.335%61%14%3%88%9%
3-slot, 2 discarded, 90%192.427%63%8%1%83%16%
6-slot, 1 discarded, 0%714.999%97%100%95%5%0%
6-slot, 1 discarded, 30%710.196%97%100%93%7%0%
6-slot, 1 discarded, 50%695.887%92%100%82%18%0%
6-slot, 1 discarded, 60%681.278%83%96%66%34%0%
6-slot, 1 discarded, 70%654.565%63%88%37%63%1%
6-slot, 1 discarded, 80%601.947%39%54%10%87%3%
6-slot, 1 discarded, 85%552.837%30%32%2%85%13%
6-slot, 1 discarded, 90%468.326%30%15%1%70%30%
6-slot, 2 discarded, 0%571.799%97%100%90%10%0%
6-slot, 2 discarded, 30%570.298%97%100%89%11%0%
6-slot, 2 discarded, 50%562.192%95%99%81%19%0%
6-slot, 2 discarded, 60%552.185%90%96%70%30%0%
6-slot, 2 discarded, 70%532.373%77%88%47%53%0%
6-slot, 2 discarded, 80%491.255%55%59%16%83%1%
6-slot, 2 discarded, 85%452.244%47%37%6%86%8%
6-slot, 2 discarded, 90%384.432%43%18%1%78%21%
6-slot, 3 discarded, 0%428.699%95%98%80%20%0%
6-slot, 3 discarded, 30%428.198%95%98%79%21%0%
6-slot, 3 discarded, 50%423.994%95%96%72%28%0%
6-slot, 3 discarded, 60%417.888%95%93%62%38%0%
6-slot, 3 discarded, 70%404.478%86%82%46%54%0%
6-slot, 3 discarded, 80%374.861%73%56%18%81%1%
6-slot, 3 discarded, 85%346.149%61%38%8%88%4%
6-slot, 3 discarded, 90%295.437%56%19%2%83%14%
12-slot, 1 discarded, 0%786.399%95%93%74%26%0%
12-slot, 1 discarded, 30%781.698%94%92%73%27%0%
12-slot, 1 discarded, 50%766.995%94%90%69%31%0%
12-slot, 1 discarded, 60%751.492%93%87%63%37%0%
12-slot, 1 discarded, 70%722.585%92%82%50%50%0%
12-slot, 1 discarded, 80%664.373%85%70%30%70%0%
12-slot, 1 discarded, 85%609.663%79%52%14%84%3%
12-slot, 1 discarded, 90%516.050%71%31%4%88%9%

results.json · scenarios.csv · sequential.json

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

Where each design fits
ApproachUse it forWatch out for
Driver A/B, with CUPEDChanges 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 clustersChanges 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 switchbackMarket-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 marketsA 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 thresholdsAny test leadership will want to call early.Fix the checks before launch, and report a bias-adjusted estimate after an early stop.
An experimentation platformAssignment, 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.

Value per test at three assumption levels; the two assumed inputs are mine, the shares behind each value come from the runs
LevelAssumed net gain a week from a change that worksPlanned checks: worth per winning testOne extra round avoidedAssumed weekly cost of an incentive that does nothingNo peeking: spend saved per no-effect test
LowUS$10,000US$7,900US$20,000US$10,000US$4,300
MiddleUS$20,000US$16,000US$40,000US$25,000US$11,000
HighUS$40,000US$32,000US$80,000US$50,000US$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
Files

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/