What is a false positive?
A false positive is when a test or classification model marks an example that is actually negative as positive, such as benign activity flagged as malicious. In statistics it is also called a type I error.
Unlike a false negative, which misses a real positive, it errs in the other direction. Both are counted in a confusion matrix and trade off: raising the decision threshold lowers false alarms but also lowers the detection rate.
- Topic
- Evaluation and quality
- Also known as
- False alarm, type I error
- Origin
- Type I error in statistical hypothesis testing
How a false positive works
- The model scores each example and calls it positive above a threshold.
- The decision is compared with the true label; each actual negative called positive is a false positive.
- The share of actual negatives wrongly called positive is the false positive rate, also called the false alarm rate.
- As false positives rise, precision falls; lowering the threshold too far introduces new false positives.
In more detail
Significance level and type I error
In hypothesis testing the significance level sets how often a true null hypothesis will be rejected. A level of 0.05, for example, means the test rejects a true null hypothesis 5% of the time, producing false positives at a 5% rate.
Commonly confused terms
| Term | How it differs |
|---|---|
| Precision | Precision is a metric: it shows how many of the examples a model calls positive are actually positive. A false positive is an individual error that sits in the denominator of precision; fewer false positives mean higher precision. |
Why a false positive matters for on-premises AI
A study of intrusion detection showed that, under reasonable assumptions, the false alarm rate is the limiting factor for performance because of the base-rate fallacy. In its example a 99% accurate test for a disease affecting one person in 10,000 gives a positive result that means only about a 1% chance of disease, because the healthy population is much larger.
When a bank's fraud model raises a false positive, a legitimate customer's card is blocked needlessly. The team sets the threshold by review capacity and customer complaints as well as the fraud caught, tracking false positives and missed cases separately.
Common questions
What is the difference between a false positive and a false negative?
A false positive treats something absent as present; a false negative misses something that is present. Which is costlier depends on the use case.
How can false positives be reduced?
Raise the decision threshold, add misleading negative examples to the training data or send high-scoring cases to a second check. A higher threshold can lower recall, so both errors are tracked together.
What does a false positive mean in AI guardrails?
A harmless prompt judged harmful and blocked. In language models a similar effect appears as refusing harmless requests, known as over-refusal; guardrail thresholds are therefore tuned by tracking both missed attacks and blocked harmless requests.
Related terms
Sources
- NIST Computer Security Resource Center Glossary, False Positive
- The Base-Rate Fallacy and the Difficulty of Intrusion Detection, ACM TISSEC, 2000
- scikit-learn documentation, Precision-Recall
- NIST SEMATECH e-Handbook of Statistical Methods, Critical values and p values
In the glossary: Glossary, E to L