Read a Confusion Matrix for a Card Fraud Alert Model

Last updated: November 29, 2026

Quick Overview

A fraud model scored 1,000,000 card transactions, of which 2,000 were fraud. It flagged 10,000 transactions and caught 1,500 frauds. Compute precision, recall, false positive rate and accuracy, and explain which numbers matter for customer alerts.

Capital One
Machine Learning
Data Scientist
Capital One
November 29, 2026
Data Scientist
Phone Screen
Machine Learning
Easy

0

0

0 solved


A fraud model scored 1,000,000 card transactions, of which 2,000 were fraud. It flagged 10,000 transactions and caught 1,500 frauds. Compute precision, recall, false positive rate and accuracy, and explain which numbers matter for customer alerts.

Capital One texts customers through Eno and its fraud alerts when a charge looks suspicious, so every false positive is a real customer interrupted. Early screens use a quick confusion matrix question to check that you can derive metrics correctly and explain why accuracy is useless at this base rate.

What the Interviewer Expects
  • Builds the full 2x2 table from the given counts
  • Computes precision, recall, FPR and accuracy correctly
  • Explains why accuracy is misleading at a 0.2% fraud rate
  • Connects precision to alert fatigue and recall to fraud losses
  • Suggests dollar-weighted recall as a complement
Key Topics to Cover
confusion matrix
precision
recall
base rates
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 happens to precision if fraud rate doubles but the model is unchanged?
  • How would you pick between two models with the same AUC but different precision at the operating point?
  • Why might the business care about recall by dollars rather than by count?
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

Positives are fraud. Given: total N=1,000,000N = 1{,}000{,}000, actual fraud P=2,000P = 2{,}000, flagged =10,000= 10{,}000, true positives TP=1,500TP = 1{,}500. I would confirm that "flagged" means an alert was sent, not just...

Approach

Fill the table: FN=P−TPFN = P - TP, FP=flagged−TPFP = \text{flagged} - TP, TN=N−TP−FP−FNTN = N - TP - FP - FN. Then compute the standard rates and translate each into a business effect....


Submit Your Answer
Markdown supported