Assume $b$ black balls and $w$ white balls. Throw them randomly and uniformly into $m$ bins. What is the expected number of collisions between black and white balls: (a) in each bin, (b) in all bins.
thanks
Assume $b$ black balls and $w$ white balls. Throw them randomly and uniformly into $m$ bins. What is the expected number of collisions between black and white balls: (a) in each bin, (b) in all bins.
thanks
By assuming $m$ bins, the probability of any two balls of different color to collide is:
$$\frac{1}{m}.$$
We expect $\frac{w}{m}$ and $\frac{b}{m}$ of white and black balls, repsectively, in each bin. Therefore, the expected number $X$ of collisions in each bin is: $$E[X]=\frac{w \: b}{m^2}.$$ The expected number of collisions $Y$ in all bins is: $$E[Y] = E[X_1+X_2+\ldots+X_m].$$
Using linearity of expectation, $$E[Y] = E[X_1] +E[X_2]+\ldots+E[X_m] = \sum_{j=1}^{m} E[X_j] = m \frac{w \: b}{m^2} = \frac{w \: b}{m}.$$