Author-reviewedEvidence: highv1.0.1

Kendall Tau

Kendall tau is a rank correlation from minus one to one, comparing how often two rankings of health states or treatments order pairs alike or reversed.

Status
Published, version 1.0.1
Last reviewed
26 Oct 2026, by Dr Darrin Baines
Report a problem
Tell us if something is wrong or out of date

Concept Architecture

Kendall Tau for Rankings in Health Economics

Kendall tau, usually written Kendall's tau or τ\tau, asks whether two variables put the same units in the same order, by looking at every pair of units and checking whether both variables rank that pair the same way round. In health economics the units are often health states, treatments or studies, so the coefficient answers questions such as whether a ranking task orders EQ-5D states as time trade-off values do, or whether two ranking metrics in a network meta-analysis give the same treatment hierarchy. Its simplest version reads directly as a difference between two probabilities, which makes it easier to explain to an appraisal committee than a Spearman or Pearson coefficient. The same pair counts sit inside the Begg test for small-study effects and inside Harrell's C for survival models. Pearson's and Spearman's coefficients, with a cost and QALY example comparing all three, are on the Correlation Coefficient page.

Concordant and discordant pairs of units

The coefficient works on pairs of units, not on single observations. The Stata reference manual calls two observations ii and jj concordant when (xi−xj)(yi−yj)>0(x_i - x_j)(y_i - y_j) > 0 and discordant when that product is negative, and defines Kendall's score as the number of concordant pairs minus the number of discordant pairs. Dividing the score by the number of possible pairs gives Kendall's original coefficient, now called tau-a.

S=C−D,τa=Sn(n−1)/2S = C - D, \qquad \tau_a = \frac{S}{n(n-1)/2}

where SS is Kendall's score, CC and DD are the numbers of concordant and discordant pairs, nn is the number of units and n(n−1)/2n(n-1)/2 is the number of distinct pairs among them.

Newson defines the population value of tau-a as the expected product of the signs of the differences in XX and in YY for two units drawn independently from the same population. That makes it the probability of concordance minus the probability of discordance, and he notes that values of 1, minus 1 and 0 signify a perfect positive relationship, a perfect negative relationship and no overall ordinal relationship.

τa=Pr⁡(concordant)−Pr⁡(discordant)\tau_a = \Pr(\text{concordant}) - \Pr(\text{discordant})

where both probabilities refer to a randomly chosen pair of units. With no ties the two probabilities sum to one, so the probability that a random pair is ordered the same way by both variables is (1+τa)/2(1 + \tau_a)/2. Craig and colleagues used this reading for health states, where seven concordant pairs and one discordant pair out of eight give a tau of 7/8 minus 1/8, or 0.75.

Because only the order within each pair enters the count, any transformation that preserves order leaves tau unchanged. Logging costs, rescaling a utility index or replacing values by ranks gives the same coefficient, which is why tau suits ordinal scaling data and skewed costs alike.

Ties in valuation data and the tau-b and tau-c variants

Ties are common in health economic data, for example identical time trade-off values for two states, or patients sharing a grade on the modified Rankin scale. In the eight-country EQ-5D study by Craig and colleagues, time trade-off responses were more likely to be tied than rank responses in every country. A tied pair is neither concordant nor discordant but still sits in the tau-a denominator, so tau-a cannot reach 1 when ties are present. The NIST Dataplot manual states that tau-b is preferred to tau-a when there are ties.

τb=C−D(C+D+Tx)(C+D+Ty)\tau_b = \frac{C - D}{\sqrt{(C + D + T_x)(C + D + T_y)}}

where TxT_x is the number of pairs tied on the first variable only and TyT_y the number tied on the second variable only. The SciPy documentation adds that a pair tied on both variables is counted in neither.

Dataplot describes tau-c, which SciPy calls Stuart's tau-c, for two variables that take a limited number of values on different scales.

