TExcelTAD
Home › School Probability & Statistics on Paper › Conditional Probability and Probability Tree Diagrams

Conditional Probability and Probability Tree Diagrams

In many practical situations, our knowledge of the world changes over time. When new information arrives—such as knowing that a preliminary test was positive, or that a red card was drawn first—the sample space of possible outcomes shrinks.

Conditional probability calculates the updated likelihood of an event in light of this new evidence, and probability tree diagrams provide the standard paper method for tracking sequential stages.


The Concept of a Reduced Sample Space

Consider rolling a fair six-sided die: Ω={1,2,3,4,5,6}\Omega = \{1, 2, 3, 4, 5, 6\}. Suppose someone rolls the die, hides the result, and informs you: "The number rolled is even."

This new information eliminates all odd outcomes {1,3,5}\{1, 3, 5\}. The original sample space Ω\Omega has collapsed into a reduced sample space:

Ωnew=B={2,4,6}\Omega_{\text{new}} = B = \{2, 4, 6\}

If we now ask for the probability of rolling a 66 (event A={6}A = \{6\}), we only look inside this reduced set BB:

P(A∣B)=Number of outcomes in A∩BNumber of outcomes in B=13P(A \mid B) = \frac{\text{Number of outcomes in } A \cap B}{\text{Number of outcomes in } B} = \frac{1}{3}

(Without this information, the unconditional probability was P(A)=16P(A) = \frac{1}{6}. The information doubled the likelihood of a 66.)


Formal Definition of Conditional Probability

For any two events AA and BB in a sample space Ω\Omega with P(B)>0P(B) > 0, the conditional probability of AA given BB, denoted P(A∣B)P(A \mid B), is:

P(A∣B)=P(A∩B)P(B)=n(A∩B)n(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)} = \frac{n(A \cap B)}{n(B)}
P(A∣B):"Probability that A occurs, given that B is known to have occurred."P(A∩B):"Probability that both A and B occur simultaneously."P(B):"Probability that the conditioning event B occurs."\begin{aligned} P(A \mid B): &\quad \text{"Probability that } A \text{ occurs, given that } B \text{ is known to have occurred."} \\ P(A \cap B): &\quad \text{"Probability that both } A \text{ and } B \text{ occur simultaneously."} \\ P(B): &\quad \text{"Probability that the conditioning event } B \text{ occurs."} \end{aligned}

Multiplying both sides by the denominator yields the Multiplication Rule:

P(A∩B)=P(B)×P(A∣B)=P(A)×P(B∣A)P(A \cap B) = P(B) \times P(A \mid B) = P(A) \times P(B \mid A)

Anatomy of a Probability Tree Diagram on Paper

A probability tree represents a sequence of dependent or independent trials moving chronologically from left to right.

Stage 1Stage 2Path Probability→P(A1∣B1)A1  ⟹  P(B1∩A1)=P(B1)⋅P(A1∣B1)∙→P(B1)B1→P(A2∣B1)A2  ⟹  P(B1∩A2)=P(B1)⋅P(A2∣B1)→P(A1∣B2)A1  ⟹  P(B2∩A1)=P(B2)⋅P(A1∣B2)∙→P(B2)B2→P(A2∣B2)A2  ⟹  P(B2∩A2)=P(B2)⋅P(A2∣B2)\begin{array}{ccccc} \text{\bf Stage 1} & & \text{\bf Stage 2} & & \text{\bf Path Probability} \\[6pt] & \xrightarrow{P(A_1 \mid B_1)} & A_1 & \implies & P(B_1 \cap A_1) = P(B_1) \cdot P(A_1 \mid B_1) \\ \bullet \xrightarrow{P(B_1)} B_1 & & & & \\ & \xrightarrow{P(A_2 \mid B_1)} & A_2 & \implies & P(B_1 \cap A_2) = P(B_1) \cdot P(A_2 \mid B_1) \\[10pt] & \xrightarrow{P(A_1 \mid B_2)} & A_1 & \implies & P(B_2 \cap A_1) = P(B_2) \cdot P(A_1 \mid B_2) \\ \bullet \xrightarrow{P(B_2)} B_2 & & & & \\ & \xrightarrow{P(A_2 \mid B_2)} & A_2 & \implies & P(B_2 \cap A_2) = P(B_2) \cdot P(A_2 \mid B_2) \end{array}

