How Do You Calculate Spearmans Rank Correlation Coefficient?
• Draw your table. You will need: • 6 Columns, with headers as shown below. • as many rows as you have pairs of data. • Fill in the first two columns with your pairs of data. • In your third column rank the data in your first column from 1 to n (the number of data you have). Give the lowest number a rank of 1, the next lowest number a rank of 2, and so on. • In your fourth column do the same as in step 3, but instead rank the second column. • If two (or more) pieces of data in one column are the same, find the mean of the ranks as if those pieces of data had been ranked normally, then rank the data with this mean. In the example at right, there are two 5s that would otherwise have ranks of 2 and 3. Since there are two 5s, take the mean of their ranks. The mean of 2 and 3 is 2.5, so assign the rank 2.5 to both 5s. • In the “d” column calculate the difference between the two numbers in each pair of ranks. That is, if one is ranked 1 and the other 3 the difference would be 2. (The sign do