axioms-of-probability.html

Lecture 1: Axioms of Probability

EECS 126 (UC Berkeley) · Spring 2026 · January 20, 2026

A probability space provides the mathematical framework for modeling random experiments. In this lecture we define the axioms of probability, introduce sample spaces and events, work through several foundational examples, and derive the birthday paradox bound.

Probability Spaces

Definition 1.1 (Probability space)

A probability space is a triple (Ω,F,P)(\Omega, \FF, \PP) where:

  • Ω\Omega is the sample space: the set of all possible outcomes of the experiment.
  • F⊆2Ω\FF \subseteq 2^{\Omega} is a σ\sigma-algebra of subsets of Ω\Omega, called events.
  • P:F→[0,1]\PP : \FF \to [0,1] is a probability measure satisfying the Kolmogorov axioms.

The elements ω∈Ω\omega \in \Omega are called base outcomes (or samples). A σ\sigma-algebra F\FF is a family of subsets of Ω\Omega that is closed under countable unions, countable intersections, and complements, and that contains Ω\Omega itself. In many discrete settings we simply take F=2Ω\FF = 2^{\Omega} (the power set), so that every subset of Ω\Omega is an event.

Example 1.1 (Tossing two fair coins)

Toss two fair coins. The sample space is

Ω={HH,  HT,  TH,  TT}.\Omega = \{HH,\; HT,\; TH,\; TT\}.

Each base outcome is equally likely, so we assign P({ω})=14\PP(\{\omega\}) = \tfrac{1}{4} for each ω∈Ω\omega \in \Omega. The event space is the power set F=2Ω\FF = 2^{\Omega}, which has ∣F∣=2∣Ω∣=24=16|\FF| = 2^{|\Omega|} = 2^4 = 16 elements.

Example 1.2 (Toss until heads)

Toss a coin repeatedly until the first heads. Then

Ω={H,  TH,  TTH,  TTTH,  …}\Omega = \{H,\; TH,\; TTH,\; TTTH,\; \ldots\}

is a countably infinite sample space.

Example 1.3 (Waiting for a bus)

Wait at a bus stop for the next bus, which arrives at some time in [0,T][0, T]. Now

Ω=[0,T]\Omega = [0, T]

is an uncountably infinite (continuous) sample space. In this setting the choice of F\FF becomes nontrivial; one typically takes F\FF to be the Borel σ\sigma-algebra on [0,T][0,T].

Kolmogorov Axioms

Definition 1.2 (Kolmogorov axioms)

A function P:F→R\PP : \FF \to \RR is a probability measure on (Ω,F)(\Omega, \FF) if it satisfies:

  1. Nonnegativity. P(A)≥0\PP(A) \ge 0 for all A∈FA \in \FF.
  2. Normalization. P(Ω)=1\PP(\Omega) = 1.
  3. Countable additivity. If A1,A2,…∈FA_1, A_2, \ldots \in \FF are pairwise disjoint (Ai∩Aj=∅A_i \cap A_j = \varnothing for i≠ji \ne j), then P ⁣(⋃i≥1Ai)=∑i≥1P(Ai).\PP\!\Bigl(\bigcup_{i \ge 1} A_i\Bigr) = \sum_{i \ge 1} \PP(A_i).

Why countable additivity? In a continuous sample space such as Ω=[0,1]\Omega = [0,1], every individual point has probability zero: P({x})=0\PP(\{x\}) = 0. If we only had finite additivity, we could not recover P([0,1])=1\PP([0,1]) = 1 from the probabilities of individual points. Countable additivity bridges this gap and is essential for the theory of continuous distributions.

Example 1.4 (Biased coin)

Flip a biased coin: heads with probability pp, tails with probability 1−p1 - p. Set

Ω={H,T},F=2Ω={∅,  {H},  {T},  {H,T}}.\Omega = \{H, T\}, \qquad \FF = 2^{\Omega} = \bigl\{\varnothing,\; \{H\},\; \{T\},\; \{H,T\}\bigr\}.

Define

P(H)=p,P(T)=1−p,P(∅)=0,P({H,T})=1.\PP(H) = p, \quad \PP(T) = 1-p, \quad \PP(\varnothing) = 0, \quad \PP(\{H,T\}) = 1.

Then (Ω,F,P)(\Omega, \FF, \PP) is a valid probability space.

