May 14th, 2009, 1:07 am
QuoteOriginally posted by: MCarreiraVisualize a Pascal Triangle.You can reach state RRRR with probability Binomial[4,0]/2^4, in which case you'll have 4 JB on your left pocket.You can reach state LLLL with probability Binomial[4,0]/2^4, in which case you'll have 4 JB on your right pocket.You can think of reaching each of these states as reaching the previous state (Binomial[3,0]/2^3 or Binomial[3,3]/2^3) and having a probability of 1/2 to reach the desired state.That means that you can define the probability of reaching state {{R,4},{L,m}} as the probability of reaching state {{R,3},{L,m}} times (1/2), as you don't need to consider the transition {{R,4},{L,m-1}} => {{R,4},{L,m}}.You then add those probabilities (at each extra round you'll Thank you for the nice explanation. I thought about it again and came up with a simpler solution:Assuming the right pocket is the one which gets emptied first we can have the following possible sequences with the corresponding probabilities:P(RRR) R : C(3,0) * (1/2)^3P(RRRL) R : C(4,1) * (1/2)^4P(RRRLL) R : C(5,2) * (1/2)^5P(RRRLLL) R : C(6,3) * (1/2)^6Here P means all the possible permutations. Therefore E = (4 * 1 / 8) + (3 * 4 / 16) + (2 * 10 / 32) + (1 * 20 / 64) = 2.1875which is the same as your result. Hence the formula for n jelly beans in each pocket can be written as
Last edited by
FalsePositive on May 17th, 2009, 10:00 pm, edited 1 time in total.