Precision
The share of positive predictions that are actually correct.
Of ten flags, how many deserve attention?
In a fictional inspection run, a camera flags ten tiles. An inspector checks the flagged tray and confirms eight cracks.
8 confirmed
Eight flagged tiles have a crack. Each is a true positive.
2 false alarms
Two flagged tiles have surface marks the inspector accepts. Each is a false positive.
Precision = 8 ÷ (8 + 2) = 80%. Start with the ten flags whenever the question is about the reliability of the inspection queue.
What a shorter queue can hide
A stricter threshold might produce a tray with fewer false alarms. To see what that costs, inspect tiles that passed as well. In this run there were sixteen cracked tiles altogether, so eight never reached the tray. A high proportion of useful flags can coexist with many missed defects.
Follow the idea
Recall counts the cracked tiles the inspection system found.
F1 score combines the two rates for this same inspection run.
Related concepts
Examples in the AI guides
More chapter examples (1)
Source · scikit-learn’s guide to scoring predictions
Return to Precision in the A–Z glossary