Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Probability of Sets






Sets: The Starting Point of Probability


Probability starts with sets. Before we talk about events, sample spaces, random variables, or probability functions, we first need a way to describe "what can happen." Sets give us that language. They let us collect outcomes, group them into meaningful events, combine them, compare them, and build the entire structure of probability on top of them. Once sets are in place, everything else in probability becomes much easier to define and understand.

Key Terms

Sample Space— the set of all possible outcomes of a random experiment
Event— a subset of the sample space
Elementary Event— an event consisting of exactly one outcome
Union of Sets— the event that at least one of AA or BB occurs
Intersection of Sets— the event that both AA and BB occur simultaneously
Complement of a Set— all outcomes in the sample space that are not in AA
Mutual Exclusiveness— AA and BB cannot happen at the same time: A∩B=∅A \cap B = \emptyset
Venn Diagram— overlapping circles that depict events and their relationships within a sample space

See All Probability Definitions →


What Is a Set in Probability?

"Roll an even number" is a sentence. To give it a probability, it helps to say exactly which outcomes it covers.
A die has six faces, and each statement about the roll is true for some of them and false for the rest.
Every statement about a die roll picks out a collection of faces.
statement about the rollas a set of facesprobability
an even number{2, 4, 6}3/6
at least 5{5, 6}2/6
any face at all{1, 2, 3, 4, 5, 6}6/6 = 1
a 7∅, the empty set0
Once the collection is written down, the probability for a fair die is a count: the faces in the collection over 66.
The words and the set say the same thing; the set is what can be counted and combined.
In set theory, a set is an abstract collection of objects with no context attached. In probability, a set always describes "what can happen" when an experiment is run. Its elements are outcomes, and these sets help us form events, define sample spaces, and build probability models.
The definition
A set in probability is a collection of possible outcomes of a random experiment.
A set in probability is simply a collection of possible outcomes of a random experiment. It plays the same structural role as a set in mathematics, but the focus is different.
Examples:
• {H, T} — the outcomes of a coin toss
• {1, 2, 3, 4, 5, 6} — the outcomes of a die roll
• intervals like [0,5][0, 5] — possible values of a continuous measurement
So "an even number" on a die is the set {2,4,6}\{2, 4, 6\}, with probability 36=12\frac{3}{6} = \frac{1}{2}.
Sets are the language in which outcomes, events and models are written.
In probability, sets are not abstract objects — they are the language we use to describe outcomes, events, and everything built on top of them.
A set records which outcomes are included — not their order, and not how often they are listed.
{2,4,6}\{2, 4, 6\} and {6,2,4,4}\{6, 2, 4, 4\} are the same set. Experiments in which order matters need outcomes that record it, such as ordered pairs. How sets turn into events is set out in how sets become events.
The rest of the page covers notation, why sets matter, the types of sets used, the core operations, how sets become events, sets inside probability models, common mistakes and connections to other concepts.

Notation Used for Sets in Probability

Notation

Notation Used for Sets in Probability

