SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · Idea

Base-rate fallacy

The base-rate fallacy is the error of judging how likely a positive test result is to be true from the test's accuracy alone, ignoring how rare the condition is. By Bayes' rule, the probability that an alarm is a real event is P(I)P(A given I) / (P(I)P(A given I) + P(not I)P(A given not I)), where P(I) is the prevalence, P(A given I) the sensitivity and P(A given not I) the false-positive rate. When the event is rare, the false-positive term can swamp the true-positive term.

Axelsson's 2000 paper applied this to intrusion detection. He imagined an installation producing about a million audit records a day, estimated that an intrusion affects about ten records, and so took an event of ten records: 100,000 events a day with two intrusions, a prevalence of 2 x 10^-5 per event. With a detection rate of 1.0 and a false alarm rate of 10^-5 per event, about one false alarm a day, he found the probability that an alarm is a real intrusion to be about 66%; with a detection rate of 0.7 it is about 58%. He concluded that the false alarm rate, not the detection rate, is the limiting factor for such systems.1

An extension of his numbers shows how quickly it degrades: at the same prevalence, sensitivity 70% and a false-positive rate of 0.1% give about 1.4 true and 100 false alarms a day, so roughly 1.4% of alarms are real, while a balanced test set would report 84.95% accuracy for the same rates. Precision can be recalculated at a new prevalence only if the sensitivity and false-positive rate measured at a fixed threshold carry over to the new population; a single accuracy figure cannot be converted.

Sommer and Paxson cite Axelsson for the point that even a small false-positive rate can render a network intrusion detection system unusable,2 and Arp et al. list the base-rate fallacy among ten pitfalls of machine learning in security research, alongside data snooping, sampling bias and inappropriate performance measures.3 The practical remedy is to ask for sensitivity and false-positive rate at the same threshold on representative data and compute precision at your own prevalence.

Source · The Base-Rate Fallacy and the Difficulty of Intrusion Detection (opens in a new tab) · Stefan Axelsson, ACM TISSEC 3(3), August 2000

References

  1. The Base-Rate Fallacy and the Difficulty of Intrusion Detection (opens in a new tab) · Stefan Axelsson, ACM Transactions on Information and System Security 3(3), pp. 186-205 · August 1, 2000 ↩
  2. Outside the Closed World: On Using Machine Learning For Network Intrusion Detection (opens in a new tab) · Sommer and Paxson, IEEE Symposium on Security and Privacy, 2010 · May 1, 2010 ↩
  3. Dos and Don'ts of Machine Learning in Computer Security (opens in a new tab) · Arp et al., USENIX Security 2022 (arXiv) · November 30, 2021 ↩

Research articles

See what connects to it on the map of ideas →

See also