Probability Theory – How Many Bins Are Empty When n Balls Are Thrown?

balls-in-binscombinatoricsexpectationprobabilityprobability theory

A large number of variants of this question were already asked here, including these – one, two, which are close, but none seem to answer my question.

Assume that $n$ balls are thrown randomly and independently into $k$ bins.

What is the probability of finding $x$ empty bins?

What is the expectation of the number of empty bins?

Best Answer

We do the expectation, without finding the distribution. Let $X_i=1$ if Bin $i$ is empty, and let $X_i=0$ otherwise. Then the number of empty bins is $X_1+\cdots+X_k$, and the expected number is $E(X_1)+\cdots+E(X_k)$.

The probability Bin $i$ is empty is $\left(\frac{k-1}{k}\right)^n$. Thus $E(X_i)=\left(\frac{k-1}{k}\right)^n$. Multiply by $k$ for the expected number of empty bins.