Somers' D Explained

In statistics, Somers’ D, sometimes incorrectly referred to as Somer’s D, is a measure of ordinal association between two possibly dependent random variables and . Somers’ D takes values between

-1

when all pairs of the variables disagree and

1

when all pairs of the variables agree. Somers’ D is named after Robert H. Somers, who proposed it in 1962.[1]

Somers’ D plays a central role in rank statistics and is the parameter behind many nonparametric methods.[2] It is also used as a quality measure of binary choice or ordinal regression (e.g., logistic regressions) and credit scoring models.

Somers’ D for sample

We say that two pairs

(xi,yi)

and

(xj,yj)

are concordant if the ranks of both elements agree, or

xi>xj

and

yi>yj

or if

xi<xj

and

yi<yj

. We say that two pairs

(xi,yi)

and

(xj,yj)

are discordant, if the ranks of both elements disagree, or if

xi>xj

and

yi<yj

or if

xi<xj

and

yi>yj

. If

xi=xj

or

yi=yj

, the pair is neither concordant nor discordant.

Let

(x1,y1),(x2,y2),\ldots,(xn,yn)

be a set of observations of two possibly dependent random vectors and . Define Kendall tau rank correlation coefficient

\tau

as
\tau=NC-ND
n(n-1)/2

,

where

NC

is the number of concordant pairs and

ND

is the number of discordant pairs. Somers’ D of with respect to is defined as

DYX=\tau(X,Y)/\tau(X,X)

. Note that Kendall's tau is symmetric in and, whereas Somers’ D is asymmetric in and .

As

\tau(X,X)

quantifies the number of pairs with unequal values, Somers’ D is the difference between the number of concordant and discordant pairs, divided by the number of pairs with values in the pair being unequal.

Somers’ D for distribution

Let two independent bivariate random variables

(X1,Y1)

and

(X2,Y2)

have the same probability distribution

\operatorname{P}XY

. Again, Somers’ D, which measures ordinal association of random variables and in

\operatorname{P}XY

, can be defined through Kendall's tau

\begin{align} \tau(X,Y)&=\operatorname{E}l(sgn(X1-X2)sgn(Y1-Y2)r)\\ &=\operatorname{P}l(sgn(X1-X2)sgn(Y1-Y2)=1r)-\operatorname{P}l(sgn(X1-X2)sgn(Y1-Y2)=-1r),\\ \end{align}

or the difference between the probabilities of concordance and discordance. Somers’ D of with respect to is defined as

DYX=\tau(X,Y)/\tau(X,X)

. Thus,

DYX

is the difference between the two corresponding probabilities, conditional on the values not being equal.If has a continuous probability distribution, then

\tau(X,X)=1

and Kendall's tau and Somers’ D coincide. Somers’ D normalizes Kendall's tau for possible mass points of variable .

If and are both binary with values 0 and 1, then Somers’ D is the difference between two probabilities:

DYX=\operatorname{P}(Y=1\midX=1)-\operatorname{P}(Y=1\midX=0).

Somers' D for binary dependent variables

In practice, Somers' D is most often used when the dependent variable Y is a binary variable,[2] i.e. for binary classification or prediction of binary outcomes including binary choice models in econometrics. Methods for fitting such models include logistic and probit regression.

Several statistics can be used to quantify the quality of such models: area under the receiver operating characteristic (ROC) curve, Goodman and Kruskal's gamma, Kendall's tau (Tau-a), Somers’ D, etc. Somers’ D is probably the most widely used of the available ordinal association statistics.[3] Identical to the Gini coefficient, Somers’ D is related to the area under the receiver operating characteristic curve (AUC),[2]

AUC=DXY+1
2
.

In the case where the independent (predictor) variable is and the dependent (outcome) variable is binary, Somers’ D equals

DXY=

NC-ND
NC+ND+NT

,

where

NT

is the number of neither concordant nor discordant pairs that are tied on variable and not on variable .

Example

Suppose that the independent (predictor) variable takes three values,,, or, and dependent (outcome) variable takes two values, or . The table below contains observed combinations of and :

The number of concordant pairs equals

NC=3 x 7+3 x 6+5 x 6=69.

The number of discordant pairs equals

ND=1 x 5+1 x 2+7 x 2=21.

The number of pairs tied is equal to the total number of pairs minus the concordant and discordant pairs

NT=(3+5+2) x (1+7+6)-69-21=50

Thus, Somers’ D equals

DXY=

69-21
69+21+50

0.34.

Notes and References

  1. Somers. R. H.. A new asymmetric measure of association for ordinal variables. American Sociological Review. 1962. 27. 6. 2090408. 10.2307/2090408 .
  2. Newson. Roger. Parameters behind "nonparametric" statistics: Kendall's tau, Somers' D and median differences. Stata Journal. 2002. 2. 1. 45 - 64.
  3. Book: O'Connell . A. A.. 2006. Logistic Regression Models for Ordinal Response Variables. SAGE Publications.