A local fertility specialist noticed that some of her patients were heavy coffee drinkers. She wanted to know if there was any association between coffee drinking and conception in the first year of trying. She asked a random sample 40 patients (some of whom have successfully become pregnant) about coffee drinking. The table below summarizes the data (table entries represent raw frequencies of women in terms of pregnant or not and coffee drinker or not). Using alpha =.01, use the 2-way Chi-square to determine whether there is any relation between successful pregnancy and coffee drinking.
Coffee |
|||
Yes (drinker) |
No (no-drinker) |
||
Pregnant |
Yes (pregnant) |
6 |
15 |
Not (not pregnant) |
9 |
10 |
1. Write down the null and alternative hypothesis. (2pt)
2. Specify the Degrees of Freedom (2pt).
3. Determine the critical value (need to use chi-square Table) (2pt)
4. Conduct necessary calculation and state the conclusion based on your calculation (8pt)
Solution:
The given data is as follows:
Coffee | ||||
Yes(drinker) | No(drinker) | Total | ||
Pregnant | Yes(Pregnant) | 6(a) | 15(b) | 21(a+b) |
Not(Pregnant) | 9(c) | 10(d) | 19(c+d) | |
Total | 15(a+c) | 25(b+d) | 40(N) |
1)Null and alternative hypothesis are as follows:
Null hypothesis is that two attributes "pregnancy and coffee drinking" are independent.
Alternative hypothesis is that they are not independent.
2)Formula to find degree of freedom is df=(rows-1)*(columns-1)=(2-1)*(2-1)=1
3)Determination of critical value
For
=0.01 and df=1, the critical value from Chi-square distribution
table is 6.635.
4)Calculation of test statistics.
Formula to find chi-square test, X2=N(ad-bc)2/ R1R2C1C2 where R1=a+b,R2=c+d,C1=a+c,C2=b+d and N=a+b+c+d
Coffee | ||||
Yes(drinker) | No(drinker) | Total | ||
Pregnant | Yes(Pregnant) | 6(a) | 15(b) | 21(a+b) |
Not(Pregnant) | 9(c) | 10(d) | 19(c+d) | |
Total | 15(a+c) | 25(b+d) | 40(N) |
From the above table let us calculate X2 value.
X2=40[(6*10)-(15*9)]2 /(21*19*15*25)
=225000/149625
=1.5
Since X2 observed value=1.5 is less than the X2 critical value=6.635,we fail to reject the null hypothesis and conclude that the two attributes "pregnancy and coffee drinking" are independent.
A local fertility specialist noticed that some of her patients were heavy coffee drinkers. She wanted...