Goodman-Kruskal Gamma Calculator
Association measures
- Pair counts: of the 1,770 pairs that differ on both variables, 1,450 are concordant and 320 discordant; tied pairs never enter gamma.
- Gamma: (1,450 - 320) / 1,770 = 0.6384.
- The concordant share is 81.92 %, so the sign and size of gamma follow directly from which pair type dominates.
- Goodman-Kruskal gamma result: 0.6384 on 1,770 informative pairs.
When two ordinal variables are cross-classified - education level against income band, disease stage against treatment response - the natural question is whether higher ranks on one tend to travel with higher ranks on the other. Goodman and Kruskal's gamma answers with a single number built from a beautifully simple count: take every pair of observations that differ on both variables, and ask whether the pair is concordant (the same observation is higher on both) or discordant (higher on one, lower on the other). Gamma is the difference of those counts over their sum.
Pairs tied on either variable are set aside entirely, which is gamma's strength and its warning label. Ignoring ties makes gamma a pure measure of the untied evidence and gives it a proportional-reduction-in-error reading: knowing the order on one variable reduces your error in guessing the order on the other by exactly gamma, as a proportion. But a table full of ties can make gamma look heroic on very little information, so the calculator always shows the informative-pair total and both shares next to the headline value.
A note on where the pair counts come from in practice: statistical packages compute gamma directly from the cross-classification, but the count-level view this page takes is more than a teaching device. Meta-analysts routinely recover Nc and Nd from published tables to recompute gamma on a common footing, and auditors use the counts to check whether a reported gamma could possibly have come from the table printed beside it - a gamma of 0.9 above a table whose off-diagonal mass is visibly balanced fails that check at a glance. Working in counts keeps the measure honest and portable.
A note on where the pair counts come from in practice: statistical packages compute gamma directly from the cross-classification, but the count-level view this page takes is more than a teaching device. Meta-analysts routinely recover Nc and Nd from published tables to recompute gamma on a common footing, and auditors use the counts to check whether a reported gamma could possibly have come from the table printed beside it - a gamma of 0.9 above a table whose off-diagonal mass is visibly balanced fails that check at a glance. Working in counts keeps the measure honest and portable.
A note on where the pair counts come from in practice: statistical packages compute gamma directly from the cross-classification, but the count-level view this page takes is more than a teaching device. Meta-analysts routinely recover Nc and Nd from published tables to recompute gamma on a common footing, and auditors use the counts to check whether a reported gamma could possibly have come from the table printed beside it - a gamma of 0.9 above a table whose off-diagonal mass is visibly balanced fails that check at a glance. Working in counts keeps the measure honest and portable.
Worked examples
A survey table with 1,450 concordant pairs
(1450 · 320)
| Gamma | 0.6384 |
| Total informative pairs | 1,770 |
| Concordant share | 81.92 % |
| Discordant share | 18.08 % |
When discordant pairs win: 268 vs 512
(268 · 512)
| Gamma | -0.3128 |
| Total informative pairs | 780 |
| Concordant share | 34.36 % |
| Discordant share | 65.64 % |
Near-perfect ordering on 100 pairs
(96 · 4)
| Gamma | 0.9200 |
| Total informative pairs | 100 |
| Concordant share | 96.00 % |
| Discordant share | 4.00 % |
What gamma measures
Gamma lives on the interval from -1 to +1. At +1 every informative pair is concordant: the two rankings never disagree. At -1 they always disagree. At 0 concordant and discordant pairs balance, and the orderings carry no information about each other. Because the measure is symmetric, gamma does not care which variable you call the outcome - swap the roles and the value is unchanged.
The 1954 paper that introduced gamma framed it as a PRE (proportional reduction in error) measure. Imagine guessing, for a random untied pair, which observation ranks higher on variable two. Without information you err half the time. Knowing variable one's ordering cuts that error rate by the fraction gamma. That interpretation is why gamma remains popular in survey and social-science work long after more elaborate ordinal models appeared.
- Uses only concordant (Nc) and discordant (Nd) pair counts.
- Ties on either variable are excluded - check the informative total before trusting the value.
- Symmetric: gamma(X, Y) equals gamma(Y, X).
Concordant and discordant pairs
Counting pairs from a contingency table is mechanical: a pair drawn from cells (i, j) and (i', j') is concordant when i < i' and j < j', discordant when the inequalities point in opposite directions, and tied when it shares a row or a column. Software that reports gamma has already done this bookkeeping; if you are working from a published table, multiply cell counts across the diagonal directions to recover Nc and Nd. The examples on this page start from the counts directly.
A practical warning: gamma says nothing about how the association is distributed across the table. A single dense corner can drive a high gamma while the rest of the table is noise. Pair the number with a look at the table itself, and consider Kendall's tau-b when ties are heavy, since tau-b keeps tied pairs in its denominator and therefore reports a more conservative value on the same data.
| Gamma | Reading |
|---|---|
| 0.00 to 0.10 | Negligible association |
| 0.10 to 0.30 | Weak association |
| 0.30 to 0.60 | Moderate association |
| 0.60 to 0.90 | Strong association |
| 0.90 to 1.00 | Near-perfect ordering |
Worked examples
The opening example sets 0.6384 as the headline gamma, with supporting values Total informative pairs 1,770; Concordant share 81.92 %; Discordant share 18.08 %.
The concordant share printed beside it is the intuition to keep: well over four fifths of the informative pairs point the same way, so the positive sign was never in doubt - gamma's job was to price exactly how lopsided the split is.
The opening example sets -0.3128 as the headline gamma, with supporting values Total informative pairs 780; Concordant share 34.36 %; Discordant share 65.64 %.
The concordant share printed beside it is the intuition to keep: well over four fifths of the informative pairs point the same way, so the positive sign was never in doubt - gamma's job was to price exactly how lopsided the split is.
The opening example sets 0.9200 as the headline gamma, with supporting values Total informative pairs 100; Concordant share 96.00 %; Discordant share 4.00 %.
The concordant share printed beside it is the intuition to keep: well over four fifths of the informative pairs point the same way, so the positive sign was never in doubt - gamma's job was to price exactly how lopsided the split is.
Gamma in survey and social research
Gamma's natural habitat is the survey cross-tab: satisfaction against income band, political leaning against education, health status against age group. In that habitat its virtues compound - it needs no distributional assumptions, it tolerates unequal category widths, and its PRE interpretation translates directly into plain language for non-statistical readers: 'knowing a respondent's education band cuts our error in predicting their satisfaction ordering by about 64 percent' is a sentence a policymaker can repeat.
Its known vice in the same habitat is the treatment of ties, because survey scales manufacture ties industrially: thousands of respondents share each cell of a five-point scale. The informative pairs may be a minority of all pairs, and gamma, judging only them, can sound triumphant about a relationship that organises only a slice of the population. The professional habit is to report gamma with its informative-pair count - or to step down to tau-b or Somers' D, which fine the measure for the ties it ignored.
One more boundary: gamma is a measure of monotone association only. A U-shaped relationship - satisfaction lowest in the middle income bands, high at both ends - can produce a gamma near zero while the table is full of structure. Plot or eyeball the table before letting any single ordinal coefficient speak for it.
Gamma in survey and social research
Gamma's natural habitat is the survey cross-tab: satisfaction against income band, political leaning against education, health status against age group. In that habitat its virtues compound - it needs no distributional assumptions, it tolerates unequal category widths, and its PRE interpretation translates directly into plain language for non-statistical readers: 'knowing a respondent's education band cuts our error in predicting their satisfaction ordering by about 64 percent' is a sentence a policymaker can repeat.
Its known vice in the same habitat is the treatment of ties, because survey scales manufacture ties industrially: thousands of respondents share each cell of a five-point scale. The informative pairs may be a minority of all pairs, and gamma, judging only them, can sound triumphant about a relationship that organises only a slice of the population. The professional habit is to report gamma with its informative-pair count - or to step down to tau-b or Somers' D, which fine the measure for the ties it ignored.
One more boundary: gamma is a measure of monotone association only. A U-shaped relationship - satisfaction lowest in the middle income bands, high at both ends - can produce a gamma near zero while the table is full of structure. Plot or eyeball the table before letting any single ordinal coefficient speak for it.
Gamma in survey and social research
Gamma's natural habitat is the survey cross-tab: satisfaction against income band, political leaning against education, health status against age group. In that habitat its virtues compound - it needs no distributional assumptions, it tolerates unequal category widths, and its PRE interpretation translates directly into plain language for non-statistical readers: 'knowing a respondent's education band cuts our error in predicting their satisfaction ordering by about 64 percent' is a sentence a policymaker can repeat.
Its known vice in the same habitat is the treatment of ties, because survey scales manufacture ties industrially: thousands of respondents share each cell of a five-point scale. The informative pairs may be a minority of all pairs, and gamma, judging only them, can sound triumphant about a relationship that organises only a slice of the population. The professional habit is to report gamma with its informative-pair count - or to step down to tau-b or Somers' D, which fine the measure for the ties it ignored.
One more boundary: gamma is a measure of monotone association only. A U-shaped relationship - satisfaction lowest in the middle income bands, high at both ends - can produce a gamma near zero while the table is full of structure. Plot or eyeball the table before letting any single ordinal coefficient speak for it.
FAQs
How many concordant pairs are in the first example?
1,450 concordant pairs against 320 discordant ones. Their difference over their sum of 1,770 informative pairs gives the gamma of 0.6384.
Why does gamma ignore tied pairs?
A tied pair carries no ordering information - you cannot say which observation is higher - so Goodman and Kruskal excluded ties from both the numerator and the denominator. The cost is optimism on tie-heavy tables, which is why tau-b exists.
What does a gamma of 0.9200 indicate?
A very strong positive association: among pairs that differ on both variables, 96 percent are concordant. Check the informative-pair count too - that example rests on only 100 pairs, so the estimate is less stable than the value suggests.
Is gamma the same as Kendall's tau?
No. Tau-b divides by a denominator that includes ties, so on the same table tau-b is smaller in magnitude. Gamma answers 'among untied pairs, how lopsided is the split?'; tau-b answers a question closer to a correlation over all pairs.
Can gamma be negative?
Yes - the second worked example gives -0.3128, where discordant pairs (512) outnumber concordant ones (268), a moderate negative association.
What is the proportional-reduction-in-error reading?
Gamma is the fraction by which knowing one variable's ordering reduces your error when guessing the other's ordering for a random untied pair, compared with guessing blind.