The covariance of two random variables X and Y, denoted by Cov(X, Y), is equal to E((X − μX)(Y − μY)), where μX and μY are the population means of X and Y respectively (see expected value). If X and Y are independent random variables, then Cov(X, Y)=0. For computational purposes, note E((X − μX)(Y −μY))=E(XY) − μX μY. For a sample of n paired observations (x1, y1), (x2, y2),…, (xn, yn), the sample covariance is equal to