ML · Extended learning · 2026-10-10
Classification evaluation: tradeoffs beyond accuracy
Understand confusion matrices, precision, recall, thresholds, and business cost.
Exam boundary note
This is an introductory study note and does not claim full exam-objective coverage. AZ-104/AZ-305 objectives follow the official 2026-04-17 study guides; AZ-700 follows the 2026-07-27 study guide.
Concept notes
A classification model does not return business truth; it returns a score or label with uncertainty. Accuracy can be misleading when classes are imbalanced: if 95% of samples are normal, a model that always predicts normal still gets a high accuracy score. A confusion matrix separates true positives, false positives, true negatives, and false negatives; precision measures how reliable positive predictions are, and recall measures how much of the actual positive class you recover. The threshold is not a math detail; it is a business decision. Fraud, medical, recommendation, and alerting systems all have different error costs.
Tradeoffs and safety exercise
Paper/local safety exercise: construct 100 paper samples, with 10 positives. Suppose the model finds 8 positives and raises 12 false alarms. Manually compute precision, recall, and F1 score, then write the business explanation: if this is a security alert, false alarms consume human time; if this is a severe-risk screen, misses are more dangerous. Then raise the threshold and imagine false alarms falling while misses rise. Explaining the metric changes in plain language is more important than memorizing the formulas.
Completion checklist
- Can derive common metrics from a confusion matrix.
- Can explain the limits of accuracy under class imbalance.
- Can connect threshold selection to business cost.