Matrix Decomposition

Positive definite correlation matrix based on spectral decomposition. Now both for .m, C and Mex
1.2K Downloads
Updated 19 Nov 2012

View License

Matrix decomposition using, e.g. the Cholesky decomposition requires the correlation matrix to be positive definite. That is, the eigenvalues must all be positive. In finance, this is rarely the case, and one often observes negative eigenvalues, or zero eigenvalues. These two functions do essentially the same thing. One adjusts only the <= 0 eigenvalues, while the other adjusts those eigenvalues, but then also increases the other non-negative eigenvalues to compensate for the higher 'weight' given to the smaller eigenvalues.

Cite As

Aleksander (2024). Matrix Decomposition (https://www.mathworks.com/matlabcentral/fileexchange/31296-matrix-decomposition), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Matrix Decomposition in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.7.0.0

This update includes the program in C programming code, as well as a MEX implementation, providing potentially significant speed and memory handling enhancements.

1.6.0.0

Added screenshot

1.3.0.0

Updated description

1.2.0.0

Removed one function

1.0.0.0