The Law of Total Probability

Law of Total Probability

Let A1,...,Ak be a partition of the sample space S. Then for any other event B:

P(B)=P(A1)P(A2|A1)++P(Ak)P(B|Ak)=i=1kP(Ai)P(B|Ai)

Proof
Because the Ai's form a partition then if B occurs it must be in conjunction with exactly one of the Ai's. This "partitioning" of B is show in the figure below:

Pasted image 20240930225419.png

By the Multiplication Rule for Conjunct we have P(AiB)=P(Ai)P(B|Ai) so then:

P(B)=i=1kP(AiB)=i=1kP(Ai)P(B|Ai)

University Example

Say we have information on enrollment and six-year graduation rate for 4 campuses:
Pasted image 20240930225719.png
What is the overall six-year graduation rate for the entire system? Namely, what is the probability that a randomly selected student from this university system graduates within six-years?

Proof
Let's say Ai={student is from campus #i} for i=1,2,3,4 and B={the student graduated within six years}. For example P(A1)=.45, P(B|A2)=.58 and so on.

Apply the Law of Total Probability:

P(B)=.45.51+.26+.58++.13.64=.5515

Notice that this is a weighted sum of the probabilities: schools with more enrollment get more of a say as to the number of six-year graduates.