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.

s = npq = 224×<br />

0.<br />

75×<br />

0.<br />

25 = 6.48.<br />

5.1 Inference on One Population 177<br />

Hence, using the continuity correction, we obtain z = (168 – 176 + 0.5)/6.48 =<br />

−1.157, to which corresponds a one-tailed probability of 0.124 as reported in<br />

Table 5.3.<br />

Example 5.4<br />

Q: Consider the Freshmen dataset, relative to the Porto Engineering College.<br />

Assume that this dataset represents a r<strong>and</strong>om sample of the population of freshmen<br />

in the College. Does this sample support the hypothesis that there is an even<br />

chance that a freshman in this College can be either male or female?<br />

A: We formalise the test as:<br />

H0: P(ω =1) = ½;<br />

H1: P(ω =1) ≠ ½.<br />

The results obtained with <strong>SPSS</strong> are shown in Table 5.4. Based on these results,<br />

we reject the null hypothesis with high confidence.<br />

Note that <strong>SPSS</strong> always computes a two-tailed significance for a test proportion<br />

of 0.5 <strong>and</strong> a one-tailed significance otherwise.<br />

Table 5.4. Binomial test results, obtained with <strong>SPSS</strong>, for the freshmen dataset.<br />

Category n<br />

Observed<br />

Prop.<br />

Test Prop.<br />

Asymp. Sig.<br />

(2-tailed)<br />

SEX Group 1 female 35 0.27 0.50 0.000<br />

Group 2 male 97 0.73<br />

Total 132 1.00<br />

Comm<strong>and</strong>s 5.2. <strong>SPSS</strong> <strong>and</strong> <strong>STATISTICA</strong> comm<strong>and</strong>s used to specify case<br />

weighing.<br />

<strong>SPSS</strong> Data; Weight Cases<br />

<strong>STATISTICA</strong> Tools; Weight<br />

These comm<strong>and</strong>s pop up a window where one specifies which variable to use as<br />

weight variable <strong>and</strong> whether weighing is “On” or “Off”. Many <strong>STATISTICA</strong><br />

comm<strong>and</strong>s also include a weight button ( ) in connection with the weight<br />

specification window. Case weighing is useful whenever the datasheet presents the

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

Saved successfully!

Ooh no, something went wrong!