The symbols of set theory, read as statements about events — each operation on sets becomes a sentence about what happens on one trial. All are catalogued among the probability symbols and the set theory symbols.
Braces, ∈\in and ∉\notin come from set basics; ⊆\subseteq and ⊂\subset from subsets; the operation symbols themselves from set operations notation; Ω\Omega from sample space notation; ∣A∣|A| from cardinality.
A∪BA \cup B
A or B
The event that at least one of AA, BB happens — every outcome in AA, in BB, or in both.
CasesOn a die, with A={2,4,6}A = \{2, 4, 6\} (even) and B={4,5,6}B = \{4, 5, 6\} (greater than 3), A∪BA \cup B is "even or greater than 3": {2,4,5,6}\{2, 4, 5, 6\}.
Do not confuseThe everyday exclusive "or". The union keeps the overlap: dropping {4,6}\{4, 6\} leaves {2,5}\{2, 5\} and a probability of 26\frac{2}{6} instead of 46\frac{4}{6}, as Common Mistakes and Misunderstandings below works through.
A∩BA \cap B
A and B
The event that both AA and BB happen — the outcomes the two events share.
CasesWith the same die events, A∩BA \cap B is "even and greater than 3": {4,6}\{4, 6\}.
Do not confuseThe union. Treating "A or B" as "A and B" is one of the most common slips when sets are first read as events.
AcA^c
not A — the complement of A
The event that AA does not happen: every outcome of the sample space Ω\Omega that is not in AA.
CasesFor A={2,4,6}A = \{2, 4, 6\} on a die, AcA^c is "odd": {1,3,5}\{1, 3, 5\}.
Also writtenA′A'
Do not confuseA complement taken within part of the problem. The complement is always relative to the whole sample space Ω\Omega, not to the outcomes currently in view.
A∖BA \setminus B
A but not B
The outcomes that belong to AA but not to BB — the event that AA happens and BB does not.
CasesWith the same die events, A∖BA \setminus B is "even but not greater than 3": {2}\{2\}.
Do not confuseThe complement. A∖BA \setminus B removes only BB from AA; AcA^c removes AA from the whole sample space.
DownloadPNG2×PDF
Notation · Cheat sheet
Events and Probability Rules: Notation at a Glance
The marks from the notation cards across the pages on events and probability rules: how each is read and what it means. Every group links to the full card on its page.
Sample space
Ω\Omega
omega, the sample space
The set of every possible outcome.
ω∈Ω\omega \in \Omega
little omega, one outcome
Lowercase for one outcome, capital for all of them.
A⊆ΩA \subseteq \Omega
A is an event
An event is any set of outcomes.
Sets in probabilityThis page
A∪BA \cup B
A or B
At least one of them happens.
A∩BA \cap B
A and B
Both happen.
AcA^c
not A
Every outcome outside AA.
A∖BA \setminus B
A but not B
AA happens and BB does not.
Conditional probability
P(A∣B)P(A \mid B)
probability of A given B
Measured inside the world where BB has happened.
P(A∩B)P(A \cap B)
probability of A and B
The joint probability: the overlap of the two events.
Independence
A⊥BA \perp B
A is independent of B
P(A∩B)=P(A) P(B)P(A \cap B) = P(A)\,P(B); also P(A∣B)=P(A)P(A \mid B) = P(A).
A⊥B∣CA \perp B \mid C
independent given C
The product rule holds inside the world where CC holds.
Xi∼iidFX_i \overset{\text{iid}}{\sim} F
independent, identically distributed
All independent, all with the same distribution FF.
Joint probability
P(X=x, Y=y)P(X = x, \, Y = y)
X equals x and Y equals y
The comma means and.
p(x,y),  fX,Yp(x, y), \; f_{X,Y}
joint mass; joint density
One function of both variables.
pX(x)=∑yp(x,y)p_X(x) = \sum_y p(x, y)
the marginal of X
Sum the joint over every value of yy.
Total probability
⋃Bi=Ω\bigcup B_i = \Omega
the cases cover everything
With Bi∩Bj=∅B_i \cap B_j = \emptyset: a partition into cases.
∑iP(A∣Bi) P(Bi)\sum_i P(A \mid B_i)\,P(B_i)
chance in each case, weighted
Equals P(A)P(A); with a density, the sum becomes an integral.
Bayes' theorem
P(B∣A)P(B \mid A)
the reverse conditional
Not the same as P(A∣B)P(A \mid B); Bayes’ theorem converts one into the other.
P(A)→P(A∣B)P(A) \to P(A \mid B)
prior to posterior
The same event, measured again once BB is known.
O(A∣B)O(A \mid B)
the posterior odds of A
Bayes in odds form: the likelihood ratio times the prior odds O(A)O(A).
Same marks, different job
A∣BA \mid BInside P(⋅)P(\cdot), given; between integers, divides.
⊥\perpIndependent here; perpendicular or orthogonal in geometry and linear algebra.
AcA^cThe complement event, not a power of AA.
the commaIn P(X=x,Y=y)P(X = x, Y = y) it means and, not a list.
Events and Probability Rules: Notation at a Glance·/probability/conditional-probabilityLearn Math Class

