Pilot Design for Adding Bike Couriers to a Dense City Core
Statistics & ExperimentsModel answerLast updated
Design an experiment to decide whether adding bicycle couriers to a car-only delivery marketplace improves efficiency, covering metrics, geo randomization, confounders and cannibalization.
Scenario
A food-delivery platform operates in a congested, high-density downtown. Every delivery there is currently made by couriers driving cars or motorcycles. The company wants to know whether letting couriers on bicycles join the supply pool would make the marketplace healthier and more efficient.
Your task
Propose an experimental framework for evaluating the bike-courier launch. Cover the following:
- Metrics. Choose primary and secondary metrics that capture both operational efficiency and business performance. Include guardrails.
- Experiment design. Explain how you would run the test. Because deliveries are tied to geography and all couriers draw on shared supply, say how you would prevent spillover between treatment and control.
- Confounders. Name at least two confounding factors (for example weather or time of day) and explain how you would reduce their influence on the results.
- Marketplace effects. Explain how you would tell whether bike couriers are simply taking orders away from existing drivers or are creating new demand, for instance by shortening customer wait times.
Requirements
- State a clear randomization approach and justify it (for example, cluster/geo randomization versus customer-level randomization).
- Account for the fact that bikes and motor vehicles differ in speed and practical delivery radius.
- Focus on reasoning and trade-offs. No code is needed.
Hints
Hint 1
Start by writing the launch decision as a single sentence (for example, ship if cost per order or completed orders improve without hurting customers or existing drivers), then pick metrics that serve it.
Hint 2
Couriers and customers share one supply pool, so randomizing individual customers or couriers lets treatment leak into control. Think about zones, buffers, and matched pairs.
Hint 3
Bike-served orders are a selected subset (short, dense). Compare whole treatment zones to whole control zones on all orders, and separate gross bike orders from net order lift.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Framing the decision
State the decision first: launch bikes if they lower delivery cost per order or raise completed orders, without degrading customer experience or the earnings of existing car couriers. The key insight is that a delivery marketplace breaks naive A/B tests, because all couriers serve one shared pool of demand. Everything below follows from that.
1. Metrics
Primary (pre-registered, measured at the zone level):
- Delivery cost per order: courier pay plus incentives divided by delivered orders (efficiency).
- Completed orders per zone-hour: throughput, which also captures incremental demand.
Customer secondary: delivery time (checkout to dropoff) at p50 and p90, lateness versus quoted ETA, checkout conversion, cancellations and refunds, food quality ratings.
Supply secondary: courier utilization (active time / online time) split by vehicle type, earnings per active hour, offer acceptance rate, time to assignment, churn.
Guardrails: safety incidents, merchant wait and pickup time, car-courier earnings per hour (no drop beyond a set threshold), p90 delivery time.
Average delivery time alone is misleading. Bikes may look fast because they take short, easy orders while cars become underused and costlier per order. Utilization and cost per order expose whether the whole system improved.
Speed and radius differences. Bikes are faster in gridlock and need no parking but are slower on open roads and limited in range, so cap bike dispatch at roughly 1.5-2 km. Bike-served orders are therefore selected (short, dense, lunch-heavy), and comparing bike deliveries with car deliveries directly is selection bias. Instead:
- Analyze all orders in treatment zones versus all orders in control zones (intent-to-treat).
- For order-level views, stratify by distance bucket, pickup density and daypart.
2. Experimental design
Why customer- or courier-level randomization fails. It violates SUTVA: a bike taking a treated customer's order frees a car for a control customer, and cars reposition in response. Effects leak into control and usually bias the estimate toward zero (not always).
Recommended: geo-cluster randomization, optionally with switchbacks.
- Clusters. Use contiguous dispatch zones that are large relative to the bike radius, ideally across several comparable cities. Form matched pairs on pre-period volume, average order distance, congestion, bike-lane density and merchant mix, then randomize within pairs.
- Spillover control.
- Restrict bike pickups and dropoffs to the treatment zone.
- Add a buffer ring wider than typical car repositioning distance and exclude its orders from analysis.
- Monitor car flows across boundaries; displaced cars drifting into control make control look artificially good.
- Draw boundaries along natural barriers (rivers, highways), not along bike corridors.
- Switchbacks (optional). Toggle bike eligibility in 1-2 hour blocks, randomized by zone and time, to measure short-run effects on wait times and car utilization. They cannot capture long-run effects such as demand growth or churn, so the geo test remains the basis for the decision.
- Inference and power.
- Few clusters means low power. Run a power analysis up front; expect 6-8+ weeks.
- Use difference-in-differences on zone-day panels with a pre-period, CUPED or regression adjustment, and cluster-robust or randomization-inference p-values.
- Drop 1-2 weeks as burn-in: new bike couriers ramp up and customers adapt slowly.
3. Confounders
| Confounder | Why it matters | Mitigation |
|---|---|---|
| Weather | Rain and heat cut bike supply and speed and shift demand | Matched pairs share regional weather; add weather covariates; report effects by weather condition |
| Time of day / day of week | Lunch orders are short and dense, favoring bikes | Balanced switchback schedule; stratify by daypart |
| Local events and road closures | Congestion spikes favor bikes | Event-calendar covariates; robustness check excluding event days |
| Concurrent promotions or merchant launches | Shift demand in one zone only | Freeze zone-specific promos; audit marketing logs |
| Novelty and onboarding ramp | Early performance is not steady state | Burn-in; plot weekly effects |
Randomization balances confounders only in expectation. With few clusters, chance imbalance is real, so pre-period matching and DiD matter.
4. Cannibalization versus incremental demand
Separate three quantities:
- Gross bike orders: orders delivered by bikes.
- Net order lift: treatment minus control total orders (from DiD).
- Incrementality ratio = net lift / gross bike orders. Near 0 means pure substitution; near 1 means bikes created new demand.
Substitution diagnostics: compare car orders per active hour and car earnings per hour across arms. If car utilization falls while total orders are flat, bikes are stealing deliveries.
New-demand mechanism: bikes shorten quoted ETAs, which should lift checkout conversion. Check that conversion rose in treatment, that the rise concentrates in sessions where ETAs dropped most, and that the pre-period conversion-versus-ETA elasticity makes the size plausible.
Customer decomposition: new activations, reactivated lapsed users and order frequency among existing users. Existing users ordering at the same rate but getting faster delivery is substitution; new and reactivated users plus higher frequency is incremental demand.
Cross-zone effects: check whether orders shifted in from neighboring zones or buffer areas, since that inflates apparent lift.
5. Decision rule and common mistakes
Ship if the primary metrics improve with a confidence interval that clears the practical threshold and no guardrail is breached. If cost per order falls but car-courier earnings drop sharply, consider limiting bike eligibility (specific dayparts or distances) rather than a blanket rollout.
Common mistakes:
- Randomizing individual customers or couriers in a shared-supply market.
- Comparing bike deliveries with car deliveries, which is selection bias.
- Judging success by average delivery time only.
- Ignoring buffer zones and cross-boundary courier movement.
- Reading early weeks as steady state.
- Running too few clusters for too short a time, then over-trusting a noisy result.