Subject: Class 12 Mathematics Chapter: Total Probability Theorem Topic: 14.4 Total Probability Theorem – Apply total probability theorem
When an experiment is performed in several stages, or when an event can be reached through many different routes, it is often impossible to compute its probability in a single step. The total probability theorem solves exactly this problem: it allows us to compute the probability of an event by splitting the sample space into several disjoint parts, finding the probability of the event within each part, and then adding the results. This technique turns a complicated probability into a weighted average of simpler conditional probabilities.
The idea is best understood with an everyday example. Suppose a school has two sections of Class 12 and a scholarship is announced. The chance that a student wins the scholarship depends on which section the student belongs to, because the sections may have different numbers of applicants and different performance levels. To find the overall probability that a randomly chosen student wins the scholarship, we consider each section separately, multiply the probability of being in that section by the conditional probability of winning given that section, and add the two products.
In this section we state the total probability theorem precisely, explain why it works using the idea of a partition of the sample space, and apply it to a wide range of problems involving bags, boxes, coins, dice and real-life situations. The theorem is the natural predecessor of Bayes theorem, which reverses the direction of conditioning, so mastering this section prepares you for the most important result of the probability chapter.
The total probability theorem uses a partition of the sample space. A collection of events E1, E2, ..., En is called a partition of the sample space S if the events are pairwise disjoint, that is Ei ∩ Ej = ∅ for i ≠ j, their union is the whole sample space, and each event has positive probability.
Theorem: If E1, E2, ..., En form a partition of the sample space S, then for any event A, P(A) = P(E1) × P(A|E1) + P(E2) × P(A|E2) + ... + P(En) × P(A|En).
Justification: Since E1, E2, ..., En partition S, the event A can be written as the disjoint union A = (A ∩ E1) ∪ (A ∩ E2) ∪ ... ∪ (A ∩ En). Because these pieces are mutually exclusive, P(A) = P(A ∩ E1) + P(A ∩ E2) + ... + P(A ∩ En). Applying the multiplication theorem to each term gives P(A ∩ Ei) = P(Ei) × P(A|Ei), which produces the required formula.
Key points to remember: - The events E1, E2, ..., En must form a complete and disjoint cover of the sample space. - Each term P(Ei) × P(A|Ei) represents the probability of reaching A through the path Ei. - The theorem is sometimes called the law of total probability. - In problems with two boxes or bags, the "choose a box" event forms the natural partition.
Worked Example 1: A bag contains 4 red and 6 black balls. Another bag contains 5 red and 5 black balls. A bag is chosen at random and a ball is drawn from it. Find the probability that the ball is red.
Step 1: Let E1 = {bag 1 is chosen} and E2 = {bag 2 is chosen}. P(E1) = 1/2 and P(E2) = 1/2. Step 2: P(red|E1) = 4/10 = 2/5 and P(red|E2) = 5/10 = 1/2. Step 3: P(red) = (1/2) × (2/5) + (1/2) × (1/2) = 1/5 + 1/4 = 9/20.
Worked Example 2: A die is thrown. If it shows an even number, a ball is drawn from box I which contains 3 white and 2 black balls; otherwise a ball is drawn from box II containing 2 white and 3 black balls. Find the probability that the ball drawn is white.
Step 1: P(even) = 1/2 and P(odd) = 1/2. Step 2: P(white|even) = 3/5 and P(white|odd) = 2/5. Step 3: P(white) = (1/2) × (3/5) + (1/2) × (2/5) = 5/10 = 1/2.
The total probability theorem is not restricted to two events; the sample space may be split into three or more parts. Real problems frequently involve several machines, several routes, or several bags, and each additional part simply adds one more term to the sum.
Theorem: For a partition E1, E2, E3 of S, P(A) = P(E1)P(A|E1) + P(E2)P(A|E2) + P(E3)P(A|E3).
Key points to remember: - Every part of the partition contributes exactly one term; no part may be omitted. - The probabilities P(E1), P(E2), P(E3) must add up to 1. - When a part contributes nothing to the event, its conditional probability is 0 and the term vanishes. - The same partition must be used consistently throughout a problem.
Worked Example 3: Box 1 contains 2 white and 3 black balls, box 2 contains 4 white and 1 black ball, and box 3 contains 3 white and 2 black balls. A box is chosen at random and one ball is drawn. Find the probability that the ball is white.
Step 1: P(Ei) = 1/3 for each box. Step 2: P(white|E1) = 2/5, P(white|E2) = 4/5, P(white|E3) = 3/5. Step 3: P(white) = (1/3)(2/5) + (1/3)(4/5) + (1/3)(3/5) = (2 + 4 + 3)/15 = 9/15 = 3/5.
Worked Example 4: In a factory, machines A, B and C produce 50%, 30% and 20% of the total output respectively. The percentages of defective items produced by them are 3%, 4% and 5%. An item is selected at random. Find the probability that it is defective.
Step 1: P(A) = 0.5, P(B) = 0.3, P(C) = 0.2. Step 2: P(defective|A) = 0.03, P(defective|B) = 0.04, P(defective|C) = 0.05. Step 3: P(defective) = (0.5)(0.03) + (0.3)(0.04) + (0.2)(0.05) = 0.015 + 0.012 + 0.010 = 0.037.
Let us apply the total probability theorem to several additional situations, always identifying the partition before writing the sum.
Worked Example 5: A coin is tossed. If it shows heads, two dice are rolled; if it shows tails, one die is rolled. Find the probability that the sum of the numbers shown is 7 in the case of two dice, or the single die shows 7 in the case of one die. Since a single die cannot show 7, P(A|tails) = 0.
Step 1: P(heads) = 1/2 and P(tails) = 1/2. Step 2: P(sum 7 with two dice) = 6/36 = 1/6, and P(A|tails) = 0. Step 3: P(A) = (1/2)(1/6) + (1/2)(0) = 1/12.
Worked Example 6: Bag I has 3 red and 4 black balls, bag II has 4 red and 3 black balls. A ball is transferred from bag I to bag II, and then a ball is drawn from bag II. Find the probability that the transferred ball was red given later work, but first find the probability that the final ball drawn is red.
Step 1: If a red ball is transferred, bag II becomes 5 red and 3 black, so P(red|red transferred) = 5/8. Step 2: If a black ball is transferred, bag II becomes 4 red and 4 black, so P(red|black transferred) = 4/8 = 1/2. Step 3: P(red transferred) = 3/7 and P(black transferred) = 4/7. Step 4: P(final red) = (3/7)(5/8) + (4/7)(1/2) = 15/56 + 4/14 = 15/56 + 16/56 = 31/56.
Worked Example 7: A person speaks the truth 3 out of 4 times. A die is thrown and he reports that a 6 appeared. Find the probability that 6 actually appeared, given that he reports 6.
Step 1: Let E = {6 actually appeared} and F = {6 did not appear}. P(E) = 1/6 and P(F) = 5/6. Step 2: P(reports 6 | E) = 3/4 and P(reports 6 | F) = 1/4. Step 3: P(reports 6) = (1/6)(3/4) + (5/6)(1/4) = 3/24 + 5/24 = 8/24 = 1/3. Step 4: P(E | reports 6) = P(E)P(reports 6|E) / P(reports 6) = (1/8) ÷ (1/3) = 3/8.
Worked Example 8: Two groups of students appear for an exam. Group 1 has 60% of the students and 70% of them pass; group 2 has 40% of the students and 80% pass. Find the probability that a randomly chosen student passes.
Step 1: P(G1) = 0.6, P(G2) = 0.4. Step 2: P(pass|G1) = 0.7, P(pass|G2) = 0.8. Step 3: P(pass) = (0.6)(0.7) + (0.4)(0.8) = 0.42 + 0.32 = 0.74.
Worked Example 9: There are three coins: one has heads on both sides, one has tails on both sides, and one is fair. A coin is chosen at random and tossed. Find the probability that it shows heads.
Step 1: Let C1 = {two-headed}, C2 = {two-tailed}, C3 = {fair}. P(Ci) = 1/3. Step 2: P(heads|C1) = 1, P(heads|C2) = 0, P(heads|C3) = 1/2. Step 3: P(heads) = (1/3)(1) + (1/3)(0) + (1/3)(1/2) = 1/3 + 1/6 = 1/2.
Worked Example 10: A physician knows that 40% of patients have disease D1 and 60% have disease D2. The test T is positive in 90% of D1 cases and in 70% of D2 cases. Find the probability that a randomly chosen patient tests positive.
Step 1: P(D1) = 0.4 and P(D2) = 0.6. Step 2: P(T|D1) = 0.9 and P(T|D2) = 0.7. Step 3: P(T) = (0.4)(0.9) + (0.6)(0.7) = 0.36 + 0.42 = 0.78.
| Number of parts | Formula | Usage |
|---|---|---|
| Two events | P(A) = P(E1)P(A | E1) + P(E2)P(A |
| Three events | P(A) = P(E1)P(A | E1) + P(E2)P(A |
| General | P(A) = Σ P(Ei) P(A | Ei) |
| Partition condition | Ei pairwise disjoint, union S | Required before applying the theorem |
| Complement form | P(A) = P(E)P(A | E) + P(E′)P(A |
| Problem | Partition probabilities | Conditional probabilities | Final answer |
|---|---|---|---|
| Two bags with red balls | 1/2, 1/2 | 2/5, 1/2 | 9/20 |
| Even and odd die route | 1/2, 1/2 | 3/5, 2/5 | 1/2 |
| Three machines A, B, C | 0.5, 0.3, 0.2 | 0.03, 0.04, 0.05 | 0.037 |
| Two student groups | 0.6, 0.4 | 0.7, 0.8 | 0.74 |
| Three special coins | 1/3, 1/3, 1/3 | 1, 0, 1/2 | 1/2 |
flowchart TD
A[Total Probability Theorem] --> B[Partition of sample space]
A --> C[Sum of products]
A --> D[Disjoint events E1 to En]
A --> E[Connection to Bayes theorem]
B --> F[Pairwise disjoint, union is S]
B --> G[Positive probabilities]
C --> H[P of Ei into P of A given Ei]
D --> I[Multiplication theorem per part]
E --> J[Reverse the conditioning]
H --> K[Weighted average of conditionals]
The total probability theorem expresses the probability of an event as a weighted sum of its conditional probabilities over a partition of the sample space. Its power lies in breaking a single complicated probability into several simple conditional probabilities, each multiplied by the probability of the corresponding partition part. The theorem requires the partition events to be disjoint and exhaustive, and it generalizes naturally from two parts to any finite number. Because it supplies the denominator needed in Bayes theorem, the total probability theorem is an indispensable tool for the complete treatment of probability in Class 12.