Atlas
statminds
CorrelationThe underlying model family class (e.g. GLM, linear model, categorical matrix, log-linear).Parametric ReferenceStatistical methods that assume a specific probability distribution family (typically normal).12-stage workflow

Somers' D (Dyx)

Asymmetric ordinal association measure designating one variable as dependent (DV) and one as independent (IV); adjusts for ties on IV only..

Model familyCorrelation
Hypothesistwo-tailed
AliasesSomers' Delta · Asymmetric gamma · Dyx
G1
association
G2
description
G3
prediction
1

What is it?

Somers' D measures ordinal or nominal association strength, evaluating concordances or error reduction when predicting categories.

2

When to use it

  • Gamma / Somers' D: Ordinal scales where ties exist (ignores ties in Gamma, penalizes in Somers).
  • Lambda: Nominal tables measuring predictive error reduction (proportional reduction in error).
3

Core Idea

These ordinal tests check if ranks match or if categorical labels can predict outcome groupings:

DiscordantConcordant
4

Hypotheses

H₀: No ordinal/nominal association is present
Hₐ: Association is statistically significant
5

How it works

  1. Construct cross-tabulated ordinal categories.
  2. Evaluate concordant pair paths vs. discordant paths.
  3. Compute the specific ratio index (e.g. Gamma = (C-D)/(C+D)).
  4. Compute significance approximation.
6

Assumptions

🔢 Scale: Ordinal categories (Gamma/Somers) or nominal groupings (Lambda).
👤 Independence: Independent observations.
7

Important Note

💡 Ties Sensitivity: Gamma ignores ties, which can overestimate association strength in tables with high ties. Somers' D adjusts for ties on the dependent variable.

8

Quick Example

Likert ScaleAgreeNeutralDisagree
Male241512
Female182010
Interactive Sandbox

Somers' D Laboratory

Manipulate association strength to see how sample dots shift between cell categories.

Presets
Association Level0.45
Sample Size (N)80
Grid Dot Density (3x3 Matrix Space)Observe diagonal alignment shifts
Concordance Matrix
MetricValue
Concordant Pairs (C)1789
Discordant Pairs (D)88
Calculated Score0.8910
Significance approx. p0.0004
Statistical Verdict
✅ Reject H₀ (Significant)
Ordinal association is statistically significant (Score = 0.89, p = 0.0004).
01Hypothesis test logic

Hypotheses

Pragmatic null and alternative hypotheses defined in mathematical notation.

A hypothesis is a question sharpened to a point. Ambiguity is the enemy of inference.
Logic Core
Null · H₀

H₀: Dyx = 0 (no asymmetric association between IV and DV)

Alternative · Hₐ

Hₐ: Dyx ≠ 0 (asymmetric monotonic association exists)

Why it matters two-tailed

Tests asymmetric monotonic association where one variable is designated as dependent (DV). Unlike Kendall's tau-b (symmetric) or gamma (ignores all ties), Somers' D adjusts only for ties on the independent variable (IV). Can be one-tailed if direction predicted a priori. Dyx ≠ Dxy unless no ties exist.

02Model diagnostics

Assumptions

The core mathematical criteria needed to ensure that statistical testing remains unbiased and valid.

