MathClario
← Back to High school
High school🎲Probability●●○○○· 4 min
🎲

Law of total probability: partition to count

P(A) = ΣP(A ∩ B_i) = ΣP(A|B_i)·P(B_i). Decompose over a partition.

The idea

To compute P(A)P(A), split the sample space into pieces B1,B2,…,BnB_1, B_2, \ldots, B_n forming a partition:

  • Pairwise incompatible: Bi∩Bj=∅B_i \cap B_j = \emptyset
  • Union equal to Ω\Omega: B1∪B2∪…∪Bn=ΩB_1 \cup B_2 \cup \ldots \cup B_n = \Omega

Then:

P(A)=P(A∩B1)+P(A∩B2)+…+P(A∩Bn)P(A) = P(A \cap B_1) + P(A \cap B_2) + \ldots + P(A \cap B_n)

Conditional version:

P(A)=P(A∣B1)P(B1)+P(A∣B2)P(B2)+…+P(A∣Bn)P(Bn)P(A) = P(A | B_1) P(B_1) + P(A | B_2) P(B_2) + \ldots + P(A | B_n) P(B_n)

Case n=2n = 2: partition B,B‾B, \overline{B}

P(A)=P(A∩B)+P(A∩B‾)=P(A∣B)P(B)+P(A∣B‾)P(B‾)P(A) = P(A \cap B) + P(A \cap \overline{B}) = P(A|B) P(B) + P(A|\overline{B}) P(\overline{B})

The most common version in high school.

Example: screening test

A disease affects 2%2 \% of the population. A test:

  • Positive if sick: 99%99 \%
  • Positive if healthy: 5%5 \% (false positives)

Question: what’s the probability a random test is positive?

Let MM = “sick”, TT = “test positive”.

P(M)=0.02P(M) = 0.02, P(M‾)=0.98P(\overline{M}) = 0.98 P(T∣M)=0.99P(T | M) = 0.99, P(T∣M‾)=0.05P(T | \overline{M}) = 0.05

Law of total probability:

P(T)=P(T∣M)P(M)+P(T∣M‾)P(M‾)=0.99×0.02+0.05×0.98P(T) = P(T|M) P(M) + P(T|\overline{M}) P(\overline{M}) = 0.99 \times 0.02 + 0.05 \times 0.98

P(T)=0.0198+0.049=0.0688≈6.9%P(T) = 0.0198 + 0.049 = 0.0688 \approx 6.9 \%

On a tree diagram

Each path contributes with the product of its branches. Summing all paths leading to AA gives P(A)P(A).

That’s exactly the law of total probability visualized.

Common mistakes

  1. Adding without conditioning: P(A)≠P(A∣B)+P(A∣B‾)P(A) \neq P(A | B) + P(A | \overline{B}).
  2. Forgetting to multiply by P(Bi)P(B_i) in the conditional version.
  3. Using a “partition” that isn’t (union ≠Ω\neq \Omega).
  4. Confusing P(A∩B)P(A \cap B) and P(A∣B)P(A | B).
?À toi de jouer

P(A|B) = 0.3, P(A|B̄) = 0.6, P(B) = 0.4. P(A) = ?

Mini-quiz

Question 1 / 3

P(A|B) = 0.8, P(A|B̄) = 0.2, P(B) = 0.5. P(A) = ?

#probability#total probability#partition#tree diagram#grade 12

You might also like