Sample Space & Basic Probability: Building the Foundation
A sample space is the set of all possible outcomes of a random experiment; probability assigns each outcome a number between 0 and 1 measuring how likely it is. For equally likely outcomes, the probability of an event equals (favourable outcomes) ÷ (total outcomes). This framework underlies all of statistics, gambling, genetics, and risk analysis, and was formalised by Pascal, Fermat, and Laplace between the 1650s and 1810s.
A random experiment is any process whose outcome cannot be predicted with certainty in advance but whose set of possible outcomes is known. The collection of every possible outcome is the sample space, usually written or , and any subset of it is called an event. A probability measure is a rule that assigns to each event a number expressing its likelihood, obeying three simple axioms. The surprising fact is that this entire rich subject — capable of describing quantum mechanics, insurance markets, and machine learning — rests on just three short rules first written down clearly by Kolmogorov only in 1933, long after people had been computing probabilities successfully for nearly three centuries.
The Core Insight
Probability is built in two layers. First, list every possible outcome — the sample space. Second, attach weights (probabilities) to outcomes so the weights are non-negative and sum to 1. Once these two steps are done, the probability of any event is simply the sum of the weights of the outcomes inside it. Everything else — addition rules, complements, conditional probability — is bookkeeping on this foundation.
Formal Statement
Random Experiment, Sample Space, Event
A random experiment is a repeatable procedure with a well-defined set of possible results.
The sample space (or ) is the set of all distinct possible outcomes. Each individual outcome is called a sample point or elementary event.
An event is any subset of the sample space, . We say "event occurs" if the actual outcome satisfies .
- The certain event is itself.
- The impossible event is the empty set .
- An elementary event is a single-outcome subset .
Probability Measure — Kolmogorov's Axioms
A probability measure assigns to each event a real number satisfying:
Here means the events are mutually exclusive — they cannot both occur.
Classical (Laplace) Probability for Equally Likely Outcomes
If is finite with outcomes that are all equally likely, then for any event containing outcomes:
Basic Consequences
From axioms [1]–[3], the following hold for all events :
Why It Holds / Derivation
:::proof[Derivation of the Addition Rule [8]] We prove from the axioms.
Step 1. Decompose into three mutually exclusive pieces:- (in only),
- (in both),
- (in only).
These are pairwise disjoint and their union is exactly .
Step 2. By the additivity axiom [3]::::proof[Derivation of the Complement Rule [5]] Step 1. and are disjoint by definition, and .
Step 2. By additivity [3]: . Step 3. By normalisation [2]: , so . Step 4. Rearrange: .Andrey Kolmogorov | 1903–1987
The Soviet mathematician Andrey Nikolaevich Kolmogorov gave probability its modern rigorous footing in his 1933 monograph Grundbegriffe der Wahrscheinlichkeitsrechnung ("Foundations of the Theory of Probability"). He recognised that probability is a special case of measure theory: a sample space with a "measure" that assigns total mass 1. Before him, probability was a collection of clever but informal techniques; after him, it became a fully axiomatic branch of pure mathematics. Kolmogorov also made deep contributions to turbulence, dynamical systems, and algorithmic complexity.
Building Intuition
Think of the sample space as a pie and probability as how the pie is sliced. The whole pie has area 1 (axiom [2]). Each outcome takes a slice whose size is its probability, and no slice can have negative area (axiom [1]). An event is a group of slices, and its probability is just the combined area (axiom [3]).
For a fair die, the pie is cut into 6 equal slices, each . The event "even number" is three slices, area .
The crucial mental move is separating the listing from the weighting. First ask: what can happen? Then ask: how likely is each? Many errors come from skipping the first question — for instance, forgetting that rolling two dice has 36 outcomes, not 11.
The sample space of two dice as a 6×6 grid; the diagonal band marks outcomes summing to 7.
Worked Examples
Drawing a Card from a Standard Deck
Given. A well-shuffled standard deck of 52 cards. Draw one card at random. Find the probability the card is either a king or a heart. Step 1 — Sample space. All 52 cards are equally likely, so . Step 2 — Define events.- = "card is a king", .
- = "card is a heart", .
- = "king of hearts", .
Sum of Two Fair Dice
Given. Roll two fair six-sided dice. Find (a) and (b) . Step 1 — Sample space. Ordered pairs , so equally likely outcomes. Step 2 (a) — Event sum = 7. Favourable pairs: → .- Sum 10: → 3 outcomes
- Sum 11: → 2 outcomes
- Sum 12: → 1 outcome
Total favourable (by additivity [3]).
Common Misconceptions
Outcomes Are Not Always Equally Likely
Formula [4] only applies when every outcome in is equally likely. A common blunder is to list outcomes by result rather than by equally likely cases. For two dice, the sums form a valid sample space of 11 outcomes — but they are not equally likely, so . The correct equally likely sample space is the 36 ordered pairs. Always choose your sample space so the counting formula is justified, or weight the outcomes explicitly.
The Gambler's Fallacy
Independent random trials have no memory. After five consecutive heads, the probability of heads on the next fair toss is still , not lower. The coin does not "owe" you a tail. The mistaken belief that past outcomes influence future independent ones is the gambler's fallacy, and it has cost countless people their savings. See Independent Events.
Why "Equally Likely" Can't Be Assumed
Consider tossing two coins and recording the number of heads: the sample space is . A naïve student might say each has probability .
But list the equally likely raw outcomes: , four cases.
- heads: only →
- head: →
- heads: only →
So , double the naïve guess. The lesson: a valid sample space need not have equally likely members — you must verify it.
Connections
Sample spaces and basic probability are the gateway to the whole subject. The addition rule [8] generalises to the Inclusion-Exclusion Principle for many events. Restricting the sample space to a known event leads directly to Conditional Probability and Bayes' Theorem. When outcomes carry numerical values, the weighting becomes a Random Variable and its Probability Distribution. Counting the size of events efficiently requires Combinatorics (permutations and combinations). Finally, the frequentist justification that observed relative frequencies approach true probabilities is made precise by the Law of Large Numbers.
Real-World Applications
- Insurance & actuarial science. Premiums are computed from the probability of claims (death, accident, fire) across a sample space of policyholders.
- Genetics — Punnett squares. The sample space of allele combinations from two parents predicts offspring trait probabilities (e.g. dominant for a monohybrid cross).
- Medical screening. Test sensitivity and false-positive rates are probabilities over the sample space of {disease, no disease} × {positive, negative}.
- Lotteries and casinos. Expected payouts and house edges are direct applications of [4] over enormous sample spaces (e.g. lottery combinations).
- Quality control. A factory estimates the probability a randomly sampled item is defective to decide whether to accept a batch.
- Weather forecasting. "30% chance of rain" is a probability assigned over an ensemble (sample space) of simulated atmospheric outcomes.
- Cryptography & computing. Random number generators and hash collisions are analysed via the sample space of possible keys or outputs.
Historical Development
- 1564 (pub. 1663). Gerolamo Cardano writes Liber de Ludo Aleae, the first systematic treatment of dice odds, anticipating equally likely outcomes.
- 1654. Blaise Pascal and Pierre de Fermat exchange letters solving the problem of points (how to divide stakes in an interrupted game), founding mathematical probability.
- 1657. Christiaan Huygens publishes De Ratiociniis in Ludo Aleae, the first printed probability textbook, introducing expected value.
- 1713. Jacob Bernoulli's posthumous Ars Conjectandi proves the first Law of Large Numbers, linking probability to long-run frequency.
- 1733–1738. Abraham de Moivre derives the normal approximation to the binomial, foreshadowing the bell curve.
- 1812. Pierre-Simon Laplace's Théorie analytique des probabilités gives the classical definition [4] and treats probability as a tool for reasoning under uncertainty.
- 1900s. The frequentist (von Mises) and subjective/Bayesian (Ramsey, de Finetti) interpretations are debated.
- 1933. Andrey Kolmogorov publishes the axioms [1]–[3], unifying probability with measure theory and giving the modern foundation.
Subtleties & Limits
The neat picture of a finite, equally likely sample space breaks down in subtle cases. When is uncountably infinite (e.g. picking a random real number in ), individual outcomes have probability zero, yet events still have positive probability — handled by Measure Theory and probability densities, not sums. Moreover, on such spaces one cannot consistently assign a probability to every subset (non-measurable sets exist, as shown by the Vitali and Banach–Tarski constructions), so we restrict to a -algebra of "nice" events. A deeper, still-debated question is the interpretation of probability itself: is an objective long-run frequency, a degree of rational belief (Bayesian), or a propensity of the physical system? This is a live issue in the foundations of statistics and quantum mechanics, where probabilities appear irreducibly fundamental.