|
|
|
||||
|
|
|||||
A client has sent us the following question:
Q. I ran a Mann-Whitney test on two independent groups that have equal medians, the results were significant. I thought that the Mann-Whitney tested differences in medians. Why is the Mann-Whitney test be significant when the medians are equal?
A. The answer is that the Mann-Whitney and the equivalent Wilcoxon test (hereafter called the Mann-Whitney-Wilcoxon test) are rank sum tests and not median tests. Basically, the Mann-Whitney-Wilcoxon test ranks all of the observations from both groups and then sums the ranks from one of the groups which is compared with the expected rank sum. It is possible, although not very common, for groups to have different rank sums and yet have equal or nearly equal medians. An example is given below.
Consider the following example dataset of 120 observation (60 in each group) that has equal medians and a significant Mann-Whitney-Wilcoxon test.
+-----------------+ | y grp freq | |-----------------| | -2 1 20 | | 0 1 20 | | 5 1 20 | |-----------------| | -1 2 20 | | 0 2 20 | | 10 2 20 | +-----------------+
The reason the Mann-Whitney-Wilcoxon is significant for the above data is the ranks for group 1 (other than those at the median) are lower than the ranks for group 2 (again, other than those values at the median). Here are the ranks for all the scores ignoring the frequencies to keep it simple.
+-------------------+ | y grp rank | |-------------------| | -2 1 1 | | -1 2 2 | | 0 2 3.5 | | 0 1 3.5 | | 5 1 5 | | 10 2 6 | +-------------------+
The table below gives the sum of the ranks for each group for the full sample of 120 observations.
Grp obs rank sum
1 60 3230
2 60 4030UCLA Researchers are invited to our Statistical Consulting Services
We recommend others to our list of Other Resources for Statistical Computing Help
These pages are Copyrighted (c) by UCLA Academic Technology Services