KatInterview

Design an Experiment to Evaluate a Cargo-Bike Courier Pilot

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsexperimentationmarketplacecausal-inference

Last updated

Design an end-to-end experimentation framework—metrics, randomization strategy, spillover detection, and a decision rule—for a bike courier program in dense urban zones.

Background

A last-mile delivery platform is piloting a cargo-bike courier program in dense urban cores (think: downtown grids where parking is scarce and short-distance orders dominate). Advocates believe bike couriers can cut pickup delays and reduce per-delivery cost on short runs by bypassing parking entirely. Critics raise concerns about weight/basket-size limits, slower performance on longer routes, weather exposure, and earnings pressure on existing motorized couriers who rely on those same short, high-tip orders.

You are the senior data scientist responsible for designing the measurement and experimentation framework that will determine whether to scale the program citywide.


What you are asked to do

Part 1 — Measuring Pickup Delay

  • How would you operationally define and measure pickup dwell time using GPS telemetry and courier app status events? What sources of measurement error are most dangerous, and why?
  • Propose a metric architecture: 1–2 primary metrics, 2–3 guardrail metrics, and at least one ecosystem metric that tracks supply-side health across both bike and motorized couriers.

Part 2 — Experimental Design and Interference

  • Explain concretely why simple courier-level or consumer-level randomization violates SUTVA in a shared dispatch marketplace.
  • Compare a spatial cluster randomization approach (e.g., geohash or submarket clusters) with a time-based switchback design (alternating treatment/control windows within the same zone). Which would you recommend for dense urban cores, and under what conditions would you use both?
  • How would you detect whether bike couriers cherry-pick short, high-tip orders—leaving longer, less profitable deliveries to motorized couriers—and quantify how much of any observed effect is a real efficiency gain versus a redistribution of favorable orders?

Part 3 — Decision Rule

The experiment returns these top-line results:

MetricResult
Pickup dwell time−3 minutes (treatment vs. control)
Cost per delivery, orders < 1.5 miles−4%
Motorized courier utilization−6%
Merchant cancellation rate, large orders+1.5 percentage points

Construct a concrete Launch / Iterate / Scrap decision rule that weighs these trade-offs. What additional context would change your recommendation?

Hints

Hint 1

Pickup dwell time measured purely from courier button presses is biased: a car courier typically presses 'Arrived' only after finding parking, while a bike courier presses it immediately. Design your geofence-based definition around GPS entry into the pickup radius rather than the status event, then cross-validate against merchant handoff timestamps to check consistency across vehicle types.

Hint 2

Standard A/B randomization assumes each unit's outcome is unaffected by other units' treatment assignment. In a shared dispatch pool, every short order a treated bike courier accepts is one fewer order available to a control motorized courier. That contamination flows in both directions, making naive treatment-vs-control differences misleading. Ask yourself: what is the right unit of randomization…

Hint 3

For the decision rule, resist collapsing everything into a single weighted score before you understand the mechanism behind each number. A 6% drop in motorized courier utilization is alarming if earnings per hour also fell (churn risk), but may actually be slack capacity if hourly earnings held steady. Diagnose each guardrail before pricing it.