τc=2(C−D)n2(m−1)/m\tau_c = \frac{2(C - D)}{n^2 (m - 1)/m}

where mm is the smaller of the numbers of distinct values of the two variables and nn is the number of units. The SciPy documentation states that tau-b and tau-c differ only in how they are scaled to lie between minus 1 and 1, that their p-values are identical, and that both reduce to tau-a without ties.

Software defaults differ, so a report should name the variant. Stata's ktau command displays tau-a unless told otherwise, SciPy returns tau-b by default, and the default Dataplot command follows Conover's formulation, in which each tie adds 0.5 to both the concordant and the discordant counts. The same data can therefore produce three different published values.

Testing for association and putting an interval around tau

The usual test asks whether the variables are independent. The Stata manual gives the exact null variance of the score, which in the absence of ties reduces to a short expression, and applies a normal approximation with a continuity correction.

Var⁡(S)=n(n−1)(2n+5)18,z=∣S∣−1Var⁡(S)\operatorname{Var}(S) = \frac{n(n-1)(2n+5)}{18}, \qquad z = \frac{|S| - 1}{\sqrt{\operatorname{Var}(S)}}

where Var⁡(S)\operatorname{Var}(S) is the variance of the score under independence with no tied values and zz is compared with the standard normal distribution. With ties, the full formula adds terms for the number and size of the tied groups. The manual describes the normal approximation as surprisingly accurate for samples as small as 8, at least for null p-values with continuous variables, and notes that Kendall and Gibbons tabulate exact p-values for samples below 10.

A p-value addresses only the null hypothesis of independence. Newson argues that a confidence interval for tau-a is more informative, and that the most common single error is to run a rank test on a small sample, find a large p-value and treat it as proof of no association. His example is 17 scripts with a tau-a of 0.35 (95% CI minus 0.11 to 0.69, P = 0.17), an interval that still allows strong agreement. Rankings of a few treatments or a small expert panel carry the same risk.

How tau compares with Spearman and Pearson coefficients

Tau and Spearman's coefficient both use only order, but they sit on different scales. The Stata manual quotes Conover that Spearman's rho tends to be larger than Kendall's tau in absolute value, while as tests of significance the two give nearly identical results in most cases. Craig and colleagues found the same pattern in EQ-5D data, with a mean Kendall's tau between time trade-off and rank responses of 0.65 in the United Kingdom sample against a mean Spearman's rho of 0.79.

For two variables with a bivariate normal distribution, Newson gives Greiner's relation between tau-a and Pearson's coefficient.

ρ=sin⁡(πτa2)\rho = \sin\left(\frac{\pi \tau_a}{2}\right)

where ρ\rho is the Pearson correlation of the bivariate normal distribution and τa\tau_a the population tau-a. Values of tau-a of 1/3 and 1/2 correspond to Pearson correlations of 1/2 and about 0.71, so the Pearson value is the larger in magnitude. Newson adds that tau-a is much less affected than Pearson's coefficient by extreme observations and nonlinearity, and that Spearman's coefficient cannot be read as a difference between probabilities. Size labels calibrated on Pearson or Spearman values therefore cannot be carried over to tau.

Worked example with eight health states ranked by a patient panel

All numbers are illustrative. A model uses a value set to score eight health states, and an analyst checks whether a patient panel's ordinal ranking orders them the same way. The value set gives no ties, while the panel places states S4 and S5 equal.

StateValue-set utilityValue-set rankPanel rank
S10.9211
S20.8523
S30.7932
S40.7044.5
S50.6254.5
S60.4867
S70.3576
S80.1288

1. Count the pairs. With 8 states there are 8 × 7 / 2 = 28 pairs.

2. Classify each pair. The panel reverses S2 and S3 and reverses S6 and S7, so DD = 2. The panel ties S4 and S5, which the value set separates, so TyT_y = 1 and TxT_x = 0. The remaining 28 − 2 − 1 = 25 pairs are concordant, and SS = 25 − 2 = 23.

