The Brunner-Munzel test is a nonparametric statistical method used to compare two independent groups and determine whether one tends to yield larger values than the other. Unlike the Mann-Whitney U test, the Brunner-Munzel test does not assume equal variances or identical distribution shapes, making it more robust in situations where these assumptions may not hold.
The Brunner-Munzel test is particularly useful when:
This test assesses whether the probability that a randomly selected observation from one group exceeds a randomly selected observation from the other group is equal to 0.5.
The Brunner-Munzel test provides two key outputs:
This is how you see the Brunner-Munzel results with SimpliStats
Suppose you compare two teaching methods (Group A vs. Group B) and obtain:
Since 0.002 < 0.05, you conclude: “There is statistical evidence that the two groups perform differently.“
import numpy as np
from scipy.stats import brunnermunzel
# Example data
x = np.array([...]) # Sample from group 1
y = np.array([...]) # Sample from group 2
# Perform the test
statistic, p_value = brunnermunzel(x, y, distribution='t')
Input
Output
The Brunner-Munzel test is a powerful nonparametric tool for comparing two independent samples, especially when the assumptions of equal variances or identical distributions are not met. Its robustness makes it a preferred choice in many practical situations, offering a more flexible alternative to traditional tests like the Mann-Whitney U.
Scihand | 2025 © All rights reserved – Privacy Policy | Terms and Conditions