determinant of covariance matrix
古いコメントを表示
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?
回答 (5 件)
Walter Roberson
2012 年 1 月 24 日
0 投票
Please see the discussion at http://www.mathworks.com/matlabcentral/answers/25130-invers-from-covariance-of-a-matrix-matrix
Honglei Chen
2012 年 1 月 24 日
0 投票
Maybe your data matrix has correlated components so the resulting covariance matrix is not full rank?
Honglei Chen
2012 年 1 月 24 日
0 投票
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.
カテゴリ
ヘルプ センター および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!