Skip to content

Unit 2: Probability, Random Variables, and Probability Distributions

Introduction to Probability

List a sample space, find probabilities by counting equally likely outcomes, check a probability model, and use the complement rule for "not" and "at least one".

Topic 2.4 · 9 min read

Topic 2.3 estimated probabilities by repeating a random process many times. Sometimes you don't need to: if a fair four-sided die is rolled twice, you can list everything that can happen, see that each possibility is equally likely, and get an exact probability by counting. The counting only works if the list of possibilities is built correctly, so that comes first.

The sample space

The sample space of a random process, written SS, is the list of every possible outcome of one trial. Two requirements make a list a sample space:

  • Complete: every possible result is on the list, so every trial produces something on it.
  • Nonoverlapping: no two outcomes on the list can happen on the same trial, so every trial produces exactly one outcome on it.

Because some outcome in SS happens on every trial, the event "the outcome is in SS" always happens. Its probability is P(S)=1P(S) = 1.

For one roll of a six-sided die, S={1,2,3,4,5,6}S = \{1, 2, 3, 4, 5, 6\}. The list {even,odd}\{\text{even}, \text{odd}\} is also a valid sample space for that roll: every roll is exactly one of the two. But {even,greater than 3}\{\text{even}, \text{greater than } 3\} is not. A roll of 4 is in both (overlap), and a roll of 1 is in neither (incomplete).

There is usually more than one valid sample space, and the choice matters. For two flips of a coin, both of these are complete and nonoverlapping:

S1={HH,HT,TH,TT}S2={0 heads,1 head,2 heads}S_1 = \{HH, HT, TH, TT\} \qquad S_2 = \{0 \text{ heads}, 1 \text{ head}, 2 \text{ heads}\}

The four outcomes in S1S_1 are equally likely, since each flip is a fair 50-50 and the flips don't affect each other. The three outcomes in S2S_2 are not: "1 head" happens two ways (HT and TH), so it is twice as likely as "0 heads." Which leads to the counting rule and its one condition.

Equally likely outcomes: probability by counting

When every outcome in the sample space has the same chance of happening, the probability of an event EE is

P(E)=number of outcomes in Enumber of outcomes in the sample spaceP(E) = \frac{\text{number of outcomes in } E}{\text{number of outcomes in the sample space}}

Here is why. Suppose SS has kk equally likely outcomes. Their probabilities are all the same number, and they must add to P(S)=1P(S) = 1, so each one has probability 1k\frac{1}{k}. An event made of mm of those outcomes then has probability m⋅1k=mkm \cdot \frac{1}{k} = \frac{m}{k}.

Take two rolls of a fair four-sided die (faces 1 to 4). The sample space has 4×4=164 \times 4 = 16 equally likely ordered pairs. The table shows the sum for each pair:

First rollSecond: 1Second: 2Second: 3Second: 4
12345
23456
34567
45678

Let EE be "the sum is 5." Four cells contain 5, so P(E)=416=0.25P(E) = \frac{4}{16} = 0.25. Let TT be "the sum is 2"; one cell, so P(T)=116=0.0625P(T) = \frac{1}{16} = 0.0625. The seven possible sums 2 through 8 are not equally likely, which is exactly why you count the 16 pairs and not the 7 sums.

The condition is the whole rule. A lottery ticket either wins or loses, but that does not make P(win)=12P(\text{win}) = \frac{1}{2}. Without equally likely outcomes, probabilities come from long-run relative frequencies (topic 2.3) or from a model someone has built, not from counting.

Every probability is between 0 and 1

For any event EE, 0≤P(E)≤10 \le P(E) \le 1. Under equal likelihood this is clear from the formula: the count of outcomes in EE is at least 0 and at most the count in SS. Under the long-run view it is just as clear: a relative frequency can't be negative and can't exceed 1. A probability of 0 means the event never happens (a sum of 9 on two four-sided dice), and 1 means it always happens (a sum of at least 2).

When outcomes aren't equally likely, someone assigns each outcome a probability, and the result is a probability model. A model is valid only if each probability is between 0 and 1 and the probabilities of all outcomes in SS add to exactly 1. A model with a negative entry, or one whose entries sum to 0.95, is not a probability model at all. Finding a missing entry in a model is the same fact used in reverse: whatever is left over from 1 belongs to the missing outcome.

The complement rule

