What Is the Difference Between Precision and Recall?
Precision asks what fraction of positive detections are correct. Recall asks what fraction of actual positive objects were detected. Both use true positives, but precision includes false positives in its denominator while recall includes false negatives.
The key idea
Precision asks what fraction of positive detections are correct. Recall asks what fraction of actual positive objects were detected. Both use true positives, but precision includes false positives in its denominator while recall includes false negatives.
Suppose ten defective parts exist. A detector finds eight of them and also flags two good parts. Precision is eight out of ten detections. Recall is eight out of ten actual defects. Both equal eighty percent here.
Changing the detection threshold usually trades false alarms against missed targets. A single accuracy number can hide this balance, especially with rare defects. Measure precision and recall on representative data and choose an operating point for the application.
What to remember
- Precision concerns alarms; recall concerns missed targets
- Always identify the positive class and matching rule
- Threshold selection changes the error tradeoff
Check your understanding
How do precision and recall use different denominators?
Show the explanation
Precision divides correct positive detections by all positive detections. Recall divides correctly detected positives by all actual positives, so the metrics expose different error costs.