Statistical Methods

Choose the Direction of an Ordinal Association

Define the research task

Use this check when an ordered baseline score is meant to predict an ordered follow-up category. Define which variable is the predictor before calculating anything; reversing the columns changes the eligible pairs. Numerical labels must reflect a genuine order. Do not use arbitrary category codes as ranks. The result describes association, not predictive calibration or a treatment effect.

Work through the check

  1. Record the category dictionary and direction of improvement.
  2. Enter one synthetic predictor–outcome pair per row.
  3. Count concordant and discordant pairs. Exclude pairs tied on the predictor; keep outcome ties in the denominator.
  4. Report D(outcome | predictor), sample size and eligible-pair count together.
  5. If the predictor is constant, report the statistic as undefined rather than zero.
Pair typeContribution
Both increase or both decrease+1
Opposite directions−1
Outcome tied, predictor distinct0, but eligible
Predictor tiedExcluded

Hypothetical example and reporting

Hypothetical records (1,1), (2,1), (3,2) contain two concordant pairs and one eligible outcome tie. D(outcome | predictor) = 2/3. Reversing the roles yields 1 because the original outcome tie is now excluded. A reporting sentence is: ‘Directional ordinal association was 0.667 over three eligible pairs in this synthetic demonstration.’ No p value or confidence interval is supplied by this tool.

Source and verification

Method checked 26 November 2026 against SciPy primary documentation: stats.somersd. Examples are synthetic; this page does not assert human expert approval.

Open the directional somers d.

Download the editable plain-text worksheet.

Related reading

Reading path: Analyze data. Guide 223 of 232. Choose any guide to suit your project.

Statistical Methods

Check Transform Direction Before Resampling an Array

Practical steps and a hypothetical example: Translate a forward coordinate transform into pull resampling.

Statistical Methods

Check the Direction of a Noninferiority Margin

Map the outcome, contrast, and unfavorable boundary before interpreting a noninferiority interval.

Browse this reading pathTools for this stageGuides and downloads for this stage