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
- Record the category dictionary and direction of improvement.
- Enter one synthetic predictor–outcome pair per row.
- Count concordant and discordant pairs. Exclude pairs tied on the predictor; keep outcome ties in the denominator.
- Report D(outcome | predictor), sample size and eligible-pair count together.
- If the predictor is constant, report the statistic as undefined rather than zero.
| Pair type | Contribution |
|---|---|
| Both increase or both decrease | +1 |
| Opposite directions | −1 |
| Outcome tied, predictor distinct | 0, but eligible |
| Predictor tied | Excluded |
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.