Answer:
See below for answers and explanations
Step-by-step explanation:
Here, we are comparing two proportions of a large sample size. Therefore, conducting a 2-proportion z-test is appropriate. Conditions are already assumed, so we can conduct the test.
We are testing our null and alternate hypotheses which are:
H: p1=p2 (there is no difference)
Ha: p1≠p2 (there is a difference)
Given:
x1=180
n1=580
x2=238
n2=600
p1=180/580=0.31
p2=238/600=0.4
p=(180+238)/(580+600)=418/1180=0.35
Use the formula to calculate the z-statistic:
[tex]Z=\frac{p_1-p_2}{\sqrt{p(1-p)(\frac{1}{n_1}+\frac{1}{n_2})}}[/tex]
[tex]Z=\frac{0.31-0.4}{\sqrt{0.35(1-0.35)(\frac{1}{580}+\frac{1}{600})}}[/tex]
[tex]Z=-3.24[/tex]
Calculate p-value (note that this is two-sided):
1) normalcdf(-1e99,-3.24)=5.977105194*10^-4
2) Since this is a two-sided test, we double it to get p=0.001195421
Conclusion: Since 0.0012<0.05, we reject the null hypothesis and conclude that there is a significant difference in the proportion of individuals in these groups in favor of capital punishment for persons under the age of 18 because our p-value is extremely low.