01 / 20

Probability in
Finite Sample Spaces

Learn to compute probabilities by counting favorable outcomes and dividing by the total outcomes in any finite sample space.

Discrete Math

What Is a Sample Space?

A sample space \( S \) is the set of all possible outcomes of a random experiment. When \( S \) is finite, we can list every element and count them.

Coin Flip
\( S = \{ H, T \} \)
\( |S| = 2 \)
Single Die
\( S = \{1,2,3,4,5,6\} \)
\( |S| = 6 \)
Two Coins
\( S = \{HH, HT, TH, TT\} \)
\( |S| = 4 \)

Events and Favorable Outcomes

An event \( E \) is any subset of the sample space \( S \). The outcomes in \( E \) are called favorable outcomes: they are the results that "count" toward the event happening.

S = {1, 2, 3, 4, 5, 6} E = "even number" 2 4 6 1 3 5

Why Finite Probability Matters

Finite probability is the foundation of combinatorics, game theory, cryptography, and statistical inference. If you can count outcomes, you can compute the likelihood of any event.

Genetics
Predicting trait inheritance from a finite set of allele combinations
Cryptography
Estimating the probability an attacker guesses a key from a finite key space
Quality Control
Computing the chance a batch of items contains a defective unit

The Classical Probability Formula

$$ P(E) = \frac{|E|}{|S|} $$
1
\( P(E) \): the probability of event \( E \) occurring
2
\( |E| \): the number of favorable outcomes (outcomes in \( E \))
3
\( |S| \): the total number of outcomes in the sample space

Core Probability Axioms

1
Non-negativity: For any event \( E \), \( P(E) \geq 0 \)
2
Certainty: \( P(S) = 1 \) : the entire sample space has probability 1
3
Additivity: If \( A \) and \( B \) are mutually exclusive, then \( P(A \cup B) = P(A) + P(B) \)

The Complement Rule

S E P(E) E' P(E') = 1 - P(E)

Example: If \( P(\text{rain}) = 0.3 \), then \( P(\text{no rain}) = 1 - 0.3 = \) 0.7.

With vs Without Replacement

With Replacement Without Replacement
After drawing Item is returned to \( S \) Item is removed from \( S \)
\( |S| \) changes? No: stays the same Yes: decreases by 1 each draw
Events independent? Yes No: probabilities shift
Example Rolling a die repeatedly Drawing cards from a deck

How to Compute a Probability

1
Identify the experiment. What random process is occurring?
2
List the sample space \( S \). Enumerate every possible outcome. Compute \( |S| \).
3
Define the event \( E \). Which outcomes satisfy the condition?
4
Count favorable outcomes \( |E| \). Use listing, tables, or counting rules.
5
Apply the formula: \( P(E) = \frac{|E|}{|S|} \). Simplify if needed.

Example 1: Single Die Roll

Problem: A fair six-sided die is rolled once. What is the probability of rolling a number greater than 4?

1 2 3 4 5 6 Favorable

Example 2: Sum of Two Dice

Problem: Two fair dice are rolled. What is the probability the sum equals 7?

Die 2 Die 1 1 2 3 4 5 6 1 2 3 4 5 6 2 3 4 5 6 7 3 4 5 6 7 8 4 5 6 7 8 9 5 6 7 8 9 10 6 7 8 9 10 11 7 8 9 10 11 12

Example 3: Drawing a Card

Problem: A single card is drawn from a standard 52-card deck. What is the probability of drawing a heart or a king?

S: 52 cards Hearts 13 cards Kings 4 cards K♥ 1 card

Example 4: Without Replacement

Problem: A bag contains 4 blue and 3 red marbles. Two marbles are drawn without replacement. What is the probability both are blue?

Draw 1 4 blue out of 7 P = 4/7 Draw 2 3 blue out of 6 P = 3/6

The Addition Rule

For any two events \( A \) and \( B \) in a finite sample space:

Mutually Exclusive
If \( A \cap B = \emptyset \), then \( P(A \cap B) = 0 \) and the formula simplifies to \( P(A) + P(B) \).
Overlapping
If events share outcomes, subtract the overlap \( P(A \cap B) \) to avoid double-counting.

Common Mistakes to Avoid

✕ Forgetting the Overlap
When events are not mutually exclusive, simply adding \( P(A) + P(B) \) double-counts outcomes in \( A \cap B \).
✕ Ignoring Replacement
Using the same denominator on successive draws when items are not replaced changes the sample space size.
✕ Unequal Outcomes
Applying \( \frac{|E|}{|S|} \) when outcomes are not equally likely gives a wrong answer. Verify fairness first.

Key Formulas Summary

Rule Formula When to Use
Classical Probability \( \frac{|E|}{|S|} \) Equally likely outcomes
Complement \( P(E') = 1 - P(E) \) Easier to count non-event
Addition (General) \( P(A) + P(B) - P(A \cap B) \) Union of two events
Addition (Exclusive) \( P(A) + P(B) \) \( A \cap B = \emptyset \)
Multiplication (Independent) \( P(A) \cdot P(B) \) With replacement / independent

Question 1 of 5

A fair coin is flipped 3 times. What is the probability of getting exactly 2 heads?

Question 2 of 5

A bag contains 5 red, 3 green, and 2 blue marbles. One marble is drawn at random. What is \( P(\text{green or blue}) \)?

Question 3 of 5

Two cards are drawn without replacement from a standard 52-card deck. What is the probability both are aces?

Question 4 of 5

A fair die is rolled once. Events \( A = \{2, 4, 6\} \) and \( B = \{1, 2, 3\} \). What is \( P(A \cup B) \)?

Question 5 of 5

The probability it rains on Saturday is \( 0.4 \) and the probability it rains on Sunday is \( 0.3 \). If these events are independent, what is the probability it rains on at least one of the two days?