0.375
0.4286
—
0.375
0.4286
—
Somers' D is an asymmetric measure of ordinal association between two variables, extending Gamma by incorporating ties on the dependent variable. While Gamma ignores all ties, Somers' D penalizes for ties on the predicted (dependent) variable, making it a more conservative and often more realistic estimate of predictive association.
The asymmetric nature of Somers' D means the value depends on which variable is treated as the dependent variable. D(Y|X) measures how well X predicts Y, while D(X|Y) measures the reverse. This calculator computes D(Y|X), using ties on Y in the denominator, and provides Gamma for comparison to illustrate the effect of accounting for ties.
Somers' D for predicting Y from X is defined as:
$$d_{Y|X} = \frac{C - D}{C + D + T_Y}$$
Where:
Compared to Gamma (γ = (C−D)/(C+D)), Somers' D adds T_Y to the denominator. This means D is always smaller in magnitude than Gamma (or equal when there are no ties on Y). The relationship is:
$$d_{Y|X} = \gamma \cdot \frac{C + D}{C + D + T_Y}$$
This formula shows that Somers' D equals Gamma multiplied by the proportion of untied pairs among all non-X-tied pairs. When ties on Y are rare, D approximates Gamma; when ties on Y are common, D can be substantially smaller.
For the reverse direction:
$$d_{X|Y} = \frac{C - D}{C + D + T_X}$$
where T_X are pairs tied on X but not Y. The symmetric version averages both: d_sym = (d_{Y|X} + d_{X|Y}) / 2, which equals Kendall's Tau-b when there are no ties on both variables simultaneously.
Somers' D ranges from −1 to +1 and is interpreted as a measure of predictive association:
Because Somers' D accounts for ties on the dependent variable, it provides a more honest assessment of predictive power than Gamma, which can overstate association by ignoring ties. Comparing D to Gamma for the same data reveals how much the ties inflate the apparent association.
Inputs
Results
Income rank predicting satisfaction level: 200 concordant, 80 discordant, 40 tied on satisfaction. D = 0.375 vs γ = 0.429 — ties on Y reduce the apparent association.
Inputs
Results
Education predicting self-rated health: D = 0.50 vs γ = 0.667. The substantial number of ties on health rating (200) significantly attenuates D compared to Gamma.
Gamma ignores all tied pairs, while Somers' D includes pairs tied on the dependent variable in its denominator. This makes Somers' D more conservative — it will always be smaller in magnitude than Gamma (or equal when there are no ties on Y). Somers' D is preferred when you have a clear dependent variable and want to measure predictive association.
Somers' D is asymmetric because it treats ties on X and Y differently. D(Y|X) includes ties on Y in the denominator but not ties on X, reflecting the idea that ties on the outcome represent failures to differentiate. D(X|Y) does the reverse. This asymmetry is appropriate when there is a clear independent-dependent variable relationship.
Kendall's Tau-b is the geometric mean of D(Y|X) and D(X|Y): τ_b = √(d_{Y|X} × d_{X|Y}). Equivalently, Tau-b uses both T_X and T_Y in its denominator symmetrically. When T_X = T_Y, the symmetric Somers' D equals Tau-b.
Use Somers' D when: (1) you have a clear dependent variable you want to predict, (2) ties on the dependent variable are common, (3) you want a measure that penalizes inability to differentiate outcomes. It is widely used in logistic regression (where it equals 2 × AUC − 1) and survival analysis.
For binary outcomes, Somers' D = 2 × (c − 0.5) = 2 × AUC − 1, where c is the concordance index (c-statistic). This relationship makes Somers' D a natural measure of discriminative ability in predictive models. A D of 0.5 corresponds to an AUC of 0.75.
The number of ties depends on the number of distinct categories in your dependent variable. With few categories (e.g., a 5-point Likert scale), ties will be very common, and Somers' D will be substantially lower than Gamma. With many categories or continuous data with unique values, ties are rare and the two measures will be similar.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!
Random Number Generator
Advanced & Specialized Statistical Tools
Central Limit Theorem Calculator
Advanced & Specialized Statistical Tools
Empirical Rule Calculator
Advanced & Specialized Statistical Tools
Chebyshev's Theorem Calculator
Advanced & Specialized Statistical Tools
Monte Carlo Estimation Calculator
Advanced & Specialized Statistical Tools
Power Analysis Calculator
Advanced & Specialized Statistical Tools