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

  1. Prespecify which group is X and which is Y.
  2. Retain ties; do not jitter ordinal measurements to remove them.
  3. Calculate pooled and within-group midranks and group-specific rank variance.
  4. Inspect the relative effect and the studentized statistic together.
  5. 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.

Open the brunner–munzel statistic audit.

Download the editable plain-text worksheet.

Related reading

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

Statistical Methods

Compare Distributions Across Their Full Empirical CDFs

Practical steps and a worked example: Calculate a pooled-rank distribution discrepancy with explicit tie handling.

Statistical Methods

Separate Dendrogram Leaf Ordering from Cluster Evidence

Practical steps and a hypothetical example: Separate dendrogram display ordering from cluster membership.

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