calculates standard deviation, variance, and mean