Re: Mahalanobis distance

From: Graham Jones (graham_at_visiv.co.uk)
Date: 11/15/04


Date: Mon, 15 Nov 2004 21:06:04 +0000

In article <cnanbe$5oi$1@newsg4.svr.pol.co.uk>, Vasileios Zografos
<noone@nowhere.net> writes
>Can someone please clarify for me which is the formula for the Mahalanobis
>distance?
>
>Is it (1) M=(x-m)'(S^-1)(x-m)
>
>or (2) M=[(x-m)'(S^-1)(x-m)]^1/2
>
>where S^-1 the inverse of the covariance matrix and m the mean of the
>cluster.
>
>My guess is that it is (1) because if we do PCA we can derive that
>M=sum(b^2/lamda) where b are the parameters of the PCA and lamda the
>eigenvalues of the eigendecomposition.
>
>
>However, I have seen formula (2) for the Mahalanobis distance, with the
>explanation that for S=identity, the Mahalanobis simplifies to the
>Euclidean distance.
>
>So, which is the right one?
>

As far as I know, (2) is correct. (1) is properly called "Mahalanobis
distance squared". But it is not uncommon to see people forget the
"squared".

-- 
Graham Jones
http://www.visiv.co.uk
Emails to graham@visiv.co.uk may be deleted as spam
Please add a j just before the @ to ensure delivery


Relevant Pages

  • Re: Combining multiple parameters as DOE response
    ... > of a designed experiment. ... I've used Mahalanobis-Taguchi methods to ... My first thought was to then calculate a Mahalanobis ... > treatment based on the Mahalanobis distance. ...
    (sci.stat.math)
  • Re: Performing computation of distance Mahalanobis
    ... I found that it exists in Matlab a fonction for computing directly the distance of Mahalanobis. ... I discovered myself in Statistic Toolbox the Mahalanobis distance. ...
    (comp.soft-sys.matlab)
  • Mahalanobis distance
    ... Can someone please clarify for me which is the formula for the Mahalanobis ... where S^-1 the inverse of the covariance matrix and m the mean of the ... M=sumwhere b are the parameters of the PCA and lamda the ... However, I have seen formula for the Mahalanobis distance, with the ...
    (sci.image.processing)
  • Re: distance distribution between similar images
    ... distribution of the distance (which may be Euclidean, Mahalanobis or city block) between the two? ... Or, another way of putting it is: If I have two images that are just white noise, what is the distribution of the distance between the two? ...
    (sci.image.processing)
  • Re: Under what condition is Mahalanobis distance OPTIMAL?
    ... > Is there a way one can show under what conditions the Mahalanobis ... > distance is the optimal distance metric? ... > or when the axes are correlated. ... nonsingular linear transformations. ...
    (sci.stat.math)