In: Math
For this assignment, you will create a cross tabs and conduct a chi-square test of independence. Begin by asking some of your friends or acquaintances (you'll need both males and females) what their favorite pet type is, out of a dog, a cat, a hamster, or a lizard. Then, create a cross tabs (you can use the following template) with this information. Crosstabs: Gender and Favorite Pet Type Dog Cat Hamster Lizard Total Female Male Total Once you have completed a cross tabs, create a report of 1-2 pages in which you address the following: Explain whether or not you expect there to be a significant relationship between these variables based on the information you've collected. Then, conduct a chi-square test for your data. Use the appropriate table in your textbook to determine if the result is significant. Explain what this implies for the variables.
We can see that females tend to prefer cats whereas male's have likened dog as their favorite pet type. We expect gender and pet preference are related to each other.
Chi - Square test
H0 : Gender and pet preference are independent
H1 : Gender and pet preference are not independent
DF = (no. of variables of gender - 1) * (no. of variables of pet - 1) = (r-1) (c-1) = (2-1) (4-1)= 3
Er,c = (nr * nc) / n
E1,1 = (34 * 19) / 67 = 9.64
E1,2 = (34 * 21) / 67 = 10.66
E1,3 = (34 * 17) / 67 = 8.62
E1,4 = (34 * 10) / 67 = 5.07
E2,1 = (33 * 19) / 67 = 9.36
E2,2 = (33 * 21) / 67 = 10.34
E2,3 = (33 * 17) / 67 = 8.37
E2,4 = (33 * 10) / 67 = 4.92
X2 = Σ [ (Or,c - Er,c)2 / Er,c ]
X2 = ((7-9.64)2/67) + ((15-10.66)2/67) + ....((8-8.37)2/67) + ((7-4.92)2/67)
X2 = 0.902
Using the df and X2 we find the p-value
p-value is 0.82 is greater than significance level (0.05), we cannot reject H1. Thus we may conclude that there is not significance evidence to claim that gender and pet preference are related.