I have $X$ which has values in ${0, 1, 2}$. And i'd like to know if i could compute a 95% confidence interval for the mean of n samples from this distribution.
I know $P(X=0), P(X=1)$ and $P(X=2)$. I know how to compute the true mean of the random variable mean of n samples $(P(X=0) * 0 + P(X=1) * 1 + 2 * P(X=2))$, but I can't figure out how to compute the true confidence interval. It should not be that hard, but I really am stuck on what to use.
Hopefully it's not a stupid question!!
Thanks
One simple thing that one can always try, following Casella&Berger, is to build an approximate confidence interval. This has the advantage that does not depend on assumptions about the distributions but is correct only for large sample sizes. I add it in case the OP is not familiar with the procedure.
From the CLT and Slutsky's theorem we have always an asymptotical Pivot statistics:
$$T= \frac{\overline{X}-\mu}{S/\sqrt{n}}$$
, where $\overline{X}$ is the sample mean and $S$ the sample standard deviation.
For large $n$ T tends in distribution to $N(0,1)$. Therefore, calling $z_{\alpha}$ as usual the value such that $\alpha=P(Z>z_{\alpha})$, an asymptotic $\alpha$ confidence interval for the mean of the distribution is:
$$\overline{X}-z_{\frac{1-\alpha}{2}}\frac{S}{\sqrt{n}}<\mu<\overline{X}+z_{\frac{1-\alpha}{2}}\frac{S}{\sqrt{n}}$$
Of course, this works for large $n$ but I think applies also in your case. I am sure there are also better small sample estimators.