Professional Documents
Culture Documents
- The hypothesis tests discussed so far in this text are called parametric tests.
- This chapter discusses a few nonparametric tests.
- These tests do not require the same kinds of assumptions, and hence, they are called
distribution-free tests.
12.1 The Sign Test
- The sign test is used to male hypothesis tests about preferences, a single median, and
the median of paired differences for two dependent populations
- We use only plus and minus signs perform these tests.
12.1.1 Single Sample Sign Test
Assumptions
a) The sample available for analysis is a random variable from population with unknown
median, M.
b) The variable of interest is measured on at least an ordinal scale.
c) The variable of interest is continuous. The n sample values are designated by
n
X X X , , ,
2 1
.
Hypotheses
0 0
: M M H = ,
0 1
: M M H = (two sided)
or
0 1
: M M H < (one sided)
or
0 1
: M M H > (one sided)
Test Statistic
- Record the sign of the difference obtained by subtracting the hypothesis median
0
M
from each of the sample value:
0
M X
i
, i = 1, 2, , n.
- If the data,
i
X value above the
0
M value, it is assigned a plus sign.
- If the data,
i
X value below the
0
M value, it is assigned a minus sign.
- If
i
X is exactly the same as
0
M , it is assigned a 0 and we discard the observations
from the sample (reduce n).
- The test value is the smaller number of plus or minus signs.
- If the test value is less than or equal to the critical value obtained from the Table of
Critical Values for the Sign test, the
0
H should be rejected.
- When the sample size n > 25 , normal approximation can be used to find the test value
by computing
( )
2 /
2 / 5 . 0
n
n k
z
+
=
where k = smaller number of plus or minus signs
n = sample size.
Example 12.1: A past study claims that adults in Malaysia spend a median of 18 hours a
week on leisure activities. A researcher took a sample of 10 adults and asked them how many
hour they spend per week on leisure activities. She obtained the following data:
14 25 22 38 16 26 19 23 41 33
Using = 0.05 can you conclude that the median amount of time spent per week on leisure
activities by all adults is more than 18 hours?
12.1.2 Test About the median Median Difference Between Paired Data
- We can use the sign test to perform a test of hypothesis about the difference between
the mesians of two dependent populations using the data obtained from paired samples.
Hypotheses
0 :
0
=
D
M H , 0 :
1
=
D
M H (two sided)
or 0 :
1
<
D
M H (one sided)
or 0 :
1
>
D
M H (one sided)
Test Statistic
Same as the single sample sign test.
Example 12.2: A researcher wanted to find the effects of a special diet on systolic blood
pressure in adults. She selected a sample of 12 adults and out them on this dietary plan for
three months. The following table gives the systolic blood pressyre of each adults before and
after the completion of the plan.
Before 210 185 215 198 187 225 234 217 212 191 226 238
After 196 192 204 193 181 233 208 211 190 186 218 236
Using the 2.5% significance level, can we conclude that the dietary plan reduces the median
systolic blood pressure of adults?
12.2 Wilcoxon Signed-Rank Test
- Similar to the sign test.
- Test for median, M.
12.2.1 Single Sample Test
Assumptions
a) The sample has been randomly selected from the population it represents.
b) The original scores obtained for each of the subjects/objects are in the format of
interval/ratio data.
c) The underlying population distribution is symmetrical.
Hypotheses
0 0
: M M H = ,
0 1
: M M H = (two sided)
or
0 1
: M M H < (one sided)
or
0 1
: M M H > (one sided)
Test Statistic
- Record the sign of the difference obtained by subtracting the hypothesis median
0
M
from each of the sample value:
0
M X
i
, i = 1, 2, , n.
- If the data,
i
X value above the
0
M value, it is assigned a plus sign.
- If the data,
i
X value below the
0
M value, it is assigned a minus sign.
- If
i
X is exactly the same as
0
M , it is assigned a 0 and we discard the observations
from the sample (reduce n).
- Without consider the sign of the differences, we rank the differnces
0
M X
i
, i = 1, 2,
, n in an ascending order.
- Now give the ranks of the digns for their corresponding differences.
- Let
+
w be the sum of the positive ranks,
=
n n n n
n n
U
z
where U = smaller value between
1
U and
2
U .
Example 12.5: An electrical engineer must design a circuit to deliver the maximum amount
of current to a display tube to achieve sufficient image brightness. Within his allowable
design constraint, he has developed two candidate circuits and tests prototypes of each. The
resulting data (in microamperes) are as follows:
Circuit 1 251 255 258 257 250 251 254 250 248
Circuit 2
250 253 249 256 259 252 260 251
Use the Mann-Whitney test to test
2 1 0
: = H against alternative
2 1 1
: > H . Use = 0.05.
12.4 THE RUNS TEST
- A nonparametric test to determine randomness of data.
- A run is a sequence of one or more consecutive occurances of the same outcome in a
sequence of occeirences in which there sre onlt two outcomes.
- The number of runs in a sequence is denored by R.
- The value of R obtained for a sequence of outcomes for a sample gives the observed
value of the test statistic for the runs test for randomness.
Hypotheses
0
H : Tenants with and without children are randomly mixed among the 10 units
1
H : These tenats are not randomly mixed
Test Statistics
- The test value is the number of runs R.
- If the test value is less than or equal to the left-hand critical value and bigger than or
equal to the right-hand critical value obtained from the Table of Critical Values for
Total Number of Runs, the
0
H should be rejected.
Example 12.6: A college admissions office is interested in knowing whether applications for
admission arrive randomly with respect to gender. The gender of 25 consecutively arriving
applications were found to arrive in the following order (here M denoted a male applicant and
F a female applicant).
M F M M F F F M F M M M F F F F M M M F F M F M M
Can you conclude that the applicantions for admission arrive randomly with respect to gender?
User = 0.05.