18.1 - Covariance of X and Y
https://online.stat.psu.edu/stat414/book/export/html/728Covariance. Let X and Y be random variables (discrete or continuous!) with means μ X and μ Y. The covariance of X and Y, denoted Cov ( X, Y) or σ X Y, is defined as: C o v ( X, Y) = σ X Y = E [ ( X − μ X) ( Y − μ Y)] That is, if X and Y are discrete random variables with joint support S, then the covariance of X and Y is: C o v ( X, Y ...
Covariance - Wikipedia
https://en.wikipedia.org/wiki/CovarianceFor two jointly distributed real-valued random variables and with finite second moments, the covariance is defined as the expected value (or mean) of the product of their deviations from their individual expected values: where is the expected value of , also known as the mean of . The covariance is also sometimes denoted or , in analogy to variance. By using the linearity property of expectations, this can be sim…