%3C/text%3E%3C/svg%3E">
💻
💻 Tech & IT

Detection Alerts: Precision, Recall & Base-Rate Calculator

Results update as you type.

Your numbers

Understanding the detection alert precision and base-rate calculator — concept and principle

Intrusion detection systems, antivirus engines and fraud filters are often described by their detection rate and false positive rate. Those numbers sound reassuring, but what analysts actually experience is precision: the share of alerts that are real. This calculator combines the event volume, how rare attacks are and the detector's two error rates to show how many alerts you get per day and how many of them are true.

Base-rate effect on alert precision100 attacks give 99 true alerts while 999,900 normal events give 999.9 false ones, so only 9.01% of 1,098.9 alerts are real.Rare attacks: most alerts are false alarms1,000,000 events a day100 attacks× 99% caught= 99 true999,900 normal× 0.1% flagged= 999.9 falseEvery 100 alerts look like this:≈ 9 real≈ 91 falsePrecision99 ÷ 1,098.9= 9.01%
Even a 99%-accurate detector yields about 9 real alerts per 100, because normal events vastly outnumber attacks.

How it is calculated

Enter all rates as percentages.

The principle

This is Bayes' theorem in counting form. When attacks are rare, the benign events vastly outnumber the malicious ones, so even a tiny false positive rate applied to a huge benign pool produces more alerts than the near-perfect detection applied to a small malicious pool. Stefan Axelsson described this "base-rate fallacy" for intrusion detection in 2000: the false positive rate, not the detection rate, is what limits usefulness. Precision depends on the base rate; recall and false positive rate do not.

Worked example

  1. Inputs: 1,000,000 events per day, malicious rate 0.01%, detection rate 99%, false positive rate 0.1%.
  2. Malicious events = 1,000,000 × 0.0001 = 100.
  3. True alerts = 100 × 0.99 = 99.
  4. Benign events = 999,900; false alerts = 999,900 × 0.001 = 999.9.
  5. Alerts per day = 99 + 999.9 = 1,098.9.
  6. Precision = 99 ÷ 1,098.9 = 9.01%. About nine out of ten alerts are false alarms.
How Alerts per day changes with Events per dayHow Alerts per day changes with Events p…05001,0001,5002,0002,500250,000500,000750,0001e+061.25e+061.5e+062e+06Example: 1,098.9Events per day
Each point is the calculator re-run with only “Events per day” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Events per dayAlerts per day
250,000274.725
500,000549.45
750,000824.175
1e+061,098.9
1.25e+061,373.625
1.5e+061,648.35
2e+062,197.8

How to read the result

A precision of 9% means analysts must look at about 11 alerts to find one real attack. Cutting the false positive rate from 0.1% to 0.01% here would drop false alerts to about 100 per day and raise precision to about 50%. Improving detection from 99% to 99.9% would barely change precision. Also track how many alerts your team can handle each day.

Common mistakes

Keep in mind: The model assumes fixed rates and independent events. Real attack rates vary, alerts are often correlated, and tuning changes both error rates; validate with your own data.

Frequently asked questions

What is the difference between precision and recall?

Recall is the share of real attacks you catch; precision is the share of alerts that are real attacks.

How can precision be improved?

Lower the false positive rate with tuning, allow-lists, correlation of several signals, or a second-stage check before alerting.

Sources: S. Axelsson, "The Base-Rate Fallacy and the Difficulty of Intrusion Detection", ACM Transactions on Information and System Security 3(3), 2000 · T. Fawcett, "An Introduction to ROC Analysis", Pattern Recognition Letters 27(8), 2006

Checked 8 Nov 2026. Standard formulas and RFC/IEEE definitions, computed locally in your browser — nothing you type is sent anywhere.

💻 All tech & IT tools →🌍 Calculators by country →