Fundamental Probability Facts

The following basic identities are direct consequences of the Kolmogorov axioms.

Theorem 1.1 (Complement rule)

For any event A∈FA \in \FF,

P(Ac)=1−P(A).\PP(A^c) = 1 - \PP(A).
Proof.

Since AA and AcA^c are disjoint with A∪Ac=ΩA \cup A^c = \Omega, countable additivity gives P(A)+P(Ac)=P(Ω)=1\PP(A) + \PP(A^c) = \PP(\Omega) = 1.

Theorem 1.2 (Inclusion–exclusion)

For any two events A,B∈FA, B \in \FF,

P(A∪B)=P(A)+P(B)−P(A∩B).\PP(A \cup B) = \PP(A) + \PP(B) - \PP(A \cap B).

More generally, for events A1,A2,…,AnA_1, A_2, \ldots, A_n,

P ⁣(⋃i=1nAi)=∑iP(Ai)−∑i<jP(Ai∩Aj)+∑i<j<kP(Ai∩Aj∩Ak)−⋯+(−1)n+1 P(A1∩⋯∩An).\begin{aligned} \PP\!\Bigl(\bigcup_{i=1}^{n} A_i\Bigr) = \sum_{i} \PP(A_i) &- \sum_{i < j} \PP(A_i \cap A_j) + \sum_{i < j < k} \PP(A_i \cap A_j \cap A_k) \\ &- \cdots + (-1)^{n+1}\, \PP(A_1 \cap \cdots \cap A_n). \end{aligned}
Theorem 1.3 (Union bound)

For any events A1,…,AnA_1, \ldots, A_n,

P ⁣(⋃i=1nAi)  ≤  ∑i=1nP(Ai).\PP\!\Bigl(\bigcup_{i=1}^{n} A_i\Bigr) \;\le\; \sum_{i=1}^{n} \PP(A_i).
Proof.

Define B1=A1B_1 = A_1 and Bk=Ak∖⋃i<kAiB_k = A_k \setminus \bigcup_{i<k} A_i for k≥2k \ge 2. The BkB_k are disjoint with ⋃Bk=⋃Ak\bigcup B_k = \bigcup A_k, and P(Bk)≤P(Ak)\PP(B_k) \le \PP(A_k), so P(⋃Ak)=∑P(Bk)≤∑P(Ak)\PP(\bigcup A_k) = \sum \PP(B_k) \le \sum \PP(A_k).

Discrete Probability and Counting

In a discrete sample space, the probability of an event is just the sum of the probabilities of its base outcomes:

P(A)=∑ω∈AP({ω}).\PP(A) = \sum_{\omega \in A} \PP(\{\omega\}).
Definition 1.3 (Uniform sample space)

When all outcomes are equally likely, we say Ω\Omega is a uniform sample space, and for any event AA,

P(A)=∣A∣∣Ω∣.\PP(A) = \frac{|A|}{|\Omega|}.

The Birthday Paradox

Example 1.5 (Birthday paradox)

Let nn people be in a room. What is the probability that at least two share a birthday? Let K=365K = 365 and assume birthdays are uniform. Let AA = “at least two people share a birthday.” Compute via the complement:

P(Ac)=K(K−1)(K−2)⋯(K−n+1)Kn=∏j=0n−1(1−jK).\PP(A^c) = \frac{K(K-1)(K-2)\cdots(K-n+1)}{K^n} = \prod_{j=0}^{n-1}\Bigl(1 - \frac{j}{K}\Bigr).

Using 1−x≤e−x1 - x \le e^{-x}:

P(Ac)≤∏j=0n−1e−j/K=e−∑j=0n−1j/K=e−n(n−1)/(2K).\PP(A^c) \le \prod_{j=0}^{n-1} e^{-j/K} = e^{-\sum_{j=0}^{n-1} j/K} = e^{-n(n-1)/(2K)}.
Theorem 1.4 (Birthday bound)

P(A)≥1−e−n(n−1)/(2K)\PP(A) \ge 1 - e^{-n(n-1)/(2K)}. For K=365K = 365 and n=23n = 23, this gives P(A)≥50%\PP(A) \ge 50\%.

Balls-and-bins interpretation. The birthday problem is equivalent to throwing nn balls uniformly into KK bins and asking for the probability of a collision. This connection arises frequently in hashing, load balancing, and networking.

841 words