Leave lesson

Probability · Basic probability

1 / 16

Sample space & systematic listing

How to list every outcome once and only once — systematic listing, two-way sample-space diagrams, the product rule for counting, and why swapping two things over sometimes makes a new outcome and sometimes doesn't.

Probability · Basic probability

Sample space & systematic listing

How to list every outcome once and only once — systematic listing, two-way sample-space diagrams, the product rule for counting, and why swapping two things over sometimes makes a new outcome and sometimes doesn't.

Why it works

When every outcome of an experiment is equally likely,

P(event)=number of favourable outcomestotal number of possible outcomes.P(\text{event}) = \frac{\text{number of favourable outcomes}}{\text{total number of possible outcomes}}.

Both numbers in that fraction are counts. So this whole topic is really one skill: counting the outcomes without missing any and without counting any twice. The complete list of everything that could happen is the sample space.

Why "systematic" is the whole game. Ask someone to list the outcomes of flipping three coins and they will usually write HHH, HHT, THH, TTT, and then stare at the page wondering what's left. Scribbling down outcomes as they occur to you is exactly how you lose marks — you have no way of knowing when you've finished. Instead, fix one thing and run through all the others, then change the fixed thing:

HHH, HHT, HTH, HTTfirst coin H,THH, THT, TTH, TTTfirst coin T.\underbrace{HHH,\ HHT,\ HTH,\ HTT}_{\text{first coin }H},\qquad \underbrace{THH,\ THT,\ TTH,\ TTT}_{\text{first coin }T}.

Eight outcomes, in a pattern you can see is complete: within each half the last two coins run HH, HT, TH, TT — an order that never wavers. A list built this way can't skip an outcome (the pattern would have a hole in it) and can't repeat one (every entry differs from the one before it in a controlled way).

Two events at once: the sample-space diagram. When there are exactly two stages, a table is better than a list. Put one event down the side and the other across the top; every cell is one outcome. For two fair dice, put the total in each cell:
++123456
1234567
2345678
3456789
45678910
567891011
6789101112
There are 6×6=366 \times 6 = 36 cells, and — this is the point — the 36 cells are equally likely. Reading a probability off the table is then just counting cells: a total of 55 appears 44 times, so P(total=5)=436=19P(\text{total} = 5) = \tfrac{4}{36} = \tfrac{1}{9}.

The trap, made concrete. Look at that table and a tempting shortcut appears: "the total can be anything from 22 to 1212, that's 1111 possible outcomes, so P(total=5)=111P(\text{total} = 5) = \tfrac{1}{11}." It is wrong, and it's worth being precise about why. The formula at the top only applies to outcomes that are equally likely, and the eleven totals are not: a total of 22 occupies one cell, a total of 77 occupies six. Counting totals silently glues six equally likely cells together and calls the result one outcome. The 3636 cells are the honest sample space; the totals are a summary of it.

The same trap wearing different clothes: list the two-dice outcomes as unordered sets — {1,1},{1,2},{1,3},,{6,6}\{1,1\}, \{1,2\}, \{1,3\}, \dots, \{6,6\} — and you get 2121 of them. But {1,2}\{1,2\} happens two ways (red 1 blue 2, or red 2 blue 1) while {1,1}\{1,1\} happens only one way, so those 2121 are not equally likely either, and P(total=3)121P(\text{total} = 3) \neq \tfrac{1}{21}. Merging outcomes that aren't identical, or splitting one outcome into two, both break the fraction.

The product rule for counting. You don't always need to see the whole list — often you only need its size. If stage 1 can happen in mm ways and stage 2 in nn ways, then the two stages together can happen in

m×n ways.m \times n \text{ ways.}

Why multiply? Because the sample-space table has mm rows and nn columns, and every cell is a different outcome: each of the mm first-stage outcomes pairs up with every one of the nn second-stage outcomes. Adding would be counting the stages as alternatives ("either a die roll or a coin flip") rather than as things that both happen.

It keeps going for more stages. A menu with 33 starters, 44 mains and 22 desserts gives 3×4×2=243 \times 4 \times 2 = 24 meals: each of the 1212 starter-and-main pairs branches into 22 meals. A four-digit PIN using digits 0099 with repeats allowed gives 10×10×10×10=1000010 \times 10 \times 10 \times 10 = 10\,000. If a restriction applies to one stage, apply it to that stage's count and leave the others alone: a PIN that must start with an odd digit has 5×10×10×10=50005 \times 10 \times 10 \times 10 = 5000 possibilities.

Ordered or unordered — the question to ask. Two dice, one red and one blue, are distinguishable: red 2 with blue 5 is a different cell from red 5 with blue 2, and both belong in the sample space. But choosing two people from a group of six to attend a conference is not like that: picking Ana then Ben gives the same pair as picking Ben then Ana. Here 6×5=306 \times 5 = 30 counts every pair exactly twice, so the number of pairs is

6×52=15.\frac{6 \times 5}{2} = 15.

The test is one sentence: swap the two things over — is the result genuinely different? For a chairperson and a secretary chosen from the six, swapping gives a different arrangement, so it stays 6×5=306 \times 5 = 30. For two delegates with the same job, swapping changes nothing, so you halve it. Getting this backwards is the single most common way a correct method produces a wrong number — always exactly a factor of 22 out for pairs.