Problem
There are balls and bins, where . Each ball goes into a bin uniformly and independently at random. What is the number of empty bins?
Analysis
-
The probability of a particular bin being empty is .
Proof: The probability of a particular ball not falling into this bin is . Therefore,
-
The expected of empty bins is .
Proof: For , define the indicator random variable that equal to if the -th bin is empty. Then by linearity of expectation,
-
With probability at least (), the number of empty bin is
Proof: We need to use McDiarmid inequality.
McDiarmid inequality ( [1] ). Consider an arbitrary set . The function has bounded difference if there exits nonnegative constants such that for ,
Consider a set of independent random variables sampled from $\mathcal{D} $. Denote . It holds that
The analogous inequality is valid for .
To apply the theorem, let . For , define the random variable to be the index of the bin that the -th ball falls into. Let be the number of empty bins, which is a random variable that depends on . We have proven that
Further, the outcome of the -th ball can affect the number of empty bins by at most :
Hence, by McDiarmid inequality,
Equating this probability to , we get
Reference
[1] C. McDiarmid, “Concentration,” in Probabilistic Methods for Algorithmic Discrete Mathematics, M. Habib, C. McDiarmid, J. Ramirez-Alfonsin, and B. Reed, Eds. Berlin, Heidelberg: Springer Berlin Heidelberg, 1998, pp. 195–248.