Chapter 9 1
Chapter 9 1
Chapter 9 1
Nonparametric Tests
The appropriate test statistic for the sign test is the binomial random
variable X, representing the number of plus signs in our random
sample. If the null hypothesis that 𝜇̃ = 𝜇̃0 is true, the probability that
a sample value results in either a plus or a minus sign is equal to 1/2.
Therefore, to test the null hypothesis that𝜇̃ = 𝜇̃0 , we actually test the
null hypothesis that the number of plus signs is a value of a random
variable having the binomial distribution with the parameter p =1 /2.
P-values for both one-sided and two-sided alternatives can then be
calculated using this binomial distribution. For example, in testing
𝐻0 : 𝜇̃ = 𝜇̃0 , 𝐻1 : 𝜇̃ < 𝜇̃0 ,
we shall reject 𝐻0 in favor of 𝐻1 only if the proportion of plus signs is
suffi ciently less than 1/2, that is, when the value 𝑥 of our random
variable is small. Hence, if the computed P-value
𝑃 = 𝑃(𝑋 ≤ 𝑥 𝑤ℎ𝑒𝑛 𝑝 = 1 /2)
is less than or equal to some preselected significance level α, we reject
𝐻0 in favor of 𝐻1 . For example, when n = 15 and𝑥 = 3, we findthat
3
1 1
𝑃 = 𝑃 (𝑋 ≤ 𝑥 𝑤ℎ𝑒𝑛 𝑝 = ) = ∑ 𝑏 (𝑥; 15, )
2 2
𝑥=0
3 𝑥 15−𝑥 3 15
15 1 1 15 1
= ∑( )( ) ( ) = ∑( )( )
𝑥 2 2 𝑥 2
𝑥=0 𝑥=0
15
1 15 15 15 15
= ( ) (( ) + ( ) + ( ) + ( ))
2 0 1 2 3
= 0.0000305(1 + 15 + 105 + 455) = 0.0176
so the null hypothesis 𝜇̃ = 𝜇̃0 can certainly be rejected at the
0.05level of significance but not at the 0.01 level. To test the
hypothesis
𝐻0 : 𝜇̃ = 𝜇̃0 , 𝐻1 : 𝜇̃ > 𝜇̃0 ,
we reject 𝐻0 in favor of 𝐻1 only if the proportion of plus signs is
suffi ciently greater than 1/2, that is, when the value 𝑥 of our random
variable is small. Hence, if the computed P-value
𝑃 = 𝑃(𝑋 ≥ 𝑥 𝑤ℎ𝑒𝑛 𝑝 = 1 /2)
Example 9.1
The following data represent the number of hours that a rechargeable
hedge trimmer operates before a recharge is required:
1.5,2.2,0.9,1.3,2.0,1.6,1.8,1.5,2.0,1.2,1.7.
Use the sign test to test the hypothesis, at the 0.05 level of
significance, that this particular trimmer operates a median of
1.8hours before requiring a recharge.
Solution
1. 𝐻0 : 𝜇̃ = 1.8.
2. 𝐻1 : 𝜇̃ ≠ 1.8.
3. 𝛼 = 0 .05.
4. Test statistic: Binomial variable X with 𝑝 = 1 /2.
5. Computations: Replacing each value by the symbol “+” if it
exceeds 1.8 and by the symbol “−” if it is less than 1.8 and discarding
the one measurement that equals 1.8, we obtain the sequence
1.5 2.2 0.9 1.3 2.0 1.6 1.8 1.5 2.0 1.2 1.7
, , , , , , , , , ,
− + − − + − − + − −
for which n = 10, x = 3, and n/2 = 5. Therefore, the computed P-value
is
3
1
𝑃 = 2𝑃(𝑋 ≤ 3 𝑤ℎ𝑒𝑛 𝑝 = 1 /2) = 2 ∑ 𝑏 (𝑥; 10, )
2
𝑥=0
3 𝑥 3
10 1 1 10−𝑥 10 1
10
= 2∑( )( ) ( ) = 2∑( )( )
𝑥 2 2 𝑥 2
𝑥=0 𝑥=0
10
1 10 10 10 10
= ( ) (( ) + ( ) + ( ) + ( ))
2 0 1 2 3
= 2 × 0.0000977(1 + 10 + 45 + 120) = 0.3438 > 0.05
6. Decision: Do not reject the null hypothesis and conclude that the
median operating time is not significantly different from 1.8 hours.
We can also use the sign test to test the null hypothesis 𝜇̃1 − 𝜇̃2 =
𝑑0 for paired observations. Here we replace each diff erence, 𝑑𝑖 , with a
plus or minus sign depending on whether the adjusted difference,
𝑑𝑖 − 𝑑0 , is positive or negative. Throughout this section, we have
assumed that the populations are symmetric. However, even if
populations are skewed, we can carry out the same test procedure, but
the hypotheses refer to the population medians rather than the means.
The signed-rank test can also be used to test the null hypothesis that
𝜇̃1 − 𝜇̃2 = 𝑑0 . In this case, the populations need not be symmetric. As
with the sign test, we subtract 𝑑0 from each difference, rank the
adjusted differences without regard to sign, and apply the same
procedure as above.
Example 9.3:
It is claimed that a college senior can increase his or her score in the
major field area of the graduate record examination by at least 50
points if he or she is provided with sample problems in advance. To
test this claim, 20 college seniors are divided into 10 pairs such that
the students in each matched pair have almost the same overall grade-
point averages for their first 3 years in college. Sample problems and
answers are provided at random to one member of each pair 1 week
prior to the examination. The examination scores are given in Table
9.3.
Table 9.3: Data for Example 9.3
Pair
1 2 3 4 5 6 7 8 9 10
With Sample Problems 531 621 663 579 451 660 591 719 543 575
Without Sample Problems 509 540 688 502 424 683 568 748 530 524
Test the null hypothesis, at the 0.05 level of significance, that sample
problems increase scores by 50 points against the alternative
hypothesis that the increase is less than 50 points.
Solution:
Let 𝜇̃1 and 𝜇̃2 represent the median scores of all students taking the
test in question with and without sample problems, respectively.
1. 𝐻0 : 𝜇̃1 − 𝜇̃2 = 50.
2. 𝐻1 : 𝜇̃1 − 𝜇̃2 < 50.
3. 𝛼 = 0 .05.
4. Critical region: Since n = 10, Table Signed-Rank Test shows the
critical region to be 𝑤+ ≤ 11.
5. Computations:
Pair
1 2 3 4 5 6 7 8 9 10
𝑑𝑖 22 81 -25 77 27 -23 23 -29 13 51
𝑑𝑖 − 𝑑0 -28 31 -75 27 -23 -73 -27 -79 -37 1
Ranks 5 6 9 3.5 2 8 3.5 10 7 1