Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I asked a question exactly like this a while ago, so I do not know if it is appropriate to ask pretty much the same question with a single tweak.

For the record, my first question is In an N-dimensional space filled with points, systematically find the closest point to a specified point

Now I would like to use spearmans correlation rather than using euclidean distance. (

I tried using my method that I described in my other question with the spearmans correlation. I generated a random list of 10 points and then an extra point to compare with. I did the analysis on this set and I got this data:

Spearmans Correlated Rank: Program rank











which shows that my method will not work at all. Is there a suggested way of going about this with spearmans correlation?

share|cite|improve this question
up vote 0 down vote accepted

If I understand correctly, Spearman rank correlation depends solely on Euclidean distance between rank vectors. Therefore, you can simply apply your nearest-point subroutine to the "ranked" versions of each point.

Similarly, it's also possible to get maximize Pearson correlation by pre-normalizing all your points down to mean $0$ and constant variance.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.