Calculate probability

Probability calculation mainly looks at the ratio of favorable cases to total cases. The basic formula is probability = number of favorable outcomes ÷ total number of outcomes, and the result is between 0 and 1.