In statistics, the Kendall rank correlation coefficient, commonly referred to as Kendall's τ coefficient (after the Greek letter τ, tau), is a statistic used to measure the ordinal association between two measured quantities. A τ test is a non-parametric hypothesis test for statistical dependence based on the τ coefficient. It is a measure of rank correlation: the similarity of the orderings of the data when ranked by each of the quantities. It is named after Maurice Kendall, who developed it in 1938, though Gustav Fechner had proposed a similar measure in the context of time series in 1897. 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).
Hypothesis test The Kendall rank coefficient is often used as a test statistic in a statistical hypothesis test to establish whether two variables may be regarded as statistically dependent. This test is non-parametric, as it does not rely on any assumptions on the distributions of X or Y or the distribution of (X,Y). Under the null hypothesis of independence of X and Y, the sampling distribution of τ has an expected value of zero. The precise distribution cannot be characterized in terms of common distributions, but may be calculated exactly for small samples; for larger samples, it is common to use an approximation to the normal distribution, with mean zero and variance 2(2n+5)/9n(n−1). Theorem. If the samples are independent, then the variance of τA is given by Var[τA]=2(2n+5)/9n(n−1).
Case of standard normal distributions If (x1,y1),(x2,y2),...,(xn,yn) are independent and identically distributed samples from the same jointly normal distribution with a known Pearson correlation coefficient r, then the expectation of Kendall rank correlation has a closed-form formula.
The name is credited to Richard Greiner (1909) by P. A. P. Moran.
Accounting for ties A pair {(xi,yi),(xj,yj)} is said to be tied if and only if xi=xj or yi=yj; a tied pair is neither concordant nor discordant. When tied pairs arise in the data, the coefficient may be modified in a number of ways to keep it in the range [−1, 1]:
Tau-a The Tau statistic defined by Kendall in 1938 was retrospectively renamed Tau-a. It represents the strength of positive or negative association of two quantitative or ordinal variables without any adjustment for ties. It is defined as:
τA=nc−ndn0 where nc, nd and n0 are defined as in the next section. When ties are present, nc+nd<n0, and the coefficient can never be equal to +1 or −1. Even a perfect equality of the two variables (X=Y) leads to a Tau-a < 1.
Tau-b The Tau-b statistic, unlike Tau-a, makes adjustments for ties. This Tau-b was first described by Kendall in 1945 under the name Tau-w as an extension of the original Tau statistic supporting ties. Values of Tau-b range from −1 (100% negative association, or perfect disagreement) to +1 (100% positive association, or perfect agreement). In case of the absence of association, Tau-b is equal to zero. The Kendall Tau-b coefficient is defined as :
τB=nc−nd(n0−n1)(n0−n2) where
n0=n(n−1)/2n1=∑iti(ti−1)/2n2=∑juj(uj−1)/2nc=Number of concordant pairs, i.e. pairs with 0<i<j<n where xi<xj and yi<yj or xi>xj and yi>yjnd=Number of discordant pairs, i.e. pairs where 0<i<j<n where xi<xj and yi>yj or xi>xj and yi<yjti=Number of tied values in the ith group of ties for the empirical distribution of Xuj=Number of tied values in the jth group of ties for the empirical distribution of Y A simple algorithm developed in BASIC computes Tau-b coefficient using an alternative formula. Be aware that some statistical packages, e.g. SPSS, use alternative formulas for computational efficiency, with double the 'usual' number of concordant and discordant pairs.
… excerpt ends here. Continue reading the full article.
