Skip to main content

Someone wanted to learn this too, so Grasp built them a personal learning path.

You can keep exploring this one or create your own

Fundamentals of Probability Theory

Hello! Welcome to the first lesson in our module on the Foundations of Probability Theory.

In the previous modules, we built a robust understanding of linear algebra, multivariate calculus, and optimization theory. We finished by deriving the Karush-Kuhn-Tucker (KKT) conditions, which provide the necessary criteria for identifying optimal solutions in complex, constrained problems. These tools are essential for training machine learning models by minimizing loss functions.

Now, we pivot to the second great pillar of machine learning foundations: probability theory. This field provides the mathematical language to model uncertainty, which is at the heart of nearly every machine learning problem. Today, we will start from first principles to answer the question: What, precisely, is a probability? Our goal is to define probability spaces, sample spaces, events, and the axioms of probability. By the end of this lesson, you will understand the rigorous, axiomatic framework developed by Andrey Kolmogorov that underpins all of modern probability.

1. Experiments, Outcomes, and the Sample Space

At its core, probability theory is concerned with modeling an experiment—any process that has an uncertain outcome. The first step in building a probabilistic model is to define the set of all possible outcomes.

  • A sample space, denoted by the Greek letter Omega (), is the set of all possible outcomes of an experiment.
  • An individual outcome, or element of the sample space, is often denoted by .

Sample spaces can be finite, countably infinite, or uncountably infinite.

  • Finite: Rolling a standard six-sided die. .
  • Countably Infinite: Tossing a coin until the first "Heads" appears. .
  • Uncountably Infinite: Measuring the exact height of a randomly selected person in meters. .

This initial step seems simple, but it's a crucial part of modeling. The choice of sample space frames the entire problem.

Probability 1 lecture notes

To start, let's formalize these ideas. The following lecture notes provide clear definitions for the sample space and introduce the concept of an event, which we will explore next.

Please read Section 1.2, 'Sample space and events'. Focus on the definitions of 'sample space' and 'event' and the examples provided. Note the distinction between discrete (countable) and continuous (uncountable) sample spaces.

2. Events: The Subsets of Interest

In many situations, we are interested not in a single outcome, but in a set of outcomes. For example, when rolling a die, we might care about the event "the result is even" rather than the specific outcome of rolling a 4.

An event is any subset of the sample space . We say an event has occurred if the outcome of the experiment is an element of that set.

  • In the die roll experiment (), the event "the result is even" corresponds to the set .
  • The event "the result is greater than 4" corresponds to the set .

Since events are sets, we can use set operations to define new events:

  • (A or B): The outcome is in A, in B, or both. For our example, .
  • (A and B): The outcome is in both A and B. For our example, .
  • (not A): The outcome is not in A. For our example, .

A critical question arises: should we assign probabilities to individual outcomes or to events? The following video explains why focusing on events is a more general and powerful approach, especially when dealing with continuous sample spaces.

L01.4 Probability Axioms

This clip from an MIT OpenCourseWare lecture on probability provides an excellent motivation for why we assign probabilities to events (sets) rather than individual outcomes.

Watch from the beginning to 03:22. Pay close attention to the argument about why the probability of a single, infinitely precise point in a continuous space is zero, which necessitates assigning probabilities to sets.

3. The Probability Space: A Formal Structure

Having established the sample space and events, we can now assemble the complete formal structure of a probabilistic model, known as a probability space. As you appreciate mathematical rigor, you will see how this formalization provides a solid foundation for everything that follows.

A probability space is a triplet , consisting of:

  1. : The sample space (the set of all outcomes).
  2. : The event space (a collection of events to which we can assign probabilities).
  3. : A probability measure (a function that assigns a probability to each event in ).

Probability spaces and random variables

The following video provides a concise overview of this triplet structure before we dive into the details of each component.

Watch the segment from 00:17 to 01:13. This will introduce the three ingredients of a probability space.

Let's examine the two new components, and , in detail.

3.1 The Event Space: The -algebra

For finite sample spaces, the event space can simply be the power set of (denoted ), which is the set of all possible subsets of .

However, for uncountable sample spaces (like the real number line), using the power set leads to mathematical paradoxes. It turns out that it's impossible to define a probability measure consistently for all subsets. We must restrict ourselves to a "well-behaved" collection of subsets. This collection is called a -algebra (or sigma-field).

