KatInterview

Rare-Event AV Safety Estimation with Importance Sampling

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsimportance-samplingrare-eventsvariance-reduction

Last updated

Design a biased-sampling simulation study that estimates a ~1-in-10,000-mile collision rate within a 50k-run budget, reports calibrated uncertainty, and validates the extrapolation.

You are building a simulation harness to judge how often an autonomous-vehicle planning-and-perception stack would collide at one specific urban intersection. Exposure units are miles; the true collision rate is on the order of one per 10,000 miles, so a collision is a rare event. You may spend 50,000 simulated runs, and you must return a collision-rate estimate with an honest confidence interval rather than a point number.

A plain Monte Carlo run at this budget would produce only a handful of collisions — often zero — so the estimate would be nearly useless. Your job is to design the study:

  1. Scene parameterization. Identify the scene variables most likely to control collision risk (e.g., the gap between a pedestrian entering the crosswalk and ego arrival, occlusion geometry, ego speed, road friction, weather/lighting, sensor noise), and describe how their joint real-world distribution would be estimated.
  2. Sampling design. Propose how to draw scenarios so that conflicts are over-represented, while still recovering an unbiased estimate of the real-world rate. Explain how you would deal with the dimensionality of the parameter space.
  3. Metrics. Define safety metrics that carry more information than a binary crash flag (TTC, PET, deceleration-to-avoid, envelope violations, impact severity), and explain how they are used.
  4. Validation. Explain how you would check that conclusions drawn in the tilted simulator actually predict on-road behavior.

Address the bias-variance trade-off of the proposal distribution, the conditions under which the estimator is unbiased, and how you would diagnose that the proposal is failing. Assume the naturalistic scene distribution has a tractable density you can evaluate, and that the simulator's dynamics are fixed and not modified by your sampling scheme.

Hints

Hint 1

Start with the arithmetic: with p ≈ 1e-4 and 50k runs, what relative standard error does plain Monte Carlo give, and how much variance reduction do you need for a ±10% interval?

Hint 2

Sketch the importance-sampling estimator and state the support condition — a proposal that assigns zero density to a real failure mode silently destroys unbiasedness.

Hint 3

Weight degeneracy grows with the number of tilted dimensions: use a pilot sensitivity analysis to find the few dimensions that matter and leave the rest at their natural distribution.

Hint 4

Separate the exploratory phase that adapts the proposal from the estimation phase that keeps it fixed, and report effective sample size alongside the point estimate.