Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Statistics
  3. /Advanced & Specialized Statistical Tools
  4. /Somers' D Calculator

Somers' D Calculator

Calculator

Results

Somers' D (d_YX)

0.375

Gamma (γ) for comparison

0.4286

Interpretation

—

Results

Somers' D (d_YX)

0.375

Gamma (γ) for comparison

0.4286

Interpretation

—

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.

Visual Analysis

How It Works

Somers' D for predicting Y from X is defined as:

$$d_{Y|X} = \frac{C - D}{C + D + T_Y}$$

Where:

  • C — number of concordant pairs (both variables move in the same direction)
  • D — number of discordant pairs (variables move in opposite directions)
  • T_Y — number of pairs tied on the dependent variable Y but not on X

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.

Understanding Your Results

Somers' D ranges from −1 to +1 and is interpreted as a measure of predictive association:

  • |D| < 0.10: Negligible association
  • 0.10–0.30: Weak predictive association
  • 0.30–0.50: Moderate predictive association
  • 0.50–0.70: Strong predictive association
  • |D| > 0.70: Very strong 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.

Worked Examples

Income Predicting Satisfaction

Inputs

concordant200
discordant80
tied y40

Results

somers d0.375
gamma0.4286
interpretationModerate association

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.

Education Predicting Health Rank

Inputs

concordant500
discordant100
tied y200

Results

somers d0.5
gamma0.6667
interpretationStrong association

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.

Frequently Asked Questions

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.

Sources & Methodology

Somers, R. H. (1962). A new asymmetric measure of association for ordinal variables. American Sociological Review, 27(6), 799–811. Newson, R. (2002). Parameters behind 'nonparametric' statistics: Kendall's tau, Somers' D and median differences. The Stata Journal, 2(1), 45–64.
R

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!

Related Calculators

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