I have around 200 data points. I have separated these point into 7 bins. Some of these bins contain up to 50 points while some contain around 3-6 points. Some of these 200 points belong to a group C. I want to plot a histogram of the ratio of the number points in each bin that belong to C against the total number per bin. This is fairly simple.
I also want to plot the error related with bin population. I believe I can use the equation
$error=Z\sqrt{\frac{p(1-p)}{N}} $.
Where $p=N_C/N$
$N_c$ is the number of points in a bin that belong to C
$N$ is the total number per bin.
$Z=1$ for a 1 sigma significance.
However one of my bins has no points $N_c$ and therefore $P=0$ and $error=0$. This does not make sense, should there not still be uncertainty for the bin even if $N_C = 0$. Here is an example of my histogram Example Histogram. I have a feeling this equation makes some assumptions that do not apply for my circumstance. If you know of a more general form of this equation please let me know. I'm sorry if this is trivial, I am new to error analysis.
The red error bars look impressive. However, what use do you expect readers will make of them? Error bars seem to encourage a kind of ad hoc analysis that can lead to false discovery, if not done carefully.
Maybe it's better to have a footnote, saying that heights of bars are subject to random sampling error, so that differences in heights may not be meaningful unless they exceed, roughly speaking, about ±0.2 or $\pm$0.3 on the vertical scale.