Finding the probability of events