Mann WHitney U Test
Mann WHitney U Test
Mann WHitney U Test
ROJO
MAED - MATHEMATICS
Introduction
Statistical tests, such as the z, t, and F tests, are called
parametric tests.
𝑁1 (𝑁1 + 1)
𝑈1 = 𝑁1 𝑁2 + − 𝑅𝑥
2
𝑁2 (𝑁2 + 1)
𝑈2 = 𝑁1 𝑁2 + − 𝑅𝑦
2
The smaller of the two is the 𝑈 statistic
Note that if both samples are the same size, either size can be used as 𝑛1
Procedure for Wilcoxon Rank Sum Test
Step 1: State the hypotheses and identify the claim.
Step 2: Find the critical value(s). Use z-table
Step 3: Compute the test statistic.
a. Combine the data from the two samples, arrange
the combined data in order, rank each value.
b. Sum the ranks of the group with the smaller
sample size. (Note: If both groups have the same
sample size, either one can be used.)
c. Use these formulas to find the test statistic.
𝑛1 (𝑛1 +𝑛2 +1) 𝑛1 𝑛2 (𝑛1 +𝑛2 +1)
𝜇𝑅 = 𝜎𝑅 =
2 12
𝑅−𝜇𝑅
𝑧=
𝜎𝑅
where R is the sum of the ranks of the data in the smaller
sample and 𝑛1 and 𝑛2 are each greater than or equal to 10
Step 4:Make the decision.
Step 5: Summarize the results
Example: Times to Complete an Obstacle Course
Two independent random samples of Army and Marine recruits are selected, and the
time in minutes it takes each recruit to complete an obstacle course is recorded, as
shown in the table. At 𝛼 = 0.05, is there a difference in the time it takes the recruits to
complete the course?
Army 15 18 16 17 13 22 24 17 19 21 26 28
Marines 14 9 16 19 10 12 11 8 15 18 25
Solution:
1. State the hypotheses and identify the claim
𝐻0 : There is no difference in the times it takes the recruits to complete the obstacle course.
𝐻a : There is a difference in the times it takes the recruits to complete the obstacle course (claim).
2. Find the critical value. Since 𝛼 = 0.05 and this test is two-tailed test, use the critical values of +1.96
and -1.96 from z-table
3. Compute the test statistic.
a. Combine the data from two samples, arrange the combined data in ascending order, and rank each
value.
Time 8 9 10 11 12 13 14 15 15 16 16 17 17 18 18 19 19 21 22 24 25 26 28
Group M M M M M A M A M A M A A M A A M A A A M A A
Rank 1 2 3 4 5 6 7 8.5 8.5 10.5 10.5 12.5 12.5 14.5 14.5 16.5 16.5 18 19 20 21 22 23
b. Sum the ranks of the group with the smaller sample size. In this case, the sample size for the
marines is smaller.
𝑅 = 1 + 2 + 3 + 4 + 5 + 7 + 8.5 + 10.5 + 14.5 + 16.5 + 21 = 93
c. Substitute in the formulas to find the test statistic.
𝑛1 (𝑛1 + 𝑛2 + 1) (11)(11 + 12 + 1)
𝜇𝑅 = = = 132
2 2
𝜇𝑅 = 132
𝑛1 𝑛2 (𝑛1 + 𝑛2 + 1) (11)(12)(11 + 12 + 1)
𝜎𝑅 = = = 264 = 16.2
12 12
𝑅 − 𝜇𝑅 93 − 132
𝑧= = = −2.41
𝜎𝑅 16.2
4. Make decision. The decision is to reject the null hypothesis, since −2.41 < −1.96
See Figure below.
5. Summarize the result. There are enough evidence to support the claim that there is a
difference in the times it takes the recruits to complete the course
Level of Significance 𝒛𝜶 for 1-Tailed Tests 𝒛𝜶 for 2-Tailed Tests
(𝜶)
0.01 - 2.33 or 2.33 - 2.58 and 2.58
0.05 -1.645 or 1.645 -1.96 and 1.96
0.10 -1.28 or 1.28 -1.645 and 1.645
WORKSHEET:
A nutritionist decided to see if there was a difference in the number of calories
served for lunch in elementary and secondary schools. She selected a random
sample of eight elementary schools and another random sample of eight secondary
schools in Pennsylvania. The data are shown.
Elementary Secondary
648 694
589 730
625 750
595 810
789 860
727 702
703 657
564 761
501 650
568 704