Re: Mahalanobis distance for covariance matrix



In article <ef28137.-1@xxxxxxxxxxxxxxxx>, "Fil S."
<f_s_o_a_r_e_s@xxxxxxxxxxx> wrote:

Hi, i was wondering if anyone knows how to Write a procedure using
matlab to calculate the Mahalanobis distance between the mean µ and
an arbitrary point x given the covariance matrix &#931;?????

Thanks.
-------------------
It sounds as if you are simply asking for the definition of the
Mahalanobis distance in matlab terms, which would be:

d = sqrt((x-mu)'*inv(S)*(x-mu))

for the column random variable vector x with mu = E{x} and covariance matrix S.

Why do I have the feeling that you actually want to know something else?

(Remove "xyzzy" and ".invalid" to send me email.)
Roger Stafford
.



Relevant Pages

  • Mahalanobis distance for covariance matrix
    ... an arbitrary point x given the covariance matrix Σ????? ...
    (comp.soft-sys.matlab)
  • Re: EOF explained variance
    ... I am a intermediate user of matlab and I need your help... ... I try to calculate the explained variance for eof analysis, ... matlab shown "out of memory". ... covariance matrix of size 8036 x 8036, ...
    (comp.soft-sys.matlab)
  • Re: Threads: Mahalanobis distance and Visualising PCA
    ... This gave me a covariance matrix that I could easily convert, ... recommendations to use Mahalanobis distance to you. ... classification in preference to Euclidean distance was a no-brainer. ...
    (sci.stat.math)
  • Re: Multivariate Normal Distribution
    ... I want to simulate a multivariate normal distribution using ... with m x m covariance matrix C. ... The matrix Y is multivariate normal, zero mean, covariance C. ...
    (comp.soft-sys.matlab)
  • Re: Problems in face recognition using PCA
    ... Currently I am trying to implement face recognition using PCA in C++. ... I have completed the module in matlab. ... values do exist in the covariance matrix. ... Why the eigen vectors are different in sign in the two cases ...
    (comp.soft-sys.matlab)