Non Parametric Test
Non Parametric Test
9 NONPARAMETRIC PROXLEDURES
337
9.9 NONPARAMETRIC PROCEDURES
rank 1, the "next-best" formulation assigned rank 2, and soforth. It is unlikely that rank
signed
data satisfy the normality assumption. Transtformations may not prove satisfactory either.
median. Therefore, the sign test can be uscu to test equals the
tribution. This is the same problem for which we
hypotheses about the mean of a normal dis-
previously uscd the 1-test.
cuss the relative merits
of the two procelures in Section 9-9.3 Note that, We will briefly dis-
was designed for samples from a normal
distribution, the although the t-test
ftom any continuous distribution. Thus, the sign test is a sign
test is
appropriate for samples
Suppose that the hypotheses ure nonparametric procedure.
H: o (9-51)
The test procedure is easy
to describe. Suppose that Xi, X2..., A, is a random sample from the
population of interest. Form the differences
X,-o. i = 1, 2.....n
(9-52)
Now if the null hypothesis Ho: ji Po is truc, any difference X, y is
=
cqually likcly to
-
P PRr when p
is less than or cqual to some preseclected
significance level a, we will reject H, and conclude
H is true.
To test the other one-sided hypotheses
Hy = Po
H:>u (9-53)
we will reject H, in favor of H only if the observed number of plus signs, say, r", is large or,
equivalently, whenever the observed fraction of plus signs is significantly greater than 1/2.
Thus, if the computed P-value
P -PR r when p
is less than a, we will reject Hy and conclude that H is true.
The two-sicted alternative may also be tested. If the hypotheses are
Hy: Po
(9-54)
we should reject Ho: p. = ro if the proportion of plus signs is signiticantly different from
(cither less than or greater than) 1/2. This is equivalent to the observed number of plus signs r"
9.9 NONPARAMETRIC PROXEMURES
339
being either sufficiently Jarge or suficiently
smaill. Thus, if* n2. the P-value is
P 2r R'sr when
and if >
of signficance
- 01153
min
Table VIll presernts critical values r for the sign test that ensure that
I crror)
P (reject Ho when H is true)
=
for a =
0.01, a - 0.05 and a
« =
P (type
0.10. If the
-
Normal
Approximation
for Sign Test
Statistie 0.5Vn (9-55)
9.9 NONPARAMETRIC PROCEDURES
341
any hypothesis-testing
procedure, it is important to investigate the probability of a type il error. B. The test should be
able to effectively detect departures from the null hypothesis, and a good measure of this
effectiveness is the value of B for departures that are important. A small value of B implies an
effective test procedure.
In determining B, it is important to realize not only that a particular value of i. say. i, + 3,
must be used but also that the form of the unterlying distribution will affect the calculations. To
illustrate, supyose that the underlying distribution is normal with o = I and we are testing the
hypothesis Ho: i = 2 versus H1: > 2. (Since i = n the normal distribution. this is equiv
alent to testing that the mean cquals 2.) SuppOse that it is important to detect a departure from
i 2 to = 3 . The situation is illustrated graphically in Fig. 9-15(a). When the alternative
hypothesis is true (H: = 3). the probability that the random variable X is less than or equal to the
value 2 is
Suppose we have taken a random sample of size 12. At the a = 0.05 level, Appendix Table VII
indicates that we would reject Ho: ë = 2 ifr" s rhos = 2. Therefore, B is the probability that
we do not reject Ho: i = 2 when in fact i = 3, or
If the distribution of A
had been cxponcntial rather than normal, the situation would be as
shown in Fig. 9-15(b), and the probability that the random variable X is
less than or equal
to the valtne x =
2 when ji 3 (note that when the median of an
=
In this case.
B1
( J0.3699y(0.6301)12- =
0.8794
Thus, for the sign test depends not only on the alternative value of
to the iivht of the value p but also on the area
specified in the null hypothesis under the population probability
42 HATER TESTS ( HYA THESES R AsN SAME
587
2 12 3 4 6
UnderH i+2 Under H 3
3699
b
Figure 9.15 Caculation of ß for the sign test. (a) Normal distributions. (b) Exponential
distributions.
distribution. This area is highly dependent on the shape of that particular probability
distribution. In this example. B is large so the ability of the test to detect this departure trom
the mull bypothesis with the current sample size is poor.
The sign makes use only of the plus and minus signs of the differences between the observa-
tions and the median io (or the plus and minus signs of the differences between the observa-
tions in the paired case). I does not take into account the size or magnitude of these differ-
ences. Frank Wilcoxon devised a test procedure that úses both direction (sign) and magnitude.
This procedure, now called the Wilcoxon signed-rank test, is discussed and illustrated in this
section.
The Wilcoxon signed-rank test applies to the case of symmetrie continuous distribu-
tions. Under these assumptions, the mean equals the median, and we can use this procedure to
test the null hypothesis
X ol,i = 1,2,.. ..n in ascending order, and then give the ranks the signs of their
corresponding differences. Let W" be the sum of the positive ranks and W be the absolute
9.9 NONPARAMETRIC PROCEDURES
343
nn+1)(2n + 1)
24
Thcrcforc, a test of Ho: =
Ho can be bascd on the statistic
Normal
Approvimation
for Wilcaxon w* n{n +
1/4
Sigved-Rank
Statistic
ZVnln+ 2n +1)y24 (9-56)
An
appropriate critical region for cither the two-sidcd
or one-sided
be chosen from a table of the standard normal alternative hypotheses can
distribution.
9.9.3 Comparison to the t-Test
If the
underlying population is normal, either the sign lest or the
a
hypothesis about the population median. The -test t-test could be used
is known lo have the
to test
Bpossible among all tests that have smallest value of
tests with
symmetric significance level for
critical
« the one-sided alternative
and for
sign test in the regions
for the two-sided
alternative, so it is
normal distribution case. When the superior to the
nonnormal (but with finite mean), the population
t-test will have a
distribution is symmetric and
the sign test, unless the smaller B (or a
distribution has very heavy tails higher power) than
the sign test is
usually considered a test procedure for thecompared with the normal. Thus,
competitor for the t-test. The Wileoxon median rather than as a
serious
compares well with the 1-test for signed-rank test is preferable to the sign test and
where a transformation on the symmetric distributions. It can be useful in
observations does not produce a situations
ably close to the normal. distribution that is reason