Activity 13 - Nonparametric Test
Activity 13 - Nonparametric Test
Activity 13
Nonparametric tests
1
Learning Objectives
The Wilcoxon signed rank test for a
population median
The Wilcoxon signed rank test
The Mann-Whitney U-test
The nonparametric analysis of variance
using the Kruskal-Wallis one-way ANOVA
2
Contents
3
Nonparametric Tests for Two
Population Centers
Nonparametric
Tests for Two
Population Centers
Wilcoxon
Mann-Whitney
Matched-Pairs
U-test Signed Rank Test
WL = 3 and WU = 33
W = R+ = 27
11
2. Mann-Whitney U-Test (Continued)
Mann-Whitney U-Statistics
n1 (n1 1)
U1 n1n 2 R1
2
n2 (n2 1)
U2 n1n2 R2
2
where:
n1 and n2 are the two sample sizes
R1 and R2 = sum of ranks for samples 1 and 2
12
2. Mann-Whitney U-Test:
Example (Continued)
Claim: Median class size for Math is larger
than the median class size for English
13
2. Mann-Whitney U-Test (Continued)
• Suppose the results are:
Class size (Math, Class size (English,
M) E)
23 30
45 47
34 18
78 34
34 44
66 61
62 54
95 28
81 40 14
2. Mann-Whitney U-Test: Example
(Continued)
Ranking for combined samples
Size Rank Size Rank
18 1 45 10
23 2 47 11
28 3 54 12
30 4 61 13
tied 34 6 62 14
34 6 66 15
34 6 78 16
40 8 81 17 15
2. Mann-Whitney U-Test: Example (Continued)
• Split back into the original samples:
Class size Class size
Rank Rank
(Math, M) (English, E)
23 2 30 4
45 10 47 11
34 6 18 1
78 16 34 6
34 6 44 9
66 15 61 13
62 14 54 12
95 18 28 3
81 17 40 8
16
= 104 = 67
2. Mann-Whitney U-Test:
Example (Continued)
Claim: Median class size for H0: MedianM ≤ MedianE
Math is larger than the
median class size for English H1: MedianM > MedianE
n1(n1 1) (9)(10)
Math: U1 n1n2 R1 (9)(9) 104 22
2 2
n2 (n2 1) (9)(10)
English: U2 n1n2 R 2 (9)(9) 67 59
2 2
Note: U1 + U2 = n1n2
17
2. Mann-Whitney U-Test:
Example (Continued)
• Use U1 as the test statistic: U = 19