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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Then, the following test statistic:<br />

t<br />

*<br />

A<br />

B<br />

4.4 Inference on Two Populations 135<br />

=<br />

xA<br />

− xB<br />

2 2<br />

sA<br />

sB<br />

+<br />

n n<br />

, 4.14<br />

has a Student’s t distribution with the following degrees of freedom:<br />

2<br />

A<br />

2<br />

sA<br />

2<br />

A )<br />

A<br />

2<br />

B /<br />

2<br />

( sB<br />

B<br />

2<br />

( / nA<br />

+ s nB<br />

)<br />

df = . 4.15<br />

2<br />

( s / n / n + / n ) / n<br />

B<br />

In order to decide which case to consider – equal or unequal variances – the F<br />

test or Levene’s test, described in section 4.4.2, are performed. <strong>SPSS</strong> <strong>and</strong><br />

<strong>STATISTICA</strong> do precisely this.<br />

Example 4.9<br />

Q: Consider the Wines’ dataset (see description in Appendix E). Test at a 5%<br />

level of significance whether the variables ASP (aspartame content) <strong>and</strong> PHE<br />

(phenylalanine content) can distinguish white wines from red wines. The collected<br />

samples are assumed to be r<strong>and</strong>om. The distributions of ASP <strong>and</strong> PHE are well<br />

approximated by the normal distribution in both populations (white <strong>and</strong> red wines).<br />

The samples are described by the grouping variable TYPE (1 = white; 2 = red) <strong>and</strong><br />

their sizes are n1 = 30 <strong>and</strong> n2 = 37, respectively.<br />

A: Table 4.6 shows the results obtained with <strong>SPSS</strong>. In the interpretation of these<br />

results we start by looking to Levene’s test results, which will decide if the<br />

variances can be assumed to be equal or unequal.<br />

Table 4.6. Partial table of results obtained with <strong>SPSS</strong> for the independent samples t<br />

test of the wine dataset.<br />

ASP Equal<br />

variances<br />

assumed<br />

Equal<br />

variances<br />

not assumed<br />

PHE Equal<br />

variances<br />

assumed<br />

Equal<br />

variances<br />

not assumed<br />

Levene’s Test t-test<br />

F p t df<br />

p<br />

(2-tailed)<br />

Mean<br />

Difference<br />

Std. Error<br />

Difference<br />

0.017 0.896 2.345 65 0.022 6.2032 2.6452<br />

2.356 63.16 0.022 6.2032 2.6331<br />

11.243 0.001 3.567 65 0.001 20.5686 5.7660<br />

3.383 44.21 0.002 20.5686 6.0803

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

Saved successfully!

Ooh no, something went wrong!