Explain Why ROC AUC Misleads on Rare Google Pay Fraud Labels

Last updated: November 29, 2026

Quick Overview

A Google Pay fraud model reports 0.98 ROC AUC, but the risk team says it flags too many good transactions. Explain why ROC AUC can look excellent under extreme class imbalance and which metric you would use instead.

Google
Machine Learning
Data Scientist
Google
November 29, 2026
Data Scientist
Onsite
Machine Learning
Medium

0

0

0 solved


A Google Pay fraud model reports 0.98 ROC AUC, but the risk team says it flags too many good transactions. Explain why ROC AUC can look excellent under extreme class imbalance and which metric you would use instead.

Payments and trust teams at Google evaluate classifiers where positives are well under 1 percent of traffic. The interviewer wants to see that you can translate a metric into operational cost (reviewer load, declined good customers) and pick precision-recall based evaluation when it is warranted.

What the Interviewer Expects
  • Explains that false positive rate is diluted by a huge negative count
  • Works a numeric example showing high AUC with low precision
  • Recommends PR AUC or precision at a fixed recall, and states why
  • Connects the operating point to review capacity and customer friction
  • Notes that PR curves depend on base rate, so comparisons need the same prevalence
Key Topics to Cover
ROC AUC
precision-recall curve
class imbalance
operating point
fraud detection metrics
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 would you choose the operating threshold given a fixed daily review budget?
  • If prevalence doubles next quarter, which metrics change and which stay the same?
  • How do you compare two models when one has better PR AUC and the other better recall at 1 percent FPR?
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

Confirm the base rate (say 0.1 percent of transactions are fraud), daily volume, how flagged transactions are handled (manual review, step-up verification, decline), and what the business actually car...

Approach

ROC plots true positive rate against false positive rate. Both are normalized within their own class, so the curve ignores how many negatives there are. When negatives outnumber positives 1000 to 1, a...


Submit Your Answer
Markdown supported