You are on page 1of 7

Mann-Whitney U test

pair no. S. male P. male


thorax thorax
width width
1 4 2.8
2 3 2.7
3 2.6 2.6
4 3.85 2.7
5 2.65 2.6
6 2.7 2.6
7 2.85 2.7
8 2.85 2.8
9 3.2 2.9
10 2.9 2.6
Mann-Whitney U test
Push this to
sort the data in
an ascending
order
S. male P. male
thorax thorax
rank width rank width
3 2.6 3 2.6
6 2.65 3 2.6
8.5 2.7 3 2.6
13.5 2.85 3 2.6
13.5 2.85 8.5 2.7
15.5 2.9 8.5 2.7
17 3 8.5 2.7
18 3.2 11.5 2.8
19 3.85 11.5 2.8
20 4 15.5 2.9
Mann-Whitney U test
Rank both lists as one combined list
I found this a time consuming task
Mann-Whitney U test
Sum the ranks for each sample
N1= # obs in 1 N2= # obs in 2
S. male P. male
thorax thorax
rank width rank width
3 2.6 3 2.6
6 2.65 3 2.6
8.5 2.7 3 2.6
13.5 2.85 3 2.6
13.5 2.85 8.5 2.7
15.5 2.9 8.5 2.7
17 3 8.5 2.7
18 3.2 11.5 2.8
19 3.85 11.5 2.8
20 4 15.5 2.9
R1= 30.6 R2= 26.9
Mann-Whitney U test
Normally you would now use the formulas
and chart in the Brown reading.
U1=(N1)(N2)+[(N1)(N1+1)]/2 R1 U1=124.4
U2=(N1)(N2)+[(N2)(N2+1)]/2 R2 U2=128.2
However the sample size is larger than the
table will allow because any sample greater
than 20 can be assumed to mimic normality
We therefore use the equation to convert the
U statistic to a Z- score.
Mann-Whitney U test
Z = {largest U value [N1*N2]/2}
(N1)(N2)(N1+N2+1)]/12
Z = 5.9
If Z > 1.96 than P < 0.05
Therefore there is a significant difference
between the thorax width of single and
mated males
U1=124.4
U2=128.2

N1=10
N2=10
Wilcoxon Signed Rank
When N>15 use a z score conversion
T+ = N(N+1)/4
VarT+ = N(N+1)(2N+1)/24

Z = T+ - T+ / VarT+
= T+ - [N(N+1)/4]
[N(N+1)(2N+1)/24]
If Z > 1.96 than P < 0.05
reject null hypothesis

You might also like