The Two Fundamental Tree Rules

  1. The Branch Rule (Multiplication Rule along a path): The probability of reaching the end of any individual branch pathway is the product of all the probabilities written along that pathway:
    P(Path)=P(Stage 1)×P(Stage 2∣Stage 1)P(\text{Path}) = P(\text{Stage 1}) \times P(\text{Stage 2} \mid \text{Stage 1})
  2. The Fork Rule (Sum to 11 at each vertex): At every node or branch split, the probabilities of all outgoing branches must sum to exactly 11:
    P(B1)+P(B2)=1andP(A1∣B1)+P(A2∣B1)=1P(B_1) + P(B_2) = 1 \quad \text{and} \quad P(A_1 \mid B_1) + P(A_2 \mid B_1) = 1
  3. The Sum of All Final Paths: The sum of all path probabilities at the far right of the tree must equal exactly 1.001.00.

Step-by-Step Paper Notebook Method

  1. Identify the Sequential Stages: Determine which action happens first (Stage 1) and which action happens second (Stage 2).
  2. Draw the Branches in Pencil:
    • Draw branches for Stage 1 from a single starting point. Write the outcome names at the nodes and the unconditional probabilities along the branch lines.
    • From each Stage 1 node, sprout branches for Stage 2. Write the conditional probabilities along these secondary branches (e.g., updating denominators if sampling without replacement).
  3. Compute All Path Probabilities: At the far right of each terminal leaf, multiply the probabilities along the entire branch line.
  4. Apply Total Probability or Conditioning:
    • To find an unconditional Stage 2 probability P(A)P(A), add all paths that terminate in AA.
    • To find a reverse conditional probability P(B∣A)P(B \mid A), divide the specific path probability by the total probability of AA: $P(B∣A)=P(B∩A)P(A)P(B \mid A) = \frac{P(B \cap A)}{P(A)}$

Worked Examples on Paper

Example 1: Sampling Without Replacement (Urn Problem)

Problem Statement: An urn contains 55 red balls and 33 blue balls (total 88 balls). Two balls are drawn sequentially without replacement.

  1. Draw and label the complete probability tree diagram.
  2. Find the probability that the second ball drawn is red, given that the first ball was blue: P(R2∣B1)P(R_2 \mid B_1).
  3. Find the probability that both balls drawn are red: P(R1∩R2)P(R_1 \cap R_2).
  4. Find the total probability that the second ball drawn is red: P(R2)P(R_2).

Step-by-Step Paper Solution

Step 1: Set up Stage 1 (First Draw) Total balls =5+3=8= 5 + 3 = 8.

  • Probability of Red on first draw: P(R1)=58P(R_1) = \frac{5}{8}.
  • Probability of Blue on first draw: P(B1)=38P(B_1) = \frac{3}{8}. Check: 58+38=1\frac{5}{8} + \frac{3}{8} = 1.

Step 2: Set up Stage 2 (Second Draw - Without Replacement) There are now only 77 balls remaining in the urn.

  • If R1R_1 occurred: 44 red and 33 blue remain: $P(R2∣R1)=47,P(B2∣R1)=37(47+37=1)P(R_2 \mid R_1) = \frac{4}{7}, \quad P(B_2 \mid R_1) = \frac{3}{7} \quad \left(\frac{4}{7} + \frac{3}{7} = 1\right)$
  • If B1B_1 occurred: 55 red and 22 blue remain: $P(R2∣B1)=57,P(B2∣B1)=27(57+27=1)P(R_2 \mid B_1) = \frac{5}{7}, \quad P(B_2 \mid B_1) = \frac{2}{7} \quad \left(\frac{5}{7} + \frac{2}{7} = 1\right)$

Step 3: Calculate the four path probabilities

  • Path 1 (R1∩R2R_1 \cap R_2): 58×47=2056\frac{5}{8} \times \frac{4}{7} = \frac{20}{56}
  • Path 2 (R1∩B2R_1 \cap B_2): 58×37=1556\frac{5}{8} \times \frac{3}{7} = \frac{15}{56}
  • Path 3 (B1∩R2B_1 \cap R_2): 38×57=1556\frac{3}{8} \times \frac{5}{7} = \frac{15}{56}
  • Path 4 (B1∩B2B_1 \cap B_2): 38×27=656\frac{3}{8} \times \frac{2}{7} = \frac{6}{56}

Check sum of paths: 20+15+15+656=5656=1\frac{20 + 15 + 15 + 6}{56} = \frac{56}{56} = 1.

Step 4: Solve parts 2, 3, and 4

  • Part 2: P(R2∣B1)=57P(R_2 \mid B_1) = \frac{5}{7}.
  • Part 3: P(R1∩R2)=2056=514P(R_1 \cap R_2) = \frac{20}{56} = \frac{5}{14}.
  • Part 4: The second ball is red on Path 1 and Path 3. Add these disjoint paths:
