Give the formula to calculate rank correlation coefficient with
(i) non-repeated ranks and
(ii) repeated ranks
(i) When ranks are not repeated
rk=1−6∑D2N3−N
(ii) When ranks are repeated
rk=1−6[∑D2+112(m3−m)+...]N3−N
where,
rk= rank correlation
∑D2= the total of squares of the differences of corresponding ranks
N= the number of pairs of observations
m= the number of times the ranks are repeated