Skip to ContentGo to accessibility pageKeyboard shortcuts menu
OpenStax Logo
Contemporary Mathematics

7.4 Tree Diagrams, Tables, and Outcomes

Contemporary Mathematics7.4 Tree Diagrams, Tables, and Outcomes

A young pea plant is growing out of the soil.
Figure 7.10 In genetics, the characteristics of an offspring organism depends on the characteristics of its parents. (credit: “Pea Plant” by Maria Keays/Flickr, CC BY 2.0))

Learning Objectives

After completing this section, you should be able to:

  1. Determine the sample space of single stage experiment.
  2. Use tables to list possible outcomes of a multistage experiment.
  3. Use tree diagrams to list possible outcomes of a multistage experiment.

In the 19th century, an Augustinian friar and scientist named Gregor Mendel used his observations of pea plants to set out his theory of genetic propagation. In his work, he looked at the offspring that resulted from breeding plants with different characteristics together. For applications like this, it is often insufficient to only know in how many ways a process might end; we need to be able to list all of the possibilities. As we’ve seen, the number of possible outcomes can be very large! Thus, it’s important to have a strategy that allows us to systematically list these possibilities to make sure we don’t leave any out. In this section, we’ll look at two of these strategies.

Single Stage Experiments

When we are talking about combinatorics or probability, the word “experiment” has a slightly different meaning than it does in the sciences. Experiments can range from very simple (“flip a coin”) to very complex (“count the number of uranium atoms that undergo nuclear fission in a sample of a given size over the course of an hour”). Experiments have unknown outcomes that generally rely on something random, so that if the experiment is repeated (or replicated) the outcome might be different. No matter what the experiment, though, analysis of the experiment typically begins with identifying its sample space.

The sample space of an experiment is the set of all of the possible outcomes of the experiment, so it’s often expressed as a set (i.e., as a list bound by braces; if the experiment is “randomly select a number between 1 and 4,” the sample space would be written {1,2,3,4}{1,2,3,4}).

Example 7.12

Finding the Sample Space of an Experiment

For each of the following experiments, identify the sample space.

  1. Flip a coin (which has 2 faces, typically called “heads” and “tails”) and note which face is up.
  2. Flip a coin 10 times and count the number of heads.
  3. Roll a 6-sided die and note the number that is on top.
  4. Roll two 6-sided dice and note the sum of the numbers on top.

Your Turn 7.12

Identify the sample space of each experiment.
1.
You draw a card from a standard deck and note its suit.
2.
You draw a card from a standard deck and note its rank.
3.
You roll a 4-sided die and note the number on the bottom. (A 4-sided die is shaped like a pyramid, so when it comes to rest, there’s no single side facing up.)
4.
You roll three 4-sided dice and note the sum of the numbers on the bottom.

Multistage Experiments

Some experiments have more complicated sample spaces because they occur in stages. These stages can occur in succession (like drawing cards one at a time) or simultaneously (rolling 2 dice). Sample spaces get more complicated as the complexity of the experiment increases, so it’s important to choose a systematic method for identifying all of the possible outcomes. The first method we’ll discuss is the table.

Using Tables to Find Sample Spaces

Tables are useful for finding the sample space for experiments that meet two criteria: (1) The experiment must have only two stages, and (2) the outcomes of each stage must have no effect on the outcomes of the other. When the stages do not affect each other, we say the stages are independent. Otherwise, the stages are dependent and so we can’t use tables; we’ll look at a method for analyzing dependent stages soon.

Example 7.13

Determining Independence

Decide whether the two stages in these experiments are independent or dependent.

  1. You flip a coin and note the result, and then flip the coin again and note the result.
  2. You draw 2 cards from a standard deck (52 cards), one at a time.

Your Turn 7.13

Decide whether the two stages in these experiments are dependent or independent.
1.
You’re getting dressed to go to a party, and you plan to wear a blouse and a skirt. You choose the blouse first, then the skirt (assume that you’d be comfortable wearing any of your skirts with any of your blouses).
2.
On further reflection, you realize that some of your skirts clash with some of your blouses. So, you choose the blouse first, and then choose a skirt that goes with your chosen blouse.

If you have a two-stage experiment with independent stages, a table is the most straightforward way to identify the sample space. To build a table, you list the outcomes of one stage of the experiment along the top of the table and the outcomes of the other stage down the side. The cells in the interior of the table are then filled using the outcomes associated with each cell’s row and column. Let’s look at an example.

Example 7.14

Using Tables to Identify Sample Spaces

