Google's machine learning course explains that evaluation metrics depend on the relative cost of classification errors and the dataset. Our interview exercise makes the business consequence of a wrong prediction the starting point.
Write a confusion matrix in plain language
Imagine an automated system deciding which support tickets need urgent review. A missed urgent ticket and an ordinary ticket mistakenly marked urgent are different operational problems. Label those outcomes before calculating a metric. This helps you avoid answering in abstractions. Ask who handles an alert, what a missed case costs and whether a prediction is a recommendation or an irreversible action.
Expose the accuracy trap
Suppose only a small fraction of tickets are truly urgent. A system that marks every ticket ordinary could appear accurate while providing no useful urgent-ticket detection. Explain how recall captures the proportion of genuinely urgent cases found, while precision captures the proportion of flagged cases that actually deserve the label. Then discuss the workload that false alerts create for reviewers.
Defend a threshold with a validation plan
Do not claim a threshold is optimal without data. Describe how you would evaluate alternative thresholds on representative labeled examples, compare error costs and measure operational capacity. If the quality of labels varies, investigate that before optimizing a metric. Monitor changes after deployment. A strong answer connects model behavior to a realistic workflow and explains what evidence would trigger revision.
A practical example
For a document-review classifier, a missed serious issue may be expensive, but overwhelming reviewers with ordinary documents can also reduce effectiveness. Present both costs before recommending a metric target.
Try this today
Invent two confusion matrices with similar accuracy but different precision and recall. Calculate both measures, then explain which model you would prefer under two different cost assumptions.
Before you move on
- Identify the real cost of each error.
- Check class imbalance.
- Validate the threshold on representative data.
References & further reading
This is original QSourceAI editorial commentary with independent practice examples. Read the source publication for its own findings, reporting or guidance.
- Google for DevelopersClassification: accuracy, recall, precision, and related metrics
Source consulted November 21, 2026. References do not imply endorsement of QSourceAI by the publisher.
Real questions. Answers built around you.
Use QSourceAI to practise explaining classification trade-offs in your own words. Verify the calculations independently before presenting a result.