Learn on your own. Parents beside you. Teachers guide.

Lemonmath
Tiếng Việt

Random experiments and sample spaces

Lesson 8.1 · 20 min read · Updated

An and Binh play a game with two coins: if the two coins land the same way up, An wins; if they land differently, Binh wins. Binh complains: "There are only three possibilities: two heads, two tails, or one head and one tail. An has two ways to win and I have only one. It's not fair!" Is Binh right? To find out, we have to list every possible outcome, with nothing missing and nothing counted twice. That sounds easy, but it is very easy to get wrong, and listing outcomes correctly is the first step in every probability problem.

Random experiments and sample spaces

Think of rolling a dice, drawing lots, or picking a student to come to the board. Before we do any of these, we know which outcomes are possible. What we cannot know is which one will happen. Activities like this have a name, and so does the set of their outcomes.

Going deeper. Two points are worth a moment. First, drawing a card from a box in which every card shows the number 55 is not a random experiment, because the outcome is known in advance. Second, what counts as an "outcome" depends on what we choose to record. Roll a dice and record the score, and Ω={1,2,3,4,5,6}\Omega=\{1,2,3,4,5,6\}. Record only "even" or "odd", and Ω={even,odd}\Omega=\{\text{even}, \text{odd}\}. So before listing anything, ask yourself: what information makes up one outcome?

Tree diagrams for two-step experiments

When an experiment has two steps, such as tossing two coins or drawing two lots, one outcome has two parts: the result of step 1, then the result of step 2. We call this an ordered pair. How do we list them all without missing any? We draw a tree diagram. From the root, draw one branch for each result of step 1. From the end of each of these, draw one branch for each result of step 2. Each path from the root to a tip gives exactly one outcome.

(T, T)(T, H)(H, T)(H, H)Coin 1Coin 2THTHTH
Tree diagram for tossing two coins

Using a table for two-step experiments

When each step has many results, a tree diagram becomes crowded and hard to read. Then we switch to a table: rows for the results of step 1, columns for the results of step 2, and each cell is one outcome. The example with two dice below shows where a table beats a tree.

Connections. In year 8 you found probabilities when rolling one dice. This lesson prepares the ground for the probability of an event: to find a probability, we must first list the sample space correctly. And the way of counting, (branches at step 1) \times (branches at step 2), becomes the multiplication rule in year 10.

Key terms

Summary

  • Experiment: the outcome is not known in advance. Sample space \Omega: the set of all possible outcomes.
  • Two-step experiment: each outcome is an ordered pair; list them with a tree diagram or a table.
  • Number of elements = (branches at step 1) \times (branches at step 2). Back to An and Binh's game: once we list the outcomes correctly and completely, Binh turns out to have been mistaken. Whenever you meet a new experiment, draw the tree or the table before you count, and then try the practice exercises to make it familiar.

Practice

Each exercise comes with what you need and some hints. Try it yourself first, then open the solution.

Exercise 1

Describe the sample space of each experiment:

a) Take a pen at random from a box containing four pens: red, blue, black and purple.

b) A family has two children; record the sex of the first child and then of the second (B for boy, G for girl).

What you need and how to start

What you need: the sample space is the set of all possible outcomes; with two steps, each outcome is an ordered pair.

Steps:

  1. List the pen colours.
  2. Draw a tree diagram for the two children.
Show solution

The sample space \Omega is the set of all possible outcomes of the experiment.

a) The pen taken can be red, blue, black or purple. Hence \Omega=\{\text{red}, \text{blue}, \text{black}, \text{purple}\}.

The sample space has 4 elements.

b) Each outcome is a pair (x, y), where x is the sex of the first child and y the sex of the second; each position can be B or G. Hence \Omega=\{(B, B),\ (B, G),\ (G, B),\ (G, G)\}.

The sample space has 2\cdot2=4 elements.

So the two sample spaces are \{\text{red}, \text{blue}, \text{black}, \text{purple}\} and \{(B, B), (B, G), (G, B), (G, G)\}.

Answer. a) \{\text{red}, \text{blue}, \text{black}, \text{purple}\}; b) \{(B, B), (B, G), (G, B), (G, G)\}.

Exercise 2

Toss a coin and then roll a dice. Describe the sample space and state its number of elements.

What you need and how to start

