Theorem · Probability and counting
Inclusion–exclusion formula
Statement of the theorem with its hypotheses, proof and the exercises in which it is applied. From the chapter Probability and combinatorics of Statistics and probability.
Inclusion–exclusion formula
When a fair die is rolled, let be the event “an even number comes up” and the event “at least comes up.” The sum differs from , because the outcomes and , common to the two events, have been counted twice. Subtracting their probability once, , gives , which is the correct value.
For two events on the same sample space, in general,
The formula is also used in reverse, when the probability of the union is known and the probability of the intersection is required.
The proof is available to those who have unlocked the subject.
Unlock nowRead it in the chapter Probability and combinatorics →
Exercises where this theorem is used
Worked examples
Practice exercises
All the definitions and theorems of Statistics and probability → · All the theorems on the site →