determinant of covariance matrix
Mostrar comentarios más antiguos
We know that covariance matrix is a positive semi definite matrix and should have positive determinant. However, when dimensions are large, matlab command 'cov' is returning covariance with zero determinant. Can anybody please suggest a way to do away with this error?
Respuestas (5)
Walter Roberson
el 24 de En. de 2012
0 votos
Please see the discussion at http://www.mathworks.com/matlabcentral/answers/25130-invers-from-covariance-of-a-matrix-matrix
Honglei Chen
el 24 de En. de 2012
0 votos
Maybe your data matrix has correlated components so the resulting covariance matrix is not full rank?
suran samanta
el 24 de En. de 2012
0 votos
Honglei Chen
el 24 de En. de 2012
0 votos
What you have is rank-deficient so the determinant will be 0. If you just want the algorithm to work, you can try to do the diagonal loading on your covariance matrix. However, I would suggest you to address the data issue as you are not getting a good estimates of covariance matrix anyway if your number of samples is less than the dimension of data. The rule of thumb is that the number of samples should be at least twice the number of data dimensions if I remember it correctly.
suran samanta
el 25 de En. de 2012
0 votos
Categorías
Más información sobre Resizing and Reshaping Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!