Lets assume that I am having 2 samples:
Sample A
20
20
20
20
25
and Sample B
1
2
3
4
5
If I want to compare these two samples I can use the mann-whitney
test. Now, because the 2 samples are not normally distributed, and their distributions do not have the same shape, the mann-whitney
test will compare the mean ranks.
So what it will do, is rank each observation of each sample. The rank will be the following:
Sample A
value rank
20 2.5
20 2.5
20 2.5
20 2.5
25 5
and Sample B
value rank
1 1
2 2
3 3
4 4
5 5
Now, both of those samples have the same mean rank (2.5+2.5+2.5+2.5+5)/5
and (1+2+3+4+5)/5
, but their medians are very different.
Also it seems to me, that two populations of the same size, will always have the same mean rank. Or am I wrong ?
So I do not understand, what is the value of comparing the mean ranks of two populations. Any help ?