Nonparametric Statistics
Nonparametric Statistics
--- + - ++ -- ++ --- ++ -- ++
Runs: 1 2 3 4 5 6 7 8 9 10
Test Statistic:
r = 10 runs
Critical Values from Runs Table:
Possible
Runs: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Reject H0 Do not reject H0 Reject H0
Decision:
Since r = 10, we do not reject the null hypothesis.
Large Sample Runs Test
MEAN AND STANDARD DEVIATION FOR r
2n1n2
r 1
n1 n2
(2n1n2 )(2n1n2 n1 n2 )
r
(n1 n2 ) (n1 n2 1)
2
where:
n1 = Number of occurrences of first type
n2 = Number of occurrences of second type
Large Sample Runs Test
Table 15-2
OOOUOOUOUUOOUUOOOOUUOUUOOO
UUUOOOOUUOOUUUOUUOOUUUUU
OOOUOUUOOOUOOOOUUUOUUOOOU
OOUUOUOOUUUOUUOOOOUUUOOO
n1 = 53 “O’s” n2 = 47 “U’s”
r = 45 runs
Large Sample Runs Test
(Example 15-2)
H0: Yogurt fill amounts are randomly distributed above and below 24-ounce level.
H1: Yogurt fill amounts are not randomly distributed above and below 24-ounce
level.
= 0.05
Rejection Region Rejection Region
/2 = 0.025 /2 = 0.025
r r 45 50.82
z 1.174
r 4.95659
Since z= -1.174 > -1.96 and < 1.96, we do not reject H0,
Mann-Whitney U Test
The Mann Whitney U test can be used to compare
two samples from two populations if the
following assumptions are satisfied:
• The two samples are independent and random.
• The value measured is a continuous variable.
• The measurement scale used is at least
ordinal.
• If they differ, the distributions of the two
populations will differ only with respect to
the central location.
Mann-Whitney U Test
U-STATISTICS
n1 (n1 1)
U1 n1n2 R1
2
n2 (n2 1)
U 2 n1n2 R2
2
where:
n1 and n2 are the two sample sizes
R1 and R2 = Sum of ranks for samples 1 and 2
Mann-Whitney U Test
- Large Samples -
MEAN AND STANDARD DEVIATION FOR
THE U-STATISTIC
n1n2
2
(n1 )(n2 )(n1 n2 1)
12
where:
n1 and n2 = Sample sizes from populations 1 and 2
Mann-Whitney U Test
- Large Samples -
H 0 : ~1 ~2 0
H A : ~1 ~2 0
0.05
Rejection Region
= 0.05
n(n 1)
4
n(n 1)(2n 1)
24
where:
n = Number of paired values
Wilcoxon Matched-Pairs Test
where:
N = Sum of sample sizes in all samples
k = Number of samples
Ri = Sum of ranks in the ith sample
ni = Size of the ith sample
Kruskal-Wallis One-Way
Analysis of Variance
CORRECTION FOR TIED RANKINGS
g
(t 3
i ti )
1 i 1
N N 3
where:
g = Number of different groups of ties
ti = Number of tied observations in the ith tied
group of scores
N = Total number of observations
Kruskal-Wallis One-Way
Analysis of Variance
H-STATISTIC CORRECTED FOR TIED
RANKINGS
k 2
12 R
N ( N 1) i 1 ni
3( N 1)
i
H g
(t 3
i ti )
1 i 1
N N 3
Key Terms
• Kruskal-Wallis One- • Run
Way Analysis of • Runs Test
Variance
• Wilcoxon Test
• Mann-Whitney U Test
• Nonparametric
Statistical Procedure