Statistical Methods
Compare Ordering Without Assuming Equal Distribution Shapes
Define the research task
Use this audit when the estimand is stochastic ordering between two independent groups and equal distribution shapes are not defensible. The relative effect is P(X < Y) + 0.5 P(X = Y). It is not a difference in medians and does not imply a causal treatment effect. Matched pairs or repeated measures require a design-appropriate method.
Work through the check
- Prespecify which group is X and which is Y.
- Retain ties; do not jitter ordinal measurements to remove them.
- Calculate pooled and within-group midranks and group-specific rank variance.
- Inspect the relative effect and the studentized statistic together.
- Choose and justify inference separately; the browser audit does not calculate a p value.
Small samples and degenerate rank variance make asymptotic inference unreliable. The calculator rejects a zero denominator rather than printing an infinite result.
Hypothetical example and reporting
For hypothetical X = 1,2,3,4,6 and Y = 2,3,5,7,8, there are 17 strictly ordered X < Y pairs and two tied pairs among 25 cross-group pairs. The relative effect is (17 + 1)/25 = 0.72. Positive W corresponds to Y tending larger in this input order. Report this direction explicitly; reversing the input groups reverses the statistic’s sign.
Source and verification
Method checked 26 November 2026 against SciPy primary documentation: stats.brunnermunzel. Examples are synthetic; this page does not assert human expert approval.