Skip to main content

Subsection 3.2.6 Probability Using Tree Diagrams

Learner Experience 3.2.8.

Work in pairs
A bag contains \(5\) green balls and \(3\) red balls, making \(8\) balls in total. You will pick three balls one at a time without putting any back.

(a)

Draw a starting point and create two branches to show the two possible colours that could be selected first. Label each branch with the probability of selecting that colour based on the number of balls in the bag at the beginning.

(b)

From the branch that represents selecting a red ball first, draw two new branches to show the possible outcomes for the second pick. Think carefully about how the total number of balls and the number of red balls have changed after removing one red ball, and label the branches using the new probabilities.

(c)

From the branch that represents selecting red on both the first and second picks, draw the final set of branches for the third pick. Determine how many balls remain in total and how many red balls are still available, and use this information to label the branches correctly.

(d)

Trace the path that represents picking a red ball in all three draws. Describe what happens to the numerators and denominators of the probabilities as you move along this path and explain why these changes occur.

(e)

Use the rule for finding the probability of successive events by multiplying the probabilities along a single branch. Write out the multiplication clearly and simplify your result.

Key Takeaway 3.2.36.

A Probability Tree Diagram is a visual way to organize and calculate probabilities for multiple events happening one after another.
Here are the golden rules for using tree diagrams:
  • Branches from the same point add to \(1\text{:}\) The probabilities of all branches originating from a single node must always add up to exactly \(1\) (or \(100\%\)), because they represent all possible outcomes for that specific event.
  • Multiply along the branches (The "AND" Rule): To find the probability of a sequence of events (e.g., Event A and then Event B), you multiply the probabilities along the path.
  • Add down the columns (The "OR" Rule): To find the overall probability of different paths that lead to a successful outcome (e.g., Path 1 or Path 2), you add their final probabilities together.

Example 3.2.37.

A fair coin is tossed twice. Draw a tree diagram to represent this information and use it to find the probability of getting two Heads.
Solution.
The events are independent because the result of the first toss does not affect the second toss. The probability of getting a Head (H) or Tail (T) is always \(0.5\text{.}\)
To find the probability of getting two Heads (H,H), we trace the top path and multiply the probabilities along the branches:
\(P(H \text{ and } H) = 0.5 \times 0.5 = 0.25\)

Example 3.2.38.

A bag contains \(5\) Red marbles and \(3\) Blue marbles. Two marbles are drawn from a bag one after the other at random without replacement. Draw a tree diagram and find the probability of drawing two marbles of the same color.
Solution.
Because the marbles are not replaced, the total number of marbles drops from \(8\) to \(7\) for the second draw.
We need the probability of (Red AND Red) OR (Blue AND Blue).
\(P(R, R) = \frac{5}{8} \times \frac{4}{7} = \frac{20}{56}\)
\(P(B, B) = \frac{3}{8} \times \frac{2}{7} = \frac{6}{56}\)
Adding the outcomes together (since they are mutually exclusive): \(P(\text{Same Color}) = \frac{20}{56} + \frac{6}{56} = \frac{26}{56} = \frac{13}{28}\)

Example 3.2.39.

You are on a football team. There is a \(0.6\) chance that Sam will be the coach today, and a \(0.4\) chance it will be Alex. If Sam is coach, the chance of you being the Goalkeeper is \(0.5\text{.}\) If Alex is coach, the chance of you being Goalkeeper is \(0.3\text{.}\) What is the overall probability that you will be the Goalkeeper today?
Solution.
There are two successful paths where you end up as the Goalkeeper:
  1. Sam is coach AND you are Goalie: \(0.6 \times 0.5 = 0.3\)
  2. Alex is coach AND you are Goalie: \(0.4 \times 0.3 = 0.12\)
Add the probabilities of these two paths together: \(0.3 + 0.12 = 0.42\text{.}\)
There is a \(42\%\) chance you will be the Goalkeeper today.

Example 3.2.40.

A farmer in Eldoret is planting maize. The probability that there will be adequate rain this season is \(0.7\text{.}\) If it rains, the probability of a good harvest is \(0.8\text{.}\) If it does not rain, the probability of a good harvest drops to \(0.2\text{.}\) Calculate the probability that the farmer will have a good harvest.
Solution.
To find the probability of a Good Harvest, we calculate the probabilities of the two paths that lead to it:
Path 1 (Rain AND Good): \(0.7 \times 0.8 = 0.56\)
Path 2 (No Rain AND Good): \(0.3 \times 0.2 = 0.06\)
Overall probability of a good harvest = \(0.56 + 0.06 = 0.62\text{.}\)

Example 3.2.41.

A fair coin is tossed twice.
  1. Draw a tree diagram showing all possible outcomes.
  2. What is the probability of getting exactly one head?
  3. What is the probability of getting at least one tail?
  4. What is the probability of getting two heads?
