(1) | \rho_s(x,y) = 1 - \frac{6}{n(n^2-1)} \sum_i \big( rg(x_i)-rg(y_i) \big)^2 |
where rg(x_i) and rg(x_i) are the ranks of elements x_i and y_i.
(1) | \rho_s(x,y) = 1 - \frac{6}{n(n^2-1)} \sum_i \big( rg(x_i)-rg(y_i) \big)^2 |
where rg(x_i) and rg(x_i) are the ranks of elements x_i and y_i.