The principle of inclusion/exclusion (PIE) refers to the process of adding and subtracting, used to find the cardinality of potentially overlapping sets. Given finite sets the following identity captures the concept:
For example, given finite sets , , and ,
The number of terms containing one set, two sets, three sets, etc. match the binomial coefficients.
Probability
The principle of inclusion-exclusion also holds in probability. Let be a number of events in a shared sample space. Then
For example, given events , , and ,
Minimum/Maximum
The and operations respect the principle of inclusion/exclusion. In particular,