ReadyCalcs · Guides

Why a Positive Alert Can Still Be Mostly False Alarms

An alert system can be accurate in two familiar ways and still send many false alarms. The missing input is the base rate: how common the event is before the alert. Bayes' theorem combines the base rate with the system's hit and false-alarm rates. A count-based example often makes the result easier to check than a formula alone.

Key takeaways

  • The frequency of an event matters as much as the alert's hit rate.
  • Check a Bayes result with counts that have clear denominators.

Define the event and the signal

Imagine a mail filter that labels messages as suspicious. Suppose one percent of 10,000 messages are actually spam, the filter catches 90% of spam, and it correctly leaves 90% of non-spam unflagged. These are hypothetical teaching numbers, not claims about a real filter. There are 100 spam messages and 9,900 ordinary messages. Catching 90% of spam creates 90 true alerts. Correctly clearing 90% of ordinary mail leaves 10% of 9,900, or 990 ordinary messages, falsely flagged. A high-sounding accuracy figure is therefore not enough to predict the meaning of one alert.

VISUAL EXAMPLEReadyCalcs
In 10,000 hypothetical messages, 90 true alerts and 990 false alarms make only about 8.3% of alerts true spam.True alerts: 90; False alarms: 990 True alerts 90 False alarms 990
Illustrative scenario. In 10,000 hypothetical messages, 90 true alerts and 990 false alarms make only about 8.3% of alerts true spam.These are teaching numbers, not a claim about a real filter.

Count all positive alerts

The system flags 90 true spam messages plus 990 false alarms, or 1,080 messages in total. Among flagged messages, the proportion that are actually spam is 90 ÷ 1,080, about 8.3%. The surprising result comes from the large pool of ordinary mail: even a ten-percent false-alarm rate acting on 9,900 messages overwhelms the true hits among only 100 spam messages. The reverse question is different. Asking how often spam is flagged gives 90%; asking how often a flagged message is spam gives about 8.3%. Confusing these two conditional probabilities is the classic base-rate mistake.

Change one assumption at a time

If spam becomes more common while filter performance remains constant, a positive alert becomes more informative. If the false-alarm rate falls, fewer ordinary messages enter the alert group. Use the Bayes calculator to vary prior probability, sensitivity, and false-positive rate separately, and cross-check the answer with a table of 10,000 imagined cases. Do not multiply unrelated percentages without checking the denominator of each one. Joint probability and conditional probability answer different questions, and the same 90% may mean different things depending on what group was counted.

Try the numbers yourself

Use the prefilled Bayes' Theorem Calculator below to test the situation in “Why a Positive Alert Can Still Be Mostly False Alarms”. Change one input and compare the new result with the worked steps above.

Open the full calculator ↗

Apply the lesson without overconfidence

Fraud detection, quality inspection, and content moderation can all involve rare events and imperfect signals, but their real rates depend on the setting and can change over time. A number calculated from invented inputs is only an illustration. Before acting on a real alert, find the relevant base rate, learn how the system was evaluated, and account for the cost of a false alarm versus a missed case. Keep the evidence separate from the decision rule. A shared calculation is most useful when the three input rates and the population they describe are visible.

Check the model in both directions

With the mail-filter example, the majority of flagged messages are ordinary, but most actual spam messages are still captured. Both statements can be true. Confusion arises when a positive predictive value is treated as a sensitivity or vice versa. Write each rate as a sentence beginning with its denominator: among all spam, 90% were flagged; among all flagged mail, about 8.3% was spam. This simple language check catches many mistaken interpretations before a formula is shared.

Check what a negative signal means as well

The mail-filter example can be examined from the other side. Out of 100 actual spam messages, a filter that catches 90 leaves 10 unflagged. Out of 9,900 ordinary messages, a filter that correctly clears 90% leaves 8,910 unflagged. Among the 8,920 messages without an alert, 10 are spam, or roughly 0.11%. This is a different conditional probability from the share of flagged messages that are spam. Both calculations start from the same imagined population, but they divide by different groups. Writing the counts first prevents a denominator from being swapped accidentally.

The negative result may look reassuring under this particular low base rate, yet it is still based on hypothetical filter behavior. A real system can behave differently for new types of spam or a changed inbox population. The share of spam among unflagged messages will move if prevalence, detection, or false-alarm performance moves. Do not carry this example into fraud, health, or safety decisions without relevant measured inputs. A calculator can combine assumed rates correctly, but it cannot verify that the rates describe the people or events where a decision will be made.

Choose an action rule separately from a probability

A posterior probability is not an automatic instruction. One organization may inspect a flagged item before acting; another may allow a low-cost second test. The appropriate response depends on the cost of a false alarm, the cost of missing a real event, and whether confirmation is possible. Changing a threshold can raise the hit rate while also raising false alarms, so compare both effects on the relevant population. If the underlying event is rare, small changes to the false-positive rate can have a large effect on how trustworthy a positive alert appears.

When discussing an alert publicly, name the prior rate, sensitivity, and false-positive rate and explain who or what each denominator contains. Keep performance measured on a test set separate from performance expected in a new setting. Ask whether the evaluation sample resembles the population now being screened and whether the system has changed since measurement. Share the result as a worked scenario rather than a universal reliability figure. The count table is often easier for a reader to challenge and update than a bare formula or a single impressive accuracy percentage.

If a result seems surprising, rebuild it with a small imaginary population and labelled boxes for true events, ordinary cases, hits, misses, and false alarms. Confirm that all boxes add back to the total population before taking any ratio. This check makes a missing or duplicated group visible. In a real application, seek measured rates from the relevant setting and remember that a system may drift over time. Even an accurately computed posterior probability does not define the right action without considering consequences.

Try the calculators

Sources and further reading

More guides