2.4 C
London
Friday, December 20, 2024
HomeStatistics TutorialStatologyWhat is Somers’ D? (Definition & Example)

What is Somers’ D? (Definition & Example)

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

Somers’ D, short for Somers’ Delta, is a measure of the strength and direction of the association between an ordinal dependent variable and an ordinal independent variable.

An ordinal variable is one in which the values have a natural order (e.g. “bad”, “neutral”, “good”).

The value for Somers’ D ranges between -1 and 1 where:

  • -1: Indicates that all pairs of the variables disagree
  • 1: Indicates that all pairs of the variables agree

Somers’ D is used in practice for many nonparametric statistical methods.

Somers’ D: Definition

Given two variables, X and Y, we can say :

  • Two pairs (xi, yi) and (xj, yj) are concordant if the ranks of both elements agree.
  • Two pairs (xi, yi) and (xj, yj) are discordant if the ranks of both elements agree.

We can then calculate Somers’ D using the following formula:

Somers’ D = (NC – ND) / (NC + ND + NT)

where:

  • NC: The number of concordant pairs
  • ND: The number of discordant pairs
  • NT: The number of tied pairs

The resulting value will always be between -1 and 1.

Somers’ D: Example in R

Suppose a grocery store would like to assess the relationship between the following two ordinal variables:

  • The overall niceness of the cashier (ranked from 1 to 3)
  • The overall satisfaction of the customer’s experience (also ranked from 1 to 3)

They collect the following ratings from a sample of 10 customers:

Somers' D example

To quantify the relationship between the two variables, we can calculate Somers’ D using the following code in R:

#enter data
nice #load DescTools package
library(DescTools)

#calculate Somers' D
SomersDelta(nice, satisfaction)

[1] 0.6896552

Somers’ D turns out to be 0.6896552.

Since this value is fairly close to 1, this indicates that there is a fairly strong positive relationship between the two variables.

This makes sense intuitively: Customers who rate the cashiers as nicer also tend to rate their overall satisfaction higher.

Additional Resources

An Introduction to the Pearson Correlation Coefficient
An Introduction to Kendall’s Tau

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories