Skip to content

Sample space and events

5 min read

Short answer

The sample space SS is the set of all possible outcomes of an experiment, and an event is any subset of SS. When all outcomes are equally likely, P(A)=∣A∣∣S∣P(A)=\dfrac{|A|}{|S|}. Every probability question starts by writing down SS clearly, because a wrong sample space gives a wrong answer.

P(A) = |A| / |S|P(A) = |A| / |S|S all possible outcomesA the outcomes you care aboutEqually likely required for this formulaComplement P(not A) = 1 − P(A)
Count the outcomes in the event, divide by the outcomes in the sample space, but only when each outcome is equally likely.

Building the sample space

List outcomes so that exactly one of them happens each time. For two coin flips, S={HH,HT,TH,TT}S=\{HH,HT,TH,TT\} (four outcomes, not three: HTHT and THTH are different). For two dice, there are 6×6=366\times6=36 ordered pairs. Use a table, a tree or the counting principle when listing is too long.

Events and set language

"A or B" is the union A∪BA\cup B, "A and B" is the intersection A∩BA\cap B, and "not A" is the complement AcA^c. Always P(Ac)=1−P(A)P(A^c)=1-P(A), which is often the shortest route when the event contains the phrase "at least one".

Worked example

Three fair coins are flipped. What is the probability of at least two heads?

The sample space has 23=82^3=8 equally likely outcomes. At least two heads: HHH,HHT,HTH,THHHHH,HHT,HTH,THH, which is 4 outcomes. P=48=12.P=\frac48=\frac12. Check via complement: fewer than two heads means TTT,HTT,THT,TTHTTT,HTT,THT,TTH, also 4 outcomes, so 1−12=121-\tfrac12=\tfrac12. ✓

Try it yourself

Two fair dice are rolled. What is the probability that the sum is at least 10?

Show the answer

Sums of 10: (4,6),(5,5),(6,4)(4,6),(5,5),(6,4); 11: (5,6),(6,5)(5,6),(6,5); 12: (6,6)(6,6). That is 6 outcomes out of 36, so P=16P=\tfrac16.

Keep going with practice

Sample spaces and events open the probability half of Vidi's Linear Algebra & Probability course.