Thread View: sci.math.stat
2 messages
2 total messages
Started by Peter Pui Tak Chiu
Sat, 29 Aug 1992 13:54
Probability
Author: Peter Pui Tak Chiu
Date: Sat, 29 Aug 1992 13:54
Date: Sat, 29 Aug 1992 13:54
36 lines
1560 bytes
1560 bytes
Hi everyone!
Some of my friends and I have been discussing a question and
we came up w/ an answer and would like to verify if its correctness.
Please give any comments freely!!!
Thanks...
Question:
Assume there are m kinds of balls in an infinitely large pool
(i.e. there are infinitely many balls)
and the distributions of different kinds of balls are equal.
Find the probability of getting all kinds of balls if n balls
are picked.
Solution:
First group the n balls you picked into m groups according to
their kinds using m-1 sticks. So the number of possible
arrangements for the sticks and balls is (n+m-1)C(m-1).
Then we are to find the number of possible arrangements of:
(m balls of different kinds) + (n-m balls of whatever kinds) + (m-1 sticks)
since the m balls are fixed (to satisfy the constraint that there
exists at least one ball of each kind) and what we are trying to
find is the number of arrangements of n-m balls and m-1 sticks.
So, the possible arrangements is: ((n-m)+(m-1))C(m-1) = (n-1)C(m-1)
Therefore, the probability is: (n-1)C(m-1)
---------------
(n+m-1)C(m-1)
Re: Probability
Author: David desJardins
Date: Sat, 29 Aug 1992 16:05
Date: Sat, 29 Aug 1992 16:05
48 lines
2340 bytes
2340 bytes
Peter Pui Tak Chiu <ppc1@cec2.wustl.edu> writes:
>Assume there are m kinds of balls in an infinitely large pool (i.e.
>there are infinitely many balls) and the distributions of different
>kinds of balls are equal. Find the probability of getting all kinds of
>balls if n balls are picked.
>Therefore, the probability is: (n-1)C(m-1)
> ---------------
> (n+m-1)C(m-1)
Nope. Suppose N = M. Obviously the chance of getting one ball of each
color is M!/(M^M). Your formula reduces to M!(M-1)!/(2M-1)!, which is
obviously not the same thing.
Your result is wrong because the arrangements are not equally likely.
The chance of getting M red balls is 1/(M^M), but the chance of getting
one ball of each color is M!/(M^M). You have given each of these the
same weight.
Here is a correct approach based on inclusion-exclusion. Let P(K) be
the probability that all of the balls are selected from a particular set
of K colors, with every color occurring at least once. Thus P(M) is the
quantity we want. Let Q(L) be the probability that all of the balls are
selected from a particular set of L colors, but not necessarily with
every color occurring. Clearly Q(L) = (L/M)^N.
Now, of course,
Q(L) = \sum_{K=0}^L B(L,K) P(K),
where B(L,K) is the binomial coefficient L-choose-K. This just says
that if all of the balls are from a set of L colors, then the set of
colors which actually occur must be some K-set contained within the
L-set. The number of such K-sets is B(L,K), for each K.
The inclusion-exclusion formula expresses P in terms of Q:
P(K) = \sum_{L=0}^K (-1)^(K-L) B(K,L) Q(L).
It is a direct consequence of the previous formula. If it's not
familiar to you, you can look it up in any standard combinatorics text,
or just derive it for yourself.
Thus,
P(M) = \sum_{L=0}^M (-1)^(M-L) B(M,L) (L/M)^N.
David desJardins
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads