1

I have the following problem:

A survey was done among 138 people. They had to choose between dark chocolate and milk chocolate. 88 of them preferred dark chocolate. Compute the 90% confidence interval for the proportion p of the people who prefer dark chocolate.

I know that the formula of a confidence interval is:

$[X+ Z\cdot\sqrt(\frac{\sigma^2}{n}), X+ Z\cdot\sqrt(\frac{\sigma^2}{n})]$

With X = 88/138 and n = 138. But I am stuck because the standard deviation is not given. I know that the survey is done only once, does that mean that there is no std?

How do I proceed?

Thanks

zkutch
  • 13,410
Tim
  • 684

2 Answers2

2

The confidence interval for the proportion is

$[p-z \sqrt{\frac{p(1-p)}{n}}, p+z \sqrt{\frac{p(1-p)}{n}}]$

Where $p$ is the sample proportion.

2

The distribution is a binomial law with estimated probability $p=\frac{88}{138}$. The confidence interval can be obtained as the $5\%$ and $95\%$ quantiles of the binomial distribution $B(n,p)$.

The Gaussian approximation is justified, though the upper limits differs by one unit (low limit in $[78,79]$, high limit in $[96,97]$ or $[97,98]$).

enter image description here