The idea
To compute P(A), split the sample space into pieces B1,B2,…,Bn forming a partition:
- Pairwise incompatible: Bi∩Bj=∅
- Union equal to Ω: B1∪B2∪…∪Bn=Ω
Then:
P(A)=P(A∩B1)+P(A∩B2)+…+P(A∩Bn)
Conditional version:
P(A)=P(A∣B1)P(B1)+P(A∣B2)P(B2)+…+P(A∣Bn)P(Bn)
Case n=2: partition B,B
P(A)=P(A∩B)+P(A∩B)=P(A∣B)P(B)+P(A∣B)P(B)
The most common version in high school.
Example: screening test
A disease affects 2% of the population. A test:
- Positive if sick: 99%
- Positive if healthy: 5% (false positives)
Question: what’s the probability a random test is positive?
Let M = “sick”, T = “test positive”.
P(M)=0.02, P(M)=0.98
P(T∣M)=0.99, P(T∣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.98
P(T)=0.0198+0.049=0.0688≈6.9%
On a tree diagram
Each path contributes with the product of its branches. Summing all paths leading to A gives P(A).
That’s exactly the law of total probability visualized.
Common mistakes
- Adding without conditioning: P(A)=P(A∣B)+P(A∣B).
- Forgetting to multiply by P(Bi) in the conditional version.
- Using a “partition” that isn’t (union =Ω).
- Confusing P(A∩B) and P(A∣B).
?À toi de jouer
P(A|B) = 0.3, P(A|B̄) = 0.6, P(B) = 0.4. P(A) = ?