0% found this document useful (0 votes)
4 views

14 - Repeating Spearman Rank Correlation Calculation

The document outlines the steps to calculate Spearman's Rank Correlation Coefficient using provided data sets X and Y. After ranking the data, calculating the differences, and squaring them, the coefficient is found to be approximately 0.752, indicating a strong positive correlation between the two variables. The breakdown of ranks and calculations is also included for clarity.

Uploaded by

Logess War
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

14 - Repeating Spearman Rank Correlation Calculation

The document outlines the steps to calculate Spearman's Rank Correlation Coefficient using provided data sets X and Y. After ranking the data, calculating the differences, and squaring them, the coefficient is found to be approximately 0.752, indicating a strong positive correlation between the two variables. The breakdown of ranks and calculations is also included for clarity.

Uploaded by

Logess War
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Spearman Rank Correlation Calculation

calculate the coefficient of rank correaltion from the


following data:
X 48 33 40 09 16 16 65 24 16 57
Y 13 13 24 06 15 04 20 09 06 19

To calculate the coefficient of rank correlation (Spearman's Rank Correlation Coefficient),


follow these steps:

Step 1: Rank the data


Assign ranks to the X and Y values. If there are tied values, assign the average of their
ranks.

Step 2: Calculate d (difference in ranks)


For each pair of X and Y , calculate d = Rx − Ry , where Rx and Ry are the ranks of X and
​ ​ ​ ​

Y , respectively.

Step 3: Compute d2
Square each d.

Step 4: Use Spearman's formula

6 ∑ d2
rs = 1 −
n(n2 − 1)
​ ​

where:

rs is Spearman's rank correlation coefficient,


∑ d2 is the sum of squared rank differences,


n is the number of observations.

Let's calculate this step by step.

The calculated Spearman's rank correlation coefficient (rs ) is approximately 0.752. This

indicates a strong positive correlation between X and Y .

Here is the breakdown of the ranks and calculations:

1/2
X Y Rank X Rank Y d (Rank Difference) d2
48 13 8.0 5.5 2.5 6.25

33 13 6.0 5.5 0.5 0.25

40 24 7.0 10.0 -3.0 9.00

9 6 1.0 2.5 -1.5 2.25

16 15 3.0 7.0 -4.0 16.00

16 4 3.0 1.0 2.0 4.00

65 20 10.0 9.0 1.0 1.00

24 9 5.0 4.0 1.0 1.00

16 6 3.0 2.5 0.5 0.25

57 19 9.0 8.0 1.0 1.00

The total ∑ d2 is 41.0, and using n = 10, the formula yields rs = 0.752. ​

Is this conversation helpful so far?

2/2

You might also like