[R] mahalanobis confusion

John Fox jfox at mcmaster.ca
Fri Jan 4 00:37:25 CET 2002


Dear Clayton

At 12:33 PM 1/3/2002 -0800, you wrote:

>My understanding of Mahalanobois distance is that when calculating the 
>distance
>between a vector and the origin should be the same as the absolute value 
>of that
>vector and the origin.
>
>Apparently they are different:

In general, they *are* different: Suppose that x1 and x2 are highly 
positively correlated with 0 means and the same standard deviation. Then 
the generalized distance between (1,1) and the origin will be much smaller 
than between (-1,1) and the origin, since the former is along the major 
axis of the data ellipse. (In contrast, the ordinary Euclidean distances 
are the same.)

Does that help?
  John

-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox
-----------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list