Chapter 14 Math
Chapter 14 Math
Chapter 14
Nonparametric Statistics
Introduction:
Distribution-Free Tests
procedures
— Example: converting data from
ratio to ordinal scale
• Difficult to compute by hand for
large samples
• Tables not widely available
Test statistic:
S = Number of sample measurements greater
than0 [or S = number of measurements less than
0]
© 2011 Pearson Education, Inc
Sign Test for a Population
Median
Observed significance level:
p-value = P(x ≥ S)
where x has a binomial distribution with
parameters n and p = .5
(Use Table II, Appendix B)
Test statistic:
S = Larger of S1 and S2, where S1 is the number of
sample measurements less than0 and S2 is the
number of measurements greater than 0
© 2011 Pearson Education, Inc
Sign Test for a Population
Median
Observed significance level:
p-value = 2P(x ≥ S)
where x has a binomial distribution with
parameters n and p = .5
(Use Table II, Appendix B)
• Critical Value(s):
13 27 Ranks
© 2011 Pearson Education, Inc
Wilcoxon Rank Sum Test
Computation Table
Factory 1 Factory 2
Rate Rank Rate Rank
85 5 71 1
82 3 3.5 82 4 3.5
94 8 77 2
97 9 92 7
... 88 6
Rank Sum 25.5 19.5
One-Tailed Test
H0: D1 and D2 are identical
Ha: D1 is shifted to the right of D2
[or D1 is shifted to the left of D2]
Rejection region:
z > z (or z < –z)
© 2011 Pearson Education, Inc
Wilcoxon Rank Sum Test for Large
Samples (n1 ≥ 10 and n2 ≥ 10)
Two-Tailed Test
H0: D1 and D2 are identical
Ha: D1 is shifted to the right or to the left of D2
Rejection region:
| z | > z/2
© 2011 Pearson Education, Inc
14.4
One-Tailed Test
H0: D1 and D2 are identical
Ha: D1 is shifted to the right of D2
[or D1 is shifted to the left of D2]
© 2011 Pearson Education, Inc
Wilcoxon Signed Rank Test for a
Paired Difference Experiment
Two-Tailed Test
H0: D1 and D2 are identical
Ha: D1 is shifted to the left or to the right of D2
One-Tailed Test
H0: D1 and D2 are identical
Ha: D1 is shifted to the right of D2
[or D1 is shifted to the left of D2]
© 2011 Pearson Education, Inc
Wilcoxon Signed Rank Test for a
Paired Difference Experiment
T+ −⎡ ⎣n ( n + 1) 4 ⎤
⎦
Test statistic: z =
n ( n + 1) ( 2 n + 1) 24
Rejection region:
z > z [or z < –z ]
Assumptions:
The sample size n is greater than or equal to 25.
Differences equal to 0 are eliminated, and the
number n of differences is reduced accordingly.
Tied absolute differences receive ranks equal to
the average of the ranks they would have
received had they not been tied.
Two-Tailed Test
H0: D1 and D2 are identical
Ha: D1 is shifted to the left or to the right of D2
T+ −⎡ ⎣n ( n + 1) 4 ⎤
⎦
Test statistic: z =
n ( n + 1) ( 2 n + 1) 24
Rejection region:
| z | > z
Assumptions:
The sample size n is greater than or equal to 25.
Differences equal to 0 are eliminated, and the
number n of differences is reduced accordingly.
Tied absolute differences receive ranks equal to
the average of the ranks they would have
received had they not been tied.
12 2
Test statistic: H=
n ( n + 1)
∑ n j( R j − R )
= .05
H =⎜ ∑ ⎟ − 3 (n + 1)
⎜ n (n + 1) n j ⎟
⎝ ⎠
⎛ 12 ⎛ (65 )2 (38 )2 (17 )2 ⎞⎞
=⎜ ⎜ + + ⎟⎟ − 3 (16 )
⎜ (15 )(16 ) ⎜ 5 5 5 ⎟⎟
⎝ ⎝ ⎠⎠
⎛ 12 ⎞
=⎜ ⎟(191.6 ) − 48 12
⎝ 240 ⎠ 2
= 11.58
H=
n ( n + 1)
∑ n j( R j − R )
© 2011 Pearson Education, Inc
Kruskal-Wallis H-Test
Solution
• H0: Identical Distrib.
Test Statistic:
• Ha: At Least 2 Differ H = 11.58
• = .05
• df = p – 1 = 3 – 1 = 2
• Critical Value(s):
Decision:
Reject at = .05
= .05
Conclusion:
There is evidence population
0 5.991 ©2 2011 Pearsondistrib.
Education, Inc are different
14.6
Test statistic: Fr = k k + 1 ∑( R j −R )
( )
( 3) ( 4 ) ⎣ ⎦
= 6 (1.388) = 8.33 © 2011 Pearson Education, Inc
Friedman Fr -Test Example
For = .05, 2.05 = 5.99147, therefore
Rank Correlation
6∑ d i 2
rs = 1−
n ( n −1)
2
= 1 − 0.10
= 0.90
© 2011 Pearson Education, Inc
Spearman’s Nonparametric
Test for Rank Correlation
One-Tailed Test
H 0: = 0
Ha: > 0 (or Ha: < 0)
6∑ d i 2
Test statistic: rs = 1−
n ( n −1)
2
Test statistic: 6∑ d i 2
rs = 1−
n ( n −1)
2
Distribution-Free Tests
Do not rely on assumptions about the
probability distribution of the sampled
population