The complement of an event EE is the event "EE does not happen": all the outcomes in SS that are not in EE. It is written E′E', Eˉ\bar{E}, or ECE^C, all meaning the same thing.

EE and its complement split the sample space into two parts that don't overlap and together make up all of SS. Their probabilities therefore add to P(S)=1P(S) = 1:

P(EC)=1−P(E)P(E^C) = 1 - P(E)

For the two four-sided dice, the probability that the sum is not 5 is 1−0.25=0.751 - 0.25 = 0.75, and counting agrees: 12 of the 16 cells hold something other than 5.

The complement rule earns its keep when the event itself is long to count but its complement is short. "At least one" is the standard case. Let AA be "at least one of the two rolls is a 4." Its complement is "neither roll is a 4," which means both rolls are 1, 2 or 3: 3×3=93 \times 3 = 9 pairs. So

P(A)=1−916=716=0.4375P(A) = 1 - \frac{9}{16} = \frac{7}{16} = 0.4375

Counting directly confirms it: the last row and last column of the table have 4+4−1=74 + 4 - 1 = 7 cells (the corner cell, 4 and 4, is in both and is counted once). With more rolls, the direct count grows quickly while the complement stays a single case, "none."

Worked examples

Worked exampleExample 1: listing and counting

A sandwich shop's app has a "surprise me" button that picks one of 3 mains (burger, chicken, veggie) and one of 2 sides (fries, salad), with every main-and-side combination equally likely. Find the probability that the order (a) includes a salad and (b) is not a burger.

Show solution

The sample space is every main-side pair: burger-fries, burger-salad, chicken-fries, chicken-salad, veggie-fries, veggie-salad. That's 3×2=63 \times 2 = 6 outcomes, all equally likely, so counting works.

(a) Orders with salad: burger-salad, chicken-salad, veggie-salad. P(salad)=36=0.5P(\text{salad}) = \frac{3}{6} = 0.5.

(b) Burger orders: burger-fries, burger-salad, so P(burger)=26=13P(\text{burger}) = \frac{2}{6} = \frac{1}{3}. By the complement rule, P(not burger)=1−13=23≈0.667P(\text{not burger}) = 1 - \frac{1}{3} = \frac{2}{3} \approx 0.667. Counting the 4 non-burger outcomes gives 46\frac{4}{6}, the same answer.

Why list first: writing out all six pairs shows the outcomes are equally likely and makes each count something you can see, not something you assume.

Worked exampleExample 2: a model that isn't equally likely

A shipping company reports how many days its packages take to arrive.

Days12345 or more
Probability0.150.400.25?0.08

(a) Find the missing probability. (b) Find the probability that a package takes more than 1 day. (c) A competitor's table lists 0.20, 0.45, 0.25, 0.10 and 0.05 for the same five categories. Explain why it can't be correct.

Show solution

(a) The categories cover every possibility without overlap, so the probabilities must add to 1: 0.15+0.40+0.25+0.08=0.880.15 + 0.40 + 0.25 + 0.08 = 0.88, and the missing value is 1−0.88=0.121 - 0.88 = 0.12.

(b) "More than 1 day" is the complement of "1 day": 1−0.15=0.851 - 0.15 = 0.85. Adding the other four entries, 0.40+0.25+0.12+0.08=0.850.40 + 0.25 + 0.12 + 0.08 = 0.85, gives the same answer with more arithmetic.

(c) Its entries add to 0.20+0.45+0.25+0.10+0.05=1.050.20 + 0.45 + 0.25 + 0.10 + 0.05 = 1.05. The five categories make up the whole sample space, whose probability must be exactly 1, so this assignment is not a valid probability model.

You can't use counting here: the five categories are not equally likely, so a probability like 15\frac{1}{5} for "4 days" would be wrong. The probabilities come from the company's long-run records.

Worked exampleExample 3: exam-style question

At a school fair game, you spin a spinner with 4 equal sections numbered 1 to 4, then roll a fair six-sided die. You win if the die shows a number greater than the spinner's number.

(a) Describe the sample space and explain why its outcomes are equally likely.

(b) Find the probability of winning.

(c) Find the probability of not winning.

(d) A student argues, "There are only two outcomes, win or lose, so the probability of winning is 12\frac{1}{2}." Explain the error.

Show solution

