Sample Space and Events
EssentialPrerequisites
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 is the set of all possible outcomes of the experiment.
Examples.
| Experiment | Sample space |
|---|---|
| Flip a single coin | |
| Roll a six-sided die | |
| Count packets arriving at a router in one second | |
| Measure the lifetime of a light bulb (hours) | |
| Record the coordinates of a uniformly random point in the unit square |
Each element 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 collection of outcomes. You say that event occurs if the actual outcome of the experiment belongs to , i.e.\ .
Example. For the die roll :
- “Roll an even number”: .
- “Roll at least five”: .
- “Roll a one”: (an elementary event as a set).
The empty set is the impossible event — it can never occur. The whole sample space is the certain event — it always occurs.
Set operations on events
Set operations translate directly into logical operations on events.
Complement
The complement is the event ” does not occur”. It contains all outcomes not in .
Union
The union is the event ” or (or both) occurs”. It contains all outcomes in at least one of the two events.
More generally, is the event that at least one of occurs.
Intersection
The intersection is the event ” and both occur”. It contains outcomes common to both.
If , the events are mutually exclusive (disjoint): they cannot both occur in the same experiment.
Difference and symmetric difference
The difference is the event ” occurs but does not”. The symmetric difference is the event “exactly one of , occurs”.
De Morgan’s laws
De Morgan’s laws translate between complement–union and complement–intersection:
In words: “neither nor ” is the same as “not and not ”, and “not both and ” is the same as “not or not ”. These identities extend to countable collections:
Sequences of events: limsup and liminf
For an infinite sequence of events , two derived events capture long-run behaviour:
is the event ” occurs infinitely often” (abbreviated i.o.): for every , some with occurs.
is the event ” occurs all but finitely often”: from some point on, every occurs. The inclusion always holds.
These set-theoretic definitions are the foundation of the Borel–Cantelli lemmas, which translate convergence of into almost-sure results about whether infinitely many occur.
Why not every subset can be an event
For a finite or countably infinite sample space, you can safely declare every subset of an event. For uncountable sample spaces such as , assigning consistent probabilities to all subsets leads to a contradiction (Vitali’s theorem shows such subsets exist). The resolution is to restrict attention to a -algebra — a collection of subsets closed under complement and countable union — and only call elements of events. The full treatment of -algebras is in The Probability Axioms.
Summary
- The sample space is the set of all possible outcomes; each is an outcome.
- An event is a subset ; event occurs if the outcome .
- The empty set is the impossible event; is the certain event; two events with are mutually exclusive.
- Complement (), union (), and intersection () 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 , not every subset can be an event — only members of a chosen -algebra .