Somers' D

Statistics
Introduced by
Robert H. Somers
Year
1962
Type
Asymmetric ordinal association coefficient

What does it do?

Somers' D is an asymmetric association coefficient for ordinal variables, introduced by Robert H. Somers in 1962.

It summarises the balance of concordant over discordant pairs, with the direction set by which variable is designated as the predictor (X) and which as the response (Y). Its values lie between −1 and +1, and the formulas on this page relate it directly to Kendall's tau-b.

The intuition behind the method

Take every pair of observations and ask whether the two variables order that pair the same way (concordant) or in opposite ways (discordant). Somers' D is built from the difference between these two counts, scaled by a count of pairs. Kendall's tau-b treats the two variables symmetrically, whereas the d_{Y|X} form defined here uses a denominator that depends on the direction chosen, so the two directional values can differ. A value near 0 indicates little net concordance, and values near −1 or +1 indicate that the ordering of one variable largely determines the ordering of the other.

History

Robert H. Somers introduced the measure in 1962 in the American Sociological Review as an asymmetric measure of association for ordinal variables. The formulas on this page show how it relates to Kendall's tau-b, which can be written in terms of the two directional statistics. Agresti's 2010 textbook is cited on this page for the inference step rather than for the origin of the measure.

When to use it

Choose Somers' D when both variables are at least ordinal and the question has a direction, with one variable designated as the predictor (X) and the other as the response (Y). It assumes independent observations, but it makes no normality or linearity assumption because it depends only on the ordering of pairs. It is a reasonable choice for summarising how consistently an ordinal predictor orders an ordinal outcome. A positive value means that the predictor's ordering agrees with the response's ordering, and a negative value means that it disagrees; the magnitude is not directly comparable to Pearson's r. Do not use it when no variable has a predictive role, since the symmetric tau-b is then the more natural coefficient. It is also a weak choice when many pairs are tied, because ties enter the denominator and shrink the value, and when the relationship is expected to be non-monotone.

Limitations and considerations

  • Software support is narrower than for Kendall's tau-b, and some packages report only the symmetric coefficient by default, so the directional form may need to be computed separately.
  • Ties enter the denominator, so heavy ties shrink the value toward zero even when the ordering among the untied pairs is consistent.
  • Only monotone association is captured: a U-shaped pattern can produce a value near zero despite a strong non-monotone relationship.
  • The inference step is a large-sample normal approximation; with small samples or many ties, the z-based p-value may be unreliable.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Asymmetric by design: d_{Y|X} and d_{X|Y} differ whenever T_X and T_Y differ, so the analyst must state which variable is the predictor.
  • Uses only the ordering of pairs, so no normality or linearity assumption is needed and the value does not depend on the numerical spacing of category codes.
  • The numerator is the same C − D used by tau-b, so the two coefficients can be compared directly, and the formulas on this page show how they are related.
  • Bounded between −1 and +1, which gives a common scale for comparing directional association across analyses.

Applications

  • Measuring how strongly an ordinal predictor, such as a graded exposure or socioeconomic category, orders an ordinal outcome in survey research.
  • Assessing whether ordinal clinical severity grades are ordered consistently with a graded risk score or predictor.
  • Summarising the directional association between Likert-type items where one item is conceptually the antecedent of the other.
  • Comparing the ordering of ranked predictions with ordered observed outcomes in applied prediction studies.

How it works

How it works

1

For every pair of observations (i, j), a pair is concordant if both X and Y rank in the same direction, and discordant if they rank in opposite directions. C counts all concordant pairs across the sample; D counts all discordant pairs.

Formula
C = \#\{(i,j): (x_i - x_j)(y_i - y_j) > 0\}, \quad D = \#\{(i,j): (x_i - x_j)(y_i - y_j) < 0\}
2

Pairs tied on one variable but not the other are counted separately. T_X counts pairs tied on X with different values of Y, and T_Y counts pairs tied on Y with different values of X. Pairs tied on both variables are excluded from all counts.

