Calculating probabilities of specific events