What is precision?

Precision is a metric showing how many of the examples a model flags as positive are truly positive, computed as true positives divided by the sum of true positives and false positives.

Unlike recall, which looks at actual positives and penalises missed cases, precision looks at what the model called positive and penalises false alarms. Raising the threshold usually raises precision and lowers recall; the F1 score combines both. In retrieval, precision measures how many retrieved results are relevant.

Topic
Evaluation and quality
Also known as
Positive predictive value, PPV

How precision works

  1. The model's positive predictions on a labelled evaluation set are identified.
  2. Those truly positive count as true positives, the rest as false positives.
  3. Precision is true positives as a share of all positive predictions.
  4. Varying the decision threshold traces the precision versus recall trade-off on a curve.

In more detail

Term clash: evaluation precision versus numerical precision

Because the term "precision" is heavily overloaded in AI, evaluation precision (TP / (TP + FP)) should not be confused with numerical precision (e.g., FP32, BF16, FP8 or INT4), which describes how many bits store model weights and activations during training and inference.

Multi-class averages and precision@k for RAG

In multi-class classification, precision is reported per class and summarised via macro-averaging (unweighted mean across classes, highlighting minority-class errors), micro-averaging (pooled counts, dominated by frequent classes) or weighted averaging. In RAG and search, rank-aware metrics such as Precision@k and Mean Average Precision (mAP) evaluate how many of the top-k retrieved chunks are truly relevant.

Base-rate dependence and transfer to production

Precision depends heavily on class prevalence (the base rate of positives in the dataset). A model with 99% sensitivity and 99% specificity can still yield low precision when true positives are very rare, because even a 1% false-positive rate over millions of negative events produces many false alarms (the base-rate fallacy). Consequently, precision measured on a balanced lab dataset cannot be assumed to hold in skewed production traffic.

Commonly confused terms

TermHow it differs
SpecificityPrecision evaluates positive predictions (TP / (TP + FP)), whereas specificity evaluates true negatives among all actual negatives (TN / (TN + FP)), which can look artificially high in heavily imbalanced datasets.

Why precision matters for on-premises AI

Precision matters most where false alarms are costly, such as blocking a customer transaction or freezing an account. A study of binary classifiers on imbalanced data shows that when negatives greatly outnumber positives, ROC plots can mislead through an intuitive but wrong reading of specificity, while precision-recall plots predict future performance more accurately because they measure the share of true positives among positive predictions. Example calculation: if a model flags 50 transactions and 40 are truly suspicious, precision is 40 divided by 50, or 80%.

ON-PREMISES EXAMPLE

A security operations centre makes precision the lead metric for its alert triage model to protect analyst time, while tracking recall separately on critical threat classes to limit missed attacks.

Common questions

How does precision differ from recall?

Precision measures how many positive predictions are right. Recall measures how many actual positives are caught.

Is high precision always good?

No. A model can raise precision by flagging very few examples while missing many cases. Judge precision together with recall.

Sources

In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.