I've got a stochastic variable $X$ which takes the values in $\{0,1,2\}$ with some unknown probabilities. I want to know the distribution, and can sample $X$ as many times as I want to. How many times will I need to sample to get some specific confidence interval?
(For instance, 99% sure that the estimated probabilities lie within 0.01 of the true probabilities.)