Stuart's Tau-c Calculator

Inputs

Stuart's tau-c0.3660
Goodman-Kruskal gamma0.4959
Ranked pairs2,460
Association readPositive association
How this was calculated
  1. Inputs: 1,840 concordant and 620 discordant pairs, sample size 100, smaller table dimension m = 3.
  2. Stuart's tau-c corrects the pair balance for the table's shape: (C - D) x 2m / (n^2 x (m - 1)) = 1,220 x 6 / (10,000 x 2) = 0.3660.
  3. Goodman-Kruskal gamma uses the same pair counts without the shape correction and reads 0.4959 - gamma always runs larger in magnitude because it ignores tied pairs.
  4. Stuart's tau-c: 0.3660 - positive association, the rank association adjusted so rectangular tables can reach the full -1 to +1 range.

Ordinal association measures disagree about one thing: what to do with the shape of the table. Stuart's tau-c, proposed by Alan Stuart in 1953, is the Kendall-family measure that corrects for rectangular tables, so a 2-by-5 table can reach the same -1 to +1 range as a square one. Enter concordant and discordant pair counts, the sample size and the smaller table dimension, and the calculator returns tau-c with gamma for contrast.

Concordant pairs are pairs of observations that rank in the same order on both variables; discordant pairs rank in opposite orders. Everything in this family of measures is built from those two counts and what each author chooses to divide by.

Worked examples

Positive association, rectangular table

(1840 · 620 · 100 · 3)

Stuart's tau-c0.3660
Goodman-Kruskal gamma0.4959
Ranked pairs2,460
Association readPositive association

Negative association

(540 · 905 · 80 · 2)

Stuart's tau-c-0.2281
Goodman-Kruskal gamma-0.2526
Ranked pairs1,445
Association readNegative association

Large surplus, wide table

(3200 · 1150 · 150 · 4)

Stuart's tau-c0.2430
Goodman-Kruskal gamma0.4713
Ranked pairs4,350
Association readPositive association

Pairs, ties and table shape

Start from the pair balance. The first worked example counts 1,840 concordant pairs against 620 discordant ones - a surplus of 1,220 agreements out of 2,460 ranked pairs. Goodman-Kruskal gamma divides that surplus by the ranked pairs alone and gets 0.4959. Tau-c divides by a larger quantity - the maximum surplus the table's shape and sample size allow - and gets 0.3660.

The denominator is where the shape enters. With 100 respondents and a smaller dimension of 3, the maximum attainable surplus is capped by the rectangular grid; tau-c prices that cap in, gamma ignores it. The difference between the two numbers is not noise - it is the correction itself.

Ties are the silent third category: pairs tied on either variable enter neither count. Gamma and tau-c both exclude them from their numerators, which is why both can look strong on data full of ties - the excluded mass never argues back.

  • Tau-c = pair surplus / maximum surplus allowed by n and the smaller dimension m.
  • Gamma = pair surplus / ranked pairs, and always runs at least as large in magnitude.
  • Tau-b is the sibling measure for square tables; tau-c is the one for rectangular ones.

Tau-c against tau-b and gamma

The second worked example shows the correction on a negative association: 540 concordant against 905 discordant pairs gives gamma -0.2526 and tau-c -0.2281. Gamma again reports the stronger-looking number, because its denominator counts only the 1,445 ranked pairs, while tau-c's denominator reflects what 80 respondents in a table with smaller dimension 2 could maximally produce.

The third example pairs a big surplus (3,200 against 1,150) with a large sample and a smaller dimension of 4: gamma reaches 0.4713 while tau-c reads 0.2430. The wider the table's potential pair space relative to the ranked pairs, the wider this gap grows.

Choosing between them is choosing a question. Gamma asks: among pairs that discriminate, how lopsided is the verdict? Tau-c asks: how strong is the association relative to what this table could show? For comparing across tables of different shapes, the second question is usually the honest one.

ExampleTau-cGammaRanked pairsRead
First0.36600.49592,460Positive association
Second-0.2281-0.25261,445Negative association
Third0.24300.47134,350Positive association

Worked examples

Example 1: Concordant pairs 1840; Discordant pairs 620; Sample size 100; Smaller table dimension m 3. Stuart's tau-c = 0.3660. Supporting values: Goodman-Kruskal gamma 0.4959; Ranked pairs 2,460; Association read Positive association. Inputs: 1,840 concordant and 620 discordant pairs, sample size 100, smaller table dimension m = 3. Stuart's tau-c corrects the pair balance for the table's shape: (C - D) x 2m / (n^2 x (m - 1)) = 1,220 x 6 / (10,000 x 2) = 0.3660. Goodman-Kruskal gamma uses the same pair counts without the shape correction and reads 0.4959 - gamma always runs larger in magnitude because it ignores tied pairs. Stuart's tau-c: 0.3660 - positive association, the rank association adjusted so rectangular tables can reach the full -1 to +1 range.

Example 2: Concordant pairs 540; Discordant pairs 905; Sample size 80; Smaller table dimension m 2. Stuart's tau-c = -0.2281. Supporting values: Goodman-Kruskal gamma -0.2526; Ranked pairs 1,445; Association read Negative association. Inputs: 540 concordant and 905 discordant pairs, sample size 80, smaller table dimension m = 2. Stuart's tau-c corrects the pair balance for the table's shape: (C - D) x 2m / (n^2 x (m - 1)) = -365 x 4 / (6,400 x 1) = -0.2281. Goodman-Kruskal gamma uses the same pair counts without the shape correction and reads -0.2526 - gamma always runs larger in magnitude because it ignores tied pairs. Stuart's tau-c: -0.2281 - negative association, the rank association adjusted so rectangular tables can reach the full -1 to +1 range.

