Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Compare Precision-Recall Tradeoffs

EasyModel Evaluation00:00
Appfolio
Your interviewer · Data Scientist
In session
Interviewer

Welcome to your interview for the Data Scientist role at Appfolio.

The question is on your right: Compare Precision-Recall Tradeoffs. Take a moment with it first.

Talk your thinking through with me if you like - when you're confident, submit your answer and I'll grade it like a real screen. You have three graded attempts to score 7/10 or better.

Only Submit answer is graded - discussion is free practice.

Problem

Context

ShopLens is evaluating two binary classification models that predict whether a customer support ticket should be escalated to a human specialist. Escalations are expensive, but missing urgent tickets leads to SLA breaches and customer churn. The team wants to choose between two models with different precision and recall profiles.

Current Performance

Evaluation was run on a holdout set of 10,000 tickets, with 1,000 truly urgent tickets and 9,000 non-urgent tickets.

MetricModel AModel B
Precision0.910.68
Recall0.540.86
F1 Score0.680.76
Accuracy0.940.90
False Positives53405
False Negatives460140
Predicted Positive Tickets5931,265

The Problem

Model A is much more precise but misses many urgent tickets. Model B catches most urgent tickets but sends many more non-urgent tickets to specialists. The hiring manager wants to know how you would compare these models, which one you would recommend, and whether threshold tuning could produce a better operating point.

Requirements

  1. Compare the two models using the provided metrics and explain the tradeoff clearly.
  2. Identify which model is better if the business prioritizes minimizing missed urgent tickets.
  3. Identify which model is better if specialist review capacity is limited.
  4. Explain whether F1 score alone is sufficient for this decision.
  5. Recommend a threshold or evaluation approach to align model choice with business cost.

Constraints

  • Each false positive escalation costs about $8 in specialist time.
  • Each false negative costs about $120 in SLA penalties and churn risk.
  • The specialist team can review at most 1,000 escalated tickets per day.