Robust Distances producing NaN and Inf
Ältere Kommentare anzeigen
Hello Friends,
I have a distribution of multivariate data and am using the Mahalanobis distance (MD) as a metric for some decision making. I am trying to calculate the MD a couple of different ways to assess performance. More specifically, I am comparing the MD when sample covariance and sample mean are used vs. more robust estimations of scatter and location using MCD and OGK.
When I calculate the MD using sample mean and covariance, my results are good. When I calculate using robustcov, 'method', 'ogk' everything is good. But when I use fastMCD (robustcov(X)) I get a bunch of Inf's and Nan's.
I don't really understand why I would be getting these singularities. Any ideas?
-Mike
1 Kommentar
Image Analyst
am 24 Sep. 2016
Antworten (1)
Walter Roberson
am 24 Sep. 2016
0 Stimmen
Crystal ball says...
You used / instead of ./
Kategorien
Mehr zu Descriptive Statistics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!