Questions tagged [mahalanobis]

A dissimilarity metric to compute distance between a point and a distribution.

Learn more about the Mahalanobis distance on Wikipedia


Tag usage

Questions on should be about implementation and programming problems, not about the statistical or theoretical properties of such metric.
Consider whether the question might be better suited to Cross Validated, the StackExchange site for statistics, machine learning and data analysis.

96 questions
0
votes
0 answers

Mahalanobis distance to find out nearest neighbor

Suppose I have some original data in a matrix a and measured data in matrix b. now i want to find out nearest point to matrix a 's element from matrix b. The output should be ans = [1; 2; 3; 4;]. But when I try to do it, it does not give an output…
Mayank Lakhani
  • 193
  • 1
  • 13
0
votes
0 answers

Add a "z" axis to an existing graph and make it 3d

I have a data frame as following: z<-data() cost time Period Type 1 72 51 10 1 2 68 60 10 1 3 79 43 10 1 4 67 79 10 1 5 79 67 10 1 6 89 35 10 1 …
user
  • 592
  • 6
  • 26
0
votes
0 answers

Find Mahalanobis distance between 2 image histograms

I would like to find the Mahalanobis distance between 2 histograms of 2 images in MATLAB. I tried using the function mahal but the output should be just one number as a measure of distance, while mahal gives the distance between each correlating…
dahlia
  • 21
  • 4
-1
votes
1 answer

Fast distance calculation in R

I'm trying to calculate the 1) Euclidean distance, and 2) Mahalanobis distance for a set of matricies in r. I've been doing it as such: v1 <- structure(c(0.508, 0.454, 0, 2.156, 0.468, 0.488, 0.682, 1, 1.832, 0.44, 0.928, 0.358, 1,…
Zafar
  • 1,897
  • 15
  • 33
-1
votes
1 answer

mahalanobis distance singular matrix error

I have two groups of data. Both groups have 25 variables and 114 observations. The goal is to take one of the variables in either group, calculate the mahalanobis distance from both of the groups mean. The group with the smallest distance is the one…
-2
votes
1 answer

randomforestSRC node cost measure

How is node cost measured in the randomForestSRC multivariate regression case? Is it by the Euclidean distance or by the Mahalanobis distance (as with the MultivariateRandomForest package)?
Paul
  • 3
  • 3
1 2 3 4 5 6
7