A collection of subsets is a -algebra if it satisfies three properties:

  1. The sample space itself is an event: .
  2. It is closed under complementation: If , then its complement .
  3. It is closed under countable unions: If , then their union is also in .

These properties ensure that if we can talk about the probability of certain events, we can also logically talk about the probabilities of their complements, and their countable unions and intersections (via De Morgan's laws).

Probability 1 lecture notes

The concept of a \sigma-algebra is abstract but fundamental for a rigorous treatment of probability. The lecture notes below give a formal definition and explain why it is necessary.

Please read Section 1.4, 'Sigma-algebras'. Focus on the definition box and the example that follows, which checks that a given collection of sets is indeed a \sigma-algebra.

3.2 The Probability Measure: The Axioms of Probability

The final piece is the probability measure , a function that maps each event in the -algebra to a real number. This function is not arbitrary; it must obey three fundamental rules known as the Kolmogorov Axioms.

Kolmogorov's Axioms
This image summarizes Kolmogorov's three axioms, which serve as the foundation for modern probability theory. They define the essential properties that any valid probability measure must satisfy.

Formally, a function is a probability measure if it satisfies:

  1. Axiom 1 (Non-negativity): For any event , .
  2. Axiom 2 (Normalization): The probability of the entire sample space is 1, i.e., .
  3. Axiom 3 (Countable Additivity): For any countable sequence of pairwise disjoint events (meaning for ), the probability of their union is the sum of their individual probabilities:

These three simple axioms are the bedrock from which all other properties of probability are derived.

L01.4 Probability Axioms

Let's watch the MIT lecture again to see a clear, step-by-step introduction to each of these axioms.

Watch from 03:22 to 08:16. The video will introduce and explain the Non-negativity, Normalization, and Additivity axioms in order.

Test your understanding!

Consider a sample space and its power set as the event space. A function is defined on the simple events as , , and . Assuming satisfies the additivity axiom for disjoint sets (e.g., ), can be a valid probability measure? Explain which axiom(s) it violates.

Show answer

No, cannot be a valid probability measure. It violates Axiom 2 (Normalization). The entire sample space is . Since , , and are disjoint events whose union is , the probability of the sample space would be . This violates the axiom that must equal 1.

4. Consequences of the Axioms

The power of the axiomatic approach is that we can derive all other familiar rules of probability directly from these three axioms. This is the kind of rigorous deduction you are interested in. Let's prove a couple of fundamental properties.

Notes on Probability - School of Mathematical Sciences

This resource provides concise proofs for several direct consequences of the axioms. We will walk through two of them together.

Read the short proofs for Proposition 1.3 ('P(A') = 1-P(A)') and Corollary 1.5 ('P(empty set) = 0') in Section 1.4, 'Proving things from the axioms'.

Let's reconstruct the proof for :

  1. By definition, an event and its complement are disjoint ().
  2. Their union is the entire sample space ().
  3. From Axiom 3 (Additivity), we have .
  4. Since , we have .
  5. From Axiom 2 (Normalization), .
  6. Putting it all together: .
  7. Rearranging gives the desired result: .

This small proof demonstrates the elegance of the axiomatic system: a familiar rule is not just an intuitive idea but a logical consequence of the foundational axioms.

Conclusion

In this lesson, we have laid the formal groundwork for our study of probability. We moved from the intuitive idea of an "experiment" to a rigorous mathematical structure—the probability space—that allows us to reason about uncertainty in a consistent way.

Key Takeaways:

  • A probability space is a triplet .
  • The sample space is the set of all possible outcomes of an experiment.
  • An event is a subset of the sample space. The collection of measurable events, the event space , must form a -algebra.
  • The probability measure is a function mapping events to numbers that must satisfy Kolmogorov's three axioms: non-negativity, normalization, and countable additivity.
  • This axiomatic framework is the foundation from which all other rules and theorems of probability are derived.

Preview of the Next Lesson:
With the axioms firmly in place, our next step will be to use them to derive some of the most fundamental rules for calculating probabilities. We will cover the addition rule for non-disjoint events, the definition of conditional probability, and the multiplication rule, which are essential tools for practical problem-solving.

Can't find a good explanation? Sign up and we'll make it for you

Sign up