A probability problem by Tai Ching Kan

I place 9 coins into 3 stacks of 3 coins each. Let's call these 3 stacks, Stacks A, B and C. I then repeatedly spin a spinner with three outcomes: A, B and C, where P ( A ) = 0.4 P(A)=0.4 , P ( B ) = 0.3 P(B)=0.3 , and P ( C ) = 0.3 P(C)=0.3 . Each time I spin the spinner, I remove one coin from the stack whose letter corresponds with the outcome of the spin. I stop after one stack has had all its coins removed.

Find the probability of Stack A being the first stack to have all its coins removed. Give your answer as an exact decimal .


The answer is 0.467776.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Tai Ching Kan
Oct 29, 2015

Let the number of coins removed from each of the stacks A, B and C after I stop, be x x , y y and z z respectively. Since we are interested in the case where stack A is depleted, we need only consider the different scenarios where x = 3 x=3 .

For stack A to be the first stack to have all its coins removed, we also know that y , z < x y,z<x . This leads us to 9 possible cases: ( x , y , z ) = ( 3 , 0 , 0 ) , ( 3 , 1 , 0 ) , ( 3 , 0 , 1 ) , ( 3 , 2 , 0 ) , ( 3 , 0 , 2 ) , ( 3 , 1 , 1 ) , ( 3 , 2 , 1 ) , ( 3 , 1 , 2 ) (x,y,z)=(3,0,0), (3,1,0), (3,0,1), (3,2,0), (3,0,2), (3,1,1), (3,2,1), (3,1,2) and ( 3 , 2 , 2 ) (3,2,2) .


We consider the probability of each case happening:

Case 1: ( 3 , 0 , 0 ) : 0. 4 3 = 0.064 (3,0,0): 0.4^{3}=0.064 [Each time we remove a coin from A: 0.4 × 0.4 × 0.4 0.4\times0.4\times0.4 ]

Case 2: ( 3 , 1 , 0 ) : 3 × 0. 4 3 × 0. 3 1 + 0 = 0.0576 (3,1,0): 3\times0.4^{3}\times0.3^{1+0}=0.0576 [3 coins from stack A and 1 from B can be removed in 3 different orders: BAAA, ABAA and AABA, but not AAAB since after the third spin the last coin in stack A will be removed, therefore I stop and will not spin a fourth time. We can generalise the multiplier in front (the 3 in this case) to all of our cases: this situation is equivalent to arranging ( x + y + z ) (x+y+z) letters: x x A's, y y B's and z z C's, and that only A can take the last position for the reasons mentioned above. Fixing A in the last position, we can now apply the formula for Permutations with Repeated Items to obtain the multiplier as: ( ( x 1 ) + y + z ) ! ( x 1 ) ! y ! z ! \frac{((x-1)+y+z)!}{(x-1)!y!z!}

Case 3: ( 3 , 0 , 1 ) (3,0,1) is calculated in the same way as ( 3 , 1 , 0 ) (3,1,0) .

Case 4: ( 3 , 2 , 0 ) : ( ( 3 1 ) + 2 + 0 ) ! ( 3 1 ) ! 2 ! 0 ! × 0. 4 3 × 0. 3 2 + 0 = 6 × 0. 4 3 × 0. 3 2 = 0.03456 (3,2,0): \frac{((3-1)+2+0)!}{(3-1)!2!0!}\times0.4^{3}\times0.3^{2+0}=6\times0.4^{3}\times0.3^{2}=0.03456

Case 5: ( 3 , 0 , 2 ) (3,0,2) is calculated in the same way as ( 3 , 2 , 0 ) (3,2,0) .

Case 6: ( 3 , 1 , 1 ) : ( ( 3 1 ) + 1 + 1 ) ! ( 3 1 ) ! 1 ! 1 ! × 0. 4 3 × 0. 3 1 + 1 = 12 × 0. 4 3 × 0. 3 2 = 0.06912 (3,1,1): \frac{((3-1)+1+1)!}{(3-1)!1!1!}\times0.4^{3}\times0.3^{1+1}=12\times0.4^{3}\times0.3^{2}=0.06912

Case 7: ( 3 , 2 , 1 ) : ( ( 3 1 ) + 2 + 1 ) ! ( 3 1 ) ! 2 ! 1 ! × 0. 4 3 × 0. 3 2 + 1 = 30 × 0. 4 3 × 0. 3 3 = 0.05184 (3,2,1): \frac{((3-1)+2+1)!}{(3-1)!2!1!}\times0.4^{3}\times0.3^{2+1}=30\times0.4^{3}\times0.3^{3}=0.05184

Case 8: ( 3 , 1 , 2 ) (3,1,2) is calculated in the same way as ( 3 , 2 , 1 ) (3,2,1) .

And finally, case 9: ( 3 , 2 , 2 ) : ( ( 3 1 ) + 2 + 2 ) ! ( 3 1 ) ! 2 ! 2 ! × 0. 4 3 × 0. 3 2 + 2 = 90 × 0. 4 3 × 0. 3 4 = 0.046656 (3,2,2): \frac{((3-1)+2+2)!}{(3-1)!2!2!}\times0.4^{3}\times0.3^{2+2}=90\times0.4^{3}\times0.3^{4}=0.046656


Adding the probabilities of each of the 9 cases,

0.064 + 2 × 0.0576 + 2 × 0.03456 + 0.06912 + 2 × 0.05184 + 0.046656 = 0.064+2\times0.0576+2\times0.03456+0.06912+2\times0.05184+0.046656= 0.467776 \boxed{0.467776}

Abhishek Sinha
Nov 3, 2015

Here is a crisp solution, based on Dynamic Programming (DP).

Let P ( m , n , l ) P(m,n,l) denote the probability of emptying stack A A first before stacks B B and C C . We can easily write down the following recursion P ( m , n , l ) = 0.4 P ( m 1 , n , l ) + 0.3 P ( m , n 1 , l ) + 0.3 P ( m , n , l 1 ) P(m,n,l)=0.4P(m-1,n,l)+0.3P(m,n-1,l)+0.3P(m,n,l-1) With the boundary conditions P ( 0 , x , y ) = 1 , P ( x , 0 , y ) = P ( x , y , 0 ) = 0 , x > 0 , y > 0 P(0,x,y)=1, P(x,0,y)=P(x,y,0)=0,\hspace{10pt}\forall x>0, y>0 We need P ( 3 , 3 , 3 ) = 0.4678 P(3,3,3)=0.4678 , which my computer calculates under a second.

Question: What if we start with 10 10 coins in each stack (instead of 3 3 )? The enumeration approach clearly becomes intractable. However the DP approach produces the result fairly quickly. How about 100 ?

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...