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.

10.6 Non-Parametric Tests 399<br />

Example 10.18<br />

Q: Consider the measurements R4, R5 <strong>and</strong> R6 of the negative gradient of the Soil<br />

Pollution dataset, performed in similar conditions. Assess whether the mean<br />

gradients above <strong>and</strong> below 20 m are significantly different at 5% level.<br />

A: We establish two groups of measurements according to the value of variable z<br />

(depth) being above or below 20 m. The mean directions of these two groups are:<br />

Group 1: (156.17º, 117.40º);<br />

Group 2: (316.99º, 116.25º).<br />

Assuming that the groups are rotationally symmetric <strong>and</strong> since the sizes are<br />

n1 = 45 <strong>and</strong> n2 = 30, we apply the Watson test at a significance level of 5%,<br />

2<br />

obtaining an observed test statistic of 44.9. Since χ 0.<br />

95,<br />

2 =5.99, we reject the null<br />

hypothesis of equality of means.<br />

10.6.3 Testing Two Paired Samples<br />

The previous two-sample tests assumed that the samples were independent. The<br />

two-paired-sample test can be reduced to a one-sample test using the same<br />

technique as in Chapter 4 (see section 4.4.3.1), i.e., employing the differences<br />

between pair members. If the distributions of the two samples are similar, we<br />

expect that the difference sample will be uniformly distributed. The function<br />

dirdif implemented in <strong>MATLAB</strong> (see Comm<strong>and</strong>s 10.3) computes the<br />

directional data of the difference set in st<strong>and</strong>ard format.<br />

Example 10.19<br />

Q: Consider the measurements M2 <strong>and</strong> M3 of the Soil Pollution dataset.<br />

Assess, at the 5% significance level, if one can accept that the two measurement<br />

methods yield similar distributions.<br />

A: Let soil denote the data matrix containing all measurements of the Soil<br />

Pollution dataset. Measurements M2 <strong>and</strong> M3 correspond to the column pairs<br />

3-4 <strong>and</strong> 5-6 of soil, respectively. We use the sequence of R comm<strong>and</strong>s shown<br />

below <strong>and</strong> do not reject the hypothesis of similar distributions at the 5% level of<br />

significance.<br />

> m2 m3 d p p<br />

[1] 0.1772144

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

Saved successfully!

Ooh no, something went wrong!