In statistics, the Brunner Munzel test (also called the generalized Wilcoxon test) is a nonparametric test of the null hypothesis that, for randomly selected values X and Y from two populations, the probability of X being greater than Y is equal to the probability of Y being greater than X.
It is thus highly similar to the well-known MannâÂÂWhitney U test. The core difference is that the Mann-Whitney U test assumes equal variances and a location shift model, while the Brunner Munzel test does not require these assumptions, making it more robust and applicable to a wider range of conditions. As a result, multiple authors recommend using the Brunner Munzel instead of the Mann-Whitney U test by default.
Under these assumptions, the test is consistent and approximately exact. The crucial difference compared to the MannâÂÂWhitney U test is that the latter is not approximately exact under these assumptions. Both tests are exact when additionally assuming equal distributions under the null hypothesis.
The Brunner Munzel test is available in the following packages