Docsity

The Single-Rank Test - Lecture Notes | STAT 514, Exams of Applied Statistics

Toggle sidebar
bg1
The Signed-Rank test
As we have seen before, the permutation test for raw-data paired-comparisons
can be unduly affected by outliers, so a rank-based test will be useful. This
leads us to the Wilcoxon signed-rank test. For this test, we rank the abso-
lute value of the differences, and then add the sign of the difference to its’
rank. The Wilcoxon signed-rank statistic SR+is the sum of the positive
signed ranks. We can obtain permutation p values for this test by either enu-
merating the permutation distribution of all 2npossible +/−combinations
of ranks Ri, or we can obtain a sample from this distribution, as outlined in
the text. When there are no ties a large sample approximation may be used
with:
E(SR+) = n(n+ 1)
4, V ar(SR+) = n(n+ 1)(2n+ 1)
24 ,
and
Z=SR+−E(SR+)
pV ar(SR+).
The Signed-Rank test with ties
There are two types of ties that can occur. For Divalues that are equal,
but not 0, the usual adjusted-ranks can be used. However, if the raw data are
tied so that some Divalues are 0, then there are two approaches: i) ranking
with zeros, or ii) ranking without zeros. These methods are illustrated in the
text. Again, either permutation p values can be obtained or a large-sample
approximation can be used. Note that for the large-sample approximation,
E(SR+) = 1
2
m
X
i=1
|Signed Ranks|and V ar(SR+) = 1
4
m
X
i=1
(Signed Ranks)2,
where mis the number of nonzero differences.
The Sign Test
The sign test counts the number of positive differences, denoted by SN+.
Under the null hypothesis of no difference, SN+follows a binomial distribu-
tion with p=.5.Thus p values can be computed directly,
P(SN+≥k) =
n
X
i=kµn
i(.5)n
1
pf2

Partial preview of the text

Download The Single-Rank Test - Lecture Notes | STAT 514 and more Exams Applied Statistics in PDF only on Docsity!

The Signed-Rank test As we have seen before, the permutation test for raw-data paired-comparisons can be unduly affected by outliers, so a rank-based test will be useful. This leads us to the Wilcoxon signed-rank test. For this test, we rank the abso- lute value of the differences, and then add the sign of the difference to its’ rank. The Wilcoxon signed-rank statistic SR+ is the sum of the positive signed ranks. We can obtain permutation p values for this test by either enu- merating the permutation distribution of all 2n^ possible +/− combinations of ranks Ri, or we can obtain a sample from this distribution, as outlined in the text. When there are no ties a large sample approximation may be used with:

E(SR+) =

n(n + 1) 4

, V ar(SR+) =

n(n + 1)(2n + 1) 24

and

Z =

SR+ − E(SR+)

V ar(SR+)

The Signed-Rank test with ties There are two types of ties that can occur. For Di values that are equal, but not 0, the usual adjusted-ranks can be used. However, if the raw data are tied so that some Di values are 0, then there are two approaches: i) ranking with zeros, or ii) ranking without zeros. These methods are illustrated in the text. Again, either permutation p values can be obtained or a large-sample approximation can be used. Note that for the large-sample approximation,

E(SR+) =

∑^ m

i=

|Signed Ranks| and V ar(SR+) =

∑^ m

i=

(Signed Ranks)^2 ,

where m is the number of nonzero differences. The Sign Test The sign test counts the number of positive differences, denoted by SN+. Under the null hypothesis of no difference, SN+ follows a binomial distribu- tion with p =. 5. Thus p values can be computed directly,

P (SN+ ≥ k) =

∑^ n

i=k

n i

(.5)n

or via a normal approximation using,

Z =

SN+ − n/ 2 √ n/ 4

General Scoring Systems, selecting a Paired-Comparison test