Respuesta :
Answer:
There is enough evidence to support the claim that there is a significant difference in the proportion of residents and commuters who prefer the switch.
Step-by-step explanation:
This is a hypothesis test for the difference between proportions.
The claim is that there is a significant difference in the proportion of residents and commuters who prefer the switch.
Then, the null and alternative hypothesis are:
[tex]H_0: \pi_1-\pi_2=0\\\\H_a:\pi_1-\pi_2\neq 0[/tex]
The significance level is 0.05.
The sample 1 (residents), of size n1=200 has a proportion of p1=0.4.
[tex]p_1=X_1/n_1=80/200=0.4[/tex]
The sample 2 (conmuters), of size n2=200 has a proportion of p2=0.6.
[tex]p_2=X_2/n_2=120/200=0.6[/tex]
The difference between proportions is (p1-p2)=-0.2.
[tex]p_d=p_1-p_2=0.4-0.6=-0.2[/tex]
The pooled proportion, needed to calculate the standard error, is:
[tex]p=\dfrac{X_1+X_2}{n_1+n_2}=\dfrac{80+120}{200+200}=\dfrac{200}{400}=0.5[/tex]
The estimated standard error of the difference between means is computed using the formula:
[tex]s_{p1-p2}=\sqrt{\dfrac{p(1-p)}{n_1}+\dfrac{p(1-p)}{n_2}}=\sqrt{\dfrac{0.5*0.5}{200}+\dfrac{0.5*0.5}{200}}\\\\\\s_{p1-p2}=\sqrt{0.0013+0.0013}=\sqrt{0.0025}=0.05[/tex]
Then, we can calculate the z-statistic as:
[tex]z=\dfrac{p_d-(\pi_1-\pi_2)}{s_{p1-p2}}=\dfrac{-0.2-0}{0.05}=\dfrac{-0.2}{0.05}=-4[/tex]
This test is a two-tailed test, so the P-value for this test is calculated as (using a z-table):
[tex]P-value=2\cdot P(z<-4)=0.00008[/tex]
As the P-value (0.00008) is smaller than the significance level (0.05), the effect is significant.
The null hypothesis is rejected.
There is enough evidence to support the claim that there is a significant difference in the proportion of residents and commuters who prefer the switch.