01.03.2013 Views

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

210 5 Non-Parametric Tests of Hypotheses<br />

these are assigned the average of the ranks that would have been assigned without<br />

ties. Finally, each rank gets the sign of the respective difference. For the MC <strong>and</strong><br />

MA variables of Example 5.17, the ranks are computed as:<br />

MC: 2 2 2 2 1 2 3 2<br />

MA: 1 3 1 1 1 4 2 4<br />

MC – MA: +1 –1 +1 +1 0 –2 +1 –2<br />

Ranks: 1 2 3 4 6 5 7<br />

Signed Ranks: 3 –3 3 3 –6.5 3 –6.5<br />

Note that all the magnitude 1 differences are tied; we, therefore, assign the<br />

average of the ranks from 1 to 5, i.e., 3. Magnitude 2 differences are assigned the<br />

average rank (6+7)/2 = 6.5.<br />

The Wilcoxon test uses the test statistic:<br />

T + = sum of the ranks of the positive di. 5.36<br />

The rationale is that under the null hypothesis − samples are from the same<br />

population or from populations with the same median − one expects that the sum of<br />

the ranks for positive di will balance the sum of the ranks for negative di. Tables of<br />

the sampling distribution of T + for small samples can be found in the literature. For<br />

large samples (say, n > 15), the sampling distribution of T + converges<br />

asymptotically, under the null hypothesis, to a normal distribution with the<br />

following parameters:<br />

n(<br />

n + 1)<br />

µ + = ;<br />

T 4<br />

2 n(<br />

n + 1)(<br />

2n<br />

+ 1)<br />

σ + =<br />

. 5.37<br />

T 24<br />

A test procedure similar to the t test can then be applied in the large sample<br />

case. Note that instead of T + the test can also use T – the sum of the negative ranks.<br />

Table 5.23. Wilcoxon test results obtained with <strong>SPSS</strong> for the SPB-AEB<br />

comparison (FHR dataset) in Example 5.19: a) ranks, b) significance based on<br />

negative ranks.<br />

Total 51<br />

a<br />

N Mean Rank Sum of Ranks<br />

Negative Ranks 18 20.86 375.5<br />

Positive Ranks 31 27.40 849.5<br />

Ties 2<br />

b<br />

AE − SP<br />

Z –2.358<br />

Asymp. Sig.<br />

(2-tailed)<br />

0.018

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!