A diagonal matrix scales each coordinate separately. See how volatility scaling differs from a diagonal covariance matrix, how portfolio risk adds up, and when the inverse exists.
Diagonal matrix
A diagonal matrix is a square matrix whose entries away from the main diagonal are all zero. Multiplying a vector by it scales each coordinate separately: no input coordinate feeds into another output coordinate. In finance, this describes operations such as assigning a separate volatility scale to each standardised shock.
Write an n×n diagonal matrix as
D=diag(d1,…,dn),Dij=0when i=j.
The main diagonal runs from top left to bottom right. Diagonal entries may themselves be zero. The zero matrix and the identity matrix are both diagonal; diagonal does not mean invertible, positive or equal along the diagonal.
Scaling shocks without mixing them
For a column vector, matrix multiplication reduces to
Dx=d1x1⋮dnxn.
A positive entry stretches or shrinks its coordinate, a negative entry also reverses its sign, and a zero entry erases it. The coordinate axes remain invariant, although a vector pointing between the axes can change direction when their scale factors differ.
Consider a hypothetical two-asset return model at one fixed horizon. Let z contain mean-zero, unit-variance, uncorrelated shocks, and define centred decimal returns by
R=Dσz,Dσ=(0.20000.10).
A shock vector (1,1)⊤ maps to (0.20,0.10)⊤: returns of 20% and 10%. The first return depends only on the first shock, and the second only on the second. Here the shocks are dimensionless; the matrix converts them to decimal returns. This is a synthetic illustration, not an estimated market model.
A diagonal map turns a unit circle of dimensionless shocks into an ellipse with return semiaxes 20% and 10%. The input vector (1,1) maps to decimal returns (0.20,0.10), shown as (20%,10%). Each output depends only on its matching input.
Original hypothetical fixed-horizon map. The blue curve is the image of a unit circle, not a probability or confidence contour. Output axes display percent; the matrix uses decimal returns.
The diagonal matrix is the scaling operation. The assumption about the shocks supplies their statistical relationship. Diagonal scaling alone would not remove dependence or covariance already present in the inputs.
A diagonal covariance makes the risk sum separable
In this model the covariance matrix is
Σ=DσIDσ⊤=(0.04000.01).
Notice the distinction: Dσ contains volatilities; Σ contains variances. Its entries are in squared decimal-return units at the same horizon. Putting 20 and 10 into this formula would mix percentage notation with decimal notation.
The volatility is therefore 0.0125=0.111803…, or 11.18% at that horizon. It is not the weighted-average volatility of 15%. The first asset contributes 80% of this portfolio's variance despite having only half its capital weight.
For any diagonal covariance, the same simplification is
w⊤Σw=i=1∑nwi2σi2.
There are no covariance cross terms. This is a useful model assumption or a property of suitably chosen coordinates, not a general property of asset returns. Replacing an empirical covariance matrix with its diagonal deliberately discards the off-diagonal information. With long-only weights, omitted positive covariances would understate variance; omitted negative covariances would overstate it, holding the diagonal fixed.
Uncorrelated does not generally mean independent. Zero off-diagonal covariance records the absence of linear co-movement, while nonlinear dependence can remain. MIT's covariance notes give a counterexample. A diagonal covariance is enough for the variance calculation above; it is not enough to justify multiplying marginal probabilities when estimating joint losses.
What becomes easy—and what a zero prevents
For two diagonal matrices of the same size, addition and multiplication act on matching diagonal entries. In particular,
An inverse matrix exists if and only if every diagonal entry is nonzero. Then
D−1=diag(1/d1,…,1/dn).
For the shock-scaling matrix, the inverse is diag(5,10): divide each return by its own volatility to recover the shock. If a diagonal entry were zero, every value of that input coordinate would give the same zero output coordinate, so no inverse could recover the lost information. A very small nonzero entry permits an algebraic inverse but amplifies errors when you divide by it. MIT's linear-algebra notes state the precise invertibility condition.
Diagonality also depends on the chosen basis. A matrix that mixes coordinates in the original basis may become diagonal after a valid eigenvalue decomposition. Every real symmetric covariance matrix admits an orthonormal eigenbasis in which its covariance is diagonal. The new coordinates are combinations of assets; those diagonal entries describe their variances, not necessarily the original assets' variances. Changing basis preserves the underlying risk calculation when the portfolio coordinates are transformed consistently.
For the scalar variance calculation and the distinction between covariance and independence, Expectation, Variance and Covariance is available in full with a free signed-in account. Eigenvalues and Covariance Matrices develops the eigenbasis risk sum; its full lesson requires membership, with a public preview.
Sources
Gilbert Strang, Introduction to Linear Algebra, 5th edition (2016), §2.5, Note 6, on diagonal inverses; §12.2 on covariance matrices and the variance of a linear combination. The return model, calculations and figure here are original.