Probability Spaces and Events - Key Proof
We present a detailed proof of the inclusion-exclusion principle, one of the most important counting and probability formulas. This result generalizes the simple addition rule for disjoint events.
The Inclusion-Exclusion Principle
For events in a probability space:
Equivalently:
We prove by induction on .
Base Case (): We need to show:
Decompose into disjoint pieces:
By additivity:
Since is a disjoint union:
Therefore , and:
Inductive Step: Assume the formula holds for events. For events, write:
By the base case:
By the inductive hypothesis applied to :
For the intersection term, note:
Applying the inductive hypothesis to events :
Combining these expressions and collecting terms by the size of intersections yields the inclusion-exclusion formula for events. □
Application: Derangements
A derangement is a permutation where no element appears in its original position. The probability that a random permutation of elements is a derangement can be computed using inclusion-exclusion.
Let = "element is in position ". The probability of at least one fixed point is:
We have:
There are terms in the -th sum, so:
The probability of a derangement is:
The inclusion-exclusion principle has both combinatorial and probabilistic interpretations. It corrects for overcounting when computing the size or probability of a union by alternately adding and subtracting intersection terms.