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.
The Coherence results in Coherence of 1.2 maximum, which is not possible, could you recommend what may be the problem?
[Eig_Vec,~]=eig(Corr_Mat) this give me the following error:
Error: Unbalanced or unexpected parenthesis or bracket.
But I cannot figure out why. Do you have any idea? Thanks
The latest submission includes the function written in the C programming language, as well as a MEX implementation, thus providing significant speed and memory enhancements.
Does the trick!
Very useful and efficient functions. Thanks to the willing and gentle author for the prompt and clear help.
This update includes the program in C programming code, as well as a MEX implementation, providing potentially significant speed and memory handling enhancements.
Removed one function
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.