Why Sets Matter in Probability


Sets matter in probability because they are the basic way we describe everything that can happen. Every outcome of a random experiment belongs to a set, and every event we talk about in probability is just a set of those outcomes. Once we see probability through sets, the entire structure becomes clearer: sample spaces become the "universe" of all outcomes, events become meaningful groups inside that universe, and probability models use these sets to assign chances to different possibilities.

This is why sets come before every other concept — before events, before probability functions, and even before distributions. They give us the framework that all later ideas rely on.

Types of Sets Used in Probability


Probability deals with a few main kinds of sets, each matching a different type of random experiment. Some sets are small and finite, like the possible results of flipping a coin or rolling a die. Others are countably infinite, such as the set of non-negative integers when modeling counts. And in continuous situations, the sets are intervals on the real line, describing measurements that can take any value in a range. These different types of sets let us represent everything from simple discrete outcomes to full continuous scales, depending on the nature of the experiment.
DownloadPNG2×PDF
Sets used in probabilityeach kind matches a type of random experiment
fordiscrete outcomes
Finite
Small sets with a limited number of elements.
the possible results of flipping a coin or rolling a die
Countably infinite
Infinitely many elements that can still be listed one by one.
the non-negative integers, when modeling counts
forcontinuous scales
Intervals
Intervals on the real line.
measurements that can take any value in a range
Types of Sets Used in ProbabilityLearn Math Class

Core Set Operations in Probability


Probability uses the same basic operations as set theory, but with a different purpose. In set theory, union, intersection, complement, and difference are abstract tools for manipulating collections of objects. In probability, these operations gain a concrete interpretation: they describe how events relate to one another inside a sample space. The union of two events represents any outcome where at least one of them happens; the intersection represents outcomes where both occur; the complement represents the event "not happening"; and the difference keeps outcomes belonging to one event but not the other. When two events share no outcomes, they are disjoint. The full technical treatment of these operations belongs to the set-theory section, but here we use them as the machinery that turns real-life statements about uncertainty into precise events we can assign probabilities to.

Pitfall: Dropping the overlap from a union
Taking "even or greater than 3" on a die as one or the other but not both gives {2,5}\{2, 5\} and P=26P = \frac{2}{6}. The union keeps the overlap: {2,4,5,6}\{2, 4, 5, 6\}, so P=46=23P = \frac{4}{6} = \frac{2}{3}.

Each operation can be tried on a single die roll. With A={2,4,6}A = \{2, 4, 6\}, the event "even", and B={4,5,6}B = \{4, 5, 6\}, the event "greater than 3", the union A∪BA \cup B is the event "even or greater than 3", the intersection A∩BA \cap B is "even and greater than 3", and the complement AcA^c is "odd".
DownloadPNG2×PDF
Layout
OperationSymbolSet meaningProbability meaning
UnionA ∪ Belements in A, in B, or in bothat least one of the events occurs
IntersectionA ∩ Belements in both A and Bboth events occur simultaneously
ComplementAc^{c} or A′elements of Ω that are not in Aevent A does not occur
DifferenceA \ Belements in A but not in BA occurs and B does not
DisjointA ∩ B = ∅A and B share no elementsthe two events cannot both occur
Core Set Operations in ProbabilityLearn Math Class
Ω1234AB
Two events with their intersection selected

Union, intersection and complement act on events exactly as on sets, and the Venn diagram shows them as regions: the selected overlap is A and B, both circles together are A or B, and the outside is the complement of their union. Each region carries a probability and the four regions add to 1. Click a region and read its probability on the two-set Venn diagram tool.

These regions are what turn sets into events.
In probability, "or", "and" and "not" are union, intersection and complement, applied to sets of outcomes.

How Sets Become Events