Example 3: Concordant pairs 3200; Discordant pairs 1150; Sample size 150; Smaller table dimension m 4. Stuart's tau-c = 0.2430. Supporting values: Goodman-Kruskal gamma 0.4713; Ranked pairs 4,350; Association read Positive association. Inputs: 3,200 concordant and 1,150 discordant pairs, sample size 150, smaller table dimension m = 4. Stuart's tau-c corrects the pair balance for the table's shape: (C - D) x 2m / (n^2 x (m - 1)) = 2,050 x 8 / (22,500 x 3) = 0.2430. Goodman-Kruskal gamma uses the same pair counts without the shape correction and reads 0.4713 - gamma always runs larger in magnitude because it ignores tied pairs. Stuart's tau-c: 0.2430 - positive association, the rank association adjusted so rectangular tables can reach the full -1 to +1 range.

When the correction matters most

The correction matters when the two variables have different numbers of categories - a five-point satisfaction scale against a three-level income band, say. On square tables tau-c and tau-b nearly coincide, and the choice is academic. The more rectangular the table, the more gamma flatters the association relative to tau-c.

It also matters at the extremes. Perfect association in a rectangular table cannot produce a pair surplus equal to all ranked pairs in the way gamma's formula implicitly assumes; tau-c's ceiling logic keeps the scale honest, so a tau-c of 0.3660 and a gamma of 0.4959 on the same data are both 'right' answers to different questions.

Never compare a tau-c from one study with a gamma from another. The same data can produce 0.3660 and 0.4959; cross-study comparisons must use the same measure.

Computing pair counts from raw data

Pair counts come from the contingency table: for each pair of cells, the concordant contribution multiplies counts in cells that are ordered the same way on both variables, and the discordant contribution multiplies the cross-ordered cells. Any statistics package that reports Kendall's tau can be asked for the underlying counts, and most ordinal-regression output includes them.

The sample size to enter is the number of respondents (observations), not the number of pairs - the first example's 100 respondents generate its 2,460 ranked pairs. The smaller dimension m is the smaller of the row and column counts of the table.

Reading a tau-c result

Read the sign first (direction of association), then the magnitude against the table's shape, then gamma as an upper reference. A tau-c in the mid-0.3s on survey data, like the first example's 0.3660, is a solid ordinal association; the same number from a near-square table would be marginally stronger evidence because less of it is shape correction.

Report the measure's name with the number. 'Tau = 0.37' is ambiguous between three different statistics that can differ by a tenth or more on the same table - a tenth is often the whole argument.

In survey research tau-c is the workhorse behind a familiar sentence: 'satisfaction was positively associated with income band.' The tables in such work are almost always rectangular - five satisfaction levels against three or four income bands - which is precisely the geometry Stuart designed the correction for in 1953. Reporting gamma in that setting, as many packages do by default, systematically flatters the association; the first example's gap between 0.4959 and 0.3660 is the size of the flattery on ordinary data.

Significance for tau-c is usually assessed from its asymptotic standard error, which depends on the tie structure as well as the pair counts, so this calculator reports the measure itself and leaves testing to software that can see the full table. That division of labour is deliberate: the pair counts determine the point estimate completely, but honest uncertainty needs the whole distribution of the data, ties included.

A historical footnote explains the measure's survival. Stuart published the correction in 1953, in the same Biometrika paper tradition that produced much of categorical data analysis, and tau-c spent decades as the connoisseur's choice - computed by hand rarely, cited often. Computing made it cheap, and modern software reports it alongside tau-b as a matter of routine. What has not changed is the judgement it encodes: an association measure should not credit a table for association its shape made impossible to express. That principle outlives any particular formula.

FAQs

What tau-c does the first example give?

The first example gives a tau-c of 0.3660 - 1,840 concordant against 620 discordant pairs from 100 respondents, corrected for the table's smaller dimension of 3.

What gamma does the first example give?

Gamma is 0.4959 in the first example. It divides the same pair surplus by the ranked pairs only, so it reports a stronger-looking association than tau-c on the same data.

How many ranked pairs are in the first example?

There are 2,460 ranked pairs in the first example - the concordant and discordant counts added together. Tied pairs are not included in that total.

What tau-c does the negative second example give?

The negative second example gives a tau-c of -0.2281: discordant pairs (905) outnumber concordant pairs (540), so the association runs in the opposite direction.

What tau-c does the third example give?

The third example gives a tau-c of 0.2430. Despite a large pair surplus, the wide table shape (smaller dimension 4, 150 respondents) makes the corrected value modest.

What gamma does the third example give?

Gamma is 0.4713 in the third example - nearly double the tau-c of 0.2430. The gap is the shape correction at its most visible.

Sources

Related calculators

Kendall Tau Correlation Calculator
Kendall tau-b and tau-a rank correlation from concordant and discordant pair counts with ties on X and on Y, including the S statistic.
Spearman Correlation Calculator
Spearman's rank correlation rho for five paired observations with average ranks for tied values, the sum of squared rank differences, the t statistic and a plain-language band for the strength of the monotone trend.
Cramer's V Calculator
Cramer's V effect size for a contingency table from the chi-square statistic, the sample size and the table dimensions, with Cohen's degrees-of-freedom-adjusted benchmarks for the strength of association.