You are on page 1of 7

WILCOXON

SIGNED RANK
TEST
NONPARAMETRIC TEST (TWO RELATED SAMPLES)
- Testing paired observations to see if
the second random variable in the pair
has the same median as the first
- Testing whether a particular sample
came from a population with a specific
median
Distribution of each D(i) is symmetric.
The D(i)s are mutually independent.
At least interval D(i) = |Y(i) – X(i)|
HYPOTHESES
A. Two-tailed Test
𝐻0 : 𝑀𝑑𝑋 = 𝑀𝑑𝑌 𝐻1 : 𝑀𝑑𝑋 ≠ 𝑀𝑑𝑌

B. One-tailed Test
𝐻0 : 𝑀𝑑𝑌 ≤ 𝑀𝑑𝑋 𝐻1 : 𝑀𝑑𝑌 > 𝑀𝑑𝑋

𝐻0 : 𝑀𝑑𝑌 ≥ 𝑀𝑑𝑋 𝐻1 : 𝑀𝑑𝑌 < 𝑀𝑑𝑋


A driving instructor is interested on the effect of
alcohol on the fitness to drive. Learners had to
drive the same test course with 0 per mill and with
0.8 per mill blood alcohol level. Driving errors of the
learners were measured. The following table shows
the raw data and rank scores for each learner.

See table at:


https://secure.brightstat.com/index.php?p=c&d=1
&c=2&i=6
𝐻0 : 𝐷𝑟𝑖𝑣𝑒𝑟𝑠 𝑤𝑖𝑡ℎ 0.8 𝑝𝑒𝑟 𝑚𝑖𝑙𝑙 𝑏𝑙𝑜𝑜𝑑 𝑎𝑙𝑐𝑜ℎ𝑜𝑙 𝑙𝑒𝑣𝑒𝑙 𝑡𝑒𝑛𝑑 𝑡𝑜 ℎ𝑎𝑣𝑒 𝑙𝑒𝑠𝑠 𝑑𝑟𝑖𝑣𝑖𝑛𝑔 𝑒𝑟𝑟𝑜𝑠 𝑡ℎ𝑎𝑛
𝑡ℎ𝑜𝑠𝑒 𝑤𝑖𝑡ℎ 0 𝑝𝑒𝑟 𝑚𝑖𝑙𝑙. 𝐻0 : 𝑀𝑑𝑌 ≤ 𝑀𝑑𝑋 (𝑖𝑓 𝑌 𝑖𝑠 0.8 𝑝𝑒𝑟 𝑚𝑖𝑙𝑙)
𝐻1 : 𝐷𝑟𝑖𝑣𝑒𝑟𝑠 𝑤𝑖𝑡ℎ 0.8 𝑝𝑒𝑟 𝑚𝑖𝑙𝑙 𝑏𝑙𝑜𝑜𝑑 𝑎𝑙𝑐𝑜ℎ𝑜𝑙 𝑙𝑒𝑣𝑒𝑙 𝑡𝑒𝑛𝑑 𝑡𝑜 ℎ𝑎𝑣𝑒 𝑚𝑜𝑟𝑒 𝑑𝑟𝑖𝑣𝑖𝑛𝑔 𝑒𝑟𝑟𝑜𝑠 𝑡ℎ𝑎𝑛
𝑡ℎ𝑜𝑠𝑒 𝑤𝑖𝑡ℎ 0 𝑝𝑒𝑟 𝑚𝑖𝑙𝑙. 𝐻1 : 𝑀𝑑𝑌 > 𝑀𝑑𝑋 (𝑖𝑓 𝑌 𝑖𝑠 0.8 𝑝𝑒𝑟 𝑚𝑖𝑙𝑙)

Even at the 1% level


of significance, we
reject the null
hypothesis.
Subject X Median X Median
1 23.8 30 35.9 30
Thirty observations 2 26 30 36.1 30
3 26.9 30 36.4 30
on a random 4 27.4 30 36.6 30
variable X are 5 28 30 37.2 30
obtained in order 6 30.3 30 37.3 30
to test the 7 30.7 30 37.9 30
8
hypothesis that 31.2 30 38.2 30
9 31.3 30 39.6 30
the median of X is 10 32.8 30 40.6 30
no longer than 30. 11 33.2 30 41.1 30
12 33.9 30 42.3 30
13 34.3 30 42.8 30
14 34.9 30 44 30
15 35 30 45.8 30
𝐻0 : 𝑇ℎ𝑒 𝑚𝑒𝑑𝑖𝑎𝑛 𝑜𝑓 𝑋 𝑖𝑠 𝑛𝑜 𝑙𝑜𝑛𝑔𝑒𝑟 𝑡ℎ𝑎𝑛 30.
𝐻1 : 𝑇ℎ𝑒 𝑚𝑒𝑑𝑖𝑎𝑛 𝑜𝑓 𝑋 𝑖𝑠 𝑙𝑎𝑟𝑔𝑒𝑟 𝑡ℎ𝑎𝑛 30.

Even at the
1% level of
significance,
we reject the
null
hypothesis.

You might also like