We've been over this ground before, but somebody recently shared this with me: An Intuitive (and Short) Explanation of Bayes’ Theorem
The examples with medical tests are good:
And here’s the decoder key to read it:
- Pr(A|X) = Chance of having cancer (A) given a positive test (X).
This is what we want to know: How likely is it to have cancer with a
positive result? In our case it was 7.8%.
- Pr(X|A) = Chance of a positive test (X) given that you had cancer (A). This is the chance of a true positive, 80% in our case.
- Pr(A) = Chance of having cancer (1%).
- Pr(~A) = Chance of not having cancer (99%).
- Pr(X|~A) = Chance of a positive test (X) given that you didn’t have cancer (~A). This is a false positive, 9.6% in our case.