Skip to content

Mathematics · Ch 7 — Probability

Total Probability Theorem

4

Total Probability Theorem

Partition of a Sample Space

A collection of events E1,E2,…,EnE_1,E_2,\dots,E_n is called a partition of the sample space SS if:

  1. Ei∩Ej=∅E_i\cap E_j=\varnothing for all i≠ji\ne j (the events are pairwise mutually exclusive), and
  2. E1∪E2∪⋯∪En=SE_1\cup E_2\cup\cdots\cup E_n=S (the events are exhaustive -- together they cover every possible outcome).

Every outcome of the experiment therefore belongs to exactly one of E1,…,EnE_1,\dots,E_n.

Statement of the Theorem

Let E1,E2,…,EnE_1,E_2,\dots,E_n be a partition of SS with P(Ei)>0P(E_i)>0 for every ii, and let AA be any event of SS. Then

P(A)=∑i=1nP(Ei) P(A∣Ei)=P(E1)P(A∣E1)+P(E2)P(A∣E2)+⋯+P(En)P(A∣En).P(A) = \sum_{i=1}^{n} P(E_i)\,P(A\mid E_i) = P(E_1)P(A\mid E_1)+P(E_2)P(A\mid E_2)+\cdots+P(E_n)P(A\mid E_n).

Proof

Since E1,…,EnE_1,\dots,E_n partition SS, the event AA can be written as the union of its pieces lying in each EiE_i:

A=A∩S=A∩(E1∪E2∪⋯∪En)=(A∩E1)∪(A∩E2)∪⋯∪(A∩En).A = A\cap S = A\cap(E_1\cup E_2\cup\cdots\cup E_n) = (A\cap E_1)\cup(A\cap E_2)\cup\cdots\cup(A\cap E_n).

Because the EiE_i are pairwise disjoint, the sets A∩EiA\cap E_i are also pairwise disjoint, so by the addition rule for mutually exclusive events,

P(A)=∑i=1nP(A∩Ei).P(A) = \sum_{i=1}^n P(A\cap E_i).

Applying the multiplication theorem (Section 2) to each term, P(A∩Ei)=P(Ei)P(A∣Ei)P(A\cap E_i)=P(E_i)P(A\mid E_i), gives exactly the stated formula. ■\blacksquare

Why This Is Useful

The theorem is the standard tool whenever an event AA can occur through several distinct, non-overlapping "routes" or "causes" E1,…,EnE_1,\dots,E_n -- e.g. an item being manufactured by one of several machines, or a ball being drawn from one of several bags/urns chosen at random -- and only the conditional probability of AA given each individual route is easy to find directly.

Worked Illustration

Bag I has 44 white and 33 black balls; Bag II has 33 white and 55 black balls. A bag is selected at random (so P(I)=P(II)=12P(\text{I})=P(\text{II})=\tfrac12) and a ball is drawn from it. Here {I,II}\{\text{I},\text{II}\} is a partition of the underlying sample space (exactly one bag is chosen). With P(W∣I)=47P(W\mid \text{I})=\tfrac47 and P(W∣II)=38P(W\mid \text{II})=\tfrac38, …