1. Home
  2. Explore
  3. Mathematics
  4. Intro to Probability

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Intro to Probability

Probability Fundamentals: Set Theory and Basic Axioms

Probability as a Measure of Likelihood

Probability quantifies the likelihood or chance that some event occurs. It is expressed as a number between 0 and 1, where 0 indicates impossibility and 1 indicates certainty. The study of probability begins by defining the set of all possible outcomes of an experiment — real or thought — and then assigning probabilities to subsets of those outcomes.

The Sample Space

The sample space, denoted by Ω\OmegaΩ (omega), is the set of all possible outcomes of a random experiment.

Definition: The sample space Ω\OmegaΩ is the set of all possible outcomes of a random experiment.

A single element ω∈Ω\omega \in \Omegaω∈Ω (little omega) represents a specific outcome or one realization of the experiment.

Examples of sample spaces:

  • The set of all possible sequences when flipping five coins (e.g., HHHHH, HHHHT, ...)

  • The number of heads in five coin flips (integers 0 through 5)

  • The number of emails received in an hour (non-negative integers)

  • The distribution of heights sampled from ten people (ten real numbers)

  • Today's high temperature (a real number)

  • All possible poker hands

Concrete Example: Three Coin Flips

For three coin flips, the sample space Ω\OmegaΩ can be enumerated explicitly:

Ω={HHH,HHT,HTH,HTT,THH,THT,TTH,TTT}\Omega = \{HHH, HHT, HTH, HTT, THH, THT, TTH, TTT\}Ω={HHH,HHT,HTH,HTT,THH,THT,TTH,TTT}

There are 23=82^3 = 823=8 possible outcomes (each flip has two possibilities, independent of the others).

Events as Subsets

An event is a subset of the sample space — a collection of outcomes that share some property. Events are typically denoted by capital letters (A, B, etc.).

Example: Let event A = "the first flip is a head" for three coin flips. Then:

A={HHH,HHT,HTH,HTT}A = \{HHH, HHT, HTH, HTT\}A={HHH,HHT,HTH,HTT}

This is a subset of Ω\OmegaΩ. The probability of A (assuming fair coins) is simply the number of outcomes in A divided by the total number of outcomes in Ω\OmegaΩ:

P(A)=∣A∣∣Ω∣=48=0.5P(A) = \frac{|A|}{|\Omega|} = \frac{4}{8} = 0.5P(A)=∣Ω∣∣A∣​=84​=0.5

Another example: Let event B = "the second flip is a tail" for three coin flips. Then:

B={HTH,HTT,TTH,TTT}B = \{HTH, HTT, TTH, TTT\}B={HTH,HTT,TTH,TTT}

Events can be independent (like the first and second flips of a fair coin) — this concept will be explored in detail later.

Set Operations on Events

Events are sets, so set operations define new events and are fundamental to probability calculations.

Union (A∪BA \cup BA∪B)

The union of A and B includes outcomes that are in A or B (or both). Symbolically:

A∪B={ω∈Ω∣ω∈A or ω∈B}A \cup B = \{\omega \in \Omega \mid \omega \in A \text{ or } \omega \in B\}A∪B={ω∈Ω∣ω∈A or ω∈B}

In terms of events, A∪BA \cup BA∪B means "A happens or B happens." It is a more permissive, inclusive set.

Example: With events A (first flip heads) and B (second flip tails) from three coin flips:

A∪B={HHH,HHT,HTH,HTT,TTH,TTT}A \cup B = \{HHH, HHT, HTH, HTT, TTH, TTT\}A∪B={HHH,HHT,HTH,HTT,TTH,TTT}

This set has six outcomes, so ∣A∪B∣=6|A \cup B| = 6∣A∪B∣=6.

Intersection (A∩BA \cap BA∩B)

The intersection of A and B includes outcomes that are in both A and B. Symbolically:

A∩B={ω∈Ω∣ω∈A and ω∈B}A \cap B = \{\omega \in \Omega \mid \omega \in A \text{ and } \omega \in B\}A∩B={ω∈Ω∣ω∈A and ω∈B}

In terms of events, A∩BA \cap BA∩B means "A happens and B happens." It is a more restrictive set.

Example: With the same events:

A∩B={HTH,HTT}A \cap B = \{HTH, HTT\}A∩B={HTH,HTT}

