Skip navigation
Why do quants repair their correlation matrix before using it?
0:00 / 1:34

Why do quants repair their correlation matrix before using it?

13,100 views #finance #quant #trading

Why do quants repair their correlation matrix before using it? A correlation matrix is symmetric, positive semidefinite, and has a unit diagonal. Higham's point, in the paper that started this line of work, is that those last two conditions pull against each other: positive semidefiniteness is a property of the eigenvalues and so is basis independent, while a unit diagonal is basis dependent. That mismatch is why no explicit solution exists. The matrices break for a mundane reason. Stocks do not all trade every day, so each pair is estimated on the days both did, and the assembled matrix comes from inconsistent samples. The real one in the paper, supplied by a London fund in 2000, has 1,399 stocks and eigenvalues from -8.5 to 339, with 30 of them negative. Zeroing the negative eigenvalues does not work, and that is a theorem rather than an observation: projecting onto the positive semidefinite set can only raise the diagonal. The link is the trace: the eigenvalues always sum to the diagonal. Alternating the two projections converges into the overlap, and Dykstra's correction makes it converge to the nearest point. The sets are closed and convex, so that point exists and is unique. On the fund's matrix: 67 iterations, Frobenius distance 20.96. Worth naming, because it is easy to get backwards. The nearest valid matrix has rank at most 154, but the repair did not destroy that information. Of the 1,245 nonpositive eigenvalues, only 30 were negative; 1,215 were already zero to within 1e-11, because the matrix was estimated from few observations. The repair reveals the rank, it does not cause it. Nicholas J. Higham (1961-2024) held the Richardson Chair of Applied Mathematics at Manchester and was a past president of SIAM. His nearest correlation matrix algorithm now ships in LAPACK, Python, R, Julia and the NAG Library. Higham, N. J. (2002). Computing the Nearest Correlation Matrix — A Problem from Finance. IMA Journal of Numerical Analysis, 22(3), 329-343. Full text, free: eprints.maths.manchester.ac.uk/232 #finance #quant #trading #algotrading #risk

Comments

Comments from the original post on TikTok

No comments yet