Covariance measures how two variables vary together.
Sample covariance:
Sign:
- Positive covariance: variables tend to move together
- Negative covariance: one tends to rise when the other falls
- Near zero covariance: little linear relationship
Correlation is normalized covariance:
Correlation is unitless and lies in .
Covariance matrix: for a vector-valued random variable, the covariance matrix stores variances on the diagonal and covariances off the diagonal.
Covariance matrices are central to Principal Component Analysis (PCA) and Gaussian models.
Limitations:
- Correlation measures linear association, not all dependence
- Correlation does not imply causation
- Outliers can dominate correlation
- Restricted ranges can hide relationships
See also: Expectation and Variance, Principal Component Analysis (PCA), Experimental Design