Zennoxa Shield
Application Security Glossary

Precision and Recall

Precision and recall are two complementary accuracy metrics for detection tools: precision is the share of reported findings that are correct (true positives over all reported), and recall is the share of all real issues that were found (true positives over all actual issues).

Precision and recall measure two different failure modes of any detector, including a security scanner. Precision = true positives / (true positives + false positives) answers 'when the tool flags something, how often is it right?' Recall = true positives / (true positives + false negatives) answers 'of all the real issues that exist, how many did the tool catch?'

The two are in tension. A tool can achieve high precision by only reporting findings it is very sure about, but that risks missing real issues (low recall). Conversely, flagging everything maximizes recall but floods users with false positives (low precision). The F1 score, the harmonic mean of precision and recall, is a common single number that balances the two.

For developers evaluating a security scanner, precision predicts how much triage noise you will face, while recall predicts how much you might miss. High-precision, narrow-coverage tools trade some recall for trustworthy output; broad tools may catch more but require heavier triage. Understanding both numbers — and how they were measured — is essential to judging a scanner honestly.

Frequently asked questions

What is the difference between precision and recall?
Precision is the fraction of reported findings that are actually correct, while recall is the fraction of all real issues that the tool successfully found. Precision reflects noise; recall reflects coverage.
Why can't a tool maximize both precision and recall?
They trade off: reporting only high-confidence findings raises precision but misses real issues (lower recall), while flagging aggressively raises recall but produces more false positives (lower precision).
What is an F1 score?
F1 is the harmonic mean of precision and recall, giving a single balanced measure of accuracy. It is high only when both precision and recall are reasonably strong.

Related terms

Precision and Recall — Zennoxa Glossary — Zennoxa Shield