Choosing a Threshold for Flagging Potentially Unsafe Trips

Last updated: November 29, 2026

Quick Overview

A model scores each trip for safety risk and flagged trips are reviewed by a safety team that can handle 2,000 reviews a day. How would you choose the threshold and explain the precision and recall trade-off to stakeholders?

Uber
Machine Learning
Data Scientist
Uber
November 29, 2026
Data Scientist
Phone Screen
Machine Learning
Easy

0

0

0 solved


A model scores each trip for safety risk and flagged trips are reviewed by a safety team that can handle 2,000 reviews a day. How would you choose the threshold and explain the precision and recall trade-off to stakeholders?

Uber's safety features (RideCheck style anomaly detection, incident review) involve human review capacity and very asymmetric harm. The interviewer checks basic precision and recall reasoning plus capacity-constrained thresholding.

What the Interviewer Expects
  • Define precision and recall in this context
  • Use review capacity to set a threshold (top K per day)
  • Discuss the cost asymmetry of missed incidents
  • Show how to read a precision-recall curve for the decision
  • Propose monitoring after launch
Key Topics to Cover
precision
recall
threshold selection
capacity constraints
PR curve
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • What if the team can only handle 500 reviews on weekends?
  • Would you use different thresholds per city?
  • How do you get labels for trips that were not reviewed?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Ask volume and base rate: say 20M trips a day, with genuine safety incidents around 1 in 50,000 trips, so about 400 per day. Review capacity is 2,000 a day....

Approach
  • Precision = of flagged trips, the share that were real incidents.
  • Recall = of real incidents, the share we flagged.

Raising the threshold improves precision and lowers recall. With a fixe...


Submit Your Answer
Markdown supported