In: Statistics and Probability
Marijuana |
||
Cigarettes |
Yes |
No |
Yes |
914 |
581 |
No |
46 |
735 |
The observed tables with total are given below
Observed | |||
Mar - Yes | Mar - No | Total | |
Cig - Yes | 914 | 581 | 1495 |
Cig - No | 46 | 735 | 781 |
Total | 960 | 1316 | 2276 |
______________________________
(a) The Hypothesis:
H0: There is no association between cigarettes and Marijuana use.
Ha: There is an association between cigarettes and Marijuana use.
___________________
(b) We want the expected value of Cell 1, which is Yes cigarettes and yes marijuana
The Expected value of a cell = Row total * Column Total / N = 1495 * 960 / 2276 = 630.58
___________________
(c) The p value for test = 642.03 is 0.0000
The test Statistic and The expected value tables are given below
Expected | |||
Mar - Yes | Mar - No | Total | |
Cig - Yes | 630.58 | 864.42 | 1495 |
Cig - No | 329.42 | 451.58 | 781 |
Total | 960 | 1316 | 2276 |
Number | Observed | Expected | (O-E) | (O-E)2 | (O-E)2/E |
1 | 914 | 630.58 | 283.42 | 80326.91632 | 127.3858 |
2 | 46 | 329.42 | -283.42 | 80326.91632 | 243.8434 |
3 | 581 | 864.42 | -283.42 | 80326.91632 | 92.9258 |
4 | 735 | 451.58 | 283.42 | 80326.91632 | 177.8797 |
Total | 642.0347 |
____________________________________________________
(d) Since p value is very low, we reject the null hypothesis (at all levels of alpha).
Therefore there is sufficient evidence that there is an association between cigarettes and marijuana.
____________________________________________________