Explain Why ROC AUC Looks Great but Precision Is Poor for Counterfeit Detection

Last updated: November 29, 2026

Quick Overview

A counterfeit listing classifier reports ROC AUC of 0.97, yet investigators say most flagged listings are genuine. Explain how both can be true and which metric you would report instead.

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

0

0

0 solved


A counterfeit listing classifier reports ROC AUC of 0.97, yet investigators say most flagged listings are genuine. Explain how both can be true and which metric you would report instead.

This is a common screening question for Amazon roles in trust, risk and brand protection, where positives are rare. The interviewer checks that you understand how class imbalance interacts with ROC and precision-recall curves.

What the Interviewer Expects
  • Explains that false positive rate is normalized by the huge negative class
  • Works a numeric example showing precision collapse
  • Recommends precision-recall curves and average precision
  • Suggests precision at the operating point investigators can handle
  • Notes that AUC is invariant to prevalence while precision is not
Key Topics to Cover
class imbalance
ROC AUC
precision-recall curve
average precision
base rate
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
  • How does PR AUC change if prevalence doubles?
  • What is the baseline average precision of a random classifier?
  • How would you report performance to the brand protection team?
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 for prevalence (say 1 in 1,000 listings are counterfeit), the threshold being used, and how many listings investigators can review per day....

Approach

ROC plots true positive rate against false positive rate. FPR divides false positives by all negatives, so with millions of genuine listings a tiny FPR still means many false flags. Precision divides ...


Submit Your Answer
Markdown supported