Interactive module guide

Kendall Tau Calculator — Ordinal Association

This Kendall tau calculator tests ordinal association through concordant and discordant pairs with the tie-corrected tau-b statistic.

Open calculator

Free · No sign-up · Calculations stay in your browser

Kendall’s tau test measures ordinal association by comparing every pair of observations: a pair is concordant when the two variables order the pair the same way and discordant when they disagree.

The tau-b statistic divides the concordance surplus C − D by a tie-corrected pair count, and this calculator refers C − D to its asymptotic normal null distribution with the full tie-corrected variance (the scipy asymptotic convention).

Without ties, tau-b reduces to tau-a and (τ+1)/2 equals the concordant-pair share; with ties, that shortcut is not valid because tau-b has a different denominator.

Use the Kendall tau calculator for ordinal or heavily tied data; tau-b is the tie-adjusted balance of concordant and discordant orderings, not a raw pair proportion.

When to use this Kendall tau calculator

Use it when

  • Use it for ordinal scales and heavily tied data—severity grades, ranked preferences, coarse survey responses—where tau-b’s explicit tie correction in both variables keeps the statistic honest.
  • Use it when pairwise ordering is the clearest summary. Report the displayed concordant and discordant counts when stakeholders need an actual pair proportion rather than converting tau-b into one.
  • Use it for agreement between two rankers or two ranking systems evaluating the same items, where concordance of orderings is literally the question.

Choose another method when

  • Avoid it when magnitudes matter: tau sees only orderings, so questions about slopes, variance explained, or effect sizes on the measurement scale belong to Pearson or regression.
  • Avoid it for very large samples here: the pairwise scan is quadratic, and this calculator caps input at 5,000 pairs rather than silently slowing down.
  • Avoid non-monotone questions: like every coefficient in this family, tau near zero cannot distinguish independence from a U-shaped relationship.

Interactive tool

The calculator loads as you approach this section so the guide remains fast on mobile connections.

Example preview

Concordant versus discordant pairs

Inputs
Fourteen pairs with ties in both variables; tau-b convention.
Representative result
τ-b≈0.9497 with an asymptotic p≈3×10⁻⁶; nearly every pair ordering is concordant.

Illustrative only. Load the interactive tool to enter your own values and review assumptions.

Watch the explanation

4:56 min

The player loads only after you press play. You can also watch on YouTube.

Read the complete transcript

The Kendall Tau Test. Kendall tau asks a pairwise question. Pick two observations: do X and Y order them the same way, or do their directions disagree? The two variables must remain paired row by row. Equal lengths, at least three independent pairs, and a meaningful ordinal scale come before any counting. When both differences share a sign, the observation pair is concordant. When one rises and the other falls, it is discordant. A tie in X or Y is neither concordant nor discordant. Keep X-only, Y-only, and joint ties visible because they affect the normalization differently. Tau-b divides the surplus C minus D by a denominator corrected for tied pairs in each variable. This keeps the coefficient between minus one and one. Without ties, tau-b reduces to tau-a and one plus tau over two is the concordant share. With ties, that shortcut is invalid. Choose the tail before seeing tau. Two-tailed asks whether association differs from zero; right means concordant order, and left means discordant order.

The page standardizes C minus D with a full tie-corrected null variance and uses a normal z reference. Its p-value is asymptotic, not exact. Below ten pairs, the calculator warns that the normal approximation is rough. It never switches to an exact permutation distribution, especially when ties are present. No confidence interval appears. The null variance is suitable for testing tau equal to zero, not a general sampling variance for nonzero tau. Strictly increasing transformations preserve every pair ordering. Changing positive X to log X leaves C, D, tau-b, z, and p exactly unchanged. Kendall uses order rather than raw distance, but it cannot repair wrong pairing, dependent units, clusters, selection effects, or a misspecified scientific question. A deterministic U-shape can have tau zero because rising and falling comparisons cancel. Zero ordinal association does not prove independence. The page scans all n choose two observation pairs, so work grows quadratically. It stops above five thousand pairs instead of silently becoming unusable.

Now use the same fourteen paired readings from the previous correlation examples, with a two-sided alpha of point zero five and ties in both variables. Fourteen observations create ninety-one unordered pairs. Classifying every comparison produces eighty-seven concordant pairs and only two discordant pairs. Two pairs are tied within X and one is tied within Y. One pair is jointly tied and contributes to neither variable-only tie term. The tie-adjusted denominator is eighty-nine point four nine nine. Dividing the concordance surplus eighty-five gives tau-b zero point nine four nine seven. Among comparable pairs only, eighty-seven divided by eighty-nine equals ninety-seven point eight percent concordant. That descriptive share is not tau-b. The tie-corrected null variance is three hundred thirty point six eight nine, giving z four point six seven four, beyond the two-sided critical magnitude one point nine six zero. The two-sided asymptotic p-value is about two point nine five times ten to the minus six. Reject zero population ordinal association at alpha point zero five.