Identify the sample spaces of these experiments using tables.

  1. You roll two dice: one 4-sided and one 6-sided.
  2. You’re in an ice-cream shop, and you’re going to get a single scoop of ice cream with a topping. The flavors of ice cream you’re considering are vanilla, chocolate, and rocky road; the toppings are fudge, whipped cream, and sprinkles.
  3. The pea plants you’re breeding have two possible pod colors: green and yellow. These colors are decided by a particular gene, which comes in two types: “G” for green, and “g” for yellow (In genetics, capital letters usually denote dominant genes, while lower-case letters denote recessive genes). Each plant has two genes. If you breed a Gg pea plant with a gg plant, the offspring plant will get one gene from each parent. What are the possible outcomes?

Your Turn 7.14

1.
Use a table to identify the sample space of an experiment in which you flip a coin and roll a 6-sided die.

Using Tree Diagrams to Identify Sample Spaces

In experiments where there are more than two stages, or where the stages are dependent, a tree diagram is a helpful tool for systematically identifying the sample space. Tree diagrams are built by first drawing a single point (or node), then from that node we draw one branch (a short line segment) for each outcome of the first stage. Each branch gets its own node at the other end (which we typically label with the corresponding outcome for that branch); from each of these, we draw another branch for each outcome of the second stage, assuming that the outcome of the first stage matches the branch we were on. If there are other stages, we can continue from there by continuing to add branches and nodes. This sounds really complicated, but it’s easier to understand through an example.

Example 7.15

Using a Tree Diagram to Identify a Sample Space

Use a tree diagram to find the sample spaces of each of the following experiments:

  1. You flip a coin 3 times, noting the outcome of each flip in order.
  2. You flip a coin. If the result is heads, you roll a 4-sided die. If it’s tails, you roll a 6-sided die.
  3. You are planning to go on a hike with a group of friends. There are 3 trails to consider: Abel Trail, Borel Trail, and Condorcet Trail. One of your friends, Jess, requires a wheelchair; if she joins you, the group couldn’t handle the rocky Condorcet Trail.

Your Turn 7.15

1.
You have a modified deck of cards containing only J , Q , and K . You draw 2 cards without replacing them (where order matters). Use a tree diagram to identify the sample space.

Check Your Understanding

17.
You flip a coin 6 times and note the number of heads. What is the sample space of this experiment?
18.
You are ordering a combo meal at a restaurant. The meal comes with either 8 or 12 chicken nuggets, and your choice of crinkle fries, curly fries, or onion rings. Create a table to help you identify the sample space containing your combo meal possibilities.
19.
You need one more class to fill out your schedule for next semester. You want to take either History 101 (H), English 220 (E), or Sociology 112 (S). There are two professors teaching the history class: Anderson (A) and Burr (B); one professor teaching the English class: Carter (C); and three people teaching sociology: Johnson (J), Kirk (K), and Lambert (L). Create a tree diagram that helps you identify all your options.
20.
Identify the sample space from Exercise 18.
21.
Identify the sample space from Exercise 19.

Section 7.4 Exercises

