Cov(X,Y)=E[(X−E[X])(Y−E[Y])]Cov(X,Y) = E[(X-E[X])(Y-E[Y])]Cov(X,Y)=E[(X−E[X])(Y−E[Y])], for r.v.s XXX and YYY.
See also Variance