Formula
T_X = \#\{(i,j): x_i = x_j,\; y_i \neq y_j\}, \quad T_Y = \#\{(i,j): y_i = y_j,\; x_i \neq x_j\}
3

The primary statistic d_{Y|X} is the difference C − D divided by a directional denominator, C + D plus the tie term defined in the formula on this page. The value is a ratio of net concordance to the pairs that this denominator counts, and it lies between −1 and +1.

Formula
d_{Y|X} = \frac{C - D}{C + D + T_X}
4

The reverse statistic d_{X|Y} uses a different tie term in its denominator, so it differs from d_{Y|X} whenever the two tie counts differ. The tau-b formula on this page combines both tie counts in a geometric mean, and tau-b therefore coincides with Somers' D only when the two tie counts are equal. The direction should be chosen to match the predictive question before the analysis is run.

Formula
d_{X|Y} = \frac{C - D}{C + D + T_Y}, \qquad \tau_b = \frac{C - D}{\sqrt{(C+D+T_X)(C+D+T_Y)}}
5

Under the null hypothesis that the population value of D is zero, the statistic divided by its standard error is treated as approximately standard normal for large samples, giving a z-statistic and a p-value. Confidence intervals for Somers' D are also available (Newson, 2006), and the interval should be reported alongside the point estimate and p-value. The standard error and interval method depend on the software, so the software documentation should be consulted for the exact computation.

Formula
z = \frac{d_{Y|X}}{\mathrm{SE}(d_{Y|X})} \sim \mathcal{N}(0,1) \text{ under } H_0: d_{Y|X} = 0

Common pitfalls

  • Reporting d_{Y|X} as if it were d_{X|Y}: the two use different tie counts and answer different questions, so the predictor must be stated.
  • Giving the point estimate without its standard error or p-value, which matters most in small samples where sampling variability is high.
  • Reading a value near zero as no relationship when ties are extensive; the tie counts should be reported alongside the coefficient.
  • Treating Somers' D as Kendall's tau-b: the two coincide only when T_X equals T_Y, because only then do the denominators match.

Frequently asked questions

How does Somers' D differ from Kendall's tau-b?

Kendall's tau-b is symmetric: its denominator combines the tie counts for both variables in a geometric mean, treating the two variables equivalently. Somers' D is asymmetric: each directional form uses a denominator built from a tie count that depends on the direction chosen. The two coincide only when the tie counts T_X and T_Y are equal.

Is Somers' D the same as the area under the ROC curve (AUC)?

This page does not establish a general identity between d_{Y|X} and AUC for a binary outcome, because such a relation depends on the tie convention used in the denominator. Do not report one as the other without checking the definition used by your software and the original source.

Which direction should I choose, d_{Y|X} or d_{X|Y}?

Choose the direction that matches your research question. If X is the independent variable and Y is the outcome you wish to predict, the d_{Y|X} form matches that question. Because the two directions answer different questions, the choice should be made before the analysis and stated when reporting.

How should I handle many tied values?

Ties add to the denominator and can shrink the coefficient toward zero, so heavy ties can understate the association. Report the tie counts for both variables with the coefficient. Goodman-Kruskal's gamma, which excludes all tied pairs from its denominator, is a commonly used alternative when ties dominate.

Related methods

Sources

  1. Somers, R. H. (1962). A new asymmetric measure of association for ordinal variables. American Sociological Review, 27(6), 799–811.

    Open DOI reference
  2. Agresti, A. (2010). Analysis of Ordinal Categorical Data (2nd ed.). Wiley.

    ISBN: 978-0470082898
  3. Harrell, F. E. (2001). Regression Modeling Strategies. Springer.

    ISBN: 978-0387952321
  4. 2015_Book_RegressionModelingStrategies, reference list entries 473–474 (Newson, 2006: Confidence intervals for rank statistics: Somers' D and extensions)