01 Key Concepts
The Core Idea
Bayes' Theorem updates the probability of a cause (A) after observing some evidence (B).
Bayes' Theorem Formula
P(A|B) = [P(B|A) * P(A)] / P(B).
Law of Total Probability
When A has several possible non-overlapping cases (A1, A2, ...), P(B) = sum of P(B|Ai)*P(Ai) over all i โ needed to compute the denominator in Bayes' formula.
Prior vs. Posterior Probability
P(A) is the 'prior' belief before seeing evidence. P(A|B) is the 'posterior' belief after incorporating the evidence B.
Common Application
Medical testing: given a positive test result (B), find the true probability of having a disease (A), accounting for false positives and the disease's rarity.
02 Key Formulas
- P(A|B) = [P(B|A) * P(A)] / P(B)
- P(B) = P(B|A)*P(A) + P(B|A')*P(A')
03 Solved Examples
- Let A = has disease, so P(A) = 0.01, P(A') = 0.99.
- P(positive|A) = 0.90, P(positive|A') = 0.05.
- Find P(positive) = P(positive|A)*P(A) + P(positive|A')*P(A') = 0.90*0.01 + 0.05*0.99 = 0.009 + 0.0495 = 0.0585.
- Apply Bayes: P(A|positive) = (0.90*0.01)/0.0585 = 0.009/0.0585.
- P(A)=0.6, P(B)=0.4. P(defective|A)=0.02, P(defective|B)=0.05.
- P(defective) = 0.02*0.6 + 0.05*0.4 = 0.012 + 0.02 = 0.032.
- P(B|defective) = (0.05*0.4)/0.032 = 0.02/0.032.
- P(A) is the prior probability โ our belief about A before any evidence.
- P(A|B) is the posterior probability โ the updated belief about A after learning that B occurred.
04 Practice Questions
๐ Bayes' Theorem โ Downloadable Worksheet
10 questions with a full answer key. Grab the PDF to print, or try the interactive version in your browser.