Solution.
  1. Tree diagram showing all possible outcomes.
  2. Probability of getting exactly one head
    The favorable outcomes are \(\textbf{HT and TH}\text{.}\)
    \begin{gather*} \textbf{P(HT) + P(TH)} \end{gather*}
    \begin{gather*} \frac{1}{4} \, + \, \frac{1}{4} \, = \frac{2}{4} \end{gather*}
    \begin{gather*} \frac{2}{4} \,= \, \frac{1}{2} \end{gather*}
  3. Probability of getting at least one tail
    The favorable outcomes are \(\textbf{ HT, TH, TT (all outcomes except HH)}\text{.}\)
    \begin{gather*} \textbf{P(at least one tail) = P(HT) + P(TH) + P(TT)} \end{gather*}
    \begin{gather*} \frac{1}{4} \, + \, \frac{1}{4} \, + \, \frac{1}{4} \end{gather*}
    \begin{gather*} = \frac{3}{4} \end{gather*}
  4. Probability of getting two heads
    Only one outcome satisfies this condition: \(HH\text{.}\)
    \begin{gather*} \textbf{P(HH) = } \frac{1}{4} \end{gather*}

Example 3.2.42.

A bag contains 3 red and 2 blue balls. A ball is drawn without replacement.
  1. Draw a tree diagram showing the possible outcomes.
  2. What is the probability of drawing a red ball followed by a blue ball?
  3. What is the probability of drawing two red balls?
  4. What is the probability of drawing at least one blue ball?
Solution.
Here is the tree diagram
Assign Probabilities
  1. The probability of drawing a red ball first is
    \begin{gather*} \textbf{P(R)} = \frac{3}{5} \end{gather*}
    • If the first ball is red, the probability of drawing a red ball second is;
      \begin{gather*} \textbf{P(R/R)} = \frac{2}{4} \,= \, \frac{1}{2} \end{gather*}
    • If the first ball is red, the probability of drawing a blue ball second is
      \begin{gather*} \textbf{P(B/R)} = \frac{2}{4} \,= \, \frac{1}{2} \end{gather*}
    The probability of drawing a blue ball first is:
    \begin{gather*} \textbf{P(B)} = \frac{2}{5} \end{gather*}
    • If the first ball is blue, the probability of drawing a red ball second is:
      \begin{gather*} \textbf{P(R/B)} = \frac{3}{4} \end{gather*}
    • If the first ball is blue, the probability of drawing another blue ball is:
      \begin{gather*} \textbf{P(B/B)} = \frac{1}{4} \end{gather*}
  2. Probability of drawing a red ball followed by a blue ball
    Favorable outcome: RB
    \begin{gather*} \textbf{P(RB)} = \textbf{P(R)} \, \times \, \textbf{P(B|R)} \end{gather*}
    \begin{gather*} = \frac{3}{5} \,\times \, \frac{2}{4} = \frac{6}{20} = \frac{3}{10} \end{gather*}
  3. Probability of drawing two red balls
    Favorable outcome: RR
    \begin{gather*} \textbf{P(RR)} = \textbf{P(R)} \, \times \, \textbf{P(R|R)} \end{gather*}
    \begin{gather*} = \frac{3}{5} \,\times \, \frac{2}{4} = \frac{6}{20} = \frac{3}{10} \end{gather*}
  4. Probability of drawing at least one blue ball
    \begin{gather*} \text{P(at least one blue)} \, = \, \textbf{1 - P(two red)} \end{gather*}
    \begin{gather*} 1 - \frac{3}{10} \, = \, \frac{7}{10} \end{gather*}

Example 3.2.43.

A student at a shop is choosing a meal and a drink. This is what is available
The student buys one meal at one drink
what is the probability of ;
  1. Choosing Andazi and Soda?
  2. Choosing Juice as a drink?
Solution.
  1. The Sample Space where the possible meal-drink combinations are :
    \begin{gather*} \textbf{S = { (B,J), (B,S), (A,J), (A,S), (Ch,J), (Ch,S)} } \end{gather*}
    There are \(\textbf{3 meals} \times \textbf{2 drinks = 6 total choices}. \)
  2. the Tree Diagram
  3. Now we find the probabilities
    1. Probability of Choosing an Andazi and Soda
      \begin{gather*} \textbf{P(A and S)} = \frac{1}{3} \times \frac{1}{2} \end{gather*}
      \begin{gather*} = \frac{1}{6} \end{gather*}
    2. Probability of Choosing Juice as a Drink
      There are 3 favorable outcomes that is (B, J) , (A, J), (Ch, J)
      there are \(3\) out of \(6\) possible choices, so the probability is:
      \begin{gather*} \textbf{P(J)} = \frac{3}{6} = \frac{1}{2} \,or\, \textbf{50}\% \end{gather*}

