Covariance - Wikipedia
https://en.wikipedia.org/wiki/CovarianceThe variance is a special case of the covariance in which the two variables are identical (that is, in which one variable always takes the same value as the other): If , , , and are real-valued random variables and are real-valued constants, then the following facts are a consequence of the definition of covariance: For a sequence of random variables in real-valued, and constants , we have