- Introduced by
- Edgar Brunner & Ullrich Munzel
- Year
- 2000
- Type
- Nonparametric two-sample comparison
What does it do?
The Brunner-Munzel test is a rank-based two-sample test of whether P(X < Y) equals 1/2, where P(X < Y) is the probability that a randomly chosen observation from one group falls below a randomly chosen observation from the other.
Brunner and Munzel introduced it in 2000 as a solution to the nonparametric Behrens-Fisher problem, that is, comparing two groups without assuming equal variances. It is an alternative to the Mann-Whitney U test when the two groups may differ in spread.
The intuition behind the method
Instead of comparing means or medians, the Brunner-Munzel test asks a simpler question: if you pick one person at random from Group A and one from Group B, how likely is it that the Group B value is higher? This probability, called the probabilistic superiority index, is 0.5 when there is no tendency for either group's values to be higher. The test checks whether the observed index is far enough from 0.5 to be implausible under the null hypothesis. Unlike the Mann-Whitney U test, whose error rate can be inflated or deflated when the two groups differ in spread, the Brunner-Munzel test does not depend on equal spread, because it estimates the variability of each group separately.
History
The test addresses the nonparametric Behrens-Fisher problem, the comparison of two groups when equal variances cannot be assumed, in a setting that allows arbitrary ties. Edgar Brunner and Ullrich Munzel published the asymptotic theory and a small-sample approximation in Biometrical Journal in 2000. The same paper also gives a confidence interval for the nonparametric treatment effect, which is worth reporting alongside P-hat. Neubert and Brunner later proposed a studentized permutation test for the same problem, aimed at small samples.
When to use it
Choose the Brunner-Munzel test to compare two independent groups on a continuous or ordinal outcome when equal variances cannot be justified, which is the situation the nonparametric Behrens-Fisher problem describes. The core requirements are independent samples, at least an ordinal measurement scale, and no normality assumption. It is a candidate to replace the Mann-Whitney U test when the spread or shape of the two distributions may differ. The t-approximation was suggested for groups of at least 10 observations; with smaller groups, a studentized permutation version proposed by Neubert and Brunner is the alternative to consider, after its performance has been checked in the original paper. Do not use it for paired or repeated-measures data, where the Wilcoxon signed-rank test applies, and do not use it to compare more than two groups.
Limitations and considerations
- The t-approximation was suggested for samples of at least 10 per group. For smaller groups, a studentized permutation version proposed by Neubert and Brunner is available; its performance should be checked in the original paper before use.
- Restricted to two independent groups. Comparisons of more than two groups need a different procedure, such as the Kruskal-Wallis test, which assumes similar distribution shapes across groups.
- Like other rank-based tests, it is slightly less powerful than a parametric t-test when the normal model with equal variances actually holds.
- Less familiar than the Mann-Whitney U test in many applied fields, which can complicate peer review and the reporting of results.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Does not assume equal variances, so it is designed for two-group comparisons in which the spreads differ. The original simulation study found that the Wilcoxon-Mann-Whitney test could be conservative or liberal depending on the ratio of sample sizes and the variances, while the proposed approximation kept the nominal level fairly accurately.
- Does not require the underlying distribution functions to be continuous, so tied observations are handled directly by the rank-based variance estimator.
- Reports P-hat, an effect size on the probability scale, alongside the test, so the size of the group difference is visible without a separate calculation.
- Uses only ranks, so it applies to ordinal outcomes as well as continuous ones.
Applications
- Comparing patient outcomes between a treatment and a control group when distribution shapes or spreads differ substantially.
- Analysing Likert-scale or other ordinal survey responses from two independent groups without assuming equal score variances.
- Two-group comparisons in psychology and education research where score distributions are known to be asymmetric or heteroscedastic.
- Quality-control and engineering studies comparing two production lines or conditions on a continuous measurement with unequal variability.
How it works
How it works
The null hypothesis states that the probabilistic superiority index P(X < Y) equals 0.5. The two-sided alternative states that P(X < Y) differs from 0.5 in either direction, and a one-sided alternative can be specified when a direction is predicted before data collection. Rejecting the null shows that P(X < Y) differs from 0.5; it does not by itself establish that one distribution stochastically dominates the other, nor that the means or medians differ.
Formula
H_0:\ P(X < Y) = \tfrac{1}{2} \quad H_1:\ P(X < Y) \neq \tfrac{1}{2}All observations from both groups are pooled and ranked together, and the mean rank of each group is computed. The asymptotic variance is estimated consistently from the ranks over all observations together with the ranks within each sample, so the two groups are not assumed to share a variance. The statistic W is the difference between the two mean ranks, divided by N times a standard error built from these two separate variance estimates. This construction follows the formula above and parallels the separate-variance logic of Welch's t-test. The exact variance estimator and the degrees of freedom are given in Brunner and Munzel (2000); in practice they are computed by statistical software. For small samples, with at least 10 observations in each group, the source suggests referring W to an approximate central t-distribution whose degrees of freedom come from the Satterthwaite-Smith-Welch approximation used in the parametric Behrens-Fisher problem. For larger samples, W is referred to its asymptotic standard normal distribution, the limiting form given by the asymptotic theory of Brunner and Munzel (2000).
Formula
W_{BM} = \dfrac{\bar{R}_2 - \bar{R}_1}{N \sqrt{\dfrac{\hat{\sigma}_1^2}{n_1} + \dfrac{\hat{\sigma}_2^2}{n_2}}}For the two-sided test, the null hypothesis is rejected if the p-value is below 0.05. This rule refers to the two-sided p-value, which matches the alternative P(X < Y) differs from 0.5 stated above. For a one-sided alternative, which must be fixed before data collection, the one-sided p-value is compared with the same threshold. The effect size reported with the p-value is P-hat = (mean rank of Group 2 minus mean rank of Group 1) divided by N, plus 0.5, an estimate of P(X < Y) on a 0 to 1 scale. Values above 0.5 indicate that Group 2 values tend to be larger than Group 1 values, and values below 0.5 indicate the reverse.
Formula
\text{reject } H_0 \text{ if } p < 0.05;\quad \hat{p} = \dfrac{\bar{R}_2 - \bar{R}_1}{N} + \tfrac{1}{2}Common pitfalls
- Reporting only the p-value omits P-hat and the confidence interval for the treatment effect, so readers cannot see how large the group difference is or how precisely it is estimated.
- Using the Mann-Whitney U test when the two groups clearly differ in spread. The cited simulation shows its error rate can be inflated or deflated in that setting, so Brunner-Munzel is the appropriate choice there.
- Applying the asymptotic t-approximation when either group has fewer than 10 observations.
- Reading a significant result as proof that the medians or means differ, or a non-significant result as proof that the groups are alike. The null hypothesis concerns P(X < Y) only.
Frequently asked questions
How does the Brunner-Munzel test differ from the Mann-Whitney U test?
Both tests are rank-based and compare two independent groups. A simulation study by Brunner and Munzel (2000) showed that the Wilcoxon-Mann-Whitney test can be conservative or liberal when the two groups differ in spread, depending on the ratio of sample sizes and the variances. The Brunner-Munzel test is designed for this situation because it estimates the variability of each group separately, in the same way that Welch's t-test handles unequal variances for means.
What does the probabilistic superiority index mean?
The index P-hat estimates P(X < Y), the probability that a randomly drawn observation from Group 1 is smaller than a randomly drawn observation from Group 2. A value of 0.5 means there is no tendency for either group to be larger; values above 0.5 mean Group 2 tends to be larger, and the further the value is from 0.5, the stronger the tendency. Because it is on a probability scale, it is easy to communicate to non-statisticians.
When should I use the permutation version?
The t-approximation was suggested for groups of at least 10 observations. With smaller samples, a studentized permutation version for the nonparametric Behrens-Fisher problem, proposed by Neubert and Brunner, is available. Its performance should be checked in the original paper before use.
Can the test be used for ordinal data such as Likert scales?
Yes. The test uses only ranks, never differences or sums of raw values, so it applies to ordinal responses such as Likert scales. This is one of its practical advantages over tests that require interval-level measurement.
Related methods
Sources
Brunner, E. & Munzel, U. (2000). The Nonparametric Behrens-Fisher Problem: Asymptotic Theory and a Small-Sample Approximation. Biometrical Journal, 42(1), 17–25.
Open DOI referenceNeubert, K. & Brunner, E. (2007). A studentized permutation test for the nonparametric Behrens-Fisher problem. Computational Statistics & Data Analysis, 51(10), 5192–5204.
Open DOI referenceBrunner, E., Bathke, A. C., & Konietschke, F. (2019). Rank and Pseudo-Rank Procedures for Independent Observations in Factorial Designs. Springer.
Open DOI reference