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.

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

cases, it was even shown that the Mann-Whitney test is more powerful than the t<br />

test! There is also evidence that it should be preferred over the previous<br />

Kolmogorov-Smirnov test for large samples.<br />

Example 5.14<br />

Q: Consider the Programming dataset. Does this data support the hypothesis that<br />

freshmen <strong>and</strong> non-freshmen have different distributions of their scores?<br />

A: The Mann-Whitney test results are summarised in Table 5.18. From this table<br />

one concludes that the null hypothesis (equal distributions) cannot be rejected at<br />

the 5% level. In R this test would be solved with wilcox.test<br />

(Score~F)yielding the same results for the “Mann-Whitney U” <strong>and</strong> “Asymp.<br />

Sig.” as in Table 5.18.<br />

Table 5.18. Mann-Whitney test results obtained with <strong>SPSS</strong> for Example 5.14:<br />

a) Ranks; b) Test statistic <strong>and</strong> significance. F=1 for freshmen; 0, otherwise.<br />

a<br />

F N<br />

Mean<br />

Rank<br />

Sum of<br />

Ranks<br />

0 34 132.68 4511<br />

1 237 136.48 32345<br />

Total 271<br />

b<br />

SCORE<br />

Mann-Whitney U 3916<br />

Wilcoxon W 4511<br />

Z −0.265<br />

Asymp. Sig.<br />

0.791<br />

(2-tailed)<br />

Table 5.19. Ranks for variables ASP <strong>and</strong> PHE (Example 5.15), obtained with<br />

<strong>SPSS</strong>.<br />

TYPE N Mean Rank Sum of Ranks<br />

ASP 1 30 40.12 1203.5<br />

2 37 29.04 1074.5<br />

Total 67<br />

PHE 1 30 42.03 1261.0<br />

2 37 27.49 1017.0<br />

Total 67<br />

Example 5.15<br />

Q: Consider the t test performed in Example 4.9, for variables ASP <strong>and</strong> PHE of the<br />

wine dataset. Apply the Mann-Whitney test to these continuous variables <strong>and</strong><br />

compare the results with those previously obtained.

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

Saved successfully!

Ooh no, something went wrong!