Questions tagged [kendall-tau]

A measure of concordance between two random variables based on ranks.

Kendall's tau is a measure of concordance for two random variables. It is based on ranks, and has many properties in common with Spearman's rho.

We say that $(y_{i,1},y_{i,2})$ and $(y_{j,1},y_{j,2})$ are concordant if:

$$(y_{i,1} - y_{j,1}) \times (y_{i,2} - y_{j,2}) >0 $$

And discordant if the product is $< 0$. For a given dataset, let $c$ = # of concordant observations and $d$ = # of discordant observations. Then:

$$\hat{\tau} = \frac{c-d}{n \choose 2}$$

If pairs are tied (i.e. $y_{i,1} = y_{j,1}$), then $\hat{\tau}$ is not bound by -1 and +1. There are different approaches to handling ties.

For more information:

175 questions
91
votes
5 answers

Kendall Tau or Spearman's rho?

In which cases should one prefer the one over the other? I found someone who claims an advantage for Kendall, for pedagogical reasons, are there other reasons?
Tal Galili
  • 19,935
  • 32
  • 133
  • 195
33
votes
3 answers

How do the Goodman-Kruskal gamma and the Kendall tau or Spearman rho correlations compare?

In my work, we are comparing predicted rankings versus true rankings for some sets of data. Up until recently, we've been using Kendall-Tau alone. A group working on a similar project suggested we try to use the Goodman-Kruskal Gamma instead, and…
Poik
  • 520
  • 1
  • 6
  • 10
28
votes
3 answers

If linear regression is related to Pearson's correlation, are there any regression techniques related to Kendall's and Spearman's correlations?

Maybe this question is naive, but: If linear regression is closely related to Pearson's correlation coefficient, are there any regression techniques closely related to Kendall's and Spearman's correlation coefficients?
sitems
  • 3,649
  • 1
  • 25
  • 52
18
votes
0 answers

Picking block length in a block bootstrap

I am using the Mann-Kendall test to assess trends in a data time-series. I believe there is autocorrelation in my data and therefore need to use a block bootstrap to correct for it. I have plotted the autocorrelation to try to determine the block…
16
votes
2 answers

Canonical correlation analysis with rank correlation

Canonical correlation analysis (CCA) aims to maximize the usual Pearson product-moment correlation (i.e. linear correlation coefficient) of the linear combinations of the two data sets. Now, consider the fact that this correlation coefficient only…
12
votes
1 answer

Bound the difference between Spearman's Correlation and Kendall's Correlation

I am trying to prove or disprove that the difference between Spearman's Correlation and Kendall's Correlation is no more than 1 (or less, the tighter the merrier). I am assuming there are no ties. In an attempt to disprove the result using a counter…
Pqqwetiqe
  • 121
  • 3
9
votes
1 answer

Correlation coefficients for ordered data: Kendall's Tau vs Polychoric vs Spearman's rho

It seems like for managing with ordered measurements researchers usually deal with Polychoric Correlation. (For example, for making matrix before doing Factor Analysis.) Why so? Kendall Tau Rank Correlation Coefficient and Spearman's rank…
8
votes
1 answer

Rank correlation statistics comparison

I am trying to understand the relative behavior of the following rank correlation statistics: Spearman coefficient Kendall Tau / Concordance percentage Normalized Gini coefficient (area under curve of percentage captured versus percentage…
cohoz
  • 618
  • 5
  • 16
8
votes
1 answer

Confidence intervals for Kendall's tau

I am working on some stats coursework, and have non parametric bivariate data. n=19, so small sample. There are a number of tied ranks, so I'm planning to use Kendall's tau rather than Spearman's rho, as I have found some literature supporting this.…
7
votes
1 answer

Kendall-tau and RKHS spaces

Given two random variables $X_1$ and $X_2$, the Kendall-tau correlation coefficient could be defined as $$…
7
votes
1 answer

Spearman or Kendall correlation?

I would like to assess the correlation between a 7-category ordinal variable (X) and a number of other variables some of which are ordinal with 3-6 categories, others are continuous and a couple are dichotomous. The dataset includes only 24…
7
votes
2 answers

Test for randomness - randtests - fails

Suppose I have a data set provided by PRNG in a matrix form with 400,000 rows and 20 columns. Each row consists 20 unique integer values from 1 to 80. I need to check the correctness of the PRNG. For this purpose I have used R with randtests…
nmerci
  • 489
  • 3
  • 13
7
votes
4 answers

What's the Kendall Tau's distance between these 2 rankings?

ranking i: {3, 1, 2} ranking j: {2, 1, 3} I am referring to the Wikipedia page here, and to calculate the Kendall distance, I just need to count the number of times the values in ranking i are in the opposite order of the values in ranking j. 3 < 1…
Adrian
  • 1,665
  • 3
  • 22
  • 42
7
votes
3 answers

Weighted Kendall tau rank correlation coefficient

I need to use a measure to compare two rankings: Consider the ground truth as 1,2,3,4,5,6. Let two rankings be R1 and R2. R1: 1,2,3,6,4,5 R2: 1,4,2,3,5,6 From Wikipedia Kendall's tau ranking correlation coefficient is given…
Ayushi Dalmia
  • 141
  • 2
  • 8
6
votes
1 answer

Kendall's tau derivation from first principles?

I know that Kendall's tau is given by: $$\tau = P[(x_1-x_2)(y_1-y_2)>0]-P[(x_1-x_2)(y_1-y_2)<0]$$ However I cannot see how this gives: $$\tau = {2 \over n^2-n} \sum_{1\leq i
user2350366
  • 674
  • 5
  • 12
1
2 3
11 12