3. Tau-a. τa\tau_a = 23 / 28 = 0.821.

4. Tau-b. The two bracketed terms are 25 + 2 + 0 = 27 and 25 + 2 + 1 = 28, their product is 756 and its square root is 27.50, so τb\tau_b = 23 / 27.50 = 0.836.

5. Pairs that both sources separate. Of the 27 pairs untied on both, 25/27 = 0.926 are concordant and 2/27 = 0.074 discordant, a difference of 0.852. Three defensible summaries (0.821, 0.836 and 0.852) come from one set of rankings.

6. Test of independence. One tied group of two in the panel ranking (Stata tie term 2 × 1 × 9, with the cross terms zero because the value set has no ties) gives Var(SS) = (8 × 7 × 21 − 2 × 1 × 9) / 18 = (1,176 − 18) / 18 = 64.33, a standard deviation of 8.021. With the continuity correction, zz = (23 − 1) / 8.021 = 2.74 and the two-sided p-value is about 0.006. Without the correction, zz = 23 / 8.021 = 2.87 and the p-value is about 0.004, the value SciPy reports.

7. Spearman's coefficient for comparison. The Pearson correlation of the ranks, with S4 and S5 sharing rank 4.5, is 0.946, above both tau values as Conover's remark predicts.

8. Interpretation. The panel and the value set order 25 of the 28 pairs the same way, and the association is unlikely under independence. The two reversals count equally in tau, although the utility gap is 0.06 between S2 and S3 and 0.13 between S6 and S7. Tau also says nothing about whether the panel would assign the same utilities, only the same order.

Uses in valuation, evidence synthesis and survival modelling

The pair-counting idea reaches decision inputs by several routes. Each use below asks a different question of the same counts.

