14.08.2013 Views

STAT170 Workshop Notes prepared by Nan Carter for Numeracy ...

STAT170 Workshop Notes prepared by Nan Carter for Numeracy ...

STAT170 Workshop Notes prepared by Nan Carter for Numeracy ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

EXERCISE: In a Canadian experiment to examine the claim that<br />

the use of vitamin C helps to prevent the common cold, 818<br />

volunteers were randomly divided into 2 groups (one of 411 and<br />

the other of 407), and received a supply of either vitamin C<br />

or placebo. The results are shown below:<br />

TREATMENT<br />

OUTCOME<br />

placebo Vitamin C TOTALS<br />

Has Colds 335 302 637<br />

No Colds 76 105 181<br />

TOTALS 411 407 818<br />

Do these data suggest that getting a cold is independent of<br />

whether or not the subjects received vitamin C?<br />

Can the risk of a cold be reduced <strong>by</strong> using vitamin C?<br />

vitamin C<br />

Observed counts<br />

response<br />

determinant yes no total<br />

placebo 335 76 411<br />

vitamin C 302 105 407<br />

total 637 181 818<br />

Expected counts<br />

response<br />

determinant yes no total<br />

placebo 320.1 90.9 411.0<br />

vitamin C 316.9 90.1 407.0<br />

total 637.0 181.0 818.0<br />

Chi-squared decomposition<br />

response<br />

determinant yes no total<br />

placebo 0.698 2.455 3.153<br />

vitamin C 0.704 2.479 3.184<br />

total 1.402 4.934 6.337<br />

Test:<br />

df<br />

chisq<br />

p-val<br />

Indep 1 6.34 0.012<br />

determinant response OR 95% CI<br />

placebo /<br />

vitamin C yes / no 1.53 1.10 2.14<br />

42<br />

<strong>Nan</strong> <strong>Carter</strong>: workshop notes <strong>prepared</strong> <strong>for</strong> <strong>Numeracy</strong> Centre Macquarie University.

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

Saved successfully!

Ooh no, something went wrong!