KatInterview

Testing a Courier-Priority Elevator Rule in Apartment Towers

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsab-testingexperiment-designcluster-randomization

Last updated

Design an experiment to test whether dedicating one elevator to couriers at peak hours speeds up deliveries without hurting residents, covering randomization, metrics, and interference.

Scenario

A food-delivery platform wants to pilot a rule for tall residential buildings: during busy meal-time hours, one elevator car is set aside for delivery couriers, with the goal of shortening deliveries. Residents are worried that having one fewer car for them will lengthen their waits. You have been asked to design the experiment that measures the effect of this rule.

What to cover

  1. Randomization unit. Elevator dispatch can't be changed for one resident at a time within a building. Propose an experimental design and justify your unit of randomization (individual, building, time window, or a combination).
  2. Metrics. Choose a primary success metric for the courier side and a primary guardrail metric for the resident side. Explain how each is computed and why you chose it.
  3. Bias and spillover. Identify at least one source of bias or interference in your design and describe how you would reduce it.

Available data and constraints

  • You have IoT logs of elevator calls, arrivals, and departures, plus timestamps for completed deliveries.
  • Think about the feedback loop: if couriers become faster, customers may order more, which changes the baseline elevator load that you are trying to measure.

Follow-up to be ready for

If you propose a switchback design (alternating the rule on and off across time slots), explain how you would deal with carryover, where congestion or a bad experience in one slot affects behavior or conditions in the next.

Hints

Hint 1

Residents share elevators, so treating one person or one car in isolation affects everyone else. Ask which unit keeps queues from interfering with each other.

Hint 2

Consider combining two designs: a longer cluster-randomized test across buildings for the steady-state effect, and a switchback within buildings for a more powerful read on the immediate effect.

Hint 3

For metrics, isolate the part of the delivery the elevator actually influences, and for residents focus on tail waits rather than averages, framed as non-inferiority against a pre-agreed margin.