Re: A Question on Balls and Bins
- From: matt271829-news@xxxxxxxxxxx
- Date: 16 Mar 2007 13:26:54 -0700
On Mar 16, 3:08 pm, matt271829-n...@xxxxxxxxxxx wrote:
On Mar 16, 2:17 pm, "jmorr...@xxxxxxxxxxx" <jmorr...@xxxxxxxxxxx>
wrote:
On Mar 16, 5:48 am, nivekkos...@xxxxxxxxx wrote:
Here's a seemingly simple question about balls and bins that I've been
struggling with. I'm hoping someone can help shed some light on this
problem:
Given k balls with m BLUE balls and (m-k) RED balls. Toss them
independently and uniformly at random into n bins. What is the
probability that there are no bins with both a BLUE and a RED ball?
I can express the probability as an messy sum involving Stirling
numbers of the second kind. But I can't seem to simplify it any
further. Is there a nice way to count things to yield a nice
expression at the end? Or is there an easy way to (non-trivially)
bound this probability?
Thanks.
Here's a method I use for this type of problem. It <seems> correct...
First mix together all the balls and a bunch of dividers, one divder
less than the number of bins. This means there are k + n - 1 items,
to be arranged in (k + n - 1)! ways.(Call this X).
But (n-1)! (call it Y) of these come from rearranging the dividers, m!
(call it Z) from rearranging the blue balls, and (k-m)! (call it W)
from rearanging the red balls.
So the total number of distinct distributions, without restriction, is
X/(Y Z W)
Now, glue a red ball and a blue ball together! This means that
Now you have k-2 individual balls (m-1 blue and k-m-1 red), one double
ball, and n - 1 dividers.
So now repeat the previous calculation: factorial(number of items)/
(factorial(# of red)*factorial(# of blue)*factorial(# of dividers))
This will be the number of distributions with at least one red/blue
color pair (the glued pair) in at least one bin.
The difference is the number with no red/blue colors pairs anywhere.
IMHO, anyway...
Perhaps I am misunderstanding something, but I don't really see how
this works. Take the very simple example of one red ball, one blue
ball and one bin. According to your terminology, you have two
"distinct" distributions: RB in bin 1, and BR in bin 1. With the glued
ball in place you have just one possibility: glued ball in bin 1.
Therefore the probability of having at least one blue/red pair in at
least one bin comes out as 1/2, while the correct answer is obviously
1. More complex examples seem to go similarly awry, with under-
counting and multiple counting abounding.
.... and, even if the counting could be done correctly, you seem to be
treating each of your "distinct distributions" as equally probable,
which they aren't.
(FWIW I also ended up with a sum involving Stirling numbers, and can't
see how to simplify further.)
.
- Follow-Ups:
- Re: A Question on Balls and Bins
- From: jmorriss@xxxxxxxxxxx
- Re: A Question on Balls and Bins
- References:
- A Question on Balls and Bins
- From: nivekkoster
- Re: A Question on Balls and Bins
- From: jmorriss@xxxxxxxxxxx
- Re: A Question on Balls and Bins
- From: matt271829-news
- A Question on Balls and Bins
- Prev by Date: Re: continuum hypothesis and 0=1
- Next by Date: Re: Cantor Confusion
- Previous by thread: Re: A Question on Balls and Bins
- Next by thread: Re: A Question on Balls and Bins
- Index(es):
Relevant Pages
|