The final position of twelve clubs in a football league and the average attendance at their home matches were as follows. Calculate a coefficient of correlation by ranks.
Club | A | B | C | D | E | F | G | H | I | J | K | L |
Position | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
Attendance (thousands) | 27 | 30 | 18 | 25 | 32 | 12 | 19 | 11 | 32 | 12 | 12 | 15 |
Club |
Attendance |
Rank |
Position |
|d| |
d2 |
A B C D E F G H I J K L |
27 30 18 25 32 12 19 11 32 12 12 15 |
4 3 7 5 1 9 6 12 1 9 9 8 |
1 2 3 4 5 6 7 8 9 10 11 12 |
3 1 4 1 4 3 1 4 8 1 2 4 |
9 1 16 1 16 9 1 16 64 1 4 16 |
n=12,∑d2=154
r=1−6∑d2n(n2−1)=1−6×15412(122−1)=1−9241716=0.48