Answer:
a) A sample size of at least 251 students is needed.
b) A sample of at least 97 students is needed.
Explanation:
In a sample with a number n of people surveyed with a probability of a success of
, and a confidence level of
, we have the following confidence interval of proportions.
![\pi \pm z\sqrt{(\pi(1-\pi))/(n)}](https://img.qammunity.org/2021/formulas/mathematics/college/fmbc52n1wcsstokpszqrr2jempwxl2no1b.png)
In which
z is the zscore that has a pvalue of
.
The margin of error is:
![M = z\sqrt{(\pi(1-\pi))/(n)}](https://img.qammunity.org/2021/formulas/mathematics/college/7qc45hxeupre6iv95wgwiwshuwc7n22r9h.png)
95% confidence level
So
, z is the value of Z that has a pvalue of
, so
.
(a) you are unwilling to predict the proportion value at your school
We need a sample size of at least n.
n is found when M = 0.08.
We wont predict a proportion value for the school, so we use
![\pi = 0.5](https://img.qammunity.org/2021/formulas/mathematics/college/d76bzvq4sv41nkshav2mkhau4o61d3ihxv.png)
So
![M = z\sqrt{(\pi(1-\pi))/(n)}](https://img.qammunity.org/2021/formulas/mathematics/college/7qc45hxeupre6iv95wgwiwshuwc7n22r9h.png)
![0.08 = 1.96\sqrt{(0.5*0.5)/(n)}](https://img.qammunity.org/2021/formulas/mathematics/college/4w9nucl2dm2h69sjh68iuz30pkwd0kcn0d.png)
![0.08√(n) = 1.96√(0.5*0.5)](https://img.qammunity.org/2021/formulas/mathematics/college/eh4kqz6kxbwi0opw3abe483154a43jhpar.png)
![√(n) = (1.96√(0.5*0.5))/(0.08)](https://img.qammunity.org/2021/formulas/mathematics/college/rzg8cbk7oj2t36m99zo5rv9dh5uxr5v1c4.png)
![(√(n))^(2) = ((1.96√(0.5*0.5))/(0.08))^(2)](https://img.qammunity.org/2021/formulas/mathematics/college/v7yzn5l79uxuosqx7autjzfxqa9u05746f.png)
![n = 150.1](https://img.qammunity.org/2021/formulas/mathematics/college/mbj39jaasz5tv2s343vi6z3oc8odkz2nqg.png)
Rounding up
A sample size of at least 251 is needed.
(b) you use the results from the surveyed school as a guideline.
Now we have that
![\pi = 0.2](https://img.qammunity.org/2021/formulas/mathematics/college/2uj1ycemyiqyjyybni43hvlebhtkaob6q7.png)
So
![M = z\sqrt{(\pi(1-\pi))/(n)}](https://img.qammunity.org/2021/formulas/mathematics/college/7qc45hxeupre6iv95wgwiwshuwc7n22r9h.png)
![0.08 = 1.96\sqrt{(0.2*0.8)/(n)}](https://img.qammunity.org/2021/formulas/mathematics/college/r5rgzxmlrxx06dwl1tzmvurlp0rn0thr4e.png)
![0.08√(n) = 1.96√(0.2*0.8)](https://img.qammunity.org/2021/formulas/mathematics/college/yti2heeqixnryx40a0ngref70gxznpcdvv.png)
![√(n) = (1.96√(0.2*0.8))/(0.08)](https://img.qammunity.org/2021/formulas/mathematics/college/3ps7l6lm4lpy0u62ii0kkolvdibmxd8q34.png)
![(√(n))^(2) = ((1.96√(0.2*0.8))/(0.08))^(2)](https://img.qammunity.org/2021/formulas/mathematics/college/efie7lsuvsuk5b5naqwaa6yh8hkgxiws2d.png)
![n = 96.04](https://img.qammunity.org/2021/formulas/mathematics/college/i0m9msg1z2rcpl89dlchbndddaff7ghbaw.png)
Rounding up
A sample of at least 97 students is needed.