To test independence of two attributes we use chi-square test.
The given information is:
number of rows m=2
number of column n=3
Hypothesis:
H0 - The Party Affiliation and Opinion on Tax Reform are independent.
H1 - The Party Affiliation and Opinion on Tax Reform are dependent.
Test statistic:
χ2=∑nj=1∑mi=1Eij(Oij−Eij)2χ2=∑nj=1∑mi=1EijOij2−N
Is follow χ2 distribution with (m-1)(n-1) degrees of freedom.
Oij - observed frequency ithrow and jth column
Eij - expected frequency ith row and jth column
Eij=N(ithrowtotal)×(jthcolumntotal)E11=NR1×C1=500285×202=115.14E12=NR1×C2=500285×150=85.5E13=NR1×C3=500285×148=84.36E21=NR2×C1=500215×202=86.86E22=NR2×C2=500215×150=64.5E23=NR2×C3=500215×148=63.64χ2=115.141382+85.5832+84.36642+86.86642+64.5672+63.64842−500=22.0147
Critical value or table value at
(m−1)(n−1)=(2−1)(3−1)=1×2=2 degrees of freedom and 5 % level of significance.
Tabχ2=5.991
Calχ2>Tabχ2
Reject null hypothesis at 5 % level of significance.
There is enough evidence to conclude that the Party Affiliation and Opinion on Tax Reform are dependent at 5 % level of significance.
Comments