6.3: Probability Using Tree Diagrams and Combinations
Learning Objectives
In this section, you will learn to:
- Use probability tree diagrams to calculate probabilities.
- Use combinations to calculate probabilities.
Prerequisite Skills
Before you get started, take this prerequisite quiz.
1. Brown Home Construction offers a selection of 3 floor plans, 2 roof types, and 2 exterior wall types. Use a tree diagram to determine the number of possible homes available.
- Click here to check your answer
-
There are 12 possible homes available.
If you missed this problem, review Section 5.2 . (Note that this will open in a new window.)
2. Calculate each expression:
a. \(10 \mathrm{P} 2\)
b. \(15 \mathrm{P} 6\)
- Click here to check your answer
-
a. \(10 \mathrm{P} 2=90\)
b. \(15 \mathrm{P} 6=3,603,600\)
If you missed this problem, review Section 5.3 . (Note that this will open in a new window.)
3. In how many ways can the letters of the word MAJESTIC be arranged if each letter is used only once in each arrangement?
- Click here to check your answer
-
The letters can be arranged 40,320 different ways.
If you missed this problem, review Section 5.3 . (Note that this will open in a new window.)
4. A jar contains four marbles numbered 1, 2, 3, and 4. Two marbles are drawn randomly WITHOUT REPLACEMENT. That means that after a marble is drawn it is NOT replaced in the jar before the second marble is selected. Find the following probabilities.
a. P(the sum of the numbers is 5)
b. P(the sum of the numbers is odd)
- Click here to check your answer
-
a. \(\dfrac{1}{3}\)
b. \(\dfrac{2}{3}\)
If you missed this problem, review Section 6.1 . (Note that this will open in a new window.)
In this section, we will apply previously learnt counting techniques in calculating probabilities, and use tree diagrams to help us gain a better understanding of what is involved.
USING TREE DIAGRAMS TO CALCULATE PROBABILITIES
We already used tree diagrams to list events in a sample space in Section 5.2 . Tree diagrams can be helpful in organizing information in probability problems; they help provide a structure for understanding probability. In this section we expand our previous use of tree diagrams to situations in which the events in the sample space are not all equally likely.
We assign the appropriate probabilities to the events shown on the branches of the tree. By multiplying probabilities along a path through the tree, we can find probabilities for “and” events, which are intersections of events.
We begin with an example.
Example \(\PageIndex{1}\)
Suppose a jar contains 3 red and 4 white marbles. If two marbles are drawn with replacement, what is the probability that both marbles are red?
Solution
Let \(\mathrm{E}\) be the event that the first marble drawn is red, and let \(\mathrm{F}\) be the event that the second marble drawn is red.
We need to find \(\mathrm{P}(\mathrm{E} \cap \mathrm{F})\)
By the statement, "two marbles are drawn with replacement," we mean that the first marble is replaced before the second marble is drawn.
There are 7 choices for the first draw. And since the first marble is replaced before the second is drawn, there are, again, seven choices for the second draw. Using the multiplication axiom, we conclude that the sample space \(\mathrm{S}\) consists of 49 ordered pairs. Of the 49 ordered pairs, there are \(3 \times 3 = 9\) ordered pairs that show red on the first draw and, also, red on the second draw. Therefore,
\[P(E \cap F)=\frac{9}{49} \nonumber\]
Further note that in this particular case
\[P(E \cap F)=\frac{9}{49}=\frac{3}{7} \cdot \frac{3}{7} \nonumber\]
giving us the result that in this example: \(\mathbf{P}(\mathbf{E} \cap \mathbf{F})=\mathbf{P}(\mathbf{E}) \cdot \mathbf{P}(\mathbf{F})\)
If in Example \(\PageIndex{1}\), the two marbles are drawn without replacement, then what is the probability that both marbles are red?
Solution
By the statement, "two marbles are drawn without replacement," we mean that the first marble is not replaced before the second marble is drawn.
Again, we need to find \(\mathrm{P}(\mathrm{E} \cap \mathrm{F})\).
There are, again, 7 choices for the first draw. And since the first marble is not replaced before the second is drawn, there are only six choices for the second draw. Using the multiplication axiom, we conclude that the sample space S consists of 42 ordered pairs. Of the 42 ordered pairs, there are \(3 \times 2 = 6\) ordered pairs that show red on the first draw and red on the second draw. Therefore,
\[P(E \cap F)=\frac{6}{42} \nonumber\]
Note that we can break this calculation down as
\[P(E \cap F)=\frac{6}{42}=\frac{3}{7} \cdot \frac{2}{6} \nonumber\]
Here 3/7 represents \(\mathrm{P}(\mathrm{E})\), and 2/6 represents the probability of drawing a red on the second draw, given that the first draw resulted in a red.
We write the latter as \(\mathrm{P}\)(red on the second | red on first) or \(\mathrm{P}(\mathrm{F} | \mathrm{E})\). The "|" represents the word "given" or “if”. This leads to the result that:
\[\mathbf{P}(\mathbf{E} \cap \mathbf{F})=\mathbf{P}(\mathbf{E}) \cdot \mathbf{P}(\mathbf{F} | \mathbf{E}) \nonumber\]
The is an important result, called the Multiplication Rule, which will appear again in later sections.
We now demonstrate the above results with a tree diagram.
Example \(\PageIndex{3}\)
Suppose a jar contains 3 red and 4 white marbles. If two marbles are drawn without replacement, find the following probabilities using a tree diagram.
- The probability that both marbles are red.
- The probability that the first marble is red and the second white.
- The probability that one marble is red and the other white.
Solution
Let \(\mathrm{R}\) be the event that the marble drawn is red, and let W be the event that the marble drawn is white.
We draw the following tree diagram.
- The probability that both marbles are red is \(\mathrm{P}(\mathrm{RR})=6/42\)
- The probability that the first marble is red and the second is white is \(\mathrm{P}(\mathrm{RW})=12/42\)
- For the probability that one marble is red and the other is white, we observe that this can be satisfied if the first is red and the second is white, or if the first is white and the second is red. The “or” tells us we’ll be using the Addition Rule from Section 6.2 .
Furthermore events \(\mathrm{RW}\) and \(\mathrm{WR}\) are mutually exclusive events, so we use the form of the Addition Rule that applies to mutually exclusive events.
Therefore
\(\mathrm{P}\)(one marble is red and the other marble is white)
\[\begin{array}{l}
=\mathrm{P}(\mathrm{RW} \text { or } \mathrm{WR}) \\
=\mathrm{P}(\mathrm{RW})+\mathrm{P}(\mathrm{WR}) \\
=12 / 42+12 / 42=24 / 42
\end{array} \nonumber\]
USING COMBINATIONS TO FIND PROBABILITIES
Although the tree diagrams give us better insight into a problem, they are not practical for problems where more than two or three things are chosen. In such cases, we use the concept of combinations that we learned in the last chapter. This method is best suited for problems where the order in which the objects are chosen is not important, and the objects are chosen without replacement.
Example \(\PageIndex{4}\)
Suppose a jar contains 3 red, 2 white, and 3 blue marbles. If three marbles are drawn without replacement, find the following probabilities.
- \(\mathrm{P}\)(Two red and one white)
- \(\mathrm{P}\)(One of each color)
- \(\mathrm{P}\)(None blue)
- \(\mathrm{P}\)(At least one blue)
Solution
Let us suppose the marbles are labeled as \(R_1,R_2,R_3,W_1,W_2,B_1,B_2,B_3\).
a. \(\mathrm{P}\)(Two red and one white)
Since we are choosing 3 marbles from a total of 8, there are 8\(\mathrm{C}\)3 = 56 possible combinations. Of these 56 combinations, there are \(3 \mathrm{C} 2 \times 2 \mathrm{C}1=6\) combinations consisting of 2 red and one white. Therefore,
\[P(\text { Two red and one white })=\frac{3 \mathrm{C} 2 \times 2 \mathrm{C} 1}{8 \mathrm{C} 3}=\frac{6}{56}=\frac{3}{28} \nonumber.\]
b. \(\mathrm{P}\)(One of each color)
Again, there are 8\(\mathrm{C}\)3 = 56 possible combinations. Of these 56 combinations, there are \(3 \mathrm{Cl} \times 2 \mathrm{Cl} \times 3 \mathrm{Cl}=18\) combinations consisting of one red, one white, and one blue. Therefore,
\[P(\text { One of each color })=\frac{3 \mathrm{C} 1 \times 2 \mathrm{C} 1 \times 3 \mathrm{C} 1}{8 \mathrm{C} 3}=\frac{18}{56}=\frac{9}{28} \nonumber\]
c. \(\mathrm{P}\)(None blue)
There are 5 non-blue marbles, therefore
\[\mathrm{P}(\text { None blue })=\frac{5 \mathrm{C} 3}{8 \mathrm{C} 3}=\frac{10}{56}=\frac{5}{28} \nonumber \]
d. \(\mathrm{P}\)(At least one blue)
By "at least one blue marble," we mean the following: one blue marble and two non-blue marbles, OR two blue marbles and one non-blue marble, OR all three blue marbles. So we have to find the sum of the probabilities of all three cases.
\[\mathrm{P}(\mathrm{At} \text { least one blue })=\mathrm{P}(1 \text { blue, } 2 \text { non-blue) }+\mathrm{P}(2 \text { blue, l non-blue) }+\mathrm{P}(3\text { blue) } \nonumber\]
\[P( \text { At least one blue })=\frac{3 \mathrm{C} 1 \times 5 \mathrm{C} 2}{8 \mathrm{C} 3}+\frac{3 \mathrm{C} 2 \times 5 \mathrm{C} 1}{8 \mathrm{C} 3}+\frac{3 \mathrm{C} 3}{8 \mathrm{C} 3} \nonumber\]
\[ P(\text { At least one blue })=30 / 56+15 / 56+1 / 56=46 / 56=23 / 28 \nonumber\]
Alternately, we can use the fact that \(\mathrm{P}(\mathrm{E}) = 1 - \mathrm{P}(\mathrm{\overline{E}})\). If the event \(\mathrm{E}\) = At least one blue, then \(\overline{E}\) = None blue.
But from part c of this example, we have \((\mathrm{\overline{E}}) = 5/28\), so \(\mathrm{P}(\mathrm{E}) = 1 - 5/28 = 23/28\).
Example \(\PageIndex{5}\)
Five cards are drawn from a deck. Find the probability of obtaining two pairs, that is, two cards of one value, two of another value, and one other card.
Solution
Let us first do an easier problem-the probability of obtaining a pair of kings and queens.
Since there are four kings, and four queens in the deck, the probability of obtaining two kings, two queens and one other card is
\[\mathrm{P}(\mathrm{A} \text { pair of kings and queens })=\frac{4 \mathrm{C} 2 \times 4 \mathrm{C} 2 \times 44 \mathrm{C}1}{52 \mathrm{C} 5} \nonumber\]
To find the probability of obtaining two pairs, we have to consider all possible pairs.
Since there are altogether 13 values, that is, aces, deuces, and so on, there are 13\(\mathrm{C}\)2 different combinations of pairs.
\[P(\text { Two pairs })=13 \mathrm{C} 2 \cdot \frac{4 \mathrm{C} 2 \times 4 \mathrm{C} 2 \times 44 \mathrm{C}1}{52 \mathrm{C} 5}=.04754 \nonumber\]
Example \(\PageIndex{6}\)
A cell phone store receives a shipment of 15 cell phones that contains 8 iPhones and 7 Android phones. Suppose that 6 cell phones are randomly selected from this shipment. Find the probability that a randomly selected set of 6 cell phones consists of 2 iPhones and 4 Android phones.
Solution
There are 8\(\mathrm{C}\)2 ways of selecting 2 out of the 8 iPhones.
and 7\(\mathrm{C}\)4 ways of selecting 4 out of the 7 Android phones
But altogether there are 15\(\mathrm{C}\)6 ways of selecting 6 out of 15 cell phones.
Therefore we have
\[P(2 \text { iPhones and } 4 \text { Android phones })=\frac{8 \mathrm{C} 2 \times 7 \mathrm{C} 4}{15 \mathrm{C} 6}=\frac{(28)(35)}{5005}=\frac{980}{5005}=0.1958 \nonumber\]
Example \(\PageIndex{7}\)
One afternoon, a bagel store still has 53 bagels remaining: 20 plain, 15 poppyseed, and 18 sesame seed bagels. Suppose that the store owner packages up a bag of 9 bagels to bring home for tomorrow’s breakfast, and selects the bagels randomly. Find the probability that the bag contains 4 plain, 3 poppyseed, and 2 sesame seed.
Solution
There are 20\(\mathrm{C}\)4 ways of selecting 4 out of the 20 plain bagels,
and 15\(\mathrm{C}\)3 ways of selecting 3 out of the 15 poppyseed bagels,
and 18\(\mathrm{C}\)2 ways of selecting 2 out of the 18 sesame seed bagels.
But altogether there are 53\(\mathrm{C}\)9 ways of selecting 9 out of the 53 bagels.
\[\begin{array}{l}
\mathrm{P} \text{(4 plain, 3 poppyseed, and 2 sesame seed)} &=\frac{20 \mathrm{C} 4 \times 15 \mathrm{C} 3 \times 18 \mathrm{C} 2}{53 \mathrm{C} 9} \\
&=\frac{(4845)(455)(153)}{4431613550} \\
&=0.0761
\end{array}\nonumber\]
We end the section by solving a famous problem called the Birthday Problem .
Example \(\PageIndex{8}\): Birthday Problem
If there are 25 people in a room, what is the probability that at least two people have the same birthday?
Solution
Let event \(\mathrm{E}\) represent that at least two people have the same birthday.
We first find the probability that no two people have the same birthday.
We analyze as follows.
Suppose there are 365 days to every year. According to the multiplication axiom, there are 365 25 possible birthdays for 25 people. Therefore, the sample space has 365 25 elements. We are interested in the probability that no two people have the same birthday. There are 365 possible choices for the first person and since the second person must have a different birthday, there are 364 choices for the second, 363 for the third, and so on. Therefore,
\[\mathrm{P}(\mathrm{No} \text { two have the same birthday })=\frac{365 \cdot 364 \cdot 363 \cdots 341}{365^{25}}=\frac{365 \mathrm{P} 25}{365^{25}} \nonumber\]
Since \(\mathrm{P}\)(at least two people have the same birthday) = 1 - \(\mathrm{P}\)(No two have the same birthday),
\[\mathrm{P} \text {( at least two people have the same birthday ) }=1-\frac{365 \mathrm{P} 25}{365^{25}}=.5687\ \nonumber\]