Partition of a sample space

Before you can average a probability over "all the ways something could have happened," you need a precise way of listing those ways so that none overlaps and none is missing. That is exactly what a partition of a sample space gives you: a collection of events that slice the sample space into non-overlapping pieces which, laid side by side, reconstruct the whole space exactly. It sounds like bookkeeping, and in one sense it is — but this bookkeeping is the scaffolding behind the total probability theorem and Bayes' theorem, the two big results waiting just after this topic. Get partitions right, and those theorems become almost mechanical; get them wrong, every later formula misfires. This article pins down the three defining conditions, shows why they let any event be split into disjoint pieces, and works through both a valid and an invalid partition so the failure modes are visible before they cost marks.

The core insight

A partition of a sample space SS is a set of events that are pairwise disjoint, together cover all of SS, and each have positive probability — the exact structure needed to break any event AA into non-overlapping pieces A∩EiA \cap E_i.

The core idea

A collection of events E1,E2,…,EnE_1, E_2, \dots, E_n is said to form a partition of the sample space SS when all three of the following hold simultaneously.

Mutually exclusive (pairwise disjoint). No two of the events share an outcome:

Ei∩Ej=∅for all i≠j.E_i \cap E_j = \varnothing \quad \text{for all } i \neq j.

where: Ei,EjE_i, E_j are any two distinct events from the collection, and ∅\varnothing is the empty set — there is no outcome common to both.

Exhaustive. Together the events use up the entire sample space, leaving nothing out:

E1∪E2∪⋯∪En=S.E_1 \cup E_2 \cup \cdots \cup E_n = S.

where: the union on the left collects every outcome that lies in at least one EiE_i, and this union must equal the full sample space SS — every possible outcome belongs to some EiE_i.

Nonzero probability. Every member of the partition is a genuinely possible event, not an impossible one:

P(Ei)>0for every i=1,2,…,n.P(E_i) > 0 \quad \text{for every } i = 1, 2, \dots, n.

where: P(Ei)P(E_i) is the probability of EiE_i; ruling out P(Ei)=0P(E_i) = 0 matters because the total probability theorem and Bayes' theorem later divide by such quantities, so a zero-probability member would make those formulas break down. In plain words: the pieces E1,…,EnE_1, \dots, E_n never overlap, together they cover every outcome in SS, and each piece is something that can actually occur. Think of SS as a plot of land and the EiE_i as fields on it — no field trespasses on another, every square metre belongs to exactly one field, and no field has zero area. The simplest and most common partition of all comes from a single event and its complement. For any event EE with 0<P(E)<10 < P(E) < 1, the pair {E,E′}\{E, E'\} always forms a partition of SS: E∩E′=∅E \cap E' = \varnothing (an outcome cannot both happen and not happen) and E∪E′=SE \cup E' = S (every outcome either is in EE or is not). Every richer partition used later in the total probability theorem is just a generalisation of this two-piece idea to nn pieces.

Figure
A rectangle representing the sample space divided into three non overlapping labelled regions E1 E2 E3 with an oval event A overlapping parts of all three, shaded slices showing A intersect E1, A intersect E2 and A intersect E3
A partition splits S into disjoint pieces; A splits along with it S E1 E2 E3 A A n E1 A n E2 A n E3 A = (A n E1) union (A n E2) union (A n E3), and these three pieces are pairwise disjoint

Why does the diagram matter beyond geometry? Because it is the exact picture the total probability theorem relies on. If E1,…,EnE_1, \dots, E_n partition SS, then any event AA can be written as

A=(A∩E1)∪(A∩E2)∪⋯∪(A∩En),A = (A \cap E_1) \cup (A \cap E_2) \cup \cdots \cup (A \cap E_n),

where: each A∩EiA \cap E_i is the part of AA that happens "via route EiE_i" — and because the EiE_i never overlap, the pieces A∩EiA \cap E_i never overlap either, even though AA itself might sprawl across every one of the fields.

Derivation ADecomposing an event through a partition

The goal here is to show, rigorously, that a partition lets any event AA be broken into pairwise disjoint pieces A∩E1,…,A∩EnA \cap E_1, \dots, A \cap E_n whose probabilities simply add up to give P(A)P(A) — this additivity is the one fact every later total-probability calculation leans on, so it is worth deriving carefully rather than accepting on faith.

