Exam P · Conditional Probability & Bayes · Free Lesson

Bayes' Theorem and Law of Total Probability

Free SOA Exam P (Probability) lesson in Conditional Probability & Bayes. 23 min read, ~3,490 words.

A 99%-sensitive test on a 1-in-1,000 disease produces a positive result. Intuition says 99% chance of disease. The actual probability is under 2%, because false positives from the 99.9% healthy population overwhelm the true positives.

Let B1,…,Bn B_1, \ldots, B_n partition S S with each P(Bi)>0 P(B_i) > 0 . For any event A A :

P(A)=∑i=1nP(A∣Bi)⋅P(Bi)P(A) = \sum_{i=1}^{n} P(A \mid B_i) \cdot P(B_i)

The simplest case uses {B,Bc} \{B, B^c\} :

P(A)=P(A∣B)P(B)+P(A∣Bc)P(Bc)P(A) = P(A \mid B) P(B) + P(A \mid B^c) P(B^c)

HIGH-FREQUENCY: The law of total probability appears in nearly every Bayes problem as the denominator. It also appears standalone when a problem gives class-specific conditional probabilities and asks for the overall probability.

Reverses the conditioning direction:

P(Bj∣A)=P(A∣Bj)⋅P(Bj)∑i=1nP(A∣Bi)⋅P(Bi)P(B_j \mid A) = \frac{P(A \mid B_j) \cdot P(B_j)}{\sum_{i=1}^{n} P(A \mid B_i) \cdot P(B_i)}

Read the full lesson, free →
Worked examples and practice. Free with a free account, no card.

Common mistakes

Bottom line

Exam shortcut

Set up a three-column table: (1) scenario, (2) prior times likelihood, (3) posterior. Fill the second column for each Bi B_i , sum it to get P(A) P(A) , then divide each row to get posteriors. "Numerator is the Hit, Denominator is the Law." Numerator = likelihood times prior. Denominator = law of total probability.

The full lesson (about 3,490 words, 23 min read) adds 6 worked examples, all 7 common mistakes, a self-check, free in the app.

Learning objectives

Browse all free Exam P lessons or jump into free Exam P practice questions.