Answer:
P-value = 0.0367
Explanation:
This is a hypothesis test for a proportion.
The claim is that the percentage of residents who favor construction is significantly over 42%.
Then, the null and alternative hypothesis are:
![H_0: \pi=0.42\\\\H_a:\pi>0.42](https://img.qammunity.org/2021/formulas/mathematics/college/s705521o3uds3659vs51ie7bmf0dwddjfk.png)
The sample has a size n=900.
The sample proportion is p=0.45.
The standard error of the proportion is:
![\sigma_p=\sqrt{(\pi(1-\pi))/(n)}=\sqrt{(0.42*0.58)/(900)}\\\\\\ \sigma_p=√(0.000271)=0.016](https://img.qammunity.org/2021/formulas/mathematics/college/3xh65r3484tq4gkl0xp8gbblxnwtx6ixvc.png)
Then, we can calculate the z-statistic as:
![z=(p-\pi-0.5/n)/(\sigma_p)=(0.45-0.42-0.5/900)/(0.016)=(0.029)/(0.016)=1.79](https://img.qammunity.org/2021/formulas/mathematics/college/aw53koq9hcu6sxa6bad0ohk7j929wa2va0.png)
This test is a right-tailed test, so the P-value for this test is calculated as:
![\text{P-value}=P(z>1.79)=0.0367](https://img.qammunity.org/2021/formulas/mathematics/college/lbmozl5uw2mfp7gpfavm13r7yqkepl0rfm.png)