Course contentsShow
← Data Science
Lesson 78 of 2,1453. Probability FoundationsFree lesson

Events as Subsets of the Sample Space

Understand events as collections of outcomes and represent them as subsets using set notation.

Events as Subsets of the Sample Space

What You'll Learn

You'll learn how to think about events as specific collections of outcomes drawn from your sample space, and how to represent them using set notation.

What Is an Event?

In probability, an event is simply a collection of one or more outcomes from your sample space. Remember from the previous lesson that the sample space contains all possible outcomes of an experiment. An event is a subset of that space—it represents specific outcomes you're interested in.

Think of the sample space as a box containing all possible results. An event is like reaching in and selecting certain results that share something in common.

Examples to Build Intuition

Rolling a die:

  • Sample space: S = {1, 2, 3, 4, 5, 6}
  • Event "rolling an even number": E = {2, 4, 6}
  • Event "rolling greater than 4": A = {5, 6}
  • Event "rolling a 3": B = {3}

Flipping two coins:

  • Sample space: S = {HH, HT, TH, TT}
  • Event "at least one heads": E = {HH, HT, TH}
  • Event "exactly one tail": A = {HT, TH}

Notice that events are written using set notation with curly braces {}. Each event is literally a subset of S.

Why This Matters in Data Science

When analyzing data or building models, you're often calculating the probability of specific events: "What's the probability a customer churns?" or "What's the probability this email is spam?" Understanding events as subsets helps you precisely define what you're measuring and allows you to use set operations to combine or compare events later.

Key Takeaway: An event is a collection of outcomes from the sample space, represented as a subset using set notation {}.