Calculation of Expected Value, Variance, and Standard Deviation