What you need: use a table or a tree diagram; the number of elements is 2\cdot6.

Steps:

  1. Each outcome has the form (side of the coin, score).
  2. List the outcomes with T, then with H.
Show solution

Write H for heads and T for tails. Each outcome is a pair (x, y), where x is the side of the coin (H or T) and y is the score on the die (1, 2, …, 6).

Hence \Omega=\{(H, 1), (H, 2), \ldots, (H, 6), (T, 1), (T, 2), \ldots, (T, 6)\}.

The coin has 2 outcomes, and for each of them the die has 6 outcomes. By the multiplication rule, the number of elements of \Omega is 2\cdot6=12.

So the sample space has 12 elements.

Answer. 12 elements.

Exercise 3

From three cards showing the digits 1, 2, 3, two cards are drawn at random one after the other (without replacement) and placed in the order drawn to make a two-digit number. List the sample space.

What you need and how to start

What you need: without replacement, the two digits are different; the order drawn decides the number.

Steps:

  1. The first card has 3 possibilities, the second 2.
  2. Write down the numbers formed.
Show solution

The two cards are drawn one after the other without replacement, so the tens digit and the units digit are different.

  • The first card can be 1, 2 or 3: 3 ways.
  • For each of these, the second card is one of the two remaining cards: 2 ways.

Listing by the first card, we get the numbers 12, 13; 21, 23; 31, 32.

Hence \Omega=\{12, 13, 21, 23, 31, 32\}, with 3\cdot2=6 elements.

So the sample space is \{12, 13, 21, 23, 31, 32\}.

Answer. \{12, 13, 21, 23, 31, 32\}.

Exercise 4

Suppose the school canteen offers three main dishes: chicken rice (C), noodles (B) and sticky rice (X), and two drinks: milk (S) and orange juice (O). Minh chooses a main dish and a drink at random. Use a table to describe the sample space.

What you need and how to start

What you need: a table with the main dishes as rows and the drinks as columns.

Steps:

  1. Draw a table with 3 rows and 2 columns.
  2. Each cell is a pair (main dish, drink).
Show solution

The table has 3 rows C, B, X and 2 columns S, O, and each cell is one outcome, so

\Omega=\{(C, S),\ (C, O),\ (B, S),\ (B, O),\ (X, S),\ (X, O)\}.

So the sample space has 3\cdot2=6 elements.

Answer. 6 elements.

Exercise 5

The teacher chooses two of the four students An (A), Binh (B), Chi (C) and Dung (D) at the same time, at random, to tidy the classroom. Describe the sample space.

What you need and how to start

What you need: choosing at the same time means there is no order: \{A, B\} and \{B, A\} are the same.

Steps:

  1. Pair A with each student after A, then B with each student after B, …
  2. Count the pairs.
Show solution

The two students are chosen together, so order does not matter: each outcome is a group of two students. We write, for example, AB for the outcome "An and Binh are chosen".

Listing by the first name in the group:

  • groups with An: AB, AC, AD;
  • groups with Binh (without An): BC, BD;
  • the remaining group: CD.

Hence \Omega=\{AB, AC, AD, BC, BD, CD\}.

So the sample space has 6 elements.

Answer. 6 elements.

Exercise 6

(1.5 marks) A box contains four cards showing the numbers 1, 2, 3, 4. Two cards are drawn at random, one after the other.

a) The cards are drawn without replacement. Describe the sample space and state its number of elements.

b) List the outcomes in which the two numbers add up to 5.

c) If the cards are drawn with replacement, how many elements does the sample space have?

What you need and how to start

What you need: a tree diagram or a table; without replacement, the two cards are different.

Steps:

  1. Each first card is followed by 3 possible second cards.
  2. Find the pairs with total 5, remembering the order.
  3. With replacement, each step has 4 possibilities.
Show solution

Each outcome is a pair (i, j), where i is the number on the first card and j the number on the second card.

a) The cards are drawn without replacement, so i\neq j. Hence \Omega=\{(i, j)\mid i, j\in\{1, 2, 3, 4\},\ i\neq j\}.

There are 4 ways for the first draw and 3 ways for the second. By the multiplication rule, \Omega has 4\cdot3=12 elements.

b) The pairs of different numbers in \{1, 2, 3, 4\} with sum 5 are 1+4 and 2+3. Taking the order of drawing into account, we get the outcomes (1, 4),\ (4, 1),\ (2, 3),\ (3, 2).

