Robust Distances producing NaN and Inf
Afficher commentaires plus anciens
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 commentaire
Image Analyst
le 24 Sep 2016
Réponses (1)
Walter Roberson
le 24 Sep 2016
0 votes
Crystal ball says...
You used / instead of ./
Catégories
En savoir plus sur Descriptive Statistics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!