Build your analysis on rock, not sand. Verify the mathematical foundation before building the model.
Integrity Shield
6
Assumptions
4
Critical / High Severity
How to check
Quick
Verify both variables are ordinal (ordered categories: Likert scales, rankings, educational levels). Determine which is the dependent variable (outcome) and which is independent (predictor) based on research question. For example: education level (IV) → income category (DV)
Rigorous
Check that variable ordering is meaningful (e.g., low < medium < high). Confirm temporal/causal ordering: IV should precede or predict DV. Use theory and research design to justify IV→DV direction. If direction unclear, use symmetric gamma instead
If violated
If variables are nominal (unordered categories): use Goodman-Kruskal lambda for nominal asymmetric association. If both variables are interval/continuous: use regression or Pearson correlation. If no clear DV/IV distinction: use symmetric measures (Kendall's tau-b, Goodman-Kruskal gamma). If one variable nominal and other ordinal: use Kruskal-Wallis or eta coefficient
goodman kruskal lambdagoodman kruskal gammakendall tau bkruskal wallis
How to check
Quick
Create contingency table heatmap or mosaic plot. Look for consistent diagonal pattern (positive association) or anti-diagonal pattern (negative association). Check if relationship reverses direction at any point
Rigorous
Visual inspection of cross-tabulation with conditional distributions. Compute Somers' D and compare with gamma: if very different magnitudes, relationship may be non-monotonic or ties are highly influential. Plot cumulative proportions across IV categories to assess monotonicity
If violated
If relationship is non-monotonic (U-shaped, inverted-U): (1) Transform variables if possible; (2) Use polynomial ordinal regression models; (3) Split IV at inflection point and analyze separately; (4) Use local measures of association (stratified analysis). Somers' D assumes monotonic trends only - non-monotonic patterns will show weak D even with strong relationships
How to check
Quick
Review study design: each row should represent unique independent observation. Check for repeated measures (same subject multiple times), clustering (students within schools, patients within hospitals), or temporal dependencies (time series)
Rigorous
Verify study design ensures independence. Check for duplicate IDs. If clustered data, test intra-class correlation (ICC). If time series, check autocorrelation (ACF plots). If matched pairs, standard Somers' D may be inappropriate
If violated
If repeated measures: use multilevel ordinal models with random effects for subjects. If clustered data: use cluster-robust standard errors or multilevel models with random effects for clusters. If matched pairs: use McNemar's test (for binary) or marginal homogeneity tests (for ordinal). If time series: use ordinal time series models or GEE with working correlation structure
geemcnemar
How to check
Quick
Count frequency of tied values in IV and DV separately. Somers' Dyx formula: (C-D) / (C+D+Ty) where Ty = ties on DV only (not IV ties). Compare Dyx with Dxy: they differ because tie adjustments are asymmetric
Rigorous
Compute Dyx (DV=Y, IV=X) and Dxy (reversed): Dyx adjusts for DV ties; Dxy adjusts for IV ties. Compare with gamma (ignores all ties) and tau-b (adjusts for both). Relationship: (Dyx + Dxy) / 2 ≈ tau-b when ties symmetric
If violated
Somers' D is designed for asymmetric ties. If you want symmetric tie adjustment: use Kendall's tau-b. If you want to ignore all ties: use Goodman-Kruskal gamma. If extremely many ties on both variables (>50%): consider treating as nominal and using lambda or Cramér's V. If no clear DV/IV: use gamma or tau-b
kendall tau bgoodman kruskal gammagoodman kruskal lambda
How to check
Quick
Check n ≥ 30 for reliable inference. For ordinal variables with k categories, ensure adequate cell counts: at least 5 observations per cell in contingency table (or at minimum, no empty cells). Small samples (n < 20) produce unreliable p-values
Rigorous
Conduct power analysis: for Dyx = 0.3, α = .05, power = .80, need n ≈ 90-100. Check contingency table for sparse cells (expected counts < 5). Use exact permutation tests for small samples. Monte Carlo simulation for power under specific marginal distributions
If violated
If n < 30: use exact permutation tests for p-values instead of asymptotic approximation. Report effect size (Somers' D) with 95% CI regardless of significance. Consider collapsing ordinal categories to increase cell counts (but lose information). Use bootstrap confidence intervals for small samples. If many sparse cells, consider ordinal logistic regression which handles sparse data better
How to check
Quick
Use theory and research design to justify IV→DV direction. IV should temporally precede DV or be the predictor of interest. For example: education (IV) → income (DV) is correct; income (IV) → education (DV) would be reversed
Rigorous
Compare Dyx (IV=X, DV=Y) with Dxy (reversed). They will differ in magnitude due to asymmetric tie adjustment. Use substantive theory to determine correct direction. If bidirectional association suspected, report both Dyx and Dxy, or use symmetric gamma
If violated
If direction is theoretically unclear: use symmetric measures (Kendall's tau-b or Goodman-Kruskal gamma) which do not require DV/IV designation. If bidirectional association: report both Dyx and Dxy with clear labeling. If causal direction is wrong, results are misleading - re-specify based on theory. Never swap IV/DV arbitrarily to get 'better' results
goodman kruskal gammakendall tau b
03Residual Forensics

Diagnostics

Checking residual plots and indices to examine model deviations and ensure standard error integrity.

Trust, but verify. The outliers often hold more truth than the averages.
System Health
Essential checks
  1. Cross-tabulation (contingency table) with DV as rows, IV as columns
  2. Check for monotonic pattern in table (diagonal or anti-diagonal trend)
  3. Examine 95% confidence interval for Dyx
  4. Compare Dyx with gamma and tau-b to understand tie influence
  5. Verify sample size and check for sparse cells (expected counts < 5)
Recommended checks
  1. Heatmap or mosaic plot of contingency table to visualize association
  2. Compute both Dyx and Dxy to verify asymmetry
  3. Calculate concordant and discordant pair proportions
  4. Compare with ordinal logistic regression for consistency
  5. Sensitivity analysis: check robustness to category collapsing
  6. Report proportional reduction in error (PRE) interpretation
04Live Instances

Applied Minds

Review concrete study examples, data layout guidelines, and copy executable syntax scripts.

Theory is the map. Practice is the terrain. Simulation bridges the gap.
Applied Wisdom
Example 01

Education Level (IV) → Income Category (DV) - Asymmetric Ordinal Association

Research question: Does educational attainment predict income category in a sample of working adults? Design: Survey of 200 adults measuring education level (5 ordered categories: <HS, HS, Some College, Bachelor's, Graduate) and annual income category (4 ordered categories: <$30k, $30-50k, $50-75k, >$75k). Hypothesis: Higher education level associated with higher income category (IV→DV direction specified).

DesignCross-sectional survey with clear IV→DV direction
# Somers' D: Education Level (IV) → Income Category (DV)
# Asymmetric ordinal association with clear predictor-outcome direction

library(tidyverse)
library(DescTools)   # For SomersDelta
library(vcd)         # For mosaic plots
library(psych)       # For polychoric correlation

set.seed(2025)
n <- 200

# Simulate education levels (IV: 1-5)
# Distribution: roughly normal, centered at 3 (Some College)
education <- sample(1:5, n, replace = TRUE, 
                    prob = c(0.15, 0.25, 0.30, 0.20, 0.10))

# Simulate income categories (DV: 1-4) strongly predicted by education
# Higher education → higher income (monotonic relationship)
latent_income <- 0.8 * education + rnorm(n, 0, 0.9)
income <- cut(latent_income, 
              breaks = c(-Inf, 1.5, 2.5, 3.5, Inf),
              labels = 1:4)
income_numeric <- as.numeric(income)

data <- data.frame(
  id = 1:n,
  education = factor(education, levels = 1:5,
                     labels = c("<HS", "HS", "Some College", "Bachelor's", "Graduate")),
  education_num = education,
  income = factor(income_numeric, levels = 1:4,
                  labels = c("<$30k", "$30-50k", "$50-75k", ">$75k")),
  income_num = income_numeric
)

head(data, 10)

# === STEP 1: Descriptive Statistics ===

cat("=== FREQUENCY DISTRIBUTIONS ===\n")
cat("\nEducation(IV):\n")
table(data$education)
cat("\nIncome(DV):\n")
table(data$income)

# === STEP 2: Cross-Tabulation (DV as rows, IV as columns) ===

cat("\n=== CONTINGENCY TABLE(Rows=DV, Columns=IV) ===\n")
contab <- table(data$income, data$education)
print(contab)

cat("\n=== ROW PERCENTAGES(% within each income level) ===\n")
print(round(prop.table(contab, margin = 1) * 100, 1))

cat("\n=== COLUMN PERCENTAGES(% within each education level) ===\n")
print(round(prop.table(contab, margin = 2) * 100, 1))

# Visualize with heatmap
library(pheatmap)
pheatmap(contab, 
         cluster_rows = FALSE, 
         cluster_cols = FALSE,
         display_numbers = TRUE,
         main = "Income × Education Contingency Table(Frequencies)",
         xlab = "Education(IV)",
         ylab = "Income(DV)")

# Mosaic plot (area proportional to frequency)
mosaic(~ income + education, data = data,
       shade = TRUE, legend = TRUE,
       main = "Mosaic Plot: Income(DV) × Education(IV)")

# === STEP 3: Compute Somers' D (Dyx: DV=income, IV=education) ===

cat("\n=== SOMERS' D COMPUTATION ===\n")

# Somers' Dyx: DV=income (Y), IV=education (X)
# Adjusts for ties on DV (income) only
somers_dyx <- SomersDelta(data$education_num, data$income_num, 
                          conf.level = 0.95)

cat("Somers' Dyx(DV=income, IV=education):\n")
cat(sprintf("  Dyx = %.3f\n", somers_dyx[1]))
cat(sprintf("  95%% CI: [%.3f, %.3f]\n", somers_dyx[2], somers_dyx[3]))

# Reverse: Somers' Dxy (DV=education, IV=income)
somers_dxy <- SomersDelta(data$income_num, data$education_num,
                          conf.level = 0.95)

cat("\nSomers' Dxy(DV=education, IV=income - reversed):\n")
cat(sprintf("  Dxy = %.3f\n", somers_dxy[1]))
cat(sprintf("  95%% CI: [%.3f, %.3f]\n", somers_dxy[2], somers_dxy[3]))

cat("\nNote: Dyx ≠ Dxy because tie adjustments are asymmetric.\n")
cat("Use Dyx when income is the dependent variable(outcome).\n")

# === STEP 4: Compare with Related Measures ===

cat("\n=== COMPARISON WITH SYMMETRIC MEASURES ===\n")

# Kendall's tau-b (symmetric, adjusts for ties on both variables)
tau_b <- cor(data$education_num, data$income_num, method = "kendall")
cat(sprintf("Kendall's tau-b(symmetric): %.3f\n", tau_b))

# Goodman-Kruskal gamma (symmetric, ignores all ties)
library(DescTools)
gamma_val <- GoodmanKruskalGamma(data$education_num, data$income_num,
                                 conf.level = 0.95)
cat(sprintf("Goodman-Kruskal gamma: %.3f [%.3f, %.3f]\n",
            gamma_val[1], gamma_val[2], gamma_val[3]))

cat("\nRelationships:\n")
cat("  - Gamma ignores all ties → typically largest magnitude\n")
cat("  - Tau-b adjusts for ties on both variables → smallest magnitude\n")
cat("  - Somers' Dyx adjusts for DV ties only → intermediate\n")
cat(sprintf("  - Average of Dyx and Dxy ≈ tau-b: (%.3f + %.3f) / 2 = %.3f ≈ %.3f\n",
            somers_dyx[1], somers_dxy[1], 
            (somers_dyx[1] + somers_dxy[1]) / 2, tau_b))

# === STEP 5: Statistical Significance Testing ===

cat("\n=== HYPOTHESIS TEST ===\n")

# Use asymptotic z-test for Somers' D
# Standard error approximation (for large samples)
n_pairs <- n * (n - 1) / 2

# Calculate concordant and discordant pairs manually
concordant <- sum(outer(data$education_num, data$education_num, "<") & 
                  outer(data$income_num, data$income_num, "<")) +
              sum(outer(data$education_num, data$education_num, ">") & 
                  outer(data$income_num, data$income_num, ">"))

discordant <- sum(outer(data$education_num, data$education_num, "<") & 
                  outer(data$income_num, data$income_num, ">")) +
              sum(outer(data$education_num, data$education_num, ">") & 
                  outer(data$income_num, data$income_num, "<"))

cat(sprintf("Total pairs: %.0f\n", n_pairs))
cat(sprintf("Concordant pairs: %d(%.1f%%)\n", 
            concordant, 100 * concordant / n_pairs))
cat(sprintf("Discordant pairs: %d(%.1f%%)\n", 
            discordant, 100 * discordant / n_pairs))
cat(sprintf("Tied pairs: %d(%.1f%%)\n",
            n_pairs - concordant - discordant,
            100 * (n_pairs - concordant - discordant) / n_pairs))

# Asymptotic test (large sample approximation)
# Note: Exact SE calculation complex; using bootstrap or DescTools CI
ci_width <- somers_dyx[3] - somers_dyx[2]
se_approx <- ci_width / (2 * 1.96)
z_stat <- somers_dyx[1] / se_approx
p_value <- 2 * pnorm(-abs(z_stat))

cat(sprintf("\nAsymptotic z-test:\n"))
cat(sprintf("  z = %.2f\n", z_stat))
cat(sprintf("  p-value = %.4f\n", p_value))

if (p_value < 0.001) {
  cat("  Result: Highly significant(p < .001)\n")
} else if (p_value < 0.05) {
  cat("  Result: Significant(p < .05)\n")
} else {
  cat("  Result: Not significant(p ≥ .05)\n")
}

# === STEP 6: Effect Size Interpretation ===

cat("\n=== EFFECT SIZE INTERPRETATION ===\n")
cat("Somers' D magnitude guidelines(similar to tau):\n")
cat("  |D| < 0.1: negligible\n")
cat("  0.1 ≤ |D| < 0.3: small\n")
cat("  0.3 ≤ |D| < 0.5: moderate\n")
cat("  |D| ≥ 0.5: large\n\n")

D_val <- abs(somers_dyx[1])
if (D_val < 0.1) {
  strength <- "negligible"
} else if (D_val < 0.3) {
  strength <- "small"
} else if (D_val < 0.5) {
  strength <- "moderate"
} else {
  strength <- "large"
}

cat(sprintf("Observed Dyx = %.3f: %s effect size\n", somers_dyx[1], strength))

# PRE (Proportional Reduction in Error) interpretation
cat("\nPRE Interpretation:\n")
cat(sprintf("Knowing education(IV) reduces error in predicting income(DV) by %.1f%%\n",
            abs(somers_dyx[1]) * 100))

# === STEP 7: Ordinal Regression Comparison ===

cat("\n=== ORDINAL LOGISTIC REGRESSION(Proportional Odds Model) ===\n")

library(MASS)
model <- polr(income ~ education, data = data, Hess = TRUE)
summary(model)

cat("\nNote: Ordinal regression provides coefficient estimates and tests\n")
cat("whether education significantly predicts income, controlling for\n")
cat("proportional odds assumption. Consistent with Somers' D results.\n")

# === STEP 8: Visualization of Association ===

cat("\n=== VISUALIZATIONS ===\n")

# Stacked bar chart showing income distribution by education
ggplot(data, aes(x = education, fill = income)) +
  geom_bar(position = "fill") +
  scale_y_continuous(labels = scales::percent) +
  labs(title = "Income Distribution by Education Level",
       subtitle = "Clear monotonic trend: Higher education → Higher income",
       x = "Education Level(IV)",
       y = "Proportion",
       fill = "Income(DV)") +
  theme_classic() +
  theme(axis.text.x = element_text(angle = 45, hjust = 1))

# Cumulative proportion plot to visualize monotonicity
cumulative_props <- data %>%
  group_by(education_num, income_num) %>%
  summarise(n = n(), .groups = "drop") %>%
  group_by(education_num) %>%
  mutate(prop = n / sum(n),
         cum_prop = cumsum(prop))

ggplot(cumulative_props, aes(x = education_num, y = cum_prop, 
                             color = factor(income_num))) +
  geom_line(linewidth = 1.2) +
  geom_point(size = 3) +
  labs(title = "Cumulative Income Proportions by Education",
       subtitle = "Monotonic pattern confirms positive association",
       x = "Education Level(1=<HS to 5=Graduate)",
       y = "Cumulative Proportion",
       color = "Income") +
  theme_classic()

# === APA-STYLE REPORTING ===

cat("\n=== APA-STYLE REPORT ===\n")
cat(sprintf(
"Somers' D was computed to assess the asymmetric ordinal association between 
education level(independent variable: 5 ordered categories from <HS to Graduate 
degree) and income category(dependent variable: 4 ordered categories from <$30k 
to >$75k) in a sample of 200 working adults. Somers' D designates income as the 
dependent variable and adjusts for ties on the dependent variable only, making it 
appropriate when a clear predictor-outcome relationship is hypothesized.

A strong positive monotonic association was found, Dyx = %.2f, 95%% CI [%.2f, %.2f], 
z = %.2f, p < .001, indicating that higher education levels were strongly associated 
with higher income categories. The effect size was %s according to standard 
interpretation guidelines. Using the proportional reduction in error(PRE) 
interpretation, knowledge of education level reduced prediction error for income 
category by approximately %.0f%%.

The analysis revealed that %.0f%% of observation pairs were concordant(both 
education and income ranked in same direction), %.0f%% were discordant, and %.0f%% 
involved ties. Somers' Dyx(%.2f) was slightly larger than Kendall's tau-b(%.2f) 
but smaller than Goodman-Kruskal gamma(%.2f), reflecting the asymmetric 
adjustment for ties on the dependent variable only. Results were consistent with 
ordinal logistic regression analysis, supporting the conclusion that educational 
attainment is a strong predictor of income category, consistent with U.S. Census 
data patterns(U.S. Census Bureau, 2020).\n",
somers_dyx[1], somers_dyx[2], somers_dyx[3], z_stat, strength,
abs(somers_dyx[1]) * 100,
100 * concordant / n_pairs,
100 * discordant / n_pairs,
100 * (n_pairs - concordant - discordant) / n_pairs,
somers_dyx[1], tau_b, gamma_val[1]
))
Interpretation Blueprint

Dyx = 0.48, 95% CI [0.39, 0.57], p < .001 (moderate-to-large effect). Education level (IV) strongly predicts income category (DV): knowing education reduces prediction error by 48%. 72% of pairs were concordant (higher education paired with higher income). Somers' D is asymmetric: Dyx (0.48) ≠ Dxy (0.44) due to differential tie adjustment. Results consistent with U.S. Census patterns showing strong education-income association.

05Tactical Pivots

Alternatives

Structured fallback pathways for choosing alternative tests when normality or slopes requirements fail.

When the path is blocked, pivot. Rigor is not rigidity; it is the intelligent adaptation to reality.
Adaptive Strategy
Measurement Precision Ladder Ideal · Ordinal / Ranked
Ratio
Consider Linear Regression if you have a designated Outcome and your data is continuous.
Data Flattening
Interval
Ideal for Predicting Ranked Outcomes. Protects against bias from non-normal score spreads.
Standard Robustness
Ordinal
Maintain Somers' D logic. The definitive engine for asymmetric rank-order prediction.
Peak Signal
Nominal
Abandon D. Use Goodman-Kruskal Lambda to model the reduction in nominal error.
Model Collapse
Temporal Trajectory Audit Static Asymmetric Audit
Static Prediction
Single point audit.
Stay with Somers' D. Isolate the directional influence of X on Y.
Repeated Ranks
Trajectory changes.
Pivot to Ordinal GEE or Multilevel Ordinal Regression to account for longitudinal clustering.
Adaptive Technical Safeguards · adaptive safeguards
no designated outcome
  • Kendall's Tau-B — Use the symmetric audit if both variables are considered equal predictors.
  • Goodman-Kruskal Gamma — Ignores ties entirely to find the 'Agreement Rate'.
non monotonic pattern
  • Ordinal Logistic Regression — Explicitly model the threshold intercepts if the effect is non-linear.
  • Chi-Square Independence — If the pattern is 'U-shaped', treat categories as unordered.
06Adjusted Comparisons

Post-hoc

Group mean comparisons and correction controls (e.g. Tukey HSD, Bonferroni) to protect against Family-Wise Error Rates.

The omnibus test opens the door; post-hoc analysis explores the room.
Forensic Detail
Adjusted Comparisons

Post-hoc pairwise tests defined for this model.

Interpretation Guidelines

Somers' D is the 'Directional Tau'. Always prioritize the asymmetric audit if you have a clear 'Outcome' variable—Tau can mask the strength of a one-way influence.

07Standardized scale impact

Effect Size

Understanding effect sizes (e.g., Cohen's d, Partial Eta-Squared) and clinical impact benchmarks.

Significance is noise. Magnitude is the signal. Measure the impact, not just the probability.
Impact Magnitude

|D| < 0.1: negligible; 0.1-0.3: small; 0.3-0.5: moderate; ≥0.5: large (similar to Kendall's tau)

|Dyx| represents proportional reduction in prediction error for DV when IV is known. E.g., Dyx = 0.40 means knowing IV reduces DV prediction error by 40%

Dyx ≠ Dxy due to asymmetric tie adjustment. Use Dyx when Y is clearly the dependent variable. Compare both to understand directionality

Typically: |gamma| > |Dyx| > |tau-b| (gamma ignores all ties, tau-b adjusts for both, Somers' D adjusts for one)

Recommended Metric: Somers' Dyx with 95% CI (specify which variable is DV)
Small
0.2
Medium
0.5
Large
0.8
0.50
Somers' Dyx with 95% CI (specify which variable is DV)
Recommended Measure
3
Available Metrics
ReportUse Somers' Dyx with 95% CI (specify which variable is DV) to represent clinical impact magnitude.
08Statistical Power

Sample Size

Guidelines for minimum sample requirements and power analysis parameters.

An underpowered study is an ethical failure. Respect the data by collecting enough of it.
Power Protocol
Floor Requirements

The 'Directional Precision' Minimum: A minimum of 60 participants is essential. Somers' D audits the 'Asymmetric Advantage'—if the direction of influence is reversed, the model loses authority in small samples.

Effect SizeParametersRequired n
Small EffectD = .10 (Small)n ≈ 800 total
Medium EffectD = .30 (Medium)n ≈ 120 total
Large EffectD = .50 (Large)n ≈ 45 total
Key considerations

The 'Outcome Pivot': Unlike Tau, Somers' D changes value if you swap the X and Y variables. Always designate the 'Outcome' variable correctly to ensure the magnitude calculation targets your specific clinical question.

G*Power StrategyBenchmark: Asymmetric Ordinal Association. Parameters: Expected D, Predicator-Outcome direction, α = .05, Power = .80. Note: Somers' D is 25% more powerful than Tau-B for detecting directional influences.
09APA narrative blueprint

Reporting

How to compile statistical results into publication prose matching APA and journal style guides.

Data does not speak for itself. It requires a translator. Be clear, be precise, be honest.
Narrative Arc
Worked APA paragraph example
Somers' D was computed to assess the asymmetric ordinal association between education level (independent variable: 5 ordered categories from <HS to Graduate degree) and income category (dependent variable: 4 ordered categories from <$30k to >$75k) in 200 working adults. Somers' D designates income as the dependent variable and adjusts for ties on the dependent variable only, making it appropriate when a clear predictor-outcome relationship exists. A strong positive monotonic association was found, Dyx = 0.48, 95% CI [0.39, 0.57], z = 8.25, p < .001, indicating that higher education levels were strongly associated with higher income categories. The effect size was moderate-to-large according to standard interpretation guidelines. Using the proportional reduction in error (PRE) interpretation, knowledge of education level reduced prediction error for income category by approximately 48%. The analysis revealed that 72% of observation pairs were concordant, 18% were discordant, and 10% involved ties on the dependent variable. Somers' Dyx (0.48) was slightly larger than Kendall's tau-b (0.44) but smaller than Goodman-Kruskal gamma (0.60), reflecting the asymmetric adjustment for ties. These findings are consistent with U.S. Census data showing education as a strong predictor of income (U.S. Census Bureau, 2020).
Reusable template

Somers' D was computed to assess the asymmetric ordinal association between IV name (independent variable: k ordered categories) and DV name (dependent variable: j ordered categories) in sample description. Somers' D designates DV name as the dependent variable and adjusts for ties on the dependent variable only. If assumptions checked: Both variables were ordinal with clear monotonic relationship, justifying Somers' D. There was a significant/non-significant positive/negative association, Dyx = value, 95% CI [lower, upper], z = z-value, p = or < p-value, indicating that substantive interpretation. The effect size was small/moderate/large according to standard guidelines. Using the proportional reduction in error (PRE) interpretation, knowledge of IV name reduced prediction error for DV name by approximately |D|×100%. Optional: Comparison with gamma/tau-b. These findings connect to theory/prior research.

Essential statistics to report
  • Somers' Dyx value (specify which variable is DV)
  • 95% confidence interval
  • z-statistic or test statistic
  • p-value
  • Sample size and contingency table dimensions
  • Proportion of concordant and discordant pairs
  • PRE interpretation (% error reduction)
10Exhibit Builder

Manuscript Lab

Copy standard summary tables and forensic reporting grids to outline analysis details.

Table 1: Somers' D for Asymmetric Ordinal Prediction
RelationshipSomers' D (xy)ASE (Error)p-value
Compliance → Severity.45.065< .001
Severity → Compliance.32.072< .001
Note. Outcome: Clinical Severity (1-4). Predictor: Patient Compliance (Low-High).
D = .45Indicates a moderate directional effect. Higher compliance is a reliable predictor of lower clinical severity.
Header glossary

The Directional Link. Measures how well the Predictor (x) ranks the Outcome (y), corrected for ties.

Recognizes that the link strength might change depending on which variable is treated as the 'cause'.

11Algorithmic Logic

Command Center

Syntax libraries and function parameters for executing calculations in stats packages.

Code is the modern laboratory. Clean execution ensures reproducible discovery.
Execution Engine
# 1. Execute Somers' D
Hmisc::somers2(df$predictor, df$outcome)

# 2. Detailed Directional Audit
DescTools::SomersDelta(df$x, df$y, direction = 'row')
Library stack
R
HmiscDescTools
Python
scipy
Elite Forensic Strike

Use Somers' D for ROC curve analysis. D_xy is related to the Area Under the Curve (AUC) by: D_xy = 2(AUC - 0.5).

# Logistic Model Predictive Power (Dxy)
rms::lrm(y ~ x, data=df)
12The Over-adjustment Trap

Common Mistakes

Analytical caveats and corrections to maintain modeling integrity.

Wisdom is learning from the failures of others. Anticipate the error before it occurs.
Defensive Logic
Why it's wrong
Somers' D is asymmetric - it designates one variable as dependent (DV) and adjusts only for ties on the DV. Kendall's tau-b is symmetric and adjusts for ties on both variables. Gamma is symmetric and ignores all ties. Using the wrong measure leads to misinterpretation of the asymmetric relationship and incorrect PRE interpretation
The correction
Use Somers' Dyx when you have a clear dependent variable (outcome) and independent variable (predictor), and the research question is about prediction. Specify which variable is DV when reporting. If no clear DV/IV distinction: use symmetric gamma or tau-b. Compare Dyx, Dxy, tau-b, and gamma to understand tie structure
Why it's wrong
Somers' Dyx ≠ Dxy because tie adjustments are asymmetric. Reporting 'Somers' D = 0.45' without specifying which variable is DV is ambiguous and prevents proper interpretation. The PRE interpretation (% error reduction) depends on which variable is DV
The correction
ALWAYS explicitly state which variable is the dependent variable when reporting Somers' D. Write 'Dyx (DV=income, IV=education) = 0.45' or 'Somers' D with income as dependent variable = 0.45'. In tables and figures, clearly label DV and IV. If direction uncertain, report both Dyx and Dxy
Why it's wrong
Somers' D requires theoretical or temporal justification for designating one variable as dependent and the other as independent. Using Somers' D for symmetric relationships (e.g., two personality traits measured simultaneously) is inappropriate and creates artificial asymmetry
The correction
Only use Somers' D when: (1) Clear temporal ordering (IV measured before DV); (2) Theoretical causal relationship (education → income); (3) Prediction goal (predict DV from IV). If relationship is symmetric or exploratory: use Kendall's tau-b or Goodman-Kruskal gamma instead
Why it's wrong
Somers' D values are systematically smaller than Pearson r for same association strength (similar to tau-b). Using Pearson benchmarks (small=.10, medium=.30, large=.50) underestimates Somers' D effect sizes. A Dyx of 0.30 is actually a moderate effect, not small
The correction
Use Somers' D-specific or tau-specific benchmarks: negligible <0.1, small 0.1-0.3, moderate 0.3-0.5, large >0.5. Compare with gamma and tau-b from same data for context. Focus on PRE interpretation: Dyx = 0.30 means IV reduces DV prediction error by 30%, which is substantial
Why it's wrong
Somers' D assumes monotonic relationship (IV consistently increases or decreases with DV). Non-monotonic patterns (U-shaped, inverted-U) will show weak D even if strong non-linear relationship exists. This leads to underestimation of association strength
The correction
ALWAYS create contingency table heatmap or mosaic plot before computing Somers' D. Look for consistent diagonal (positive) or anti-diagonal (negative) pattern. If relationship is non-monotonic: (1) Transform variables; (2) Use ordinal logistic regression with polynomial terms; (3) Stratify analysis at inflection point; (4) Use chi-square test for any association
Why it's wrong
Somers' D computation relies on concordant/discordant pair counts. Sparse cells (expected counts < 5) or empty cells reduce statistical power and make asymptotic p-values unreliable. Small cell counts inflate sampling variability and produce unstable estimates
The correction
Check contingency table for sparse cells. If many cells have counts < 5: (1) Collapse adjacent ordinal categories if theoretically justified (e.g., combine 'poor' and 'fair'); (2) Use exact permutation tests for p-values; (3) Consider ordinal logistic regression which handles sparse data better; (4) Increase sample size. Report cell counts in contingency table
Why it's wrong
Somers' D magnitude depends on tie structure in the data. Two studies with identical true associations can have different Dyx values if tie patterns differ. Studies with many ties on DV will have smaller |Dyx| than studies with few ties, even with same underlying relationship strength
The correction
When comparing Somers' D across studies, report: (1) Contingency table dimensions; (2) % of pairs that are concordant, discordant, and tied; (3) Compare with gamma (tie-free) to isolate tie effect. Use meta-analytic methods that account for different tie structures. Report both Dyx and gamma for cross-study comparison
13Academic Lineage

References

Scholarly lineage and citation keys grounding the statistical framework.

We stand on the shoulders of giants. Honor the source of the method.
Academic Lineage
[1]
Somers, R. H. (1962). A new asymmetric measure of association for ordinal variables. American Sociological Review, 27(6), 799-811.
Original paper introducing Somers' D as an asymmetric extension of gamma. Foundational reference for understanding asymmetric ordinal association and tie adjustment.
doi: 10.2307/2090408
[2]
Newson, R. B. (2002). Parameters behind nonparametric statistics: Kendall's tau, Somers' D and median differences. The Stata Journal, 2(1), 45-64.
Excellent tutorial clarifying relationships among tau, Somers' D, and gamma. Essential for understanding when to use each measure and how they differ.
doi: 10.1177/1536867X0200200103
[3]
Agresti, A. (2010). Analysis of Ordinal Categorical Data (2nd ed.). Wiley.
Comprehensive textbook covering ordinal association measures including Somers' D. Chapter 8 discusses asymmetric measures and their interpretation.
[4]
Goodman, L. A., & Kruskal, W. H. (1954). Measures of association for cross classifications. Journal of the American Statistical Association, 49(268), 732-764.
Classic paper on measures of association for categorical data, including PRE interpretation framework that applies to Somers' D.
doi: 10.2307/2281536
[5]
U.S. Census Bureau (2020). Educational Attainment and Synthetic Work-Life Earnings Estimates. American Community Survey.
Provides real-world basis for education-income association examples. Shows consistent moderate-to-strong positive associations.
statminds · Somers'Mind reference · v2.2 · updated 2026-01-1715 of 15 sections