Sample Space and Events

Essential
Last updated: Tags: Probability

Before assigning numbers to uncertainty, you need a precise language for describing what can happen. That language is set theory: the set of all possible outcomes, its subsets, and the operations that combine them.

Sample space

A random experiment is any process whose outcome cannot be predicted with certainty in advance. The sample space Ω\Omega is the set of all possible outcomes of the experiment.

Examples.

ExperimentSample space Ω\Omega
Flip a single coin{H,T}\{H, T\}
Roll a six-sided die{1,2,3,4,5,6}\{1, 2, 3, 4, 5, 6\}
Count packets arriving at a router in one second{0,1,2,3,}=N0\{0, 1, 2, 3, \ldots\} = \mathbb{N}_0
Measure the lifetime of a light bulb (hours)[0,)[0, \infty)
Record the coordinates of a uniformly random point in the unit square[0,1]2[0,1]^2

Each element ωΩ\omega \in \Omega is called an outcome or an elementary event. The sample space can be finite, countably infinite, or uncountably infinite.

Events

An event is a subset AΩA \subseteq \Omega — a collection of outcomes. You say that event AA occurs if the actual outcome ω\omega of the experiment belongs to AA, i.e.\ ωA\omega \in A.

Example. For the die roll Ω={1,2,3,4,5,6}\Omega = \{1,2,3,4,5,6\}:

  • “Roll an even number”: A={2,4,6}A = \{2, 4, 6\}.
  • “Roll at least five”: B={5,6}B = \{5, 6\}.
  • “Roll a one”: C={1}C = \{1\} (an elementary event as a set).

The empty set \emptyset is the impossible event — it can never occur. The whole sample space Ω\Omega is the certain event — it always occurs.

Set operations on events

Set operations translate directly into logical operations on events.

Complement

The complement Ac=ΩAA^c = \Omega \setminus A is the event ”AA does not occur”. It contains all outcomes not in AA.

Ac{ωΩ:ωA}.A^c \coloneqq \{\omega \in \Omega : \omega \notin A\}.

Union

The union ABA \cup B is the event ”AA or BB (or both) occurs”. It contains all outcomes in at least one of the two events.

AB{ωΩ:ωA or ωB}.A \cup B \coloneqq \{\omega \in \Omega : \omega \in A \text{ or } \omega \in B\}.

More generally, n=1An\bigcup_{n=1}^\infty A_n is the event that at least one of A1,A2,A_1, A_2, \ldots occurs.

Intersection

The intersection ABA \cap B is the event ”AA and BB both occur”. It contains outcomes common to both.

AB{ωΩ:ωA and ωB}.A \cap B \coloneqq \{\omega \in \Omega : \omega \in A \text{ and } \omega \in B\}.

If AB=A \cap B = \emptyset, the events are mutually exclusive (disjoint): they cannot both occur in the same experiment.

Difference and symmetric difference

The difference AB=ABcA \setminus B = A \cap B^c is the event ”AA occurs but BB does not”. The symmetric difference AB=(AB)(BA)A \triangle B = (A \setminus B) \cup (B \setminus A) is the event “exactly one of AA, BB occurs”.

De Morgan’s laws

De Morgan’s laws translate between complement–union and complement–intersection:

(AB)c=AcBc,(AB)c=AcBc.(A \cup B)^c = A^c \cap B^c, \qquad (A \cap B)^c = A^c \cup B^c.

In words: “neither AA nor BB” is the same as “not AA and not BB”, and “not both AA and BB” is the same as “not AA or not BB”. These identities extend to countable collections:

(n=1An)c=n=1Anc,(n=1An)c=n=1Anc.\Bigl(\bigcup_{n=1}^\infty A_n\Bigr)^c = \bigcap_{n=1}^\infty A_n^c, \qquad \Bigl(\bigcap_{n=1}^\infty A_n\Bigr)^c = \bigcup_{n=1}^\infty A_n^c.

Sequences of events: limsup and liminf

For an infinite sequence of events A1,A2,A_1, A_2, \ldots, two derived events capture long-run behaviour:

lim supnAnn=1k=nAk\limsup_{n\to\infty} A_n \coloneqq \bigcap_{n=1}^\infty \bigcup_{k=n}^\infty A_k

is the event ”AnA_n occurs infinitely often” (abbreviated i.o.): for every nn, some AkA_k with knk \geq n occurs.

lim infnAnn=1k=nAk\liminf_{n\to\infty} A_n \coloneqq \bigcup_{n=1}^\infty \bigcap_{k=n}^\infty A_k

is the event ”AnA_n occurs all but finitely often”: from some point on, every AkA_k occurs. The inclusion lim infAnlim supAn\liminf A_n \subseteq \limsup A_n always holds.

These set-theoretic definitions are the foundation of the Borel–Cantelli lemmas, which translate convergence of nP(An)\sum_n P(A_n) into almost-sure results about whether infinitely many AnA_n occur.

Why not every subset can be an event

For a finite or countably infinite sample space, you can safely declare every subset of Ω\Omega an event. For uncountable sample spaces such as Ω=R\Omega = \mathbb{R}, assigning consistent probabilities to all 2R2^{|\mathbb{R}|} subsets leads to a contradiction (Vitali’s theorem shows such subsets exist). The resolution is to restrict attention to a σ\sigma-algebra F2Ω\mathcal{F} \subseteq 2^\Omega — a collection of subsets closed under complement and countable union — and only call elements of F\mathcal{F} events. The full treatment of σ\sigma-algebras is in The Probability Axioms.

Summary

  • The sample space Ω\Omega is the set of all possible outcomes; each ωΩ\omega \in \Omega is an outcome.
  • An event is a subset AΩA \subseteq \Omega; event AA occurs if the outcome ωA\omega \in A.
  • The empty set \emptyset is the impossible event; Ω\Omega is the certain event; two events with AB=A \cap B = \emptyset are mutually exclusive.
  • Complement (AcA^c), union (ABA \cup B), and intersection (ABA \cap B) correspond to “not”, “or”, and “and” in logic.
  • De Morgan’s laws convert between unions and intersections under complementation.
  • The limsup of a sequence of events is the event that infinitely many of them occur; the liminf is the event that all but finitely many occur.
  • For uncountable Ω\Omega, not every subset can be an event — only members of a chosen σ\sigma-algebra F\mathcal{F}.