Design Ride-Quality Metrics and Diagnose Ratios
Company: WeRide
Role: Data Scientist
Category: Analytics & Experimentation
Difficulty: medium
Interview Round: Technical Screen
##### Question
You are interviewing for an autonomous-driving metrics team. The team wants to measure the rider experience of completed rides. You have trip-level data with fields such as:
- `trip_id`, `city`, `route_type`, `distance_km`
- `planned_eta_min` (ETA from a third-party map/navigation provider for the same origin, destination, and request time)
- `actual_ride_time_min`
- `hard_brake_count`, `max_jerk`, `takeover_count`, `safety_event_flag`
- `rider_rating`, `complaint_flag`, `trip_completed_flag`
- `traffic_level`, `weather`, `time_of_day`
1. **Metric framework.** Design a metric framework for ride quality. Go beyond a single KPI and cover multiple dimensions:
- **efficiency** — total ride time, excess travel time, pickup delay, or detour versus a reference route;
- **comfort** — hard braking, jerk, oscillatory behavior, or unnecessary lane changes;
- **safety proxies** — critical interventions/takeovers, near-miss indicators, or time-to-collision based measures;
- **reliability and trust** — drop-off accuracy, cancellation rate, rider complaints, or route stability.
2. **North-star metric and trade-offs.** What would you choose as the north-star (primary) metric, and what safety, comfort, reliability, and efficiency guardrails would you track alongside it? How would you handle trade-offs between metrics and avoid a misleading single-number summary?
3. **Diagnose a bad ratio.** Consider the candidate metric
`eta_ratio = actual_ride_time / baseline_eta` (equivalently `trip_time_ratio = actual_ride_time_min / planned_eta_min`).
You find this ratio is unexpectedly high, suggesting the autonomous-driving ride is much slower than the baseline. How would you investigate whether this reflects a *true product problem* versus an artifact of metric definition, bad metric design, route mix, map-ETA bias, selection bias, confounding, or data-quality problems? Be explicit about metric definitions, segmentations, comparisons, possible failure modes, and follow-up analyses.
4. **Additional data.** What additional data would you request to complete the diagnosis?
Quick Answer: Design autonomous-ride quality metrics and diagnose a high ETA ratio with safety guardrails, Good Trip Rate, efficiency, comfort, reliability, segmentation, denominator calibration, matched comparisons, delay decomposition, and additional telemetry requests.