a)Formulate a research question and corresponding null and alternative hypothesis that you will test with either a Chi-square or McNemar’s test.
b)State the null and alternative hypotheses.
c)Set up the contingency table for your test
d)Specify which test you will use and why.
A) Suppose I want to test the independence of Gender and favourite colour. In this case, gender is categorised as male or female. Favourite colour is categorised as Black Or White.
B) null hypothesis, Gender and favorite colour are independent of each other. Vs alternative hypothesis, Gender and favourite colour are dependent on each other.
C) the contingency table for this test is given below.
Fav colour | |||
black | white | ||
Gender | male | 16 | 10 |
Female | 19 | 14 |
D) in this case I observe that the data is not a paid nominal data. Hence, McNemar's test can not be applied hair as the data is not a matched pair of the subject.
To test the independence of two variables in which Gender and favorite color, it is recommended to use Chi-square test of independence.
Get Answers For Free
Most questions answered within 1 hours.