1

So I am having a problem trying to solve the following question.

Lets say with have $x\times n$ balls, where $x$ is a values in range $0 < x \leq 1$ and we have $n$ bins.

I'm trying to figure out what the expected number of bins containing at least $1$ ball in them, but the $x$ is throwing me off, does anyone know how to tackle this?

$x$ will be a value such that $x\times n$ results in an integer.

1 Answers1

0

The probability of one certain bin to be not hit by one certain ball is $$1-\frac{1}{n}.$$

There are $nx$ balls in total, so the probability one one bin to be not hit by any ball is $$\left(1-\frac{1}{n}\right)^{xn}$$

The probability of a certain bin to be non-empty is simply the inverse of this, i.e. $$1-\left(1-\frac{1}{n}\right)^{xn}.$$

The expected number of non-empty bins is then simply the sum of this expression over all bins. I.e. the answer you are looking for is $$n-n\left(1-\frac{1}{n}\right)^{xn}$$

for large $n$ you might want to approximate this with an exponential function.

Simon
  • 5,061