Fix the formulas for standard deviations