Probability Theory Fundamentals › Covariance and Correlation
Quantitative FinanceAll chapters Probability Theory Fundamentals › Covariance and CorrelationOne section · Sections in this chapter7 / 15 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
When analyzing multiple assets, we need to understand how they move together. Covariance and correlation quantify this relationship and provide the mathematical foundation for portfolio construction and risk management. A portfolio's risk depends on each component's volatility and on how those components interact.
For random variables and with finite second moments, covariance measures their joint variability:
where:
- : covariance between and
- : mean of
- : mean of
- : product of deviations from respective means
- : expected value of the product
- The units of covariance are the product of the units of and
The covariance definition captures co-movement through products of deviations. When both variables are above their means, or both are below, the product is positive; opposite-direction deviations produce a negative product.
Positive covariance means that same-sign deviations make a positive net contribution on average, while negative covariance means opposite-sign deviations dominate on average. Zero covariance means no linear association; it does not rule out nonlinear dependence, so observing can still provide information about .
The equivalence of the two covariance formulas follows from expanding the definition:
The second formula, , often simplifies calculations: it says covariance equals the expected product minus the product of expectations. If and are independent with finite second moments, , so the covariance is zero. Under these moment conditions, independence implies zero covariance, though the converse is not generally true.
For finite, nonzero standard deviations, the correlation coefficient normalizes covariance to lie between -1 and 1:
where:
- : correlation coefficient between and (bounded between -1 and 1)
- : covariance between and
- : standard deviation of
- : standard deviation of
- : product of standard deviations, which has the same units as covariance, making dimensionless
Dividing by the product of standard deviations converts covariance to a standardized scale. A correlation of means that almost surely for some constants and . A correlation of gives the same affine relationship with , while means no linear association. The qualifier "almost surely" permits exceptions confined to probability-zero outcomes.
Correlation is easier to interpret than covariance because it's unitless and bounded. A correlation of 1 indicates a perfect positive linear relationship, -1 indicates a perfect negative linear relationship, and 0 indicates no linear relationship. The normalization by standard deviations removes the scale dependence that makes covariance hard to interpret. Measuring the same returns in percentages rather than decimals is a fixed positive rescaling and leaves correlation unchanged. Currency translation is different: exchange rates generally vary over time, so converting asset values or returns between currencies introduces FX variation and can change correlations unless the conversion is a constant scaling.
The bounds of -1 and 1 follow from the Cauchy-Schwarz inequality, a fundamental result in mathematics. This bound provides a universal scale for comparison: a correlation of 0.8 between stocks A and B means they move together more strongly than if the correlation were 0.5, regardless of what A and B are or how volatile they are individually.



Low or negative correlation can reduce portfolio volatility relative to concentrated exposure, but correlation alone does not guarantee risk below every constituent. The two-asset variance also depends on both volatilities, the portfolio weights, and constraints.