Covariance matrix

Last updated 29 November 2026

Glossary · Topics: Value at Risk, Risk and performance measures

Depth

The table of the covariances between each pair of a set of variables, such as the returns of the assets in a portfolio, with each variable's variance on the diagonal.

Calculation. The covariance of two returns is their correlation times their two standard deviations. The variance of a portfolio is the sum of all the entries of the matrix, each multiplied by the weights of its two assets. A valid covariance matrix is symmetric and positive semi-definite: no portfolio can have a negative variance.

Formula. With correlations ρij\rho_{ij} and standard deviations σi\sigma_i, the covariances are Σij=ρij σi σj\Sigma_{ij} = \rho_{ij}\,\sigma_i\,\sigma_j. A portfolio with weights w\mathbf{w} has the variance w⊤Σ w\mathbf{w}^\top \Sigma\,\mathbf{w}.

Use. It holds what a risk measure based on volatility needs to know about how the assets move together. It gives a portfolio volatility and a parametric VaR, and its Cholesky decomposition generates correlated moves in a Monte Carlo simulation.

In our models. Portfolio volatility takes a covariance matrix, or a correlation matrix with volatilities, from which the covariance matrix is built. See Risk and performance measures: portfolio volatility. See also Correlation and Standard deviation and variance.