Definition · Joint distributions
Covariance and affine transformations
Definition from the chapter Joint distributions, covariance and transformations of Statistics and probability, with the exercises in which it is used.
Covariance and affine transformations
A pair takes the values and , each with probability , so it has means and ( is read “mu”). The deviations from the means are and in the first outcome, and in the second. In both outcomes the two variables lie on the same side of their respective means, so the product of the deviations is positive and equals , and its mean also equals .
Let and have finite second moments, that is, finite and , and let and . The covariance of and is the expected value of the product of their deviations from their respective means:
The second form follows by expanding the product,
By linearity of expectation, the second and third terms have expectation and , and the constant last term has expectation . Hence what remains is . In the example and .
The covariance is positive when the positive products predominate in the weighted average, that is, the outcomes in which the two deviations have the same sign, and negative when those with opposite signs predominate. Its units are the product of the units of and , for example meters times kilograms.
Three rules of computation follow from the definition.
- If , the two deviations coincide, so .
- Replacing by , the mean becomes and the deviation becomes ; similarly the deviation of is . Hence .
- Covariance is linear in each variable, because the deviation of a linear combination is the same combination of the deviations. For example .
Read it in the chapter Joint distributions, covariance and transformations →
Exercises where this definition is used
Worked examples
Practice exercises
All the definitions and theorems of Statistics and probability → · All the theorems on the site →