The following represent the scores of a group of students on two tests. calculate spearman rs and kendall's tau for these data.
Test 1 - 36, 34, 33, 29, 29, 28, 28, 28, 24, 22, 19, 12
Test 2 - 18, 26, 24, 18, 15, 12, 14, 13, 12, 10, 8,9
Test 1 Test 2 Rank Test 1 Rank Test 2 d d"^2" Concordant Discordant
36 18 1 3 2 4 8 2
34 26 2 1 1 1 10 0
33 24 3 2 1 1 9 0
29 18 4 3 1 1 8 0
29 15 4 5 1 1 7 0
28 12 6 8 2 4 3 2
28 14 6 6 0 0 5 0
28 13 6 7 1 1 4 0
24 12 9 8 1 1 3 0
22 10 10 10 0 0 2 0
19 8 11 12 1 1 0 1
12 9 12 11 1 1
"spearman~rank=1-\\frac{6\\sum d^2}{n(n^2-1)}\\\\\n\\sum d^2=16\\\\n=12\\\\\n\nspearman~rank=1-\\frac{6\\times 16}{12(12^2-1)}\\\\\n=1-\\frac{96}{1716}\\\\\n=1-0.5594\\\\\n=0.4406\\\\\nKendall's~Tau=\\frac{C-D}{C+D}\\\\\nC=sum~of~concordant\\\\\nD=sum~of~discordant\\\\\n=\\frac{59-5}{59+5}\\\\\n=\\frac{54}{64}=0.8438\\\\"
Comments
Leave a comment