Consider $N$ i.i.d. samples $x_1, \dots, x_N$ from an unknown discrete distribution on $\{0,\dots, n\}$. We know that
$$\frac{1}{N-1} \sum_{i = 1}^N (x_i - m)^2$$
where $m$ is the sample mean, is an unbiased estimator for the variance.
But what confidence intervals can we give for this estimate?
If the $X_i$ are i.i.d. normally distributed $N(\mu,\sigma^2)$ with $s^2=\frac{1}{N-1} \sum\limits_{i = 1}^N (x_i - \bar{x})^2$ then $$\frac{(N-1)s^2}{\sigma^2} \sim \chi^2_{N-1}$$
so, for example, if you want a $95\%$ confidence interval for the variance then you could use something like $$\left[ \frac{(N-1)s^2}{\chi^2_{0.025,N-1}}, \frac{(N-1)s^2}{\chi^2_{0.975,N-1}} \right]$$
You may need other approaches if the $X_i$ are not normally distributed; if your underlying distribution was Binomial with known $n$ and unknown $p$, the normal approximation may be good enough with large $N$, or you could take a more specific approach