Calculating the probability of mutually exclusive events