Problem
Bolt runs ride-hailing, food delivery, scooters and car sharing. Features such as new dispatching logic change supply and demand in the marketplace, so a user in one arm affects the availability of drivers or couriers for users in the other arm. User-level randomisation then biases the result through interference, so Bolt randomises timeslices instead (a switchback test).
Example from the article: a feature crashed user sessions and forced users to open a replacement session. Average order value per session fell, although the total value of orders did not.
Solution in brief
Bolt added five practices: CRSE checked with A/A simulations, a cluster-design sample size formula, "user-per-timeslice" as the analysis unit, a quasi-randomised schedule that inverts earlier days, and nested timeslice lengths for parallel tests. Assignment is a hash of the test id and timeslice start, so nothing needs storing.
Questions this case answers
- How to run time-sliced randomised experiments on a shared-supply system with valid inference, balanced time periods and several tests running at once
- How to pick an analysis unit that stays interpretable and unbiased when the treatment changes how many units a user produces
- How to analyse a switchback test with correct p-values when users in the same timeslice influence each other?
- How to size a switchback test when the randomisation unit is a timeslice and traffic varies through the day?
Tools and methods
- Switchback test — randomise timeslices within a city instead of users.
- A/A simulation — reassign historical timeslices at random and check that p-values are uniform.
- Cluster-robust standard errors (CRSE) — fix correlation between users in one timeslice.
- Inflation factor from cluster-randomisation theory — scales a user-level sample size to a timeslice design.
- Mixed-effects model — gives the intra-cluster correlation (ICC).
- statsmodels — regression, CRSE and the mixed model.
Google or a one-time email code. No password.