This set has two outcomes, so ∣A∩B∣=2|A \cap B| = 2∣A∩B∣=2.

Complement (AcA^cAc or Aˉ\bar{A}Aˉ)

The complement of A includes all outcomes in Ω\OmegaΩ that are not in A. Symbolically:

Ac={ω∈Ω∣ω∉A}A^c = \{\omega \in \Omega \mid \omega \notin A\}Ac={ω∈Ω∣ω∈/A}

In terms of events, AcA^cAc means "A does not happen."

Example: With A = "first flip heads":

Ac={THH,THT,TTH,TTT}A^c = \{THH, THT, TTH, TTT\}Ac={THH,THT,TTH,TTT}

This set has four outcomes, so ∣Ac∣=4|A^c| = 4∣Ac∣=4.

Venn Diagrams

Venn diagrams provide a visual representation of these operations. The sample space Ω\OmegaΩ is drawn as a rectangle containing all possible outcomes. Events are circles (or other shapes) inside it.

  • The union A∪BA \cup BA∪B is the entire region covered by either circle (including overlap).

  • The intersection A∩BA \cap BA∩B is the overlapping region of the two circles.

  • The complement AcA^cAc is the region of the rectangle outside circle A.

For two fair coin flips, the sample space has four equally likely outcomes: {HH,HT,TH,TT}\{HH, HT, TH, TT\}{HH,HT,TH,TT}. The event "first flip heads" (A) contains {HH,HT}\{HH, HT\}{HH,HT} and the event "second flip tails" (B) contains {HT,TT}\{HT, TT\}{HT,TT}. Their intersection is {HT}\{HT\}{HT} (probability 1/4), their union is {HH,HT,TT}\{HH, HT, TT\}{HH,HT,TT} (probability 3/4), and the complement of A is {TH,TT}\{TH, TT\}{TH,TT} (probability 1/2).

Properties of Set Operations

  • Commutativity: A∪B=B∪AA \cup B = B \cup AA∪B=B∪A and A∩B=B∩AA \cap B = B \cap AA∩B=B∩A

  • Associativity: (A∪B)∪C=A∪(B∪C)(A \cup B) \cup C = A \cup (B \cup C)(A∪B)∪C=A∪(B∪C) and (A∩B)∩C=A∩(B∩C)(A \cap B) \cap C = A \cap (B \cap C)(A∩B)∩C=A∩(B∩C)

  • Distributivity: A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C)A∩(B∪C)=(A∩B)∪(A∩C) and A∪(B∩C)=(A∪B)∩(A∪C)A \cup (B \cap C) = (A \cup B) \cap (A \cup C)A∪(B∩C)=(A∪B)∩(A∪C)

These properties make manipulating events algebraically straightforward.

The Probability Measure

In general, outcomes may not be equally likely (e.g., a biased coin). Therefore, probability is not simply a count of outcomes. Instead, probability is defined as a measure — a function that assigns a number between 0 and 1 to each event (subset of Ω\OmegaΩ).

Definition: A probability measure PPP is a function that maps subsets of Ω\OmegaΩ (events) to real numbers in [0,1][0,1][0,1]. P(A)P(A)P(A) represents the probability that a random element of Ω\OmegaΩ belongs to AAA.

This abstract definition allows for flexibility: coins can be biased, dice can be loaded, and different events can have different likelihoods.

Axioms of Probability

The three fundamental axioms that any probability measure must satisfy:

  1. P(Ω)=1P(\Omega) = 1P(Ω)=1
    The probability of the entire sample space (something happening) is 1. This is the axiom of certainty.

  2. P(A)≥0P(A) \geq 0P(A)≥0 for every event A⊆ΩA \subseteq \OmegaA⊆Ω
    Probabilities are non-negative. Even the probability of an impossible event is 0, which is non-negative.

  3. If AAA and BBB are disjoint (i.e., A∩B=∅A \cap B = \emptysetA∩B=∅), then P(A∪B)=P(A)+P(B)P(A \cup B) = P(A) + P(B)P(A∪B)=P(A)+P(B)
    For mutually exclusive events (no outcomes in common), the probability of their union is the sum of their individual probabilities. This is the axiom of additivity.

From these three axioms, all other properties of probability can be derived.

Pictorial Interpretation

