Definition
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" (cases where either of the two variables in the pair are equal) are dropped. Then : This statistic can be regarded as the maximum likelihood estimator for the theoretical quantity , where : and where ''P''''s'' and ''P''''d'' are the probabilities that a randomly selected pair of observations will place in the same or opposite order respectively, when ranked by both variables. Critical values for the gamma statistic are sometimes found by using an approximation, whereby a transformed value, ''t'' of the statistic is referred to Student t distribution, where : and where ''n'' is the number of observations (not the number of pairs): :Yule's Q
A special case of Goodman and Kruskal's gamma is Yule's Q, also known as the Yule coefficient of association, which is specific to 2×2 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. ''Q'' varies from −1 to +1. −1 reflects total negative association, +1 reflects perfect positive association and 0 reflects no association at all. The sign depends on which pairings the analyst initially considered to be concordant, but this choice does not affect the magnitude. In term of the odds ratio OR, Yule's ''Q'' is given by : and so Yule's ''Q'' and Yule's ''Y'' are related by : :See also
* Kendall tau rank correlation coefficient * Goodman and Kruskal's lambda * Yule's Y, also known as the coefficient of colligationReferences
Further reading
*Sheskin, D.J. (2007) ''The Handbook of Parametric and Nonparametric Statistical Procedures''. Chapman & Hall/CRC, {{DEFAULTSORT:Gamma Test (Statistics) Rankings Statistical tests Summary statistics for contingency tables