13.9
De Wilcoxon-rangsomtoets, ook bekend als de Mann-Whitney-toets, is een niet-parametrische test die wordt gebruikt om te bepalen of er een significant…
Wilcoxon rank-sum, or the Mann-Whitney U, is a nonparametric test used to determine the difference between two populations by comparing their medians.
It strictly applies to two independent simple random samples with equal or unequal sample sizes.
Consider the prey capture response time in two different spider species.
Here, the null hypothesis states that the median response time of the two species is the same. The alternative hypothesis states otherwise.
The values in these two samples are ranked, considering them as a single pool of data points. However, the rank sum is calculated independently.
When high or low ranks are primarily found in one sample than the other, the two samples may have different medians.
The test statistic z is calculated using the following equations to test the hypothesis.
The Wilcoxon rank-sum test is two-tailed. So, the test statistic should be compared with the positive and negative critical values, typically at 5%.
Since, in the present example, the test statistic is beyond the range of these critical values, the medians of the two samples are significantly different.
View the full transcript and gain access to JoVE Core videos
Q1: What is the Wilcoxon rank-sum test used for?
The Wilcoxon rank-sum test, also called the Mann-Whitney U test, is a nonparametric test that determines whether two independent populations have different medians. It compares the distributions of two independent samples without assuming normal distribution. This test is particularly useful when data are ordinal or when assumptions for parametric tests like the two-sample t-test are violated.
Q2: How are data ranked in the Wilcoxon rank-sum test?
Data from both samples are combined into a single ranked list, with each value assigned a rank from smallest to largest. Tied values receive the average of the ranks for those positions. The ranks are then separated back into their respective groups, and the sum of ranks is calculated for each group independently to determine the test statistic.
Q3: What does it mean if high or low ranks cluster in one sample?
When high or low ranks predominantly fall into one sample rather than being distributed evenly, this suggests the two samples may have different medians. This clustering pattern indicates a systematic difference in the underlying distributions of the two populations, which the test statistic evaluates for statistical significance.
Q4: When should you use a z-score approximation versus critical value tables?
For small sample sizes, typically when n is less than 20, critical values for U are obtained from statistical tables. For larger samples, a z-score approximation is applied, assuming a normal distribution. This approximation becomes more reliable and efficient as sample size increases, making it the preferred approach for larger datasets.
Q5: What are the key requirements for the Wilcoxon rank-sum test?
The test requires two independent samples that are randomly drawn from their populations. Data must be ordinal or capable of being converted to an ordinal scale so values can be ranked. There is no assumption that samples are normally distributed, making this test robust for non-normal data and a suitable alternative to parametric tests.
Q6: Why is the Wilcoxon rank-sum test two-tailed?
The Wilcoxon rank-sum test is two-tailed because the alternative hypothesis states that the distributions of the two populations are different, without specifying direction. The test statistic is compared against both positive and negative critical values, typically at the 5% significance level, to determine if a significant difference exists in either direction.
Q7: What limitations should you consider when using this test?
While the Wilcoxon rank-sum test is robust to outliers, it is prone to higher type-I error when data are biased, heteroscedastic (having different variance), or when sample distributions are extremely far from normal. Despite these limitations, the test remains reliable for most ordinal and non-normally distributed data in practical applications.