Question: how to calculate variance from e(x)?
Answer: The variance measures how far the values of X are from their mean, on average. Var(X) = E((X − µX)2) = E(X2) − (E(X))2. The variance is the mean squared deviation of a random variable from its own mean. If X has high variance, we can observe values of X a long way from the mean.