Variance and standard deviation of a discrete random variable