ChiSquared Test of AssociationIndependance A survey was cond
Chi-Squared Test of Association/Independance
A survey was conducted of 200 people and their responses were categorized by party affiliation and opinion on gun control. The results are shown in this table.
A) Fill in the table below with the expected counts
B) Based on this sample, does a person\'s opinion on gun control depend on party affiliation, at the .05 level of significance?
| Observed | Favor | Oppose | Unsure | Total | 
| Democrat | 44 | 48 | 18 | 110 | 
| Republican | 32 | 48 | 10 | 90 | 
| Total | 76 | 96 | 28 | 200 | 
Solution
(A)
---------------------------------------------------------------------------------------------------------
(B) Null hypothesis: a person\'s opinion on gun control do not depend on party affiliation
Alternative hypothesis: a person\'s opinion on gun control depend on party affiliation
The test statistic is
chisquare=2.20
the degree of freedom =2
the p-value=0.3325 (from chisquare table)
Since the p-value is larger than 0.05, we do not reject the null hypothesis.
So we can not conclude that a person\'s opinion on gun control depend on party affiliation
| Favor | Oppose | Unsure | Total | ||
| Democrat | Observed | 44 | 48 | 18 | 110 | 
| Expected | 41.80 | 52.80 | 15.40 | 110.00 | |
| Republican | Observed | 32 | 48 | 10 | 90 | 
| Expected | 34.20 | 43.20 | 12.60 | 90.00 | |
| Total | Observed | 76 | 96 | 28 | 200 | 
| Expected | 76.00 | 96.00 | 28.00 | 200.00 | 

