Robust Distances producing NaN and Inf
Mostrar comentarios más antiguos
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 comentario
Image Analyst
el 24 de Sept. de 2016
Respuestas (1)
Walter Roberson
el 24 de Sept. de 2016
0 votos
Crystal ball says...
You used / instead of ./
Categorías
Más información sobre Descriptive Statistics en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!