# Question Video: Identifying the Correct Formula for Spearmanβs Rank Correlation Coefficient Mathematics

Which of the following is the formula of Spearmanβs rank correlation coefficient? [A] 1 β (6βπΒ²/(πΒ² β 1)) [B] 1 β (6βπΒ²/π(πΒ³ β 1)) [C] 6βπΒ²/π(πΒ² β 1) [D] 1 β (6βπΒ²/π(πΒ² β 1)) [E] 1 β (βπΒ²/π(πΒ² β 1))

02:06

### Video Transcript

Which of the following is the formula of Spearmanβs rank correlation coefficient?

And then we have five possible options to choose from. Remember, Spearmanβs rank correlation coefficient is a test that examines the degree to which two data sets are correlated, if at all. Rather than just trying to infer this information from a scatter graph, Spearmanβs rank correlation coefficient is a numerical value which tells us the degree of correlation or, indeed, noncorrelation.

So letβs suppose we have paired sets of data. After arranging the data sets in a relevant table, we begin by ranking each data point. For instance, imagine we had 10 pairs of data. We will take the first element and rank by assigning each one a number from one to 10. If there are, however, two or more values that are equal, we average those ranks. We then repeat this process with the second set of data points. Once we have that, we can find the difference between the ranks, and we call that π. Letβs say weβve ranked the first data set, and we call that π sub one, and then weβve ranked the second and call that π sub two. The difference is π sub one minus π sub two.

The next step is to square our values for π and find the sum. And we use β notation to represent this. We now notice that every single formula that weβve been given has the β of π squared in it. So which is it? Well, one of the formulae we can use to calculate Spearmanβs rank correlation coefficient π for π pairs of data points is one minus six times the β of π squared over π cubed minus π. But in fact this formula does not look like any of the formulae weβve been given. We can, however, factorize the denominator of this fraction. Taking out a common factor of π, we rewrite it as π times π squared minus one.

And so the formula is π equals one minus six times the β of π squared over π times π squared minus one. We notice then that this is option (D).