Chapter 10
Chapter 10
Chapter 10
NONPARAMETRIC
TECHNIQUES
Dr. Siti Rahayu Binti Mohd Hashim
List of Content
2
Introduction
Mann-Whitney test
Wilcoxon Tests
Kruskal-Wallis test
Friedman Test
Definition 9.1
Distribution-free tests are statistical analysis that do not
rely on any underlying assumptions about the
probability distribution of the studied population.
Definition 9.2
The branch of inferential statistics devoted to
distribution-free test is call nonparametrics.
Definition 9.3
Nonparametric statistics (or test) based on the ranks of
observations are called rank statistics (or rank test).
Mann-Whitney Test
4
Rank: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
Gender: G, B, G, G, G, G, B, B, B, G, B
Analyze the data according to gender:
Boys: n = 5;
obs: 2, 7, 8, 9, 11 ; Rank Sum: 37
Girls: n = 6;
obs: 1, 3, 4, 5, 6, 10; Rank Sum: 29
Solution 9.1: cont.
7
To test:
Ho: There is no difference in running speed of boys
and girls
H1: There is difference in running speed of boys
and girls
Conditions:
The two samples are random and independent
The two probability distributions from which the
samples are drawn are continuous
Test statistic (when 𝑛1 , 𝑛2 > 10):
𝑛 𝑛 +𝑛 +1
𝑅− 1 1 2
𝑧= 2
𝑛1 𝑛2 𝑛1 +𝑛2 +1
12
R = 37
2 dependent samples
Procedure:
Sort the absolute values of the differences from
smallest to largest
Assign ranks to the absolute value
Find the sum of the ranks of the positive differences
Hypothesis:
Ho: The median of the differences in the pairs is
zero.
Test Statistic: The number of positive differences
X ~ Bin(n, ½)
Example 9.2
17
Plant Number
Location
1 2 3 4 5 6 7 8 9 10
Top 4.0 5.2 5.7 4.2 4.8 3.9 4.1 3.0 4.6 6.8
Bottom 4.4 3.7 4.7 2.8 4.2 4.3 3.5 3.7 3.1 1.9
Differences, di -0.4 1.5 1.0 1.4 0.6 -0.4 0.6 -0.7 1.5 4.9
Rank of │di│ 1.5 8.5 6.0 7.0 3.5 1.5 3.5 5.0 8.5 10.0
The sum of the positive ranks, R+ = 47
The sum of the negative ranks, R- = 8
So, T = min(R+, R-) = 8
Solution: Sign Test
19
Plant Number
Location
1 2 3 4 5 6 7 8 9 10
Top 4 5.2 5.7 4.2 4.8 3.9 4.1 3 4.6 6.8
Bottom 4.4 3.7 4.7 2.8 4.2 4.3 3.5 3.7 3.1 1.9
N P P P P N P N P P
Number of “P” a.k.a “+”: X = 7
Hypothesis:
7−5
𝑍𝑐𝑎𝑙 = = 1.2649 < 1.645
1.5811
Conditions:
The k samples are random and independent
There are five or more measurements in each samples
12 𝑛 𝑅𝑗2
Test statistic: 𝐻= 𝑗=1 𝑛 −3 𝑛+1
𝑛 𝑛+1 𝑗
Conditions:
The treatments are randomly assigned to experimental
units within the blocks
The measurements can be ranked within blocks.
Test statistic:
𝑛
12
𝐹= 𝑅𝑗2 − 3𝑏(𝑘 + 1)
𝑏𝑘(𝑘 + 1)
𝑗=1
where: b = number of blocks
k = number of treatments
Rj = rank sum of the jth treatment
2
Rejection region: F >𝜒𝛼 with (k-1) degrees of
freedom
Example 9.4
35
Batch
Oven Position
1 2 3
1 7.33 8.11 8.06
2 3.22 3.72 4.28
3 3.28 5.11 4.56
4 6.44 5.78 8.61
5 3.83 6.5 7.72
6 3.28 5.11 5.56
7 5.06 5.11 7.83
8 4.44 4.28 6.33
SPSS Application
37
SPSS Application
38
SPSS Output
39