Goodman-Kruskal Gamma
Computes the Goodman-Kruskal gamma coefficient, a measure of association between two ordinal variables from a contingency table. It compares the number of concordant pairs (pointing in the same direction) with discordant ones, and ranges from −1 to +1: near +1, the variables rise together; near −1, one rises while the other falls. Unlike other measures, gamma completely ignores ties. Enter the table: columns by comma, rows by semicolon.
Resultado
—
Goodman-Kruskal Gamma
Computes the Goodman-Kruskal gamma coefficient, a measure of association between two ordinal variables from a contingency table. It compares the number of concordant pairs (pointing in the same direction) with discordant ones, and ranges from −1 to +1: near +1, the variables rise together; near −1, one rises while the other falls. Unlike other measures, gamma completely ignores ties. Enter the table: columns by comma, rows by semicolon.
How aligned are two ordinal variables?
When two variables have order but no precise numbers — education level and income bracket, satisfaction and likelihood to repurchase — Pearson correlation doesn't apply well. The Goodman-Kruskal gamma was made for this ordinal case, measuring how much the two variables tend to rise or fall together.
The calculation runs through all pairs of observations and classifies them. A pair is concordant when the larger observation on one variable is also larger on the other, and discordant when the order reverses. Gamma is simply the difference between concordant and discordant pairs, divided by their sum. One distinguishing detail: it completely discards tied pairs, which makes it optimistic near the extremes.
Enter the contingency table, with columns separated by commas and rows by semicolons, and with the categories laid out in order. The tool returns gamma and the counts of concordant and discordant pairs. Values near plus one or minus one indicate strong ordinal association; near zero, the variables relate little in their ordering.
Related Tools
Chi-Square Test of Independence
Computes the chi-square test of independence for a contingency table, checking whether two categorical variables are associated or independent. For example: does preference for a product depend on age group? The test compares the observed frequencies with those that would be expected if there were no relationship at all, and the chi-square statistic measures the size of that mismatch. The tool returns the statistic, the degrees of freedom and the p-value. Enter the table: columns by comma, rows by semicolon.
Fisher's Exact Test (2×2)
Computes Fisher's exact test for a 2×2 contingency table, the right choice when the counts are small and the chi-square approximation no longer holds. Instead of approximating, it computes the exact probability of observing the current table — and tables even more extreme — holding the margin totals fixed, via the hypergeometric distribution. The tool returns the one-sided and two-sided p-values (the latter by summing the probabilities of tables as likely or less likely than the observed one). Enter the four cells a, b, c and d.
Kruskal-Wallis H Test
Computes the Kruskal-Wallis H test, the non-parametric version of ANOVA for comparing three or more independent groups. Just as Mann-Whitney does for two groups, it works with the ranks of the data instead of the raw values, dispensing with the normality assumption. The H statistic approximately follows a chi-square distribution. It's the choice when the data are ordinal or clearly non-normal. Enter the groups: values by comma, groups by semicolon.
The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.