Calculation of probability based on number of riders on a bus