Covariance¶
Definition¶
For square-integrable , covariance is
Independence implies zero covariance; the converse generally fails.
Expanding the product of centred variables and using Linearity of Expectation gives .
Interpretation¶
Covariance measures whether two variables tend to deviate from their means in the same direction: it is positive when large values of tend to go with large values of , and negative when they tend to go with small values. It also accounts for dependence in the variance of a sum.
Points in the green quadrants contribute positive products of deviations, while points in the red quadrants contribute negative products. Covariance averages these products, taking both their magnitudes and probabilities into account.
The first formula in the Definition carries the meaning; the second, , is the shortcut for computing, with found from a joint PMF or density by two-dimensional LOTUS (continuous version). Taking gives . Shifts do not matter, but rescaling does: covariance carries the product of the units of and , so only its sign is directly interpretable. Correlation divides by the standard deviations to remove the units.
In , positive covariance means the deviations reinforce each other and negative covariance means they partly cancel. For independent variables the covariance is zero and the variances simply add, as in Probability Theory. Counts that compete for a fixed total have negative covariance, as in the multinomial distribution.
Zero covariance does not imply independence: for and , , although is a function of .
Key Results¶
- .
- .
Examples¶
- If and , then and .
- For independent fair Bernoulli variables, and , so covariance is zero.
Prerequisites¶
Related Concepts¶
- Independent Random Variables
- Eve’s Law: Total Variance
- Two-Dimensional LOTUS for Discrete Variables
- Two-Dimensional LOTUS for Continuous Variables
- Multinomial Distribution
- Cauchy–Schwarz Inequality for Random Variables
Sources¶
- Nicky van Foreest · Probability Distributions · Week 2
Last updated: 22 October 2026 19:04
CovarianceCorrelationOptimal Bonus-Malus RelativitiesVariance and Standard DeviationLinearity of ExpectationIndependent Random VariablesEve’s Law: Total VarianceTwo-Dimensional LOTUS for Discrete VariablesTwo-Dimensional LOTUS for Continuous VariablesMultinomial DistributionCauchy–Schwarz Inequality for Random Variables