c) With replacement, the second card can be the same as the first: there are 4 ways each time. By the multiplication rule, the sample space has 4\cdot4=16 elements.

So a) the sample space has 12 elements; b) there are 4 outcomes with sum 5; c) the sample space has 16 elements.

Answer. a) 12; b) (1, 4), (4, 1), (2, 3), (3, 2); c) 16.

Exercise 7

Lan's group tosses two coins 40 times and records the number of heads: 0 heads: 9 times; 1 head: 21 times; 2 heads: 10 times.

a) Find the relative frequency of each result. (Revise relative frequency.)

b) Using the sample space, explain why "1 head" occurs nearly twice as often as each of the other results.

What you need and how to start

What you need: f=\dfrac{m}{n}\cdot100\%; \Omega=\{(T, T), (T, H), (H, T), (H, H)\}.

Steps:

  1. Divide each frequency by 40.
  2. Count the elements of \Omega with exactly one head.
Show solution

a) We have \dfrac{9}{40}=22.5\%, \dfrac{21}{40}=52.5\%, \dfrac{10}{40}=25\%.

b) Of the 4 outcomes in \Omega, 2 have exactly one head, (T, H) and (H, T), while "0 heads" and "2 heads" each correspond to only 1 outcome.

So "1 head" corresponds to twice as many outcomes, which is why it occurs more often.

Answer. a) 22.5\%, 52.5\%, 25\%. b) It corresponds to 2 of the 4 outcomes.

Exercise 8 Challenge

Roll two dice. How many outcomes in the sample space have scores that differ by at least 3?

What you need and how to start

What you need: use the 6\times6 table; count by each difference.

Steps:

  1. Count the pairs (i, j) with i-j equal to 3, 4, 5.
  2. Double, since j can be greater than i.
Show solution

The pairs with i-j=3 are (4, 1), (5, 2), (6, 3); with i-j=4: (5, 1), (6, 2); with i-j=5: (6, 1). That gives 3+2+1=6 pairs with i>j, and 6 symmetric pairs with j>i.

So there are 12 outcomes.

Answer. 12.

Mini test

Mini test

Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.

Part I. Multiple choice

Question 1. A dice is rolled. The number of elements in the sample space is
Question 2. Two coins are tossed. The sample space is
Question 3. Two dice are rolled. The number of elements in the sample space is
Question 4. A box has 4 marbles of different colours. Two marbles are taken out one after the other, without replacement. The number of elements in the sample space is

Part II. True or false

Question 1. A box contains three cards showing 1, 2, 3. Two cards are drawn at random one after the other, with replacement. Decide whether each statement is true or false.
a) The sample space has 9 elements.
b) (1, 1) is an element of the sample space.
c) (1, 2) and (2, 1) are the same outcome.
d) There are 3 outcomes in which both cards show the same number.

Part III. Short answer

Question 1. Roll two dice. How many outcomes have a total score of 9?

Question 2. Two of five students are chosen at random at the same time. How many elements does the sample space have?

Show answers and explanations
  1. Part I, question 1: C. \Omega=\{1, 2, 3, 4, 5, 6\}. A thinks "only one face comes up each time", B confuses this with tossing one coin, D is the number of outcomes for two dice.
  2. Part I, question 2: D. A wrongly merges (T, H) with (H, T), B is the sample space for one coin, C contains only the outcomes with different faces.
  3. Part I, question 3: B. 6\cdot6=36. A adds 6+6, C counts unordered pairs, D is for one dice.
  4. Part I, question 4: A. 4\cdot3=12. B is with replacement, C is taking both at once (unordered), D adds 4+4.
  5. Part II, question 1: a) True; b) True; c) False; d) True. a) True: 3\cdot3=9. b) True, because of replacement. c) False: the order of drawing differs. d) True: (1, 1), (2, 2), (3, 3).
  6. Part III, question 1: 4. (3, 6), (4, 5), (5, 4), (6, 3).
  7. Part III, question 2: 10. Pair each student with those after them: 4+3+2+1=10.
📈 My progress

Finding Lemonmath useful?

Send this page to a friend, a parent or a teacher who could use it. Studying on your own is easier with company, and Lemonmath is free for everyone.

Facebook ✉ Email