数学统计学中,Spearman's rank correlation coefficient是一种相关度量,以其制造者Charles Spearman命名。It is written in short as the Greek letter rho ( ρ {\displaystyle \rho } {\displaystyle \rho }) or sometimes as r s {\displaystyle r_{s}} 。{\displaystyle r_{s}}.它是一个显示两组数据之间紧密联系的数字。它只能用于可以按顺序排列的数据,如从高到低。

r s {displaystyle r_{s}{\displaystyle r_{s}}}的一般公式为ρ = 1 - 6 ∑ d 2 n ( n 2 - 1 ) {displaystyle \rho =1-{cfrac {6sum d^{2}}{n(n^{2}-1)}}}。{\displaystyle \rho =1-{\cfrac {6\sum d^{2}}{n(n^{2}-1)}}}.

例如,如果你有不同电脑价格的数据,以及电脑速度的数据,你可以用r s {\displaystyle r_{s}}来查看它们是否有联系,以及它们的联系有多紧密。{\displaystyle r_{s}}.