liveBook · Manning

Precision

As explained in Machine Learning System Design

The proportion of predicted positive cases that are actually positive.

When a fraud model flags a transaction, precision asks how often the flag is right. It is the proportion of predicted positives that are actually positive: precision = TP / (TP + FP), where TP is true positives and FP is false positives. section 5.2

Comparing fraud alerts

Suppose two models each catch 80 of 100 fraudulent transactions. If model A also flags 20 legitimate transactions, its precision is 80%. If model B flags 920 legitimate transactions, its precision is 8%. Both have 80% recall, but their alert quality differs. section 5.2

Precision can change as the balance of fraud and legitimate transactions changes, even if the model’s true-positive and false-positive rates stay fixed. Recall and specificity are insensitive to class balance, so comparing them can help when fraud prevalence varies. Choose metrics according to the operational goal rather than relying on precision alone. section 5.2

How Machine Learning System Design covers it

How deep it goes
Calculates precision and compares its sensitivity to class balance with recall and specificity.
Examples
Compares two fraud models that catch the same number of fraudulent transactions but flag different numbers of legitimate ones.
What you can do after
Evaluate fraud classifiers by interpreting precision alongside class balance and recall.
How it connects
Connects precision to recall, specificity, false positives, and class imbalance.

Also explained in

Compare how 20 books explain precision →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.