Skip to main content

Bayes' Theorem

IntermediateFinance FoundationsAlso known as: Bayes rule, update a probability, false positive, posterior probability

Finds: A probability updated by evidence.

When to use it: Use it to revise a probability when new evidence arrives, for example how likely a borrower is to default after a warning signal. It shows why a rare event stays unlikely even after a fairly accurate warning.

The formula

P(A∣B)\displaystyle P(A\mid B)=P(B∣A) P(A)P(B∣A) P(A)+P(B∣¬A) P(¬A)\displaystyle =\frac{P(B\mid A)\,P(A)}{P(B\mid A)\,P(A)+P(B\mid \neg A)\,P(\neg A)}

In words: P(A given B) = P(B given A) x P(A) / (P(B given A) x P(A) + P(B given not A) x P(not A))

What each symbol means

P(A|B)Updated probability of A after seeing Bprobability
P(A)Starting (prior) probability of Aprobability
P(B|A)Chance of seeing B if A is trueprobability
P(B|not A)Chance of seeing B if A is not true (a false alarm)probability

Worked example

2% of borrowers default. A warning model flags 90% of borrowers who default, and also flags 10% of borrowers who do not. A borrower is flagged. What is the chance they default?

P(B)0.9 × 0.02 + 0.1 × (1 − 0.02)11.60%
P(A|B)0.9 × 0.02 ÷ 0.11615.52%
The answer

Only 15.52% of flagged borrowers actually default, because most flagged borrowers come from the large group of non-defaulters.

Want every formula on a few pages?Get the free Cheat Sheet (PDF) →

Calculator

P(A|B)15.52%

Keep going