Calculation of probability of multiple events