In the following exercises, you are rolling a special 6-sided die that has both a colored letter and a colored number on each face. The faces are labeled with: a red 1 and a blue A, a red 1 and a green A, an orange 1 and a green B, an orange 2 and a red C, a purple 3 and a brown D, an orange 4 and a blue E. You will roll the die once and take note of something about the face that is showing. Identify the sample space:
1 .
You note the number.
2 .
You note the letter.
3 .
You note the color of the number.
4 .
You note the color of the letter.
5 .
You note the number and letter.
6 .
You note the number and its color.
7 .
You note the letter and its color.
In Example 7.13, we used a table to identify the possible genetic result when two pea plants are bred; offspring plants get one of the two genes from each parent. Use tables to identify the sample space of offspring for the parents listed in the following exercises:
8 .
GG and gg
9 .
GG and Gg
10 .
Gg and Gg
You’re visiting a pasta bar, where you have your choice of pasta types (cavatappi, ziti, or penne) and sauce (marinara, alfredo, or pesto).
11 .
Make a table that shows the sample space for your choices.
12 .
Write out the sample space for the pasta bar.
You have a new art print that you’d like to get framed. You have 3 good choices for the material of the frame: oak, maple, and cherry. You’ll also choose a framing mat, for which there are 4 possible colors that will work with your print: plum, lilac, periwinkle, and violet.
13 .
Make a table that shows the sample space for your choices.
14 .
Write out the sample space for the framing choices.
You are shopping for a new laptop. The brand you’re considering offers laptops with screen sizes 11”, 13”, 14”, 15”, and 17”. It also offers five memory choices: 4GB, 8GB, 12GB, 16GB, and 32GB.
15 .
Make a table that shows the sample space for your choices.
16 .
Write out the sample space for the laptop choices.
For the following exercises, decide whether the described two-stage experiments have independent or dependent stages.
17 .
Siobhan and Tristan are trying to decide where they will have dinner. Siobhan wants to go to Antoine’s, Burger Hut, or the Chowder Palace. Tristan prefers Burger Hut, Chowder Palace, or Duck Duck Taco. They will flip a coin to decide who gets to choose, then that person selects a restaurant from their list.
18 .
On the TV game show The Price Is Right, contestants play games to try to win prizes. One of these games is called “Let ‘Em Roll.” In this game, players roll five 6-sided dice. These dice each have 3 faces labeled with a car; the other 3 faces are labeled with prize money amounts (one each of $500, $1,000, and $1,500). Players get to roll all 5 dice, and then have the opportunity to win additional rolls. If all 5 dice show a car, the contestant wins a new car. If not, the contestant can use any additional rolls to reroll the dice with prize money showing to try to win the car (or, they can take the total amount of money showing on the dice and end the game). Josh is playing this game, and he has 2 rolls total (these are the two stages of the experiment; the number of cars showing on the dice will be the reported outcome of each stage).
19 .
In the game Rock, Paper, Scissors, each of 2 players secretly chooses 1 of the 3 title objects. The players reveal their choices simultaneously using hand signals. If the players choose the same object, the game is a tie; if they choose different objects, the winner is determined by the following rules: rock beats scissors, scissors beats paper, paper beats rock. Jim and Eva are gearing up to play the game. The two stages of the experiment are Jim’s and Eva’s choices.
20 .
Paul is at the racetrack and is about to place a daily double bet, where he will try to predict the winner of 2 consecutive races. The stages of the experiment are the two races.
21 .
Mishka is looking for a song to play on a jukebox. The machine requires the user to choose an artist first, then choose a song from among that artist’s songs. The stages of the experiment are choosing the artist and choosing the song.
John is playing a game that involves flipping a coin and rolling dice. The coin flip happens first. If the outcome is heads, the player rolls a 4-sided die. If the outcome is tails, the player rolls a 6-sided die.
22 .
Create a tree diagram to display the possible outcomes of this game.
23 .
Give the sample space for the game.
In the casino game roulette, a wheel with colored and numbered pockets is spun. At the same time, a marble is spun in the opposite direction in such a way that after a minute or so the marble drops into one of the pockets. Players try to guess the color (red, black, or green) or the number that will appear.
24 .
Draw a tree diagram that shows the possible color outcomes for 3 spins of the wheel.
25 .
Give the sample space for the three-stage experiment.
26 .
Siobhan and Tristan are trying to decide where they will have dinner. Siobhan wants to go to Antoine’s, Burger Hut, or the Chowder Palace. Tristan prefers Burger Hut, Chowder Palace, or Duck Duck Taco. They will flip a coin to decide who gets to choose, then that person selects a restaurant from their list. Use an appropriate method to identify the sample space of possible outcomes, which include the person who chooses and the restaurant.
27 .
On the TV game show The Price Is Right, contestants play games to try to win prizes. One of these games is called “Let ‘Em Roll.” In this game, players roll five 6-sided dice. These dice each have 3 faces labeled with a car; the other 3 faces are labeled with prize money amounts (one each of $500, $1000, and $1500). Players get to roll all 5 dice, then have the opportunity to win additional rolls. If all 5 dice show a car, the contestant wins a new car. If not, the contestant can use any additional rolls to reroll the dice with prize money showing to try to win the car (or, they can take the total amount of money showing on the dice and end the game). Kathleen is playing this game, and she has 3 rolls to try to win the car. On her first roll, 3 of the dice showed cars. Use an appropriate method to find the sample space of the number of cars showing after each of the following rolls. Give those outcomes as ordered pairs: (number of cars after the second roll, number of cars after the third roll).
28 .
In the game Rock, Paper, Scissors, each of 2 players chooses 1 of the 3 title objects. The players reveal their choices simultaneously using hand signals. Jim and Eva are gearing up to play the game. List the sample space of all the possible outcomes of the first round of their game as ordered pairs of the form (Jim’s choice, Eva’s choice).
Order a print copy

As an Amazon Associate we earn from qualifying purchases.

Citation/Attribution

This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's permission.

Want to cite, share, or modify this book? This book uses the Creative Commons Attribution License and you must attribute OpenStax.

Attribution information
  • If you are redistributing all or part of this book in a print format, then you must include on every physical page the following attribution:
    Access for free at https://openstax.org/books/contemporary-mathematics/pages/1-introduction
  • If you are redistributing all or part of this book in a digital format, then you must include on every digital page view the following attribution:
    Access for free at https://openstax.org/books/contemporary-mathematics/pages/1-introduction
Citation information

© Dec 21, 2023 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution License . The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.