The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » sci.math.* » sci.stat.math

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: LU decomposition and Mahalanobis distance
Replies: 2   Last Post: Jul 3, 2006 2:44 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 102
Registered: 12/4/04
Re: LU decomposition and Mahalanobis distance
Posted: Jul 3, 2006 2:44 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Gordon Sande" <> wrote in message

> If you have a symmetric positive definite matrix (a covarince matrix
> fits the requirements) then you should use a (Cholesky) LL^t
> decomposition.
> LU is for when there is either no symmetry or it is not positive definite.

To add to that: if you are calculating lots of Mahanalobis distances, you
can use L^{-1} to map your entire data set. Then Euclidean distance in the
new space is equivalent to Mahanalobis distance in the old one.

I wouldn't worry about numerical accuracy in calculating an inverse of a
100x100 covariance matrix. Unless you have fantastic amount of data, the
covariance matrix will be so poorly estimated that this will swamp any
rounding errors. Regularizing the estimate is much more to the point.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.