Calculation of the probability of a certain outcome