KatInterview

Design an Experiment for a Cargo-Bike Last-Mile Delivery Program

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsexperimentationmarketplacea-b-testing

Last updated

Design an A/B test for a bike-only dispatch pilot, covering metric selection, randomization unit trade-offs, and how shared courier supply creates interference.

Scenario

A last-mile logistics platform is piloting a program that restricts deliveries in a dense downtown corridor to bicycle couriers only. The motivation is straightforward: car couriers in that area spend a disproportionate share of each trip searching for parking or waiting in loading zones, inflating the time customers actually wait. You are the analyst responsible for measuring whether the program works.

The platform operates a two-sided marketplace: customers place orders, and couriers — some with cars, some with bikes — self-select into shifts. The pilot applies only to a single high-density neighborhood. Outside that area, the regular mixed-fleet dispatch rules remain in effect.

What you are asked to do

1. Pick your metrics. Choose one primary metric that best captures whether the pilot is achieving its goal. Then name two guardrail metrics that would alert you if the pilot is damaging other parts of the marketplace. For each metric, briefly explain what it measures and why it matters here.

2. Choose a randomization strategy. Walk through the trade-offs of three possible assignment units:

  • Individual customer accounts
  • Individual courier accounts
  • Geographic zones or time-based blocks

Recommend one approach and justify it. Be explicit about what experiment design you would actually run and why.

3. Address supply-side interference. Bike couriers and car couriers draw from the same order queue. Explain concretely how that shared pool can corrupt your experiment results. What happens to the control group's measurements when you treat only part of the supply? How would you adjust the design or analysis to account for it?

Constraints to keep in mind

  • The pilot zone is geographically bounded — one urban neighborhood.
  • Courier fleet composition (car vs. bike) is determined by what the courier already owns; you cannot randomly assign courier type.
  • Assume you have full telemetry: GPS traces, order timestamps at each stage, courier earnings records, and customer app data.

Hints

Hint 1

Your primary metric should reflect what the *customer* experiences across all orders in the zone, not just how fast bike couriers complete their individual trips. Think about why those two things can diverge.

Hint 2

A classic A/B test assigns treatment to independent units. Ask yourself whether any pair of randomization units here truly share no couriers, no orders, and no dispatch queue — and what that implies for which design is viable.

Hint 3

When one group in your experiment takes trips the other group would have taken, bias flows in a specific direction. Work out which group looks artificially better and which looks artificially worse, then ask what design choice removes that problem entirely.