Answer:
Out of 1000 people who said that they attend a religious service at least once a week, 31 stopped to help a person with car trouble
![n_1=1000 , y_1=31](https://img.qammunity.org/2020/formulas/mathematics/high-school/5n4ukozqj8qb98nw3nlww2sjfc2l4mztz0.png)
Of 1200 people interviewed who had not attended a religious service at least once a month, 22 stopped to help a person with car trouble.
![n_2=1200 , y_2=22](https://img.qammunity.org/2020/formulas/mathematics/high-school/nn2qg9hujbr4bq521b512ry5npdefqdzhj.png)
We will use Comparing Two Proportions
![\widehat{p_1}=(y_1)/(n_1)](https://img.qammunity.org/2020/formulas/mathematics/college/z02inndzxpbyqxphz1iixsuxlkaezb4mvx.png)
![\widehat{p_1}=(31)/(1000)](https://img.qammunity.org/2020/formulas/mathematics/high-school/c4xj7ua3de25mq7h1x98arjhhky9v9mdhu.png)
![\widehat{p_1}=0.031](https://img.qammunity.org/2020/formulas/mathematics/high-school/9g98a371bq2s1rjos6fp69251w2pekiyz6.png)
![\widehat{p_2}=(y_2)/(n_2)](https://img.qammunity.org/2020/formulas/mathematics/college/39mf22m018hpanxcajma87htr74te0dkr3.png)
![\widehat{p_2}=(22)/(1200)](https://img.qammunity.org/2020/formulas/mathematics/high-school/wnwjr6h06clq4jt0sw0f232ard7p7ji0r8.png)
![\widehat{p_2}=0.0183](https://img.qammunity.org/2020/formulas/mathematics/high-school/oj3erlojd7c95orcd7lbfwrv6x5077u1hq.png)
i.e. religion service makes no difference
i.e. religion service makes difference
![\widehat{p}=(y_1+y_2)/(n_1+n_2)=(31+22)/(1000+1200) =0.024](https://img.qammunity.org/2020/formulas/mathematics/high-school/72lsyde5dozu3bt9j5wvj7pxpdhkfsptm1.png)
Formula of test statistic :
![\frac{\widehat{p_1}-\widehat{p_2}}{\sqrt{\widehat{p}(1-\widehat{p})((1)/(n_1)+(1)/(n_2))}}](https://img.qammunity.org/2020/formulas/mathematics/college/gutw8l9sxbtm0majp6m6qbwbgeh9aaon3c.png)
Substitute the values
test statistic :
![\frac{0.031-0.0183}{\sqrt{0.024(1-0.024)((1)/(1000)+(1)/(1200))}}= 1.937](https://img.qammunity.org/2020/formulas/mathematics/high-school/akhyrvsgn9so79ld4ce9q02axphnoo67q3.png)
Refer the z table for p value
p value = 0.9726
α=0.05
p value >α
So, we failed to reject null hypothesis
Hence religion service makes no difference