Step 1. Start from exhaustiveness. Since E1,E2,…,EnE_1, E_2, \dots, E_n partition SS, their union is the whole sample space: E1∪E2∪⋯∪En=SE_1 \cup E_2 \cup \cdots \cup E_n = S. Any event AA is a subset of SS, so A=A∩S=A∩(E1∪E2∪⋯∪En)A = A \cap S = A \cap (E_1 \cup E_2 \cup \cdots \cup E_n).

Step 2. Distribute the intersection over the union, exactly as intersection distributes over union for sets in general: A∩(E1∪E2∪⋯∪En)=(A∩E1)∪(A∩E2)∪⋯∪(A∩En)A \cap (E_1 \cup E_2 \cup \cdots \cup E_n) = (A \cap E_1) \cup (A \cap E_2) \cup \cdots \cup (A \cap E_n). This is the decomposition of AA promised above — AA has been rewritten as a union of nn pieces, one carved out from each field of the partition.

Step 3. Check the pieces are pairwise disjoint. Take any two pieces A∩EiA \cap E_i and A∩EjA \cap E_j with i≠ji \neq j. Their intersection is (A∩Ei)∩(A∩Ej)=A∩(Ei∩Ej)=A∩∅=∅(A \cap E_i) \cap (A \cap E_j) = A \cap (E_i \cap E_j) = A \cap \varnothing = \varnothing, using the disjointness of EiE_i and EjE_j from the partition's first condition. So no two pieces of AA share an outcome, even though AA itself can stretch across several EiE_i.

Step 4. Apply additivity of probability. Because A∩E1,…,A∩EnA \cap E_1, \dots, A \cap E_n are pairwise disjoint, the probability of their union is simply the sum of their individual probabilities:

P(A)=P(A∩E1)+P(A∩E2)+⋯+P(A∩En)=∑i=1nP(A∩Ei).P(A) = P(A \cap E_1) + P(A \cap E_2) + \cdots + P(A \cap E_n) = \sum_{i=1}^{n} P(A \cap E_i).

where: the sum runs over every member of the partition, and each P(A∩Ei)P(A \cap E_i) is the probability that AA occurs together with EiE_i. This single line is exactly the identity the total probability theorem later rewrites using conditional probabilities P(A∣Ei)P(A \mid E_i) — the partition is what makes the sum valid in the first place.

Worked example

A single die is rolled, so the sample space is S={1,2,3,4,5,6}S = \{1, 2, 3, 4, 5, 6\}. Consider the events E1={1,2}E_1 = \{1, 2\}, E2={3,4}E_2 = \{3, 4\}, E3={5,6}E_3 = \{5, 6\}. Verify that {E1,E2,E3}\{E_1, E_2, E_3\} forms a partition of SS, and use it to decompose A={2,3,5,6}A = \{2, 3, 5, 6\}, the event "the die shows an even-position pair member other than 4," which we take here simply as the given set for illustration.

Step 1 — check pairwise disjointness. E1∩E2=∅E_1 \cap E_2 = \varnothing, E2∩E3=∅E_2 \cap E_3 = \varnothing, E1∩E3=∅E_1 \cap E_3 = \varnothing. All three pairwise intersections are empty, so the disjointness condition holds.

Step 2 — check exhaustiveness. E1∪E2∪E3={1,2}∪{3,4}∪{5,6}={1,2,3,4,5,6}=SE_1 \cup E_2 \cup E_3 = \{1,2\} \cup \{3,4\} \cup \{5,6\} = \{1,2,3,4,5,6\} = S. Nothing is left out, so the exhaustive condition holds.

Step 3 — check nonzero probability. P(E1)=P(E2)=P(E3)=26=13>0P(E_1) = P(E_2) = P(E_3) = \dfrac{2}{6} = \dfrac{1}{3} > 0 for each event, so the third condition holds. All three conditions are satisfied, so {E1,E2,E3}\{E_1, E_2, E_3\} is indeed a partition of SS.

