Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Can excel calculate Mahalanobis distance?

Is there an option in excel add-inns for Mahalanobis distance? or can it be
programmed to calculate this? If so, how?
  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Can excel calculate Mahalanobis distance?

I Know of no add-in, but
(if I understand Mahalanobis distance properly)

=sumproduct((range1*range2)^L)^(1/L)
may work
where range1 and 2 are your comparison data and L is the Mahalanobis level
you wish
"kt_b1" wrote:

Is there an option in excel add-inns for Mahalanobis distance? or can it be
programmed to calculate this? If so, how?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Can excel calculate Mahalanobis distance?

Do a Google search for Mahalanobis and you will get plenty of hits.

Hope this helps.

Pete

On Mar 24, 7:40 am, kt_b1 wrote:
Is there an option in excel add-inns for Mahalanobis distance? or can it be
programmed to calculate this? If so, how?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 837
Default Can excel calculate Mahalanobis distance?

Not directly, but Excel supports matrix and array calculations that permit
you to calculate it from first principles.

http://en.wikipedia.org/wiki/Mahalanobis_distance

For example, if the variance-covariance matrix is in A1:C3, then the
Mahalanobis distance between the vectors in E1:E3 and F1:F3 is given by
=SQRT(MMULT(MMULT(TRANSPOSE(F1:F3-E1:E3),MINVERSE(A1:C3)),F1:F3-E1:E3))
which must be array entered (Ctrl-Shift-Enter). If you fail to array enter
it, it will simply return #VALUE!

Jerry

"kt_b1" wrote:

Is there an option in excel add-inns for Mahalanobis distance? or can it be
programmed to calculate this? If so, how?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Distance calculations not bright New Users to Excel 6 January 15th 11 04:14 PM
How do I get speed given time (hh:mm:ss) and distance in Excel? Charlie_007 Excel Worksheet Functions 1 September 24th 06 05:02 AM
How to calculate speed given distance and mm:ss time format? rrl Excel Discussion (Misc queries) 1 October 21st 05 05:39 PM
how do I import data (distance and time) from MapPoint to Excel? Reza Excel Discussion (Misc queries) 0 October 20th 05 04:46 AM
CALCULATE DISTANCE BETWEEN TWO GPS POSITIONS Jon re Excel Excel Worksheet Functions 2 March 9th 05 02:14 AM


All times are GMT +1. The time now is 06:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"