Bayes' Theorem
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
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 B | probability |
| P(A) | Starting (prior) probability of A | probability |
| P(B|A) | Chance of seeing B if A is true | probability |
| 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.116 | 15.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%