Assigning ranks to the given observation values we get,
Age(year) 25 40 38 53 40 32 48 59 45 36
Rank - 1 5.5 4 9 5.5 2 8 10 7 3
Weight (Kgs) 43 52 48 61 63 40 67 72 47 41
Rank- 3 6 5 7 9 1 8 10 4 2
Using the Spearman's Rank correlation coefficient as follows-
Where,
= Spearman's Rank correlation coefficient
di = difference between the two ranks of each observation
n = number of observations
substituting the values in the above equation we get,
Hence,
Since the value of is not negative we can say that there is a positive correlation between the various ages of people and their corresponding weights and its value is 0.657575
Comments
Leave a comment