Compound events with tables¶
Probability · level 4, lesson 1 of 6
A question to start¶
Toss a coin and roll a die at the same time. How many different results are possible?
A very common answer is 8: two for the coin plus six for the die. Another is 6, because "the die has 6 and the coin just comes along".
Both are wrong. The answer is 12, and once you see why, you have the key to every problem about two things happening at once. You will also be able to say, in a few seconds, that the chance of "heads and an even number" is exactly \(\tfrac{3}{12} = \tfrac14\).
The idea¶
Compound experiments¶
A compound experiment is two or more simple experiments done together, or one after the other: a coin and a die, two spinners, choosing a main course and a drink, rolling a die twice. An outcome of the compound experiment says what happened in each part. So it is a pair (or a list), like "heads and 4", written \((H, 4)\) or just \(H4\).
A compound event is a group of these pairs: "heads and an even number", "the two spinners match", and so on.
Building the table¶
The safest way to list every pair is a table, also called a grid. Put the outcomes of one experiment down the side and the outcomes of the other along the top. Every square is one pair.
The coin has 2 rows. The die has 6 columns. Every row has all 6 columns, so the number of squares is
That is why we multiply, not add. Adding (2 + 6) counts the coin's results and the die's results separately, as if you either toss the coin or roll the die. But we do both, and every coin result can go with every die result. Each of the 2 coin results opens up a whole row of 6.
This is a general rule. If one experiment has \(m\) outcomes and the other has \(n\), doing both has \(m \times n\) outcomes. In level 3 the two dice gave \(6 \times 6 = 36\).
When are the squares equally likely?¶
We want to use the fraction rule, so we need the 12 squares to be equally likely. They are, when two things are true:
- Each part on its own has equally likely outcomes. The coin is fair; the die is fair.
- The parts do not affect each other. The coin does not know what the die did.
Why does that give equal squares? Picture doing the experiment 1200 times. The coin lands heads in about 600 of them. In those 600, the die does not care about the coin, so it shares itself out equally: about 100 of each face. So \(H1\), \(H2\), ..., \(H6\) each happen about 100 times, and the same is true for the tails row. Every square gets about 100 out of 1200, which is one in 12.
(Lesson 4 of this level gives the second condition its proper name: independence.)
Reading events from the table¶
Once you have the table, an event is just a set of squares. Shade them and count.
- "Heads and an even number": the squares \(H2\), \(H4\), \(H6\), shaded blue above. So \(P(H \text{ and even}) = \tfrac{3}{12} = \tfrac14\).
- "Heads or a 6": the whole heads row (6 squares) plus \(T6\) (1 more square). Do not count \(H6\) twice! So \(P(H \text{ or } 6) = \tfrac{7}{12}\).
"And" means a square must be in both groups. "Or" means it can be in either group, or both. Shading makes the difference easy to see.
Two spinners¶
The table works for any two experiments. Here spinner A has three equal parts (orange, blue, green) and spinner B has two equal halves (1 and 2).
There are \(3 \times 2 = 6\) equally likely pairs. So, for example, \(P(\text{green and } 2) = \tfrac16\), and \(P(\text{blue or } 1)\) is the B row (2 squares) plus \(O1\) and \(G1\) (2 more), so \(\tfrac46 = \tfrac23\).
When the parts of a spinner are not equal¶
Suppose spinner C is half red, a quarter blue and a quarter yellow. You cannot make a table with one row for red, one for blue and one for yellow, because those rows would not be equally likely.
Use the trick from level 3: cut the spinner into equal pieces. Think of it as four quarters: red, red, blue, yellow. Now give it four rows, two of them red. Every square is equally likely again.
Worked examples¶
1. A coin and a die. Find \(P(\text{tails and more than } 4)\).
Tails row, columns 5 and 6: \(T5\), \(T6\). That is 2 of the 12 squares, so \(\tfrac{2}{12} = \tfrac16\).
2. Two spinners with numbers. Spinner P has 4 equal parts, 1 to 4. Spinner Q has 3 equal parts, 1 to 3. Both are spun and the numbers added. Make a table of sums.
| + | 1 | 2 | 3 |
|---|---|---|---|
| 1 | 2 | 3 | 4 |
| 2 | 3 | 4 | 5 |
| 3 | 4 | 5 | 6 |
| 4 | 5 | 6 | 7 |
There are \(4 \times 3 = 12\) squares.
- \(P(\text{sum } 5) = \tfrac{3}{12} = \tfrac14\) (the three 5s).
- \(P(\text{sum } 4) = \tfrac{3}{12} = \tfrac14\) as well.
- \(P(\text{sum is at least } 6) = \tfrac{3}{12} = \tfrac14\) (two 6s and one 7).
3. The unequal spinner and a coin. Spinner C (half red, quarter blue, quarter yellow) is spun and a coin is tossed. Find \(P(\text{red and heads})\).
Rows for C: red, red, blue, yellow. Columns: H, T. That is \(4 \times 2 = 8\) equally likely squares. Red and heads appears in 2 of them (one in each red row). So \(P = \tfrac28 = \tfrac14\).
Notice that \(\tfrac14\) is \(\tfrac12\) (red) of \(\tfrac12\) (heads). That is not an accident: lesson 4 shows why.
4. A captain and a vice-captain. Four friends, Ali, Bea, Cam and Dev, choose a captain and a vice-captain by lot. The same person cannot be both. What is the chance that Ali gets one of the two jobs?
Make a 4-by-4 table: captain down the side, vice-captain along the top. The squares on the diagonal (Ali-Ali, Bea-Bea, and so on) are impossible, so cross them out. That leaves \(16 - 4 = 12\) equally likely squares.
Ali is captain in 3 squares (with Bea, Cam or Dev as vice) and vice-captain in 3 more. So \(P = \tfrac{6}{12} = \tfrac12\).
This is a table where the second choice depends on the first: once a captain is chosen, only 3 people are left. The table handles it by crossing out squares.
5. Rock, paper, scissors. Two players each choose at random. The table has \(3 \times 3 = 9\) squares. Three of them are draws (the diagonal). Of the other six, player A wins in 3 (rock beats scissors, scissors beats paper, paper beats rock) and B wins in 3. So \(P(\text{draw}) = P(\text{A wins}) = P(\text{B wins}) = \tfrac39 = \tfrac13\). A fair game.
Try it¶
- A coin is tossed and a die is rolled. Find \(P(H \text{ and } 5)\) and \(P(T \text{ and odd})\).
- Two spinners each have 4 equal parts numbered 1 to 4. How many outcomes are there? Find \(P(\text{the numbers match})\) and \(P(\text{the sum is } 5)\).
- Spinner P (1 to 4) and spinner Q (1 to 3) are spun and the numbers multiplied. Find \(P(\text{the product is even})\).
- A café offers pizza, soup or salad, and juice or milk. You pick a main and a drink at random. Find \(P(\text{pizza and juice})\) and \(P(\text{soup or milk})\).
- A coin is tossed and a die is rolled. Find \(P(H \text{ or a number less than } 3)\).
- Spinner C (half red, quarter blue, quarter yellow) is spun twice. Using rows red, red, blue, yellow and the same columns, find \(P(\text{both red})\) and \(P(\text{same colour twice})\).
- Five people are in a club. A president and a secretary are chosen by lot, and they must be different people. How many outcomes are there? What is the chance that Mo and Lin get the two jobs (in either order)?
- Two coins and a die are thrown. How many outcomes are there? What is \(P(\text{two heads and a } 6)\)?
Answers
- \(H5\) is 1 square: \(\tfrac{1}{12}\). Tails and odd: \(T1\), \(T3\), \(T5\): \(\tfrac{3}{12} = \tfrac14\).
- \(4 \times 4 = 16\). Matches: (1, 1), (2, 2), (3, 3), (4, 4), so \(\tfrac{4}{16} = \tfrac14\). Sum 5: (1, 4), (2, 3), (3, 2), (4, 1), so \(\tfrac{4}{16} = \tfrac14\).
- A product is odd only when both numbers are odd: P is 1 or 3, Q is 1 or 3, which is \(2 \times 2 = 4\) squares. So 8 of the 12 are even: \(\tfrac{8}{12} = \tfrac23\).
- \(3 \times 2 = 6\) squares. Pizza and juice: \(\tfrac16\). Soup or milk: soup row (2) plus pizza-milk and salad-milk (2 more) is 4 squares, \(\tfrac46 = \tfrac23\).
- The heads row (6 squares) plus \(T1\) and \(T2\) (2 more): \(\tfrac{8}{12} = \tfrac23\).
- \(4 \times 4 = 16\) squares. Both red: 2 red rows times 2 red columns, 4 squares, \(\tfrac{4}{16} = \tfrac14\). Same colour: red-red 4, blue-blue 1, yellow-yellow 1, total 6: \(\tfrac{6}{16} = \tfrac38\).
- A 5-by-5 table minus the 5 diagonal squares: \(25 - 5 = 20\) outcomes (or \(5 \times 4\)). Mo and Lin in either order: 2 squares. \(\tfrac{2}{20} = \tfrac{1}{10}\).
- \(2 \times 2 \times 6 = 24\) outcomes. Only one is \((H, H, 6)\): \(\tfrac{1}{24}\).
Common mistake¶
Adding instead of multiplying. A coin and a die give \(2 \times 6 = 12\) outcomes, not \(2 + 6 = 8\). Each coin result is paired with every die result.
Counting an overlap twice for "or". For "heads or a 6", the square \(H6\) is in both groups. Shade the squares and count each shaded square once.
Where it leads¶
- Next: Tree diagrams, which handle three or more stages, where tables run out of directions.
- Level 4 page · Probability topic page
- Before this: the two-dice table in level 3.
- Counting pairs without drawing the table, \(m \times n\): Counting.
- "Or" without double counting becomes the addition rule in level 5; "given" questions on tables are level 6.