Sample Spaces: Definition and Examples
What you'll learn: You'll understand what a sample space is and see concrete examples from everyday random events.
What Is a Sample Space?
A sample space is simply the complete set of all possible outcomes that can occur when you perform a random experiment or observation. Think of it as the "universe of possibilities" for any situation involving uncertainty.
Just like when you analyzed outliers, you needed to know what values could exist in your data, understanding sample spaces helps you know what outcomes are even possible before you start calculating probabilities.
Why Sample Spaces Matter in Data Science
Before you can measure how likely something is to happen, you need to know what could happen. The sample space is your starting point for all probability reasoning—it defines the boundaries of what you're analyzing.
Common Examples
Flipping a Coin
When you flip a fair coin once, there are only two possible outcomes:
- Sample space = {Heads, Tails}
Rolling a Six-Sided Die
A single roll of a standard die can land on any number from 1 to 6:
- Sample space = {1, 2, 3, 4, 5, 6}
Drawing One Card from a Deck
A standard deck has 52 cards (13 ranks × 4 suits):
- Sample space = {Ace♠, 2♠, 3♠, ..., King♠, Ace♥, ..., King♦, Ace♣, ..., King♣}
Rolling Two Dice
If you roll two dice, you care about both outcomes:
- Sample space has 36 outcomes: {(1,1), (1,2), (1,3), ..., (6,5), (6,6)}
Notice how the sample space grows with complexity!
Key Takeaway: The sample space is the foundational set of all possible outcomes for any random process—knowing it completely is essential before calculating any probabilities or analyzing data involving uncertainty.