Precision
Quality metric: the proportion of correct predictions among all predicted 'positive' responses. Answers the question 'how many of my 'yes' predictions were correct?'.
Formula
Precision = TP / (TP + FP)
- TP — correctly predicted 'yes';
- FP — false 'yes' (error).
Example
The system found 10 spam emails, of which 7 were actually spam. Precision = 7/10 = 0.7.
When Important
When false positives are costly. For example, in medicine: it's better not to diagnose and recheck than to make a false diagnosis.
Precision vs Recall
| Precision | Recall | |
|---|---|---|
| Question | How many of the 'yes' are correct | How many real 'yes' are found |
| Catch | False positives | Misses |
The balance between them shows F1 Score.