Exercises Exercises

1.

A spinner has \(3\) equal sections colored Red, Green, and Yellow. You spin it twice. Draw a tree diagram and find the probability that the spinner lands on Red both times.
Answer.
The probability of Red on any spin is \(\frac{1}{3}\text{.}\)
\(P(\text{Red and Red}) = \frac{1}{3} \times \frac{1}{3} = \frac{1}{9}\text{.}\)

2.

A jar contains \(4\) orange sweets and \(6\) lemon sweets. Sarah takes one sweet at random, eats it, and then takes another one. Calculate the probability that she eats two sweets of different flavors.
Answer.
Total sweets initially = \(10\text{.}\) This is without replacement.
Path 1 (Orange, then Lemon): \(\frac{4}{10} \times \frac{6}{9} = \frac{24}{90}\)
Path 2 (Lemon, then Orange): \(\frac{6}{10} \times \frac{4}{9} = \frac{24}{90}\)
Total probability = \(\frac{24}{90} + \frac{24}{90} = \frac{48}{90} = \frac{8}{15}\text{.}\)

3.

Juma can commute to work by bus or by matatu. The probability he takes a bus is \(0.6\text{.}\) If he takes the bus, the probability he is late is \(0.2\text{.}\) If he takes a matatu, the probability he is late is \(0.3\text{.}\) What is the probability Juma arrives on time?
Answer.
Probability of taking a matatu = \(1 - 0.6 = 0.4\text{.}\)
Probability of being on time if bus = \(1 - 0.2 = 0.8\text{.}\)
Probability of being on time if matatu = \(1 - 0.3 = 0.7\text{.}\)
Path 1 (Bus and On Time) = \(0.6 \times 0.8 = 0.48\)
Path 2 (Matatu and On Time) = \(0.4 \times 0.7 = 0.28\)
Total probability = \(0.48 + 0.28 = 0.76\text{.}\)

4.

A student is taking a Math exam and a Science exam. The probability of passing Math is \(0.7\text{.}\) If the student passes Math, the probability of passing Science is \(0.8\text{.}\) If the student fails Math, the probability of passing Science drops to \(0.4\text{.}\) Calculate the probability that the student passes exactly one exam.
Answer.
Passing exactly one exam means either (Pass Math AND Fail Science) OR (Fail Math AND Pass Science).
Path 1 (Pass Math, Fail Science): \(0.7 \times (1 - 0.8) = 0.7 \times 0.2 = 0.14\)
Path 2 (Fail Math, Pass Science): \((1 - 0.7) \times 0.4 = 0.3 \times 0.4 = 0.12\)
Total probability = \(0.14 + 0.12 = 0.26\text{.}\)

5.

A school committee is being chosen from a group of \(3\) teachers and \(5\) students. Two members are selected at random, one after the other. Find the probability that the committee contains at least one teacher.
Answer.
"At least one teacher" is easiest to calculate by finding the probability of "No teachers" (meaning Student AND Student) and subtracting from \(1\text{.}\)
Total people = \(8\text{.}\)
\(P(\text{Student, Student}) = \frac{5}{8} \times \frac{4}{7} = \frac{20}{56} = \frac{5}{14}\text{.}\)
\(P(\text{At least one teacher}) = 1 - \frac{5}{14} = \frac{9}{14}\text{.}\)

6.

In a phone manufacturing plant, Machine A produces \(60\%\) of the phones, while Machine B produces \(40\%\text{.}\) Historically, \(5\%\) of the phones from Machine A are defective, and \(2\%\) of the phones from Machine B are defective. If a phone is chosen at random, what is the probability that it is defective?
Answer.
Path 1 (Machine A and Defective) = \(0.60 \times 0.05 = 0.030\)
Path 2 (Machine B and Defective) = \(0.40 \times 0.02 = 0.008\)
Total probability = \(0.030 + 0.008 = 0.038\) (or \(3.8\%\)).
using Tree diagrams solve;

7.

A coin is tossed three times. What is the probability of getting exactly two heads?

8.

You have two bags. Bag 1 has 3 blue marbles and 1 red marble. Bag 2 has 2 blue marbles and 2 red marbles. You pick one marble from each bag. What is the probability of picking two blue marbles?

9.

A store sells two types of phone cases. 30% are black, 70% are clear. Two phone cases are sold independently. What is the probability that one is black and the other is clear?

10.

A student takes two true/false quizzes. What is the probability that they get both quizzes completely correct?

11.

A teacher assigns homework on Monday and Tuesday. There’s a 80% chance of homework on Monday and a 80% chance on Tuesday. What is the probability there is homework on both days?

12.

A student has a 60% chance of completing their math homework on time and a 75% chance of completing their English homework on time. Assuming these events are independent, what is the probability that the student completes both assignments on time?