A helpful mental picture: think of Ω\OmegaΩ as a dartboard with total area 1. A dart is thrown uniformly at random and lands somewhere on the board. The probability that it lands in region A (an event) equals the area of A divided by the total area (1). This "area" analogy makes the axioms intuitively clear: the whole board has area 1, areas are non-negative, and non-overlapping regions have additive areas.

Important Derived Properties

From the axioms, several useful properties follow:

Probability of a Complement

P(Ac)=1−P(A)P(A^c) = 1 - P(A)P(Ac)=1−P(A)

Since AAA and AcA^cAc are disjoint and their union is Ω\OmegaΩ, the third axiom gives P(A)+P(Ac)=P(Ω)=1P(A) + P(A^c) = P(\Omega) = 1P(A)+P(Ac)=P(Ω)=1, so P(Ac)=1−P(A)P(A^c) = 1 - P(A)P(Ac)=1−P(A).

Probability of the Empty Set

P(∅)=0P(\emptyset) = 0P(∅)=0

The empty set (no outcomes) is disjoint from itself, and its union with itself is still empty. Using the third axiom: P(∅)=P(∅∪∅)=P(∅)+P(∅)P(\emptyset) = P(\emptyset \cup \emptyset) = P(\emptyset) + P(\emptyset)P(∅)=P(∅∪∅)=P(∅)+P(∅), which forces P(∅)=0P(\emptyset) = 0P(∅)=0.

Monotonicity

If A⊆BA \subseteq BA⊆B (every outcome in A is also in B), then:

P(A)≤P(B)P(A) \leq P(B)P(A)≤P(B)

This follows because BBB can be written as the disjoint union B=A∪(B∖A)B = A \cup (B \setminus A)B=A∪(B∖A), so by additivity P(B)=P(A)+P(B∖A)≥P(A)P(B) = P(A) + P(B \setminus A) \geq P(A)P(B)=P(A)+P(B∖A)≥P(A) since probabilities are non-negative.

Inclusion–Exclusion for Two Events

For any two events A and B (not necessarily disjoint):

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

The intersection A∩BA \cap BA∩B is subtracted because when adding P(A)P(A)P(A) and P(B)P(B)P(B), the outcomes in the overlap are counted twice. This formula generalizes to more events (inclusion–exclusion principle). Intuitively, think of area: the area of the union of two overlapping shapes is the sum of their individual areas minus the area of their overlap.

Example: Using the three-coin-flip example where all outcomes are equally likely:

  • P(A)=P(first flip heads)=4/8=0.5P(A) = P(\text{first flip heads}) = 4/8 = 0.5P(A)=P(first flip heads)=4/8=0.5

  • P(B)=P(second flip tails)=4/8=0.5P(B) = P(\text{second flip tails}) = 4/8 = 0.5P(B)=P(second flip tails)=4/8=0.5

  • P(A∩B)=2/8=0.25P(A \cap B) = 2/8 = 0.25P(A∩B)=2/8=0.25

  • Then P(A∪B)=0.5+0.5−0.25=0.75P(A \cup B) = 0.5 + 0.5 - 0.25 = 0.75P(A∪B)=0.5+0.5−0.25=0.75, which matches the direct count of 6/8.

Probability Spaces and Well-Definedness

A probability space consists of:

  • A sample space Ω\OmegaΩ (the set of all possible outcomes)

  • A collection of events (subsets of Ω\OmegaΩ)

  • A probability measure PPP satisfying the three axioms

As long as these three axioms hold for all events, the probability assignment is mathematically valid. This framework allows probabilities to be defined for any experiment: coin flips, waiting times at the DMV, component failure rates, etc.

The axioms are the foundation upon which all of probability theory is built. They enable the derivation of laws of probability, including rules for conditional probability, independence, Bayes' theorem, and the law of total probability.

Beyond Discrete Sets: Measure Theory

The concepts described here are introductory. For sample spaces that are continuous (like the real numbers) or have complex structure (like fractals, Cantor sets, or spaces of images), more advanced mathematics — measure theory — is needed to define probabilities in a rigorous way. Measure theory ensures that probabilities can be assigned to "nice" subsets even when the sample space is infinite or uncountably large. However, the fundamental ideas of sample space, events, and the three axioms remain the same. This material represents the first page of that deeper book.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent