A symmetric matrix A is positive definite when xTAx>0 for every x=0; equivalently, all its eigenvalues are positive. Covariance matrices are always positive semidefinite, because wTΣw is the variance of a portfolio and variances cannot be negative. They are positive definite, with every portfolio having strictly positive variance, exactly when no asset is redundant.
Every positive definite matrix has a Cholesky factorisation A=LLT with L lower triangular and a positive diagonal: the matrix analogue of a square root. It uses the symmetry, so it costs about 31n3, half of LU, and it needs no pivoting. If the algorithm meets a negative number under a square root, the matrix is not positive definite, which makes Cholesky a cheap test of that property.
A factor and a simulationFor A=(4225): L11=4=2, L21=2/2=1, L22=5−12=2, so L=(2102) and LLT=(4225). To simulate two returns with correlation 0.6 and unit variances, factor Σ=(10.60.61) into L=(10.600.8) and set x=Lz with z independent standard normals: then Cov(x)=LLT=Σ.
Positive definite: xTAx>0 for all x=0; all eigenvalues positive.
Cholesky: A=LLT, half the cost of LU, no pivoting, and a cheap positive-definiteness test.
Correlated draws: x=Lz turns independent normals z into returns with covariance Σ.
A sample covariance can fail to factorIf you estimate a covariance matrix from fewer observations than assets, or two assets have identical returns, the sample matrix is only semidefinite and Cholesky stops on a zero or slightly negative pivot. Remedies are more data, dropping duplicates, shrinkage towards a well-behaved target, or adding a small multiple of the identity to the diagonal.
Lab · what's graded
Factor a matrix20 pts
Factor a correlation matrix20 pts
A correlated draw15 pts
Which matrix is positive definite15 pts
When Cholesky fails10 pts
Simulating correlated returns20 pts
0/ 6 answered
1Matrix · vector20 ptsNot answered
Fill in the Cholesky factor L of A=(9335) (lower triangular, positive diagonal).
L=
2Matrix · vector20 ptsNot answered
Fill in the Cholesky factor of the correlation matrix (10.50.51) (decimals are fine, three digits).
L=
3Numeric answer15 ptsNot answered
With Σ=(10.60.61) and L=(10.600.8), the independent draw z=(1,2) gives x=Lz. What is x2?
x2=accepted: ± 0.001
4Choice15 ptsNot answered
Which of these symmetric matrices is positive definite?
5Choice10 ptsNot answered
Cholesky fails on a sample covariance matrix. Select every likely cause.
6Explain in words20 ptsNot answered
In two sentences, say how the Cholesky factor of a covariance matrix is used to simulate correlated returns.
Math modeKeyboard or LaTeX inputTask 1 of 6 · Ctrl ⏎ to check