| To: | <s-news@lists.biostat.wustl.edu> |
|---|---|
| Subject: | Measuring the distance between two points |
| From: | "Dayan,Y" <Y.Dayan@lse.ac.uk> |
| Date: | Fri, 14 May 2004 13:45:47 +0100 |
| Thread-index: | AcQ5sWFJuArGtBkbSLq44mganQ3mIw== |
| Thread-topic: | Measuring the distance between two points |
Hi, I would like to calculate the distance between two points/cases in a multivariate dataset. It seems to me appropriate to use the Mahalanobis distance. One variation of the Mahalanobis distance is: Md(ij)= (Xi-Xj)'inv(C)(Xi-Xj) Where inv () is the inverse function. My questions are: Is this a correct use/formula of the distance? Do I take the square root of this? How can I be sure the distance is positive given negative correlations? Many Thanks, Yehuda |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | S-PLUS 7, Anders Løland |
|---|---|
| Next by Date: | Re: clustered boxplots, Aldi Kraja |
| Previous by Thread: | S-PLUS 7, Anders Løland |
| Next by Thread: | simple array arithmetic, Jean V Adams |
| Indexes: | [Date] [Thread] [Top] [All Lists] |