In health state valuation, Craig and colleagues analysed 179,431 rank, visual analogue scale and time trade-off responses from 11,483 people in eight countries for 52 EQ-5D states, estimating Kendall's tau and Spearman's rho for each respondent. Rank responses showed a strong linear correlation with time trade-off responses (Pearson's rho 0.88 to 0.99), yet rank-based values implied greater decrements in health for mild states than cardinal values did. A strong correlation thus left a real difference in the values that would enter QALY calculations.

In network meta-analysis, Chiocchia and colleagues re-analysed 232 networks of four or more interventions, published between 1999 and 2015, and compared treatment hierarchies from relative treatment effects, the probability of producing the best value and SUCRA. The median Kendall's tau was 1 (quartiles 0.95 to 1) between SUCRA and relative treatment effects and 0.8 (quartiles 0.67 to 0.91) between the best-value probability and SUCRA. They note that tau and Spearman's rho give the same weight to every item, whereas the top of a treatment ranking matters more, so they also used Yilmaz's tau-AP, a top-weighted variant of Kendall's tau.

For small-study effects, the Stata meta-analysis manual describes the Begg test as Kendall's rank correlation test of independence between standardised effect sizes and their variances. In survival modelling, Newson defines Somers' D from tau-a as a conditional difference between the probabilities of concordance and discordance, and gives Harrell's C as (D + 1)/2, where D is Somers' D of the predictor with respect to the possibly censored survival time, which links tau to the Harrell C-index used to judge how well a prognostic model orders patients.

Common misreadings of Kendall's tau

Most errors come from reading tau with habits formed on other coefficients. Six misreadings recur in valuation and evidence synthesis work.

  1. Reading tau on a Pearson scale. Tau is usually smaller in magnitude than Spearman's coefficient for the same data, and smaller than Pearson's under bivariate normality, so cut-offs designed for those coefficients make a given tau look weaker than it is.
  2. Leaving the variant unnamed. Tau-a, tau-b, tau-c and Conover's version differ when ties are present, and software defaults differ.
  3. Treating agreement in order as agreement in value. Two methods can order states identically while assigning different utilities, which is a question for the intraclass correlation or, for categories, the kappa statistic.
  4. Reading a large p-value as no association. With few pairs, Newson's example shows an interval wide enough to include strong agreement.
  5. Ignoring clustering. Many rankings from one respondent are not independent pairs. Craig and colleagues computed tau within each respondent and reported country means, and Newson's somersd package offers a cluster option.
  6. Assuming every rank matters equally. Tau weights a swap at the top of a hierarchy the same as one at the bottom, which Chiocchia and colleagues addressed with a top-weighted variant.

Sources

Frequently Asked Questions (6)

  • What is Kendall's tau?

    Kendall tau is a rank correlation from minus one to one, comparing how often two rankings of health states or treatments order pairs alike or reversed.

    Source: Newson 2002

  • What does Kendall's tau measure between two ranked variables?

    Every pair of units is compared, and a pair counts as concordant when the larger value of one variable goes with the larger value of the other, and as discordant when it goes with the smaller. Kendall's tau sets the concordant pairs against the discordant ones, so it measures how consistently two variables put the same units in the same order. Newson gives values of 1 and minus 1 for a perfect positive and a perfect negative relationship, and 0 for no overall ordinal relationship. Because only the order within each pair enters, logging costs or rescaling a utility index leaves the coefficient unchanged.

    Source: Newson 2002

  • How is Kendall's tau calculated?

    Among n units there are n(n-1)/2 distinct pairs, and the Stata manual calls a pair concordant when the product of its differences on the two variables is positive and discordant when that product is negative. Kendall's score S is the number of concordant pairs minus the number of discordant pairs, and dividing S by the number of pairs gives Kendall's tau-a. With tied values, tau-b instead divides S by a denominator that removes the pairs tied on each variable. In an illustrative ranking of eight health states with one tied pair, 25 concordant and 2 discordant pairs out of 28 give a tau-a of 0.821 and a tau-b of 0.836.

    Source: StataCorp 2026

  • How does Kendall's tau differ from Spearman's correlation?

    Spearman's coefficient is Pearson's correlation computed on the ranks, with tied values given the average rank, whereas Kendall's tau counts concordant and discordant pairs of units. Both use only the order of the data, but they sit on different scales, and the Stata manual quotes Conover's remark that Spearman's rho tends to be larger than Kendall's tau in absolute value. The same remark adds that, as tests of significance, the two give nearly identical results in most cases. In an illustrative ranking of eight health states, Spearman's coefficient is 0.946 against a Kendall's tau-b of 0.836, so size labels calibrated on one cannot be carried over to the other.

    Source: StataCorp 2026

  • When is Kendall's tau used?

    Kendall's tau suits questions where only the order of units matters, such as whether a ranking task orders health states the same way as a cardinal valuation method. Craig and colleagues analysed 179,431 rank, visual analogue scale and time trade-off responses from 11,483 people in eight countries for 52 EQ-5D states, estimating Kendall's tau and Spearman's rho for each respondent. In the United Kingdom sample the mean Kendall's tau between time trade-off and rank responses was 0.65. Computing tau within each respondent and then averaging avoids treating many rankings from one person as independent pairs.

    Source: Craig et al. 2009

  • How is Kendall's tau interpreted?

    Newson reads the population value of Kendall's tau-a as the probability that a randomly chosen pair of units is concordant minus the probability that it is discordant. With no ties these two probabilities sum to one, so a tau-a of 0.7 means a random pair is ordered the same way by both variables with probability 0.85. The sign gives the direction of the relationship, and Newson favours a confidence interval over a p-value alone, since a small sample can give a large p-value with an interval that still allows strong agreement. A high tau shows agreement in order only, and two methods can rank health states identically while assigning them different utilities.

    Source: Newson 2002

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 26 Oct 2026

Content version: 1.0.1

Canonical Identity

Term code
HE-ES-SA-092

Stable URI · Machine-readable · Resolvable · CC BY 4.0