P(R2)=P(R1∩R2)+P(B1∩R2)=2056+1556=3556=58P(R_2) = P(R_1 \cap R_2) + P(B_1 \cap R_2) = \frac{20}{56} + \frac{15}{56} = \frac{35}{56} = \frac{5}{8}

(Notice an elegant mathematical symmetry: before knowing anything about the first draw, the unconditional probability that the second ball is red is identical to the first draw: 58\frac{5}{8}.)


Example 2: Medical Diagnostic Testing

Problem Statement: A rare medical condition affects 1%1\% of a population (P(D)=0.01P(D) = 0.01). A diagnostic test has:

  • Sensitivity: P(T+∣D)=0.95P(T^+ \mid D) = 0.95 (probability of testing positive if diseased).
  • False Positive Rate: P(T+∣Dc)=0.05P(T^+ \mid D^c) = 0.05 (probability of testing positive if healthy). A person tests positive (T+T^+). What is the conditional probability that the person actually has the disease, P(D∣T+)P(D \mid T^+)?

Step-by-Step Paper Solution

Step 1: Write given values and complements

  • P(D)=0.01  ⟹  P(Dc)=1−0.01=0.99P(D) = 0.01 \implies P(D^c) = 1 - 0.01 = 0.99
  • P(T+∣D)=0.95  ⟹  P(T−∣D)=0.05P(T^+ \mid D) = 0.95 \implies P(T^- \mid D) = 0.05
  • P(T+∣Dc)=0.05  ⟹  P(T−∣Dc)=0.95P(T^+ \mid D^c) = 0.05 \implies P(T^- \mid D^c) = 0.95

Step 2: Calculate the two paths leading to a positive test (T+T^+)

  • Path 1 (True Positive): Diseased AND tests positive:
P(D∩T+)=P(D)×P(T+∣D)=0.01×0.95=0.0095P(D \cap T^+) = P(D) \times P(T^+ \mid D) = 0.01 \times 0.95 = 0.0095
  • Path 2 (False Positive): Healthy AND tests positive:
P(Dc∩T+)=P(Dc)×P(T+∣Dc)=0.99×0.05=0.0495P(D^c \cap T^+) = P(D^c) \times P(T^+ \mid D^c) = 0.99 \times 0.05 = 0.0495

Step 3: Calculate total probability of testing positive P(T+)P(T^+)

P(T+)=P(D∩T+)+P(Dc∩T+)=0.0095+0.0495=0.0590P(T^+) = P(D \cap T^+) + P(D^c \cap T^+) = 0.0095 + 0.0495 = 0.0590

Step 4: Apply the conditional probability formula

P(D∣T+)=P(D∩T+)P(T+)=0.00950.0590=95590=19118≈0.161P(D \mid T^+) = \frac{P(D \cap T^+)}{P(T^+)} = \frac{0.0095}{0.0590} = \frac{95}{590} = \frac{19}{118} \approx 0.161

Even though the test is 95%95\% accurate, a person testing positive only has a ≈16.1%\approx 16.1\% probability of having the condition, because the condition is so rare in the general population that false positives outnumber true positives!


Example 3: Conditional Probability from a Two-Way Table

Problem Statement: A survey recorded 8080 drivers categorized by whether they had an accident in the past year and whether they attended a defensive driving course:

Group Accident (AA) No Accident (AcA^c) Total
Course (CC) 66 3434 4040
No Course (CcC^c) 1414 2626 4040
Total 2020 6060 8080

Find:

  1. P(A∣C)P(A \mid C) (probability of an accident given that the driver took the course).
  2. P(C∣A)P(C \mid A) (probability that an accident-involved driver took the course).

Step-by-Step Paper Solution

Part 1: Find P(A∣C)P(A \mid C) Here the condition is CC. We restrict our attention entirely to the "Course" row (total =40= 40):

P(A∣C)=n(A∩C)n(C)=640=320=0.15(15%)P(A \mid C) = \frac{n(A \cap C)}{n(C)} = \frac{6}{40} = \frac{3}{20} = 0.15 \quad (15\%)

Part 2: Find P(C∣A)P(C \mid A) Here the condition is AA. We restrict our attention entirely to the "Accident" column (total =20= 20):

P(C∣A)=n(A∩C)n(A)=620=310=0.30(30%)P(C \mid A) = \frac{n(A \cap C)}{n(A)} = \frac{6}{20} = \frac{3}{10} = 0.30 \quad (30\%)

