Precision
Precision is a classification metric that measures what proportion of the cases a model flags as positive really are. We explain its formula, its place in the confusion matrix, why it should not be confused with accuracy, its tension with recall and when a high precision is worth prioritizing.
Precision is a classification metric that measures what proportion of the cases a model predicts as positive are really positive. Its formula is precision = TP / (TP + FP), where TP are the true positives (hits) and FP the false positives (false alarms). It answers the question: of everything the model flagged, how much did it get right?
The confusion matrix
Precision is read in the confusion matrix, which crosses what is predicted with what is real in four cells: true positives (TP), false positives (FP), true negatives (TN) and false negatives (FN). Precision focuses on the column of what the model declared positive, and penalizes false positives.
Precision is not the same as accuracy
A frequent mistake is to confuse precision with accuracy, which is the proportion of total hits, (TP + TN) over all cases. Accuracy can be misleading with imbalanced classes: if only 1% of cases are positive, a model that always says “negative” is right 99% of the time while being useless. Precision does not fall into that trap, because it focuses on the quality of the positive predictions.
Precision versus recall
Precision is the flip side of recall (TP / (TP + FN)): precision penalizes false positives; recall, false negatives. And they are usually in tension: raising the threshold so the model only flags what it is very sure of improves precision, but lets positives slip and lowers recall. The F1 score, the harmonic mean of the two, sums up that balance in a single number.
When to prioritize precision
A high precision matters when a false positive is costly. The classic example is the spam filter: marking a legitimate email—a job offer, a message from a client—as junk is more harmful than letting some spam through, so precision is prioritized. In information retrieval one also speaks of precision—the fraction of retrieved results that are relevant—and of precision@k, which measures it only among the first k results.
Pieces using this term
- How to tell if a news outlet is citing a source or just invoking authority (2026-07-27)
- How to verify a chatbot claim before you use it (2026-07-26)
- We Asked Our Own March Piece for Its Sources. Here's What We Found (2026-07-26)
- Your Loyalty Card Isn't Just a Discount Anymore — It's How an AI Knows It's You (2026-07-26)
- Agricultural AI needs data before promises (2026-07-25)
- A solver can perfectly solve the wrong problem (2026-07-25)
- An agent is not better just because it reflects more (2026-07-21)
- AI found a critical OpenVM flaw, but human auditing closed the case (2026-07-21)
This article was produced with artificial intelligence under human editorial oversight.