The four cells

Actually bad (event)Actually good
Flagged as badTrue positive (TP)False positive (FP)
Flagged as goodFalse negative (FN)True negative (TN)

Precision = TP ÷ (TP + FP)  ·  Recall = TP ÷ (TP + FN)  ·  Accuracy = (TP + TN) ÷ total

Worked example (illustrative figures)

10,000 applicants, 1,000 of them bad. The model flags the riskiest 20%, 2,000 applicants:

Actually badActually good
Flagged as bad (declined)6001,400
Flagged as good (approved)4007,600

Recall is 60%: the model catches 600 of the 1,000 bads. Precision is 30%: 3 in 10 declined applicants would have been bad. Accuracy is 82%. Note that declining nobody would give 90% accuracy and catch no bads, so accuracy alone is misleading when events are rare.

The threshold is a business decision

Moving the threshold trades false positives for false negatives. In credit a false positive is a good customer declined (lost margin) and a false negative is a bad loan approved (a loss). The right threshold is where the cost of both errors, weighted by their frequency, is lowest.

How Thorcast.AI helps

Frequently asked questions

What is the difference between precision and recall?

Precision: of those flagged as events, how many really were. Recall: of all real events, how many the model flagged.

Why is accuracy misleading for credit or fraud?

Because events are rare. If 2% of transactions are fraud, a model that flags nothing is 98% accurate and useless.

Which threshold should I use?

The one that minimizes the combined cost of false positives and false negatives for your business, not the default 0.5.

Related terms and guides