Step 4 — decompose AA using the partition. With A={2,3,5,6}A = \{2,3,5,6\}: A∩E1={2}A \cap E_1 = \{2\}, A∩E2={3}A \cap E_2 = \{3\}, A∩E3={5,6}A \cap E_3 = \{5,6\}. Each piece has probability 16\dfrac{1}{6}, 16\dfrac{1}{6}, and 26\dfrac{2}{6} respectively, and summing gives P(A)=16+16+26=46=23P(A) = \dfrac{1}{6} + \dfrac{1}{6} + \dfrac{2}{6} = \dfrac{4}{6} = \dfrac{2}{3}, which matches direct counting: AA has 4 outcomes out of 6. The partition decomposition reproduces P(A)=23P(A) = \dfrac{2}{3} exactly.

Competitive stretch

A box contains bulbs from three factories, A, B and C. Let E1E_1 = "bulb is from Factory A," E2E_2 = "bulb is from Factory B," and E3E_3 = "bulb is defective, regardless of factory." Does {E1,E2,E3}\{E_1, E_2, E_3\} form a partition of "which bulb is drawn," given every bulb comes from exactly one of the three factories?

Step 1. E1E_1 and E2E_2 alone cover only Factory A and Factory B bulbs, leaving Factory C bulbs uncovered — so even before considering E3E_3, exhaustiveness already fails for {E1,E2}\{E_1, E_2\}.

Step 2. Does E3E_3 rescue this? No: E3E_3 ("defective") is not the same as "from Factory C." A defective bulb could come from any factory, so E3E_3 overlaps E1E_1 and E2E_2 (a defective Factory-A bulb lies in both E1E_1 and E3E_3), which breaks disjointness rather than fixing exhaustiveness.

Step 3. Conclusion: {E1,E2,E3}\{E_1, E_2, E_3\} is not a valid partition — it fails disjointness (mixed criteria) and, absent a genuine "Factory C" event, exhaustiveness too. The fix is to replace E3E_3 with E3′=E_3' = "bulb is from Factory C," giving the valid partition {E1,E2,E3′}\{E_1, E_2, E_3'\}, all defined along the single criterion of origin.

Common traps

  • Assuming any three "categories" automatically partition SS — always check disjointness and exhaustiveness explicitly, never just count the listed events.
  • Forgetting the nonzero-probability condition. An event with P(Ei)=0P(E_i) = 0 is not a valid partition member, since the total probability theorem and Bayes' theorem later divide by such quantities.
  • Mixing criteria, such as partitioning partly by origin and partly by an unrelated attribute like defectiveness — this is the exact failure in the competitive-stretch example above, and it almost always breaks disjointness.
  • Thinking {E,E′}\{E, E'\} is the only kind of partition. Any number of pairwise disjoint, exhaustive, positive-probability events can form a partition; the complement pair is simply the smallest, two-piece case.

Ask the tutor: Not sure whether a set of events given in a word problem actually forms a valid partition? Ask the AI tutor to walk through the three conditions with you on that specific example.

Why do we need the nonzero-probability condition at all — isn't disjoint and exhaustive enough?

Disjoint and exhaustive alone would let you include an impossible event, like "the die shows 7," as one of the EiE_i without breaking either condition, since ∅\varnothing is disjoint from everything and adds nothing to a union. The problem shows up later: the total probability theorem and Bayes' theorem both divide by P(Ei)P(E_i) for each member. If P(Ei)=0P(E_i) = 0, that division is undefined, so the definition excludes zero-probability members from the start.

Is the partition of a sample space the same thing as mutually exclusive events?

Not quite — mutually exclusive is only one of the three conditions. Mutually exclusive events are simply pairwise disjoint; they need not cover the whole sample space. For example, {1}\{1\} and {2}\{2\} on a die roll are mutually exclusive but do not exhaust S={1,…,6}S = \{1,\dots,6\}, so they are not a partition. A partition additionally demands exhaustiveness and positive probability for every member, so "partition" is a stricter, three-condition requirement built on top of mutual exclusivity.

How do I quickly check whether a set of events forms a valid partition in an exam question?

Run the three conditions as a short checklist, in this order, since exhaustiveness and disjointness are usually the fastest to spot from the problem's wording. First, list the events and see whether any two share an outcome — if the sets are given explicitly, compute each pairwise intersection. Second, take their union and compare it to the full sample space. Third, confirm none of the listed events is impossible. If any step fails, name exactly which condition breaks, as in the bulb-factory example, rather than just saying "not a partition."

Before this

Where this leads