Goodman and Kruskal's gamma
In statistics, Goodman and Kruskal's gamma is a measure of rank correlation, i.e., the similarity of the orderings of the data when ranked by each of the quantities. It measures the strength of association of the cross tabulated data when both variables are measured at the ordinal level. It makes no adjustment for either table size or ties. Values range from −1 (100% negative association, or perfect inversion) to +1 (100% positive association, or perfect agreement). A value of zero indicates the absence of association.
The estimate of gamma, G, depends on two quantities:
- Ns, the number of pairs of cases ranked in the same order on both variables (number of concordant pairs),
- Nd, the number of pairs of cases ranked in reversed order on both variables (number of reversed pairs),
where "ties" are dropped. That is cases where either of the two variables in the pair are equal. Then
This statistic can be regarded as the maximum likelihood estimator for the theoretical quantity , where
and where Ps and Pd are the probabilities that a randomly selected pair of observations will place in the same or opposite order respectively, when ranked by both variables.
and where n is the number of observations (not the number of pairs):
A special case of Goodman and Kruskal's gamma is Yule's Q, which is specific to 2x2 matrices. Consider the following contingency table of events, where each value is a count of an event's frequency:
Yule's Q is given by:
Although computed in the same fashion as Goodman and Kruskal's gamma, it has a slightly broader interpretation because the distinction between nominal and ordinal scales becomes a matter of arbitrary labeling for dichotomous distinctions. Thus, whether Q is positive or negative depends merely on which pairings the analyst considers to be concordant, but is otherwise symmetric.
- Goodman, Leo A.; Kruskal, William H. (1954). "Measures of Association for Cross Classifications". Journal of the American Statistical Association 49 (268): 732–764. doi:10.2307/2281536. JSTOR 2281536.
- Goodman, Leo A.; Kruskal, William H. (1959). "Measures of Association for Cross Classifications. II: Further Discussion and References". Journal of the American Statistical Association 54 (285): 123–163. doi:10.1080/01621459.1959.10501503. JSTOR 2282143.
- Goodman, Leo A.; Kruskal, William H. (1963). "Measures of Association for Cross Classifications III: Approximate Sampling Theory". Journal of the American Statistical Association 58 (302): 310–364. doi:10.1080/01621459.1963.10500850. JSTOR 2283271.
- Goodman, Leo A.; Kruskal, William H. (1972). "Measures of Association for Cross Classifications, IV: Simplification of Asymptotic Variances". Journal of the American Statistical Association 67 (338): 415–421. doi:10.1080/01621459.1972.10482401. JSTOR 2284396.
- Yule, G U. (1912). "On the methods of measuring association between two attributes". Journal of the Royal Statistical Society 49 (6): 579–652. JSTOR 2340126.
Sheskin, D.J. (2007) The Handbook of Parametric and Nonparametric Statistical Procedures. Chapman & Hall/CRC, ISBN 9781584888147 http://www.psych.cornell.edu/Darlington/crosstab/TABLE5.HTM