Precision and Recall: Improving Predictive Model Accuracy
Master Model Evaluation with Precision and Recall Metrics
Model Performance Overview
Precision vs Recall: Key Differences
| Feature | Precision | Recall |
|---|---|---|
| Question Asked | Of predictions made, how many correct? | Of actual cases, how many caught? |
| Focus | Quality of positive predictions | Coverage of actual positives |
| Use Case Priority | Minimize false positives | Minimize false negatives |
Model Prediction Results
High overall accuracy (77%) but low recall (26%) indicates the model excels at predicting employees who stay but struggles to identify those who will leave.
Understanding the Metrics
Precision Analysis
Of 1,350 predictions that employees would leave, 730 were correct. This 54% precision means about half of departure predictions are accurate.
Recall Analysis
Of approximately 2,800 employees who actually left, only 25% were correctly identified. The model misses most actual departures.
Business Impact
Strong at predicting retention but weak at identifying flight risk. Consider whether missing departures or false alarms are more costly for planning.
In medical testing, false negatives (telling sick patients they're healthy) are typically more dangerous than false positives (telling healthy patients they might be sick), especially for contagious or progressive diseases.
False Positive vs False Negative Costs
| Feature | False Positive | False Negative |
|---|---|---|
| Medical Context | Unnecessary treatment/anxiety | Missed diagnosis, disease progression |
| Employee Context | Retention effort for staying employee | Missed departure, no succession plan |
| Typical Preference | More acceptable | Usually more costly |
Model Optimization Strategy
Assess Business Cost
Determine whether missing actual departures or incorrectly predicting departures is more expensive for your organization.
Adjust Decision Threshold
Lower the threshold to catch more departures (improve recall) or raise it to reduce false alarms (improve precision).
Monitor Trade-offs
Track how threshold changes affect both metrics and overall business outcomes to find the optimal balance.
When it does get it wrong, what direction do we want it to get wrong?
This lesson is a preview from our Data Science & AI Certificate Online (includes software) and Python Certification Online (includes software & exam). Enroll in a course for detailed lessons, live instructor support, and project-based training.
Key Takeaways