Spearman Rank Correlation Coefficient.xls | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | RankOf | Method1 | Method2 | |||||||||||
2 | X | Y | X | Y | d | d-squared | N | 12 | ||||||
3 | 159 | 14.4 | 8 | 7 | 1 | 1 | 30 | r-squared | 0.800563873 | |||||
4 | 179 | 15.2 | 7 | 5 | 2 | 4 | r-Spearman | 0.8951049 | degreesoffreedom | 10 | ||||
5 | 100 | 11.3 | 9.5 | 8 | 1.5 | 2.25 | Fs | 40.14136675 | ||||||
6 | 45 | 2.5 | 12 | 11 | 1 | 1 | p | 0.00009 | ||||||
7 | 384 | 22.7 | 1 | 1 | 0 | 0 | ||||||||
8 | 230 | 14.9 | 4 | 6 | -2 | 4 | ||||||||
9 | 100 | 1.41 | 9.5 | 12 | -2.5 | 6.25 | ||||||||
10 | 320 | 15.81 | 2.5 | 3 | -0.5 | 0.25 | ||||||||
11 | 80 | 4.19 | 11 | 10 | 1 | 1 | ||||||||
12 | 220 | 15.39 | 5 | 4 | 1 | 1 | ||||||||
13 | 320 | 17.25 | 2.5 | 2 | 0.5 | 0.25 | ||||||||
14 | 210 | 9.52 | 6 | 9 | -3 | 9 | ||||||||
statspearman (3) |
My data example did not post right.
Column A would be the managers
Column B is the first ranked data series
Column C is the second ranked data series
Column D is the UDF
Cell E2 would be the result
Sorry for the confusion
j
thank you !!!!!
Data Rank Frmla
12.45 1 1.0
10.11 2 2.0
8.32 3 3.0
7.45 4 4.0
6.55 5 5.0
5.1 6 6.0
4.3 7 7.0
4 8 8.5
4 8 8.5
2.1 10 10.0
1.22 11 11.0
Data 1 Rank Frmla
12.45 1 1.0
10.11 2 2.0
8.32 3 3.0
7.45 4 4.0
6.55 5 5.0
5.1 6 6.0
4 7 8.0
4 7 8.0
4 7 8.0
2.1 10 10.0
1.22 11 11.0
Aladin,
Your example spreadsheet and formulas are very very very helpful!!!
I have one question. Spearman coef handles the ties by taking the average ie the 4s in the below example (8.5)
Rich (BB code):Data Rank Frmla 12.45 1 1.0 10.11 2 2.0 8.32 3 3.0 7.45 4 4.0 6.55 5 5.0 5.1 6 6.0 4.3 7 7.0 4 8 8.5 4 8 8.5 2.1 10 10.0 1.22 11 11.0
But when there are 3 fours in the below example, it rounds the rank 8...is that functioning correctly?...i think it is but i wanted to ask ya
Rich (BB code):Data 1 Rank Frmla 12.45 1 1.0 10.11 2 2.0 8.32 3 3.0 7.45 4 4.0 6.55 5 5.0 5.1 6 6.0 4 7 8.0 4 7 8.0 4 7 8.0 2.1 10 10.0 1.22 11 11.0