I'm an absolute beginner in statistics. Please excuse any wrong assumptions or missing information in my question. I have a question that relates to a multinomial distribution (not even 100% sure about this) that I hope somebody can help me with. If I take a sample (lets assume $n=400$) on a categorical variable that has more than two possible outcomes (e.g. blue, black, green, yellow) and plot the frequencies so that I can derive the probabilities. E.g.: black 10% blue 25% green 35% yellow 30%
How could I compute the 95% confidence interval for those probabilities? And how could I determine the sample size required in order to get an accurate result within +-3% for each probability? Please let me know if the answer to the question requires any additional information.