Evaluation

Precision

Precision is the fraction of predicted positives that are truly positive.

Said yesSaid noActual yesTP 80FN 20Actual noFP 40TN 860Precision = 80 / (80 + 40) = 0.67.
Precision is the fraction of predicted positives that are truly positive. Values shown in the worked visual are illustrative unless the labels state otherwise.

How it works

It answers how often a positive alert is correct. Precision matters when false positives are costly.

A concrete example

Illustrative: 72 true positives and 18 false positives give precision 72/90 = 0.80.

Do not confuse it with Recall

precision conditions on predictions; recall conditions on actual positives.

Study the full lesson