English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Given n balls and n bins, what is the expected number of bins with at least one ball given a random distribution?

2006-12-13 03:25:11 · 2 answers · asked by sand_king_rules 1 in Science & Mathematics Mathematics

2 answers

OK, that's a tough one. The probablilty of a given ball NOT being in a given bin is (n-1)/n. The probability of ALL the balls not being in the bin is therefore ((n-1)/n)^n, or (n-1)^n/n^n

I think that ratio can also be used as the fraction of bins expected to be empty. Like, for instance, if the odds of a bin being empty were 1/8, then 1/8 of the bins should be empty. In which case, the fraction of non-empty bins should be 1-(n-1)^n/n^n. And the number of non-empty bins should be n*(1-(n-1)^n/n^n.

So I got n*(1-(n-1)^n/n^n.

2006-12-13 03:36:51 · answer #1 · answered by Amy F 5 · 1 0

34

2006-12-13 11:27:02 · answer #2 · answered by M S 4 · 0 2

fedest.com, questions and answers