Replace positive X by its logarithm and the complete comparison ledger stays fixed. Every calculator result is identical because order never changes. Negate Y and tau-b becomes negative zero point nine four nine seven. The two-sided p-value stays fixed while the directional tails swap. Heavy ties are handled honestly but reduce informative pair mass. Read the counts beside tau-b instead of treating a coarse scale like continuous data. On these identical fourteen pairs, Pearson r is about point nine nine one, Spearman rho point nine eight six, and Kendall tau-b point nine five zero. Their scales differ. Validation stops unequal lengths, fewer than three or more than five thousand pairs, constant variables, invalid alpha, and tie patterns with no statistic variance. Report the pairing design, n, tie profile, C, D, tau-b, chosen tail, asymptotic z and p, alpha, comparable-pair share if useful, and approximation caveats. Use Pearson for linear magnitude, Spearman for monotonic ranks, and exact or permutation methods for careful small samples. Run the Kendall Tau Test free at Distri Scope dot com.

How to read the result

Interpret tau-b as a tie-adjusted ordinal-association coefficient. If an actual concordance share is needed, calculate C/(C+D) among comparable, untied pairs and label that quantity separately.

Tau values run systematically lower than Spearman’s ρ on the same data—commonly around two thirds of ρ—so never compare the two against a shared threshold.

With many ties, tau-b can stay well below one even for perfectly aligned orderings, because tied pairs are neither concordant nor discordant; read the C and D counts alongside.

How to use the Kendall tau calculator

Enter the two variables in matching order with equal lengths; ties in either or both variables are expected, and tau-b handles them in the denominator and in the null variance.

The tail choice refers to the sign of tau: right-tailed tests for predominantly concordant orderings.

The statistic display reports C and D alongside τ-b so the concordance surplus is visible, not just its normalized value.

Formula, hypotheses, and assumptions

τb=CD(n0n1)(n0n2)\tau_b = \frac{C - D}{\sqrt{(n_0 - n_1)(n_0 - n_2)}}

Conditions to review

  • Paired observations from one population of pairs
  • At least an ordinal measurement scale in both variables
  • Independent pairs
  • Interpretation is about concordance of orderings

Calculator parameters

  • Significance Level (α): default 0.05.
  • Test Type: default Two-tailed.

What the method is doing

All n(n−1)/2 pairs are classified as concordant, discordant, or tied; tau-b divides C − D by √((n₀−n₁)(n₀−n₂)), where n₁ and n₂ count tied pairs within each variable.

The p-value refers C − D to a normal distribution with the tie-corrected null variance (the v₀, v_t, v_u, v₁, v₂ decomposition scipy uses for its asymptotic method), so results are directly reproducible against scipy with method="asymptotic".

No confidence interval is reported: intervals built from the null variance are invalid away from τ = 0, and an honest tau interval needs bootstrap machinery this page does not yet include.

Worked example: concordance in fourteen tied pairs

The same fourteen (X, Y) pairs from the Pearson example are analyzed by concordance; both variables contain ties. Test for ordinal association at α = 0.05 using tau-b.

  1. 1Classify all 91 pairs of observations: the scan finds C = 87 concordant pairs, D = 2 discordant pairs, and 2 pairs tied in at least one variable.
  2. 2Apply the tie-corrected denominator to get τ-b ≈ 0.9497. Separately, the observed concordant share among comparable pairs is 87/(87+2) ≈ 0.978.
  3. 3Compute the tie-corrected null variance of C − D and the z statistic z ≈ 4.67.
  4. 4The two-sided p-value is about 3×10⁻⁶, so the null hypothesis of no ordinal association is rejected decisively.

Interpretation

About 97.8% of the 89 comparable pairs are ordered the same way by both variables—an almost perfect observed ordinal agreement. Tau-b ≈ 0.950 is the corresponding tie-adjusted coefficient, not that proportion transformed onto a minus-one-to-one scale. Note the scale difference across the family on identical data: r ≈ 0.991, ρ ≈ 0.986, and τ-b ≈ 0.950 all describe the same near-perfect association.

Common mistakes

  • Do not compare tau with r or ρ against the same cutoff; tau’s scale runs lower by construction, and mechanical thresholds misclassify it as weaker.
  • Do not read significance as strength: with thousands of observations, a very small tau-b can become highly significant while the ordinal association remains practically weak.
  • Do not ignore the tied mass: when most pairs are tied, C and D summarize only a small informative fraction of the data, whatever the p-value says.

Limits and independent validation

The p-value is asymptotic; below ten pairs the calculator warns rather than computing the exact permutation distribution.

No confidence interval for tau is provided, by design, until a valid bootstrap interval can be offered.

The quadratic pair scan caps input at 5,000 pairs; larger datasets need the O(n log n) algorithms this page does not implement.

Before using the result

  • Verify the pairing order, then hand-check a few pairs against the C and D counts—concordance is directly auditable in a way variance formulas are not.
  • Cross-check tau’s sign and significance against Spearman’s ρ; the two should agree in direction, and a sign disagreement indicates a data problem.
  • For reports, state tau-b as a tie-adjusted coefficient and, if useful, report C/(C+D) as a separate observed share among comparable pairs.

See every option in the Statistical Hypothesis Test Calculator or review the DistriScope methodology. Educational information; last reviewed 2026-08-09. Verify consequential calculations independently.