Sub topic 1
Sample spaces and events
Every probability problem on the GRE starts with the same question: what can happen? This chapter covers how to list the possible results of a random process and how to describe the results you care about. The later rules for "and", "or", and conditional probability all depend on this step.
Prerequisites
This chapter assumes you can:
- Work with fractions, ratios, and percents, and simplify and compare fractions.
- Use the multiplication principle for counting. For example, 3 shirts and 4 pants give 3 × 4 = 12 outfits.
- Read a Venn diagram with overlapping circles.
Experiments, outcomes, and the sample space
A random experiment is a process whose result you cannot predict with certainty, even though you know every result that could occur. Rolling a die, flipping a coin, and drawing a marble from a bag are all random experiments.
An outcome is one single, complete result of the experiment. The sample space is the set of all possible outcomes. It is often written S.
Here are three sample spaces:
| Experiment | Sample space | Size |
|---|---|---|
| Flip one coin | {H, T} | 2 |
| Roll one die | {1, 2, 3, 4, 5, 6} | 6 |
| Draw one marble from a bag with 3 red and 2 blue marbles | 5 distinct marbles | 5 |
Two properties make a sample space usable:
- Complete. Every possible result appears in the list.
- Non-overlapping. Any one run of the experiment produces exactly one outcome from the list.
Events are subsets of the sample space
An event is a collection of outcomes that you group together because they satisfy a condition. In math terms, an event is a subset of the sample space. For a single die:
- A = "the roll is even" = {2, 4, 6}
- B = "the roll is greater than 4" = {5, 6}
- C = "the roll is 7" = { } (no outcomes)
An event happens when the actual outcome is one of its members. If the die shows 6, both A and B have happened.
Two special events come up often:
- The impossible event has no outcomes, like C above. It is written ∅.
- The certain event is the whole sample space S. "The roll is at most 6" is an example.
The diagram below shows how the pieces fit together.
Building a sample space with more than one stage
Many GRE problems repeat an experiment, such as two dice or three coin flips. The sample space then contains ordered sequences of results. The multiplication principle gives its size:
- Three coin flips: 2 × 2 × 2 = 8 outcomes.
- Two dice: 6 × 6 = 36 outcomes.
The eight outcomes of three flips are HHH, HHT, HTH, HTT, THH, THT, TTH, and TTT.
Take the event "exactly two heads". It contains HHT, HTH, and THH, so it has 3 of the 8 outcomes. These are three different outcomes because the position of the tail differs.
You can have a computer list the sample space for two dice and pick out an event:
from itertools import product
space = list(product(range(1, 7), repeat=2)) # every (first die, second die) pair
print(len(space)) # 36
sum_is_8 = [o for o in space if sum(o) == 8]
print(sum_is_8) # [(2, 6), (3, 5), (4, 4), (5, 3), (6, 2)]
print(len(sum_is_8)) # 5The pair (2, 6) and the pair (6, 2) are separate outcomes. The pair (4, 4) appears once. That detail matters in the next section.
Choosing outcomes that are equally likely
When you compare probabilities later, you will count favorable outcomes and divide by total outcomes. That method is only valid if every outcome in your sample space is equally likely. This is the most common place to go wrong, so check it now.
Consider the sum of two dice. The possible sums are 2 through 12, which is 11 values. It is tempting to treat these 11 sums as the sample space, but they are not equally likely. Counting the ordered pairs behind each sum shows why:
from collections import Counter
from itertools import product
space = list(product(range(1, 7), repeat=2))
counts = Counter(a + b for a, b in space)
for total in sorted(counts):
print(total, counts[total])
# 2 1
# 3 2
# 4 3
# 5 4
# 6 5
# 7 6
# 8 5
# 9 4
# 10 3
# 11 2
# 12 1A sum of 7 can occur in 6 ways, and a sum of 2 can occur in only 1 way. The 36 ordered pairs are equally likely, so they make a sound sample space. The 11 sums do not.
Distinguishing identical-looking objects
The same rule applies to drawing marbles. In a bag with 3 red and 2 blue marbles, "red" and "blue" are not equally likely outcomes. Treat each marble as its own outcome: R1, R2, R3, B1, B2. Then 5 equally likely outcomes exist, and the event "red" contains 3 of them.
Likewise, treat two coins as distinguishable even if they look the same. The outcome HT (first coin heads, second tails) differs from TH. Counting "one head and one tail" as a single outcome gives a sample space of {HH, HT-or-TH, TT}, and those three are not equally likely.
Describing events with words, symbols, and sets
GRE problems state events in words. Convert each statement into a precise condition before you count. Here are some common translations for one roll of a die:
| Wording | Condition | Outcomes |
|---|---|---|
| "is a prime number" | 2, 3, or 5 | {2, 3, 5} |
| "is at least 5" | 5 or more | {5, 6} |
| "is more than 5" | greater than 5 | {6} |
| "is not 3" | any outcome except 3 | {1, 2, 4, 5, 6} |
| "is at most 2" | 2 or less | {1, 2} |
Watch words like "at least", "at most", "more than", and "fewer than". Each one changes whether the boundary value belongs to the event. Note too that 1 is not prime, so it is excluded from the first row.
Events can also be described by their relationship to each other, which you will need in later chapters:
- "A and B" is the set of outcomes in both events. For A = {2, 4, 6} and B = {5, 6}, this is {6}.
- "A or B" is the set of outcomes in at least one event. Here this is {2, 4, 5, 6}.
- "Not A" is every outcome of S outside A. Here this is {1, 3, 5}.
In everyday speech "or" sometimes means "one or the other but not both". In probability, "A or B" includes outcomes that are in both events.
A repeatable procedure
Use these steps on any probability question, and start with step 1 before touching a formula:
- Identify the experiment and each stage of it.
- Decide what counts as one outcome, and make sure the outcomes are equally likely.
- Find the size of the sample space, using the multiplication principle when there are several stages.
- Write the event as a condition, then list or count the outcomes that meet it.
- Check the edge cases. An event might be empty, or it might be the entire sample space.
Worked example
A bag holds 4 cards numbered 1, 2, 3, 4. You draw one card, put it back, then draw a second card. What is the size of the sample space, and how many outcomes are in the event "the two cards add to 5"?
- Each draw has 4 possible results, and the card is replaced, so the stages do not affect each other. The sample space has 4 × 4 = 16 ordered pairs.
- Pairs that add to 5 are (1, 4), (2, 3), (3, 2), and (4, 1). That is 4 outcomes.
So the event has 4 of the 16 equally likely outcomes. The next chapter turns that count into a probability.
Exercise
You flip a fair coin and then roll a fair six-sided die. (a) How many outcomes are in the sample space? (b) How many outcomes are in the event "the coin shows heads and the die shows an even number"? (c) Why is "heads and even" a poor way to define the sample space?
Show answer
(a) The two stages give 2 × 6 = 12 outcomes, from (H, 1) through (T, 6). (b) The coin must be H, and the die must be 2, 4, or 6, so the event is {(H, 2), (H, 4), (H, 6)}, which has 3 outcomes. (c) Collapsing results into categories such as "heads and even" discards information. The categories are not equally likely: only 3 of the 12 outcomes fall in "heads and even", while "tails or odd" covers 9. A sound sample space lists the 12 detailed outcomes, and events are built from them.