AntiElephant
- 25
- 0
Homework Statement
I have N balls and B baskets. I look at each basket i in turn and decide with some probability P_i whether to insert one ball. After N balls are inserted, I stop. If I look through all the baskets B, I stop; I do not make a second run-through, even if all the balls haven't been inserted. Can I write P_i in such a way that, overall, each basket has an equal probability (which I'll call E_i) of obtaining a ball?
Homework Equations
The Attempt at a Solution
This isn't a homework question so I don't know how difficult this could get. I'm finding it hard to generalise P_i for all N and B. If N \geq B, then P_i can just be a constant number and all baskets have the same probability, because there are enough balls to supply for each basket and the chance isn't affected by whether balls have been inserted in previous baskets. So the assumption is that N < B
P_i seems like it depends on three variables:
N: The number of balls at the start.
B: The number of baskets.
R: The number of balls remaining when we reach i.
Obviously all P_i = 0 when R = 0. The problem would be easier if I could reason that maybe P_i doesn't depend on R when R>0, but I haven't been able to convince myself whether that's true.
The case where N = 1 is simple since I don't have to worry about the variable R:
E_1 = P_1
E_2 = (1-P_1)P_2
...
E_i = (1-P_1)(1-P_2)...(1-P_{i-1})P_i
...
E_B = (1-P_1)(1-P_2)...(1-P_{B-1})P_B
One can use this to notice:
(1): (1-P_i) = P_i/P_{i+1}
Our assumption:
E_1 = E_2 = ... = E_i = ... = E_B = 1/B
Therefore
P_1 = 1/B
P_2 = 1/(B-1)
P_3 = 1/(B-2)
Then use induction:
Assume
P_i = 1/(B-(i-1))
Show
P_{i+1} = 1/(B-i)
Which is easily shown with point (1) above. Leading me to the answer:
P_i=(1/(B−(i−1)))
The case for generalising this to any N seems very hard though, especially since the formula for each E_i isn't just one large multiplication like it was with N=1, and is instead an addition of probability of all the permutations in which i obtains a ball, and those permutations don't even have the same probability of occurring. For instance with N =2 for E_3 and P_i(R) I'm looking at:
E_3 = (1-P_1(2))(1-P_2(2))P_3(2) + P_1(2)(1-P_2(1))P_3(1) + (1-P_1(2))P_2(2)P_3(1)
It just becomes a mess to generalise. Is this possible? Can anyone provide some pointers for approaching this? Is there a name for this type of problem?
Last edited: