What sample size is needed to give a margin of error within in estimating a population mean with 95% confidence, assuming a previous sample had .

Respuesta :

Answer:

[tex]n = (\frac{1.96\sqrt{\pi(1-\pi)}}{M})^2[/tex]

The sample size needed is n(if a decimal number, round up to the next integer), considering the estimate of the proportion [tex]\pi[/tex](if no previous estimate use 0.5) and M is the desired margin of error.

Step-by-step explanation:

In a sample with a number n of people surveyed with a probability of a success of [tex]\pi[/tex], and a confidence level of [tex]1-\alpha[/tex], we have the following confidence interval of proportions.

[tex]\pi \pm z\sqrt{\frac{\pi(1-\pi)}{n}}[/tex]

In which

z is the z-score that has a p-value of [tex]1 - \frac{\alpha}{2}[/tex].

The margin of error is of:

[tex]M = z\sqrt{\frac{\pi(1-\pi)}{n}}[/tex]

95% confidence level

So [tex]\alpha = 0.05[/tex], z is the value of Z that has a p-value of [tex]1 - \frac{0.05}{2} = 0.975[/tex], so [tex]Z = 1.96[/tex].

Needed sample size:

The needed sample size is n. We have that:

[tex]M = z\sqrt{\frac{\pi(1-\pi)}{n}}[/tex]

[tex]M = 1.96\sqrt{\frac{\pi(1-\pi)}{n}}[/tex]

[tex]\sqrt{n}M = 1.96\sqrt{\pi(1-\pi)}[/tex]

[tex]\sqrt{n} = \frac{1.96\sqrt{\pi(1-\pi)}}{M}[/tex]

[tex](\sqrt{n})^2 = (\frac{1.96\sqrt{\pi(1-\pi)}}{M})^2[/tex]

[tex]n = (\frac{1.96\sqrt{\pi(1-\pi)}}{M})^2[/tex]

The sample size needed is n(if a decimal number, round up to the next integer), considering the estimate of the proportion [tex]\pi[/tex](if no previous estimate use 0.5) and M is the desired margin of error.

ACCESS MORE