Lably
Skip to content

Kendall rank correlation coefficient

Statistic for rank correlation

  • 9 min read
  • 8 chapters

Related on Lably

Through Statistics, Statistic and Rank correlation

Intuitively, the Kendall correlation between two variables will be high when observations have a similar or identical rank (i.e. relative position label of the observations within the variable: 1st, 2nd, 3rd, etc.) between the two variables, and low when observations have a dissimilar or fully reversed rank between the two variables.

Both Kendall's τ and Spearman's ρ can be formulated as special cases of a more general correlation coefficient. Its notions of concordance and discordance also appear in other areas of statistics, like the Rand index in cluster analysis.

Definition

Let (x1,y1),...,(xn,yn) be a set of observations of the joint random variables X and Y, such that all the values of (xi) and (yi) are unique. (See the section Accounting for ties for ways of handling non-unique values.) Any pair of observations (xi,yi) and (xj,yj), where i<j, are said to be concordant if the sort order of (xi,xj) and (yi,yj) agrees: that is, if either both xi>xj and yi>yj holds or both xi<xj and yi<yj; otherwise they are said to be discordant.

In the absence of ties, the Kendall τ coefficient is defined as:

τ=(number of concordant pairs)−(number of discordant pairs)(number of pairs)=1−2(number of discordant pairs)(n2).

for i<j<n where (n2)=n(n−1)2 is the binomial coefficient for the number of ways to choose two items from n items.

The number of discordant pairs is equal to the inversion number that permutes the y-sequence into the same order as the x-sequence.

Properties

The denominator is the total number of pair combinations, so the coefficient must be in the range −1 ≤ τ ≤ 1.

  • If the agreement between the two rankings is perfect (i.e., the two rankings are the same) the coefficient has value 1.
  • If the disagreement between the two rankings is perfect (i.e., one ranking is the reverse of the other) the coefficient has value −1.
  • If X and Y are independent random variables and not constant, then the expectation of the coefficient is zero.
  • An explicit expression for Kendall's rank coefficient is τ=2n(n−1)∑i<jsgn⁡(xi−xj)sgn⁡(yi−yj).

Sign in to keep reading

7 more chapters are free with a Lably account.

More in Statistics