In probability, an event is nothing more than a set of outcomes. Once a sample space is defined, every meaningful statement about what might happen is translated into a set inside that space. Saying "the die shows an even number" becomes the set {2, 4, 6}; saying "the waiting time is less than 3 minutes" becomes the interval (0, 3). This translation is what turns everyday language into precise mathematical objects. Once an event is expressed as a set, all of probability's tools—probabilities, complements, unions, intersections, conditional relationships—can be applied to it. In this way, sets are not just background structure; they are the actual form that events take.

Pitfall: Swapping union and intersection
Reading "a heart or a king" as the intersection leaves only the king of hearts, P=152P = \frac{1}{52}. The union holds 13+4−1=1613 + 4 - 1 = 16 cards, so P=1652=413P = \frac{16}{52} = \frac{4}{13}.

Statements that join two conditions are translated the same way: each condition becomes its own set, and the connecting word decides how the two sets are combined. For a card drawn from a standard deck, "a heart" is a set of 13 cards and "a king" is a set of 4.
Ω12345678ABC
Three events inside a sample space, the outside region selected

The rectangle is the sample space and the circles are events inside it; the selected region holds the outcomes that belong to none of the three events, and its probability is what remains after the seven inner regions are accounted for. Every region is itself an event. Select regions and add their probabilities on the three-set Venn diagram tool.

Probability models are built from exactly these sets.

Sets Inside Probability Models


A probability model is built from three parts: the sample space, the collection of events, and the rule that assigns probabilities. All three rely directly on sets. The sample space is the set of all possible outcomes. Events are subsets of that space that describe meaningful statements about the experiment. And the probability function assigns a numerical value to each event-set, telling us how likely it is to occur. Whether the model is a simple coin toss, a multi-step random process, or a continuous measurement, sets provide the structure that the probability assignment is built on. Without sets, there would be no way to organize outcomes or define events that probabilities can attach to.

Common Mistakes and Misunderstandings

Several errors show up repeatedly when learners first connect sets to probability. One common mistake is confusing a single outcome with an event, even though an event can contain many outcomes. Another is mixing up union and intersection, which leads to incorrect interpretations such as treating "A or B" as "A and B." Some people treat complements incorrectly by forgetting that they are defined relative to the entire sample space, not just the part of the problem they happen to be focusing on. In continuous settings, a frequent misunderstanding is expecting individual points to have nonzero probability, even though their probability is actually zero. Recognizing these mistakes early helps prevent deeper errors when working with conditional probability, independence, and probability distributions.
Mistake What is actually correct
Treating a single outcome as an event an event is a set of outcomes; a single outcome is one element of such a set
Mixing up union and intersection “A or B” is the union A ∪ B; “A and B” is the intersection A ∩ B
Taking complements against a partial set the complement Ac is defined relative to the entire sample space Ω, not a subregion
Expecting individual points to have nonzero probability (continuous) in continuous settings, single points have probability zero; only intervals carry positive probability
DownloadPNG2×PDF
1Dropping the overlap from a union
The event "A or B" is read as one or the other but not both, so the outcomes that belong to both events are left out. In probability, "or" is inclusive: the union keeps every outcome that is in AA, in BB, or in both.
Wrong turn
Error here
On a die, with A={2,4,6}A = \{2, 4, 6\} (even) and B={4,5,6}B = \{4, 5, 6\} (greater than 3), only the outcomes in exactly one of the events are kept.
{2,5},P=26=13\{2, 5\}, \quad P = \frac{2}{6} = \frac{1}{3}
Right path
The union also keeps the overlap A∩B={4,6}A \cap B = \{4, 6\}.
A∪B={2,4,5,6},A \cup B = \{2, 4, 5, 6\},

P(A∪B)=46=23P(A \cup B) = \frac{4}{6} = \frac{2}{3}
Why it happensIn everyday speech "or" often means one choice only, as in "tea or coffee". The set union carries no such restriction.
How to checkThe union contains each of the two events, so its probability is never smaller than the larger of P(A)P(A) and P(B)P(B). Here P(A)=36P(A) = \frac{3}{6}, and the wrong answer 26\frac{2}{6} is smaller.
Common pitfalls with events as sets·/probability/setsLearn Math Class
In probability, or is inclusive: the union A∪BA \cup B contains the outcomes that lie in both events, and P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B). Checking that the union is never less likely than the larger of the two events catches the slip.

