A controller of a store wishes to estimate the average amount spent each month by individuals holding credit cards to within ±€6 of the true amount. Based on previous experience it is known that the standard deviation is €21. Determine the sample size necessary to estimate the mean to within ±€6 of the true value with
(a) 95% confidence
(b) 99% confidence
What formula do I use to answer this question and what type of distribution table do I use as I am not used to having to find the sample size. Hope someone can help. Thanks
$$MOE = z_{\frac{\alpha}{2}}. \frac{s}{\sqrt{n}}$$
$MOE = 6$, $s = 21$, $z_{{0.025}}$
Look up $z_{critical}$ from the charts and compute n
Where MOE is the margin of error, s is the sample standard deviation and n is the number of samples.
Edit:
95% cofidence:
$6 = 1.96.\frac{21}{\sqrt{n}}$
$\sqrt{n} = \frac{1.96\times 21}{6}$
$\sqrt{n} = 6.86$
$n = 47$
99% confidence:
$6 = 2.575.\frac{21}{\sqrt{n}}$
$\sqrt{n} = \frac{2.575\times 21}{6}$
$\sqrt{n} = 9.0125$
$n = 81$
Hope this is clear
Goodluck