Why Accuracy Misleads for a Fraud Model at 0.2% Fraud
Last updated: November 29, 2026
Quick Overview
A teammate reports that a new transaction fraud model is 99.8% accurate. Explain why that number is meaningless here and which evaluation metrics and threshold choice you would use instead.
PayPal
November 29, 20260
0
0 solved
A teammate reports that a new transaction fraud model is 99.8% accurate. Explain why that number is meaningless here and which evaluation metrics and threshold choice you would use instead.
Fraud is rare in PayPal's transaction stream, so the first ML screen question is often about evaluation under heavy class imbalance. The interviewer checks that you move to precision, recall and PR curves, tie the threshold to dollar costs, and mention calibration.
What the Interviewer Expects
- Show that predicting 'not fraud' always yields 99.8% accuracy
- Prefer PR-AUC and recall at a fixed false positive rate over ROC-AUC alone
- Weight errors by dollar value, not counts
- Choose the threshold from business costs
- Mention calibration for downstream decisioning
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- Why can ROC-AUC look excellent while precision is poor?
- How would you evaluate a model whose output feeds a rules engine with multiple actions (approve, step-up, decline)?
- How do you handle the fact that declined transactions never get fraud labels?
- When would you resample the training data, and does it hurt calibration?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Fraud rate is 0.2% of transactions. A trivial model that approves everything is 99.8% accurate and catches no fraud, so accuracy cannot distinguish a useful model from a useless one. What PayPal actua...
Approach
Report precision, recall and the precision-recall curve, plus recall at operating points the business can tolerate (for example 0.5% of good transactions declined or challenged). Weight by transaction...