(Notice that P(A∣C)=0.15≠P(C∣A)=0.30P(A \mid C) = 0.15 \neq P(C \mid A) = 0.30. The order of conditioning matters dramatically!)


Common Mistakes & Paper Traps

  1. The Transposition Trap (P(A∣B)≠P(B∣A)P(A \mid B) \neq P(B \mid A)):

    • P(has feathers∣bird)=1.0P(\text{has feathers} \mid \text{bird}) = 1.0 (nearly every bird has feathers).
    • P(bird∣has feathers)=1.0P(\text{bird} \mid \text{has feathers}) = 1.0, but:
    • P(pregnant∣female)≈0.03P(\text{pregnant} \mid \text{female}) \approx 0.03, while P(female∣pregnant)=1.0P(\text{female} \mid \text{pregnant}) = 1.0. Never swap the order of events in conditional notation.
  2. Failing to Update the Denominator Without Replacement: When drawing from 1010 items without replacement, the second stage must use denominator 99, not 1010.

  3. Confusing P(A∩B)P(A \cap B) with P(A∣B)P(A \mid B):

    • P(A∩B)P(A \cap B) is the probability that both happen, measured against the entire original population Ω\Omega.
    • P(A∣B)P(A \mid B) is the probability that AA happens, measured only within the subpopulation BB.

Pencil & Paper Practice

Solve these problems on paper.

Practice 1

Two cards are drawn sequentially without replacement from a standard 5252-card deck.

  1. What is the probability that the second card is an Ace, given that the first card was an Ace?
  2. What is the probability that both cards drawn are Aces?

Practice 2

In a certain town, 40%40\% of days are cloudy (P(C)=0.4P(C) = 0.4). The probability of rain on a cloudy day is 0.70.7, while the probability of rain on a non-cloudy day is 0.10.1.

  1. Draw a probability tree diagram for weather conditions.
  2. Find the overall probability that it rains on a randomly chosen day.

Solutions to Practice Problems

Solution 1

  1. Initially there are 44 Aces in 5252 cards. If the first card is an Ace, there are 33 Aces left among the remaining 5151 cards:
P(A2∣A1)=351=117P(A_2 \mid A_1) = \frac{3}{51} = \frac{1}{17}
  1. By the multiplication rule:
P(A1∩A2)=P(A1)×P(A2∣A1)=452×351=113×117=1221P(A_1 \cap A_2) = P(A_1) \times P(A_2 \mid A_1) = \frac{4}{52} \times \frac{3}{51} = \frac{1}{13} \times \frac{1}{17} = \frac{1}{221}

Solution 2

  1. Tree diagram structure:
  • Stage 1: P(C)=0.4P(C) = 0.4, P(Cc)=0.6P(C^c) = 0.6.
  • Stage 2 from CC: P(R∣C)=0.7P(R \mid C) = 0.7, P(Rc∣C)=0.3P(R^c \mid C) = 0.3.
  • Stage 2 from CcC^c: P(R∣Cc)=0.1P(R \mid C^c) = 0.1, P(Rc∣Cc)=0.9P(R^c \mid C^c) = 0.9.
  1. Paths leading to rain (RR):
P(C∩R)=0.4×0.7=0.28P(Cc∩R)=0.6×0.1=0.06\begin{aligned} P(C \cap R) &= 0.4 \times 0.7 = 0.28 \\ P(C^c \cap R) &= 0.6 \times 0.1 = 0.06 \end{aligned}

Summing the two paths:

P(R)=0.28+0.06=0.34P(R) = 0.28 + 0.06 = 0.34

Test yourself

If P(A)=0.5P(A) = 0.5, P(B)=0.25P(B) = 0.25, and P(A∩B)=0.15P(A \cap B) = 0.15, what is P(A∣B)P(A \mid B)?

  1. 0.600.60
  2. 0.300.30
  3. 0.150.15
  4. 0.750.75

A bag contains 33 red and 77 black balls. Two balls are drawn without replacement. What is the probability that both balls are black?

  1. 715\frac{7}{15}
  2. 49100\frac{49}{100}
  3. 2150\frac{21}{50}
  4. 13\frac{1}{3}

Which of the following statements is ALWAYS true regarding two events AA and BB with non-zero probabilities?

  1. If AA and BB are independent, then P(A∣B)=P(A)P(A \mid B) = P(A).
  2. P(A∣B)=P(B∣A)P(A \mid B) = P(B \mid A) in all cases.
  3. P(A∣B)≥P(A)P(A \mid B) \ge P(A) always.
  4. P(A∩B)=P(A∣B)+P(B∣A)P(A \cap B) = P(A \mid B) + P(B \mid A).