If I throw N balls independently into M bins with uniform probability, the expected mean of the M bins is N/M balls.
What is the expected variance of the M bins?
I was thinking of what bin size I should use to reduce noise in image processing.
If I throw N balls independently into M bins with uniform probability, the expected mean of the M bins is N/M balls.
What is the expected variance of the M bins?
I was thinking of what bin size I should use to reduce noise in image processing.
I think you are asking for the variance of a multinomial distribution.
Let $I_i\in[M]$ be selected independently and uniformly at random for each $i$ and let $e_{I_i}\in \mathbb{R}^M$ be a standard basis vector with a $1$ in position $I_i$ and zeros elsewhere. If I understand correctly, you are asking about the variance of the random vector $X = \sum_{i=1}^N e_{I_i}$, which is the total number of balls in each bin.
You noted that $\mathbb{E}X = (N/M, N/M, \ldots, N/M)$. By exchangeability, we only need to compute $$\mathbb{E}XX^\top = \sum_{i,j} \mathbb{E}e_{I_i}e_{I_j}^\top = N \mathbb{E}e_{I_1}e_{I_1}^\top + N(N-1)\mathbb{E}e_{I_1}e_{I_2}^\top = \left\{\delta_{ij}\frac{N}{M} + \frac{N(N-1)}{M^2}\right\}_{ij}.$$
So $\mathrm{Var}(X) = \mathbb{E}XX^\top - (\mathbb{E}X)(\mathbb{E}X)^\top$ is $$\left\{\delta_{ij}\frac{N}{M} - \frac{N}{M^2}\right\}_{ij}.$$