### Quick description

Suppose that , , ..., are events and you want to calculate the probability that exactly of these events occur. That is, you would like to compute the probability of the set of samples that belong to exactly of these sets. One can use the following generalized inclusion-exclusion formula to accomplish this:

This formula is computationally useful if it is simple to compute the probabilities . For more information on this formula see the article on the simple inclusion-exclusion principle.

### Prerequisites

Elementary probability.

1 year 10 weeksago1 year 19 weeksago1 year 20 weeksago1 year 49 weeksago2 years 18 weeksago