The covariance of two random variables is defined as the central moment of where , i.e.,:

where is the correlation of . Then if either of the random variables has a mean of 0.

Note that pairs of independent random variables have covariance zero. However, the inverse is not necessarily true, i.e., if two random variables have covariance zero, they may not necessarily be independent.