Probability of events in a sample