Non-symmetric and negative definite covariance matrices, as a consequence of rounding off errors
Show older comments
Hello,
I have a problem with covariance matrices that turn non-symmetric and negative definite, as a consequence of rounding off errors. This leads to complex and negative eigenvalues. I've symmetrized the matrices by
A = (A + A')/2;
However, I haven't been able to correct the negative eigenvalues, and it's very important that the matrices are always non-negative definite. For example, the following method doesn't help:
[V,D] = eig(A); D = max(D,0); A = V*D/V;
Can anyone please suggest what can be done here?
Thanks, Artour
Accepted Answer
More Answers (1)
Artour
on 25 Sep 2013
0 votes
Categories
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!