Technical Interview Strategy: lesson 3 of 3
Technical Interview Strategy
How to Answer Metric Questions in Interviews
Use a simple framework to explain classification metrics with context instead of memorized definitions.
A better answer framework
When an interviewer asks “Precision or recall?”, avoid immediately choosing one.
Use this structure:
- Define the prediction goal.
- Identify the positive class.
- Compare the cost of false positives and false negatives.
- Check class imbalance.
- Select the metric and threshold based on those costs.
Example
Question: Which metric would you optimize for a fraud model?
A strong answer could be:
I would first understand the cost of missing fraud versus incorrectly flagging legitimate transactions. If missed fraud is substantially more expensive, recall becomes important, but I would not maximize recall without constraint because excessive false positives can block good customers. I would inspect precision-recall trade-offs and choose an operating threshold based on business cost.
That answer demonstrates reasoning, not memorization.
What the interviewer is testing
They usually want to know whether you understand that model evaluation is connected to business decisions.
Likely follow-up
“What happens if you lower the classification threshold?”
In many binary classifiers, lowering the threshold tends to increase recall while potentially reducing precision because more cases are classified as positive.
Practice
How would your answer change for spam filtering, cancer screening, and credit-risk approval?
Key Takeaway
Key takeaway
Strong interview answers explain why a metric fits the problem, not just what the formula means.
Finish this lesson on your terms
Mark it complete when you have worked through the material and are ready to move on.