Why is 99% accuracy misleading with 1% disease prevalence?

Tests class imbalance intuition. A strong answer notes that an all-negative classifier hits 99% accuracy, then names precision, recall, F1, and AUC-PR to expose false negatives and false positives. Red flag: claiming accuracy is fine after rebalancing.
What's really being asked
This question probes your intuition for class imbalance and metric selection in binary classification. Interviewers want to see that you understand accuracy is unreliable when the positive class is rare, and that you can translate business context into appropriate evaluation criteria.
The full answer
First, explain the base rate trap. With 1% prevalence, a model that predicts negative for every patient automatically achieves 99% accuracy while catching zero actual disease cases. Second, introduce the confusion matrix and define precision as the fraction of predicted positives that are true positives, and recall as the fraction of actual positives correctly identified. Third, argue for metrics that expose the two distinct failure modes: precision addresses false alarm cost, recall addresses missed detection cost. Fourth, mention F1 score as the harmonic mean that balances both, and AUC-PR as the preferred ranking metric over AUC-ROC when positives are rare, because ROC can look deceptively good on imbalanced data. Fifth, tie metrics back to clinical stakes, noting that missing a disease is usually costlier than a false positive.
The mistakes people make
Saying the metric is misleading because the dataset is too small. Claiming that 99% accuracy is always good regardless of prevalence. Proposing random oversampling or SMOTE as the primary solution without first diagnosing the metric problem. Recommending AUC-ROC as the best metric without acknowledging its inflation under imbalance. Confusing precision and recall definitions or using them interchangeably.
What usually comes next
How would you set the decision threshold if false negatives are ten times costlier than false positives? What does your precision-recall curve look like if the model is well calibrated? How would you communicate these metrics to a clinical stakeholder who only understands accuracy? When would you use the Matthews Correlation Coefficient instead of F1?
A concrete example
Imagine 10,000 patients where 100 have the disease. The all-negative classifier gets 9,900 correct predictions and 99% accuracy. If your model instead predicts 80 true positives, 20 false negatives, 50 false positives, and 9,850 true negatives, accuracy is still 99.3%. However, recall is 80% and precision is 61.5%, revealing the model misses 20 sick patients and wastes 50 healthy ones on unnecessary follow-up. AUC-PR would summarize this trade-off across thresholds far better than AUC-ROC.
Interview question
A medical model reports 99% accuracy on a disease with 1% prevalence. Which observation best shows why accuracy is misleading?
- a.The model could predict every patient is healthy and still score 99%.Correct
- b.Precision and recall become identical when the positive class is rare.
- c.The dataset is too small to yield a reliable accuracy estimate.
- d.High accuracy proves the model has a low false positive rate.
Why? this is the answer
When prevalence is 1%, an all-negative classifier automatically achieves 99% accuracy while detecting zero actual cases, proving accuracy can mask total failure. Distractor A is a common misconception the card explicitly warns against, as the problem is class imbalance rather than sample size.
Just read this? Test yourself on what you have been reading.
Read the original → developers.google.com
- #class imbalance
- #classification metrics
- #precision-recall
- #confusion matrix
- #interview
You just looked this up. Could you explain it out loud?
That is the part interviews actually test. Tezvyn takes questions like this one and gives you what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.
See open roles