Question #175411

Two sample of votes for two candidates A and B for a public officer are taken one from among the residents of rural areas the results are given in the adjoining table examine whether the nature of the area is related to voting preference in this election


Expert's answer



H0:H_0: the nature of the area is not related to voting preference in this election.

H1:H_1: the nature of the area is related to voting preference in this election.

Sample size n=100.n=100.

α=0.05\alpha=0.05

We will use χ2\chi^2 test.

We have the contingency table 2×22\times 2 with the observed values.

We calculate the expected values:

Expected value (A, Rural)=56⋅39100=21.84=56\cdot\frac{39}{100}=21.84.

Expected value (A, Urban)=56⋅61100=34.16=56\cdot\frac{61}{100}=34.16.

Expected value (B, Rural)=44⋅39100=17.16.=44\cdot\frac{39}{100}=17.16.

Expected value (B, Urban)=44⋅61100=26.84.=44\cdot\frac{61}{100}=26.84.

χobs2=∑(Oi−Ei)2Ei≈0.58\chi^2_{obs}=\sum\frac{(O_i-E_i)^2}{E_i}\approx 0.58.

Using CHISQ.DIST.RT (χobs2;df\chi^2_{obs};df) in Excel we find p−value≈0.45.p-value\approx 0.45.

df=(2−1)(2−1)=1.df=(2-1)(2-1)=1.

p−value>α.p-value>\alpha. So we accept H0:H_0: the nature of the area is not related to voting preference in this election.


LATEST TUTORIALS
APPROVED BY CLIENTS