(a) Each outcome is an ordered pair (spinner, die), with the spinner from 1 to 4 and the die from 1 to 6, so there are 4×6=244 \times 6 = 24 outcomes. The spinner's sections are equal, so each number is equally likely, and the die is fair; neither result affects the other, so all 24 pairs are equally likely.

(b) Count the winning pairs for each spinner value. Spinner 1: die 2 to 6, 5 pairs. Spinner 2: die 3 to 6, 4 pairs. Spinner 3: die 4 to 6, 3 pairs. Spinner 4: die 5 or 6, 2 pairs. That's 5+4+3+2=145 + 4 + 3 + 2 = 14 winning pairs, so

P(win)=1424=712≈0.583P(\text{win}) = \frac{14}{24} = \frac{7}{12} \approx 0.583

(c) By the complement rule, P(not win)=1−712=512≈0.417P(\text{not win}) = 1 - \frac{7}{12} = \frac{5}{12} \approx 0.417.

(d) The formula "outcomes in the event over outcomes in the sample space" only applies when the outcomes are equally likely. {win, lose} is a valid sample space, but win and lose are not equally likely: win covers 14 of the 24 equally likely pairs and lose covers 10. The probability of winning is 1424\frac{14}{24}, not 12\frac{1}{2}.

Why these moves: organizing the count by spinner value makes it complete and easy to check, and the answer to (d) names the condition that was broken (equally likely outcomes) and shows the right count. Exam answers for probability are judged on the setup as well as the number, so show the 14 and the 24, not only 0.583.

Where students lose points

Check yourself

  1. Question 1

    A fair six-sided die is rolled once. Which list is a valid sample space for this roll?

    1. A

      {even,greater than 3}\{\text{even}, \text{greater than } 3\}

    2. B

      {1,2,3,4,5}\{1, 2, 3, 4, 5\}

    3. C

      {less than 3, 3, greater than 3}\{\text{less than } 3,\ 3,\ \text{greater than } 3\}

    4. D

      {even,prime}\{\text{even}, \text{prime}\}

    Show answer

    C

    Every roll is exactly one of: less than 3 (1 or 2), 3, or greater than 3 (4, 5 or 6), so the list is complete with no overlap. Choice A overlaps at 4 and misses 1. Choice B misses 6. Choice D overlaps at 2 (even and prime) and misses 1.

  2. Question 2

    The probability that a randomly chosen adult in a town has a library card is 0.27. What is the probability that a randomly chosen adult in the town does not have a library card?

    Show answer

    1−0.27=0.731 - 0.27 = 0.73.

    "Does not have a card" is the complement of "has a card." The two events don't overlap and together cover every adult, so their probabilities add to 1.

  3. Question 3

    Which of the following could be a valid probability model for four outcomes A, B, C and D?

    1. A

      P(A)=0.2, P(B)=0.3, P(C)=0.4, P(D)=0.2P(A) = 0.2,\ P(B) = 0.3,\ P(C) = 0.4,\ P(D) = 0.2

    2. B

      P(A)=0.5, P(B)=0.5, P(C)=0, P(D)=0P(A) = 0.5,\ P(B) = 0.5,\ P(C) = 0,\ P(D) = 0

    3. C

      P(A)=0.6, P(B)=0.3, P(C)=0.2, P(D)=−0.1P(A) = 0.6,\ P(B) = 0.3,\ P(C) = 0.2,\ P(D) = -0.1

    4. D

      P(A)=0.25, P(B)=0.25, P(C)=0.25, P(D)=0.2P(A) = 0.25,\ P(B) = 0.25,\ P(C) = 0.25,\ P(D) = 0.2

    Show answer

    B

    Each value is between 0 and 1 and the four add to 1. A probability of 0 is allowed (an outcome that never happens). Choice A sums to 1.1 and D to 0.95. Choice C sums to 1 but contains a negative probability.

  4. Question 4

    Two fair coins are flipped. A student says the possible results are 0, 1 or 2 heads, so the probability of exactly one head is 13\frac{1}{3}. Is the student correct? Explain.

    Show answer

    No. The four equally likely outcomes are HH, HT, TH and TT. Exactly one head happens in two of them (HT and TH), so the probability is 24=12\frac{2}{4} = \frac{1}{2}.

    The student's sample space is valid but its outcomes are not equally likely, so counting them does not give probabilities. Breaking the results into ordered outcomes makes them equally likely.

Go deeper