KatInterview

Design an A/B Test for an Autonomous Vehicle Model Update

Statistics & ExperimentsModel answer
MediumModel answerStatistics & ExperimentsA/B testingcausal inferenceexperiment design

Last updated

Design a statistically sound online experiment to evaluate a path-planning model change in a fleet of autonomous vehicles operating in a shared traffic environment.

Context

Your team has trained a new motion-planning model aimed at producing smoother deceleration profiles when a self-driving vehicle approaches and clears an intersection. Simulation and offline log-replay evaluation both look promising. You now need to confirm the benefit in the real world without compromising safety or ride quality.

Design an online controlled experiment to answer two questions:

  1. Does the new model reduce abrupt deceleration events at intersections?
  2. Does it do so without meaningfully increasing how long trips take?

What you are expected to address

1. Randomization unit What is the right unit of randomization — individual trips, individual vehicles, or geographic zones? Walk through the bias/variance trade-off for at least two options and justify your final choice.

2. Metrics Define a primary metric that captures the safety goal and a guardrail metric that protects efficiency. Be precise: specify the numerator, the denominator, and how you would compute variance correctly.

3. Network interference Self-driving vehicles share roads with human drivers and with each other. Describe at least one concrete mechanism by which a vehicle in the treatment group could affect the measured outcome of a vehicle in the control group. Explain how you would detect or bound this effect.

4. Temporal confounding The experiment is planned to run for three weeks. What patterns or external factors could introduce systematic bias over that window, and how do you handle them without discarding data?

Constraints and expectations

  • The fleet operates in a few metropolitan areas; total active vehicles number in the hundreds to low thousands.
  • Intersection traversals are the relevant exposure unit for the safety metric.
  • Your design must produce a defensible causal claim — not just a correlation — while remaining operationally feasible for the team.
  • Quantitative reasoning is expected: give approximate numbers where useful rather than leaving things vague.

Hints

Hint 1

Start by asking what 'independence of experimental units' really requires here — vehicles sharing an intersection at the same moment clearly violate it, so think about whether your randomization unit can reduce, not just ignore, that overlap.

Hint 2

For the primary metric, the denominator matters as much as the numerator: raw event counts conflate differences in mileage, trip mix, and route type. What exposure measure makes the rate comparable across vehicles and arms?

Hint 3

Temporal confounding and interference are both forms of 'something other than the treatment explains the difference.' For time, concurrent controls mostly protect you — think about what concurrent controls cannot protect you against, and how a pre-period covariate helps with the residual.