Connections to Other Probability Concepts


Sets link directly to every major idea in probability. Sample spaces are simply the largest sets that describe every possible outcome. Events are subsets that capture specific conditions we care about. Probability functions assign numerical values to these event-sets, turning structure into measurable likelihoods. The cumulative distribution function (CDF) is built from sets of the form (−∞, x], and conditional probability is defined by comparing intersections of sets. Even independence is expressed through the relationship between event-sets and how their probabilities combine. Because every major concept rests on sets, understanding them makes the entire framework of probability much easier to navigate.

Sets and Probability at a Glance


The page has shown that sets are not just background scaffolding — they are the language probability speaks. Every concept introduced so far reduces, when read carefully, to a precise statement about subsets of a sample space. The table below collects this correspondence in one place: each major probability concept is paired with its set-theoretic definition, making explicit the mapping that runs through every section of the page.
Probability concept Set-theoretic definition
Sample space the set Ω containing every possible outcome of the experiment
Outcome a single element of Ω
Event any subset of Ω
Impossible event the empty set ∅
Certain event the full sample space Ω
“A or B” the union A ∪ B
“A and B” the intersection A ∩ B
“not A” the complement Ac = Ω \ A
Disjoint events two events A, B with A ∩ B = ∅
Probability of an event a number P(A) assigned to a subset A of Ω by the probability function

Skills You Should Learn

Each skill opens its step-by-step method page.
Probability methods
Set theory methods
  • Fill a two-set Venn diagramPlace elements or counts in the four regions of a two-set Venn diagram: the overlap first, then each set alone, then the outside.

Sets in Probability FAQ

Does “A or B” mean union or intersection?

+
Union. “A or B” is A ∪ B, the event that at least one of them occurs; “A and B” is A ∩ B, the event that both occur. Swapping the two is among the most common errors here. Note also that mathematical “or” is inclusive — A ∪ B includes the outcomes where both happen, not just where exactly one does.Read more →

What is the complement of an event taken relative to?

+
The entire sample space, always. Aᶜ contains every outcome in Ω that is not in A — not merely the outcomes in whatever sub-part of the problem you happen to be looking at. Narrowing the reference set silently is a common error, and it breaks the rule that P(A) and P(Aᶜ) together account for all the probability.Read more →

Are sets in probability different from sets in set theory?

+
Same objects, different job. Set theory treats union, intersection and complement as abstract operations on arbitrary collections. Probability fixes the collections to be outcomes of an experiment, so the same operations acquire meanings: union becomes “at least one happens”, intersection “both happen”, complement “does not happen”. The machinery is borrowed unchanged; only the interpretation is new.Read more →

How do you write “exactly one of A and B” as an event?

+
As (A∖B)∪(B∖A)(A \setminus B) \cup (B \setminus A): the outcomes of AA outside BB together with those of BB outside AA. It is the union with the overlap removed, (A∪B)∖(A∩B)(A \cup B) \setminus (A \cap B), and it matches the everyday exclusive “or”. On a die, with A={2,4,6}A = \{2, 4, 6\} and B={4,5,6}B = \{4, 5, 6\}, it is {2,5}\{2, 5\} with probability 13\frac{1}{3}, against 23\frac{2}{3} for the union.Read more →

What is the probability of drawing a heart or a king?

+
1652=413\frac{16}{52} = \frac{4}{13}. “A heart or a king” is the union of the 1313 hearts and the 44 kings, and the king of hearts belongs to both, so the union holds 13+4−1=1613 + 4 - 1 = 16 cards. Reading the “or” as an intersection leaves only the king of hearts, 152\frac{1}{52}, and adding 13+413 + 4 without the subtraction gives 1752\frac{17}{52}, counting that card twice.Read more →