Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Nonparametric Tests
§ 11.1
The Sign Test
Sign Test for a Population Median
A nonparametric test is a hypothesis test that does not
require any specific conditions concerning the shape of
the population or the value of any population parameters.
The sign test is a nonparametric test that can be used to
test a population median against a hypothesized value k.
z (x 0.5) 0.5n
n
2
where x is the smaller number of + or signs and n is the sample
size, i.e., the total number of + or signs.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 4
Sign Test for a Population Median
Performing a Sign Test for a Population Median
In Words In Symbols
1. State the claim. Identify the State H0 and Ha.
null and alternative hypotheses.
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 10
The Paired-Sample Sign Test
Performing a Paired-Sample Sign Test
In Words In Symbols
4. Determine the critical value. Use Table 8 in
Appendix B.
|6| = 6 |22| = 22
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 23
The Wilcoxon Rank Sum Test
Performing a Wilcoxon Rank Sum Test
In Words In Symbols
5. Find the sum of the ranks for the R
smaller sample.
a. List the combined data in
ascending order.
b. Rank the combined data.
c. Add the sum of the ranks for
the smaller sample.
6. Calculate the test statistic. R μR
z
σR
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 24
The Wilcoxon Rank Sum Test
Performing a Wilcoxon Rank Sum Test
In Words In Symbols
7. Make a decision to reject or If z is in the
fail to reject the null rejection region,
hypothesis. reject H0.
Otherwise, fail to
reject H0.
8. Interpret the decision in the
context of the original claim.
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 27
The Wilcoxon Rank Sum Test
Example continued:
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 28
The Wilcoxon Rank Sum Test
Example continued:
Because the samples are the same size, n1 can be associated with
either sample. If we let n1 be the sample of the construction
workers, then R is the sum of the construction rankings.
R = 1 + 2 + 3 + 5.5 + 5.5 + 7.5 + 9 + 11.5 + 14 + 15.5
= 74.5
n1 n1 n2 1 10 10 10 1
μR 105
2 2
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 29
The Wilcoxon Rank Sum Test
Example continued:
When R = 74.5, μR = 105 andR = 13.23, the test statistic is
R μR 74.5 105
z 2.31.
σR 13.23
where
k represent the number of samples,
ni is the size of the ith sample,
N is the sum of the sample sizes,
and
Ri is the sum of the ranks of the ith sample.
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 34
The Kruskal-Wallis Test
Performing a Kruskal-Wallis Test
In Words In Symbols
5. Find the sum of the ranks for each
sample.
a. List the combined data in
ascending order.
b. Rank the combined data.
12
6. Calculate the test statistic. H
N (N 1)
R12 R 22 R k2
n n ... n
1 2 k
3(N 1)
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 35
The Kruskal-Wallis Test
Performing a Kruskal-Wallis Test
In Words In Symbols
7. Make a decision to reject or fail to If H is in the
reject the null hypothesis. rejection region,
reject H0.
8. Interpret the decision in the
Otherwise, fail to
context of the original claim.
reject H0.
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 43
The Spearman Rank Correlation Coefficient
When n1 > 20 or n2 > 20, the test statistic for the runs test is
G μG
z
σG
where
2n1n2 2n1n2(2n1n2 n1 n2 )
μG +1 and σ G .
n1 n2 2
(n1 n2 ) (n1 n2 1)
G μG 32 24.1724
z 2.61
σG 3.0023
Because 2.61 > 1.96, reject H0.
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 55
The Runs Test for Randomness
Example continued:
Because n1 20 and n2 20, use Table 12 to find the lower
critical value 8 and the upper critical value 18.