Variance measures how dispersed the data is from the mean. The formula is Var(X)=E[(X−E[X])2]=Cov(X,X).