entekhab.netentekhab.nettrilingual encyclopedia

Covariance

ENGLISHCovariancereference
فارسیکوواریانسEstablished equivalent
کوردیهاوواریانسProposed equivalent — not standard
Category
Quantitative Finance
Level
Professional

Simple definition

A number saying whether two quantities tend to move up and down together. Positive means they usually move the same way, negative means opposite ways, near zero means no consistent pattern.

Professional definition

The average product of two series' deviations from their own means. Divide by N for a population and by n minus 1 for a sample, for the same reason as variance. Its sign is informative; its magnitude is not, because it carries the product of the two units.

Technical definition

The expected product of two variables' deviations from their means, and the off-diagonal entry of the covariance matrix on which portfolio variance is built. Dividing it by the two standard deviations gives correlation, which is the scale-free version. Covariance of a variable with itself is its variance.

Academic definition

The joint second central moment of two random variables, equal to the expectation of the product of their deviations from their respective means.

Mechanism

Multiplying two deviations keeps their joint sign: both above average or both below gives a positive product, opposite sides a negative one. Averaging those products measures how reliably the pairing holds. Because the product carries both units, the size of the number says nothing until it is normalised into a correlation.

In practice

Who uses it
Portfolio builders, hedge-ratio calculators, pairs traders and anyone running a regression, whose slope is a covariance divided by a variance.
Why it matters
Portfolio variance is a weighted sum of variances and covariances. Diversification works only through the covariance terms, so these numbers decide how much risk reduction a combination actually delivers.
Limitations
Estimated covariances are unstable, and they tend to rise together in stressed markets, so the diversification they promised disappears when it is most needed.

Common mistakes

  • Interpreting the raw magnitude as a strength of relationship.
  • Mixing the N and n minus 1 divisors inside one covariance matrix.
  • Assuming an estimate from a calm period holds through a crisis.

Examples

numeric

Asset X returns 2, minus 1, 3, 0, minus 4 and asset Y returns 1, 0, 2, minus 1, minus 2, both with mean zero. The products of deviations sum to 16, so population covariance is 3.2 and sample covariance is 4.0.

Given
  • X: 2, -1, 3, 0, -4 with mean 0
  • Y: 1, 0, 2, -1, -2 with mean 0
  • n = 5
Steps
  1. products of deviations: 2, 0, 6, 0, 8; sum = 16
  2. population covariance = 16 / 5 = 3.2
  3. sample covariance = 16 / 4 = 4.0
  4. population standard deviations: sqrt(30/5) = 2.449 and sqrt(10/5) = 1.414
  5. correlation = 3.2 / (2.449 x 1.414) = 0.9238
population covariance 3.2, sample covariance 4.0, correlation 0.9238

Verified numerically. Correlation comes out at 0.9238 whichever divisor is used, provided the same divisor is used for the covariance and both variances. That cancellation is why correlation is the comparable figure and covariance is not.

market

Two positions each with 20% annual volatility combine into a portfolio whose risk depends entirely on their covariance. Perfectly correlated, the combination keeps 20%; uncorrelated, equal weights cut it to about 14.1%; perfectly negatively correlated, it falls to zero.

Mathematical foundation

\mathrm{Cov}(X,Y) = \frac{1}{N}\sum_{i=1}^{N}(x_i-\mu_X)(y_i-\mu_Y), \qquad s_{XY} = \frac{1}{n-1}\sum_{i=1}^{n}(x_i-\bar{x})(y_i-\bar{y})

Variables

\mathrm{Cov}(X,Y)Population covariance, divided by Nproduct of the two units
s_{XY}Sample covariance, divided by n minus 1 under Bessel's correctionproduct of the two units
\mu_X, \mu_YPopulation means of the two seriesrespective units
\bar{x}, \bar{y}Sample means of the two seriesrespective units

Procedure

Align the two series on identical dates, dropping any period missing from either. Compute each series' mean. For each period multiply the two deviations. Sum the products and divide by N for a population or by n minus 1 for a sample. To make the number interpretable, divide by the two standard deviations computed with the same divisor to obtain correlation.

Worked example

Given
  • X: 2, -1, 3, 0, -4 (mean 0)
  • Y: 1, 0, 2, -1, -2 (mean 0)
  • n = 5
Steps
  1. deviation products: 2x1 = 2, -1x0 = 0, 3x2 = 6, 0x-1 = 0, -4x-2 = 8
  2. sum = 16
  3. population covariance = 16/5 = 3.2
  4. sample covariance = 16/4 = 4.0
Cov = 3.2 (population), s_XY = 4.0 (sample); correlation 0.9238 either way

Interpretation

Read the sign, then convert to correlation before reading anything else. Bessel's correction applies here for the same reason as in variance: both means were estimated from the data, so the products of deviations are systematically a little too small, and the n minus 1 divisor removes that bias.

Assumptions

  • Both series must be measured over the same periods and at the same frequency; misaligned dates produce a covariance that measures the misalignment.
  • The same divisor must be used for the covariance and for both variances when forming a correlation, or the result is not bounded between minus one and one.
  • Both second moments must be finite for the covariance to exist as a population quantity.
Limits of the formula
  • Magnitude is uninterpretable because the units are a product, so covariances of different asset pairs cannot be compared directly.
  • Linear co-movement only: a strong non-linear relationship can produce a covariance near zero, and two series can be dependent while reporting no covariance at all.

Related terminology

related
Correlation Variance Standard Deviation Beta Modern Portfolio Theory Efficient Frontier Correlation Risk Linear Regression Hedge Ratio Risk Parity Pairs Trading
Commonly confused with

Correlation

Correlation is covariance divided by the two standard deviations, which bounds it between minus one and one. Covariance keeps the units and so cannot be compared across asset pairs; correlation can.

Sources

Portfolio Selection
Journal of Finance 7(1) · 1952 · the derivation of portfolio variance from component variances and covariances
Print source
Portfolio Risk and Return: Part II (refresher reading)
CFA Institute · sections on covariance, correlation and portfolio risk
https://www.cfainstitute.org/insights/professional-learning/refresher-readings/2026/portfolio-risk-return-part-2 URL verified

Editorial status

Needs expert reviewconsensusv1.02026-11-05

Flagged by the editor as uncertain on a linguistic, mathematical or regulatory point.

The Kurdish headword هاوواریانس is this project's coinage, formed from هاو- plus the retained English root, and needs native-expert review; the English term is kept in the aka list. Both divisors are standard; the entry states that a correlation is only bounded in minus one to one when the same divisor is used throughout.