Expected value and standard deviation, Probability calculations