The variance of a random variable X is a measure of the expected deviation from the average μ=E[X]. Var[X]=E[(X−μ)2]=E[X2]−(E[X])2