Quant Memo
Core

The Prosecutor's Fallacy

The error of confusing 'how unlikely this evidence is if innocent' with 'how likely this person is innocent given the evidence' — two very different numbers that get swapped constantly, in courtrooms and in quant model validation alike.

Prerequisites: Bayes' Theorem

A risk model flags a trader's activity as matching a rare fraud pattern that occurs in only 1 in 10,000 innocent traders. The compliance team reasons: "there's only a 1-in-10,000 chance of seeing this pattern if the trader is innocent, so there's a 99.99% chance the trader is guilty." That sounds airtight, and it's exactly the reasoning that gives the prosecutor's fallacy its name — because it's the mistake real prosecutors have made in real trials. The number 1-in-10,000 answers the question "how likely is this evidence, given innocence?" It does not answer the question everyone actually cares about: "how likely is innocence, given this evidence?" Those are different numbers, and confusing them can turn an innocent person's rare-but-real coincidence into "near-certain guilt."

An analogy: tall people and basketball

Suppose only 1 in 10,000 people is over 7 feet tall. If you learn someone is over 7 feet tall, does that mean there's a 99.99% chance they're in the NBA? Obviously not — most 7-footers are not NBA players. The rarity of the trait (being 7 feet tall) among the general population says almost nothing on its own about the probability of a particular explanation for it (being a pro player), because that depends on how many other 7-footers exist and how many of them aren't NBA players. You need to know the relative sizes of both the "guilty" and "innocent" populations, not just how rare the trait is in one of them.

The logic, one piece at a time

Let EE be the observed evidence (the flagged pattern), and let HH be the hypothesis of innocence. The evidence's rarity under innocence is P(EH)=1/10,000P(E \mid H) = 1/10{,}000 — a small number. The prosecutor's fallacy treats this as if it were P(HE)P(H \mid E), the probability of innocence given the evidence. Bayes' rule shows why these differ:

P(HE)=P(EH)P(H)P(E).P(H \mid E) = \frac{P(E \mid H) \, P(H)}{P(E)}.

In plain English: the probability of innocence given the evidence depends not just on how rare the evidence is among innocent people, P(EH)P(E\mid H), but also on the base rate of innocence in the first place, P(H)P(H), and on how common the evidence is overall, P(E)P(E) — which includes how often guilty traders also show this pattern. If innocent traders vastly outnumber guilty ones (as they almost always do), even a rare-per-innocent-trader pattern can still be seen mostly among innocent traders in absolute terms, simply because there are so many more of them to draw from.

Worked example 1: the fraud flag, with numbers

Suppose 1,000,000 traders are innocent and only 100 are actually running the fraud scheme. Among innocent traders, the flagged pattern occurs at rate 1/10,0001/10{,}000, so 1,000,000/10,000=1001{,}000{,}000 / 10{,}000 = 100 innocent traders get flagged. Among the 100 guilty traders, suppose the pattern is much more common — it occurs 90% of the time — so 9090 guilty traders get flagged. Total flagged: 100+90=190100 + 90 = 190. Given a flag, the probability of actual guilt is

P(guiltyflagged)=9019047%,P(\text{guilty} \mid \text{flagged}) = \frac{90}{190} \approx 47\%,

nowhere near the naive "99.99% guilty" the raw 1-in-10,000 rarity implied. Roughly half of all flagged traders are innocent, purely because there are so many more innocent traders overall that even a rare false-positive rate produces a large absolute number of false flags.

Worked example 2: how the base rate flips the conclusion

Now suppose fraud is even rarer — only 10 guilty traders exist among the same 1,000,000 innocent ones, with the same detection rates (1-in-10,000 false-positive rate, 90% true-positive rate). Flagged innocents: still 100100. Flagged guilty: 10×0.9=910 \times 0.9 = 9. Then P(guiltyflagged)=9/(100+9)8.3%P(\text{guilty} \mid \text{flagged}) = 9/(100+9) \approx 8.3\% — the exact same "1-in-10,000 evidence" now corresponds to over 90% probability of innocence, simply because the pool of people it could have falsely flagged is so much larger than the pool it could have correctly flagged. The evidence's rarity never changed; the conclusion flipped entirely because of the base rate.

100 innocent 90 guilty 100 fraudsters exist: 47% guilty 100 innocent 9 guilty 10 fraudsters exist: 8% guilty
The same "1-in-10,000 false positive rate" evidence implies wildly different guilt probabilities depending on how many guilty traders actually exist — the base rate, not the evidence's rarity alone, drives the answer.

Bayes updater
00.51dashed = prior · solid = posterior
data 7/10posterior mean 0.643prior mean 0.500

Set a low prior and feed in "evidence" above: notice how much the posterior depends on where the prior started, not just on how strong any single piece of evidence looks — the same logic that makes fraud-flag rarity alone an unreliable guide to guilt.

What this means in practice

The prosecutor's fallacy is everywhere in quant risk and compliance work: a model that flags "1-in-a-million unlikely under the null" trading patterns as fraud, without accounting for how many total traders were tested and how rare actual fraud is among them; a backtest p-value treated as "probability the strategy has no real edge," when it's really the probability of the data given no edge. Any alert system built on "how rare is this under the innocent/null scenario" needs the base rate of the thing it's trying to detect before its raw hit rate can be turned into a trustworthy probability.

P(evidenceinnocent)P(\text{evidence} \mid \text{innocent}) and P(innocentevidence)P(\text{innocent} \mid \text{evidence}) are different numbers connected by Bayes' rule through the base rate of guilt — a rare-under-innocence pattern can still mostly show up among innocent people in absolute terms if innocent people vastly outnumber guilty ones.

The classic mistake is reporting or acting on "how unlikely this evidence is under the null/innocent hypothesis" as if it were "the probability the null/innocent hypothesis is true." This exact confusion appears constantly with p-values (treated as "probability the strategy has no edge") and fraud-detection flags (treated as "probability of guilt") — always ask what the base rate of the alternative is before converting a rarity statement into a probability-of-explanation statement.

Related concepts

Practice in interviews

Further reading

  • Thompson & Schumann, Law and Human Behavior (1987)
  • Gigerenzer, Calculated Risks, ch. 9
ShareTwitterLinkedIn