Kendall's Tau Calculator
Rank correlation with ties.
Enter paired X and Y values to calculate Kendall's tau
Use Kendall's tau when you want to measure how strongly two variables are related, especially when you have ordinal data (rankings, ratings) or when your data has many tied values. It's more robust than Pearson correlation to outliers and non-normal data, and provides a more interpretable measure of agreement than Spearman's correlation when sample sizes are small.
What Is Kendall's Tau?
Kendall's tau (Ο) is a rank correlation coefficient that measures the ordinal association between two variables. It counts the proportion of concordant and discordant pairs.
Question answered: "Do higher values of X tend to go with higher (or lower) values of Y?"
Range: -1 to +1
- Ο = +1: Perfect positive association
- Ο = 0: No association
- Ο = -1: Perfect negative association
Why Use Kendall's Tau?
Advantages Over Spearman
- More intuitive interpretation (based on pair comparisons)
- Better statistical properties for small samples
- Handles ties more naturally
- Confidence intervals are more accurate
When to Use
- Ordinal data (rankings, Likert scales)
- Non-normal continuous data
- When ties are common
- Small sample sizes
- Robust alternative to Pearson
How It Works
Concordant and Discordant Pairs
For each pair of observations (i, j):
Concordant: If both X and Y rank in the same direction
- and or and
Discordant: If X and Y rank in opposite directions
- and or and
Tied: If or
Tau-a (Ignores Ties)
Where:
- C = number of concordant pairs
- D = number of discordant pairs
Tau-b (Adjusts for Ties)
Where:
- = pairs tied only on X
- = pairs tied only on Y
Most commonly used when both variables can have ties.
Tau-c (For Rectangular Tables)
Where m = min(rows, columns). Used for tables where rows β columns.
Example Calculation
Data: 5 students ranked by exam score (X) and class participation (Y)
| Student | Exam Rank (X) | Participation Rank (Y) |
|---|---|---|
| A | 1 | 2 |
| B | 2 | 1 |
| C | 3 | 3 |
| D | 4 | 5 |
| E | 5 | 4 |
Step 1: Count all pairs (n = 5, so 10 pairs)
| Pair | X comparison | Y comparison | Result |
|---|---|---|---|
| A-B | 1 < 2 | 2 > 1 | Discordant |
| A-C | 1 < 3 | 2 < 3 | Concordant |
| A-D | 1 < 4 | 2 < 5 | Concordant |
| A-E | 1 < 5 | 2 < 4 | Concordant |
| B-C | 2 < 3 | 1 < 3 | Concordant |
| B-D | 2 < 4 | 1 < 5 | Concordant |
| B-E | 2 < 5 | 1 < 4 | Concordant |
| C-D | 3 < 4 | 3 < 5 | Concordant |
| C-E | 3 < 5 | 3 < 4 | Concordant |
| D-E | 4 < 5 | 5 > 4 | Discordant |
Results: C = 8, D = 2
Tau-a:
Interpretation: Moderate positive association.
Interpretation Guidelines
| |Ο| | Interpretation | |-----|----------------| | 0.00 - 0.10 | Negligible | | 0.10 - 0.20 | Weak | | 0.20 - 0.30 | Moderate | | 0.30 - 0.50 | Strong | | > 0.50 | Very strong |
Note: Kendall's tau tends to be lower than Spearman's rho for the same data.
Statistical Significance
For Small Samples
Use exact tables or permutation tests.
For Large Samples (n > 10)
Normal approximation:
Or with ties:
Handling Ties
Types of Ties
- X ties: Same rank on X, different on Y
- Y ties: Different rank on X, same on Y
- XY ties: Same rank on both (very tied)
Impact
- Tau-a ignores ties (can inflate correlation)
- Tau-b adjusts denominator (preferred for most data)
- Tau-c best for rectangular contingency tables
Kendall's Tau vs. Spearman's Rho
| Aspect | Kendall's Ο | Spearman's Ο |
|---|---|---|
| Basis | Pair comparisons | Rank differences |
| Typical magnitude | Lower | Higher |
| Ties | Handles better | Approximates |
| Statistical properties | Better for small n | More common |
| Interpretation | Probability-based | Correlation-like |
Approximate Relationship
Or more precisely:
Probability Interpretation
Kendall's tau has a direct probability interpretation:
For a randomly selected pair:
- Ο = 0.6 means 80% concordant, 20% discordant
- (0.8 - 0.2 = 0.6)
Partial Kendall's Tau
Control for a third variable Z:
Applications
Medical Research
Association between ordinal outcomes (pain scales, disease stages).
Psychology
Relationship between ranked preferences or attitudes.
Education
Agreement between different graders on rankings.
Quality Assessment
Agreement between ranked product evaluations.
Survey Research
Association between Likert-scale responses.
Confidence Intervals
For tau-b, approximate 95% CI:
Where:
More accurate CIs use bootstrap methods.
Reporting Results
APA format:
"There was a moderate positive association between exam performance and class participation, Οb = .60, p = .028."
Full report:
"Kendall's tau-b was computed to assess the relationship between exam ranking and participation ranking. There was a significant positive correlation, Οb = .60 (95% CI: .15, .85), z = 2.20, p = .028, indicating that students who ranked higher on exams tended to also rank higher on participation."
Common Mistakes
Using Wrong Tau Variant
- Use tau-b for continuous data with ties
- Use tau-c for rectangular tables
- Specify which variant was used
Comparing Tau to Spearman Directly
Tau is typically lowerβaccount for this when interpreting.
Ignoring Sample Size
Statistical significance depends heavily on n. A small Ο can be significant with large n.
Not Checking for Ties
Many ties may affect which tau variant is appropriate.
Assumptions
Ordinal Scale
Variables must be at least ordinal (rankings meaningful).
Monotonic Relationship
Kendall's tau detects monotonic (not just linear) relationships.
Independent Observations
Each observation pair should be independent.
Historical Context
Maurice Kendall developed this coefficient in 1938 as an alternative to Spearman's rho. His approach based on counting concordant and discordant pairs provides a more intuitive interpretation and better statistical properties.
Kendall also contributed the partial tau and tau-c for specialized applications.
Related Calculations
- Spearman Correlation β Alternative rank correlation
- Pearson Correlation β Linear correlation
- Chi-Square Test β Categorical association
- CramΓ©r's V β Nominal association strength
Summary
Kendall's tau measures ordinal association by comparing concordant and discordant pairs. Tau-b (most common) adjusts for ties; tau-c is for rectangular tables. Values range from -1 to +1, with interpretation based on the probability of concordance versus discordance. Tau tends to be lower than Spearman's rho for the same data but has better statistical properties for small samples. Use for ordinal data, non-normal distributions, or when ties are common. Report the tau variant used, along with confidence intervals and p-values.