Three Marbles in Pólya's Urn

You have an urn with three marbles in it, a red one a yellow one and a blue one. Every ten seconds you pull out one marble at random and replace it together with one of the same color. e.g. If you pick out a red marble, you will replace it with two red marbles.

So, now the question...

The probability that at some point you will have 8 red marbles, 12 yellow marbles, and 3 blue ones after the corresponding number of moves is a b \dfrac{a}{b} , where a a and b b are coprime positive integers .

What is a + b a + b ?


Image credit: www.funeral-urn.com


The answer is 232.

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.

3 solutions

Mark Hennings
Jul 15, 2016

Let p u , v , w p_{u,v,w} be the probability that there are u + 1 u+1 reds, v + 1 v+1 blues and w + 1 w+1 yellows in the urn after u + v + w u+v+w picks. Then p 0 , 0 , 0 = 1 p_{0,0,0}=1 and p u , v , w = p u 1 , v , w × u + p u , v 1 , w × v + p u , v , w 1 × w u + v + w + 2 p_{u,v,w} = \frac{p_{u-1,v,w} \times u + p_{u,v-1,w}\times v + p_{u,v,w-1}\times w}{u+v+w+2} A simple induction on u + v + w u+v+w shows that p u , v , w = 2 ( u + v + w + 1 ) ( u + v + w + 2 ) p_{u,v,w} = \frac{2}{(u+v+w+1)(u+v+w+2)} for all u , v , w 0 u,v,w \ge 0 . The probability we want is p 7 , 11 , 2 = 1 231 p_{7,11,2}=\frac{1}{231} , so the answer is 232 \boxed{232} .

Ah.... Nice solution, @Mark Hennings ! :)

Geoff Pilling - 4 years, 11 months ago

What does the terms P u 1 , v , w × u P\sub u-1,v,w \times u mean ?

Vishal Yadav - 4 years, 2 months ago

Log in to reply

Think of how it might be possible to have u + 1 , v + 1 , w + 1 u+1,v+1,w+1 reds, blues and greens after u + v + w u+v+w picks.. You could have u , v + 1 , w + 1 u,v+1,w+1 of each after u + v + w 1 u+v+w-1 picks, and then pick a red ball (to get another one). The probability of this happening is p u 1 , v , w × u u + v + w + 2 p_{u-1,v,w} \times \tfrac{u}{u+v+w+2} . Alternatively you could have u + 1 , v , w + 1 u+1,v,w+1 of the colours, and then pick a blue, or else you could have u + 1 , v + 1 , w u+1,v+1,w of the colours, and then pick a green. These are the three ways you could end up with u + 1 , v + 1 , w + 1 u+1,v+1,w+1 of each colour. My first formula expresses precisely that.

Mark Hennings - 4 years, 2 months ago
Geoff Pilling
Jul 13, 2016

It just so happens that with Polya's urn starting with the given distribution, the probabilities of all outcomes yielding n n marbles are all equally likely.

So define P ( n ) = P(n) = probability of any given arrangement of n n marbles after n 3 n-3 moves.

P ( n ) = 1 T n 2 P(n) = \frac{1}{T_{n-2}} where T n = n × ( n + 1 ) 2 T_n = \frac{n \times (n+1)}{2}

In this case n = 8 + 12 + 3 = 23 n = 8 + 12 + 3 = 23 .

So, P ( 23 ) = 1 T 21 = 1 231 P(23) = \frac{1}{T_{21}} = \frac{1}{231}

1 + 231 = 232 1+231 = \boxed{232}

You haven't proved that the distribution is equally likely. Here's a quick sketch:

This can be done by induction on the number of marbles. To get r r red marbles, y y yellow marbles, and b b blue marbles (aka the state ( r , y , b ) (r,y,b) ), you can either pick one red out from the state ( r 1 , y , b ) (r-1, y, b) with probability r 1 ( r 1 ) + y + b \frac{r-1}{(r-1)+y+b} , one yellow out from the state ( r , y 1 , b ) (r, y-1, b) with probability y 1 r + ( y 1 ) + b \frac{y-1}{r+(y-1)+b} , or one blue out from the state ( r , y , b 1 ) (r, y, b-1) with probability b 1 r + y + ( b 1 ) \frac{b-1}{r+y+(b-1)} . By induction hypothesis, all these previous states have the same constant probability p p of occurring, and thus the probability for state ( r , y , b ) (r,y,b) is just p ( r 1 ) + ( y 1 ) + ( b 1 ) r + y + b 1 p \cdot \frac{(r-1)+(y-1)+(b-1)}{r+y+b-1} , which is constant because r + y + b r+y+b is fixed.

Ivan Koswara - 4 years, 11 months ago

Log in to reply

Ah... Nice argument, @Ivan Koswara !

Geoff Pilling - 4 years, 11 months ago

I didn't know about Pólya's urn process before, so thanks for the introduction. I solved the problem from "scratch" and was surprised (and relieved) to discover the equal outcome probabilities observation you've mentioned. I ended up with the same result (in a roundabout way) in the form 1 ( 22 2 ) \dfrac{1}{\dbinom{22}{2}} , after which I recognized ( 22 2 ) \dbinom{22}{2} as being the number of non-negative integer solutions to the equation a + b + c = 20 a + b + c = 20 , (representing the 20 20 moves taken).

Brian Charlesworth - 4 years, 11 months ago

Log in to reply

Ah cool... Glad you liked it, Brian!

Geoff Pilling - 4 years, 11 months ago

How would all the outcomes be equally likely? For example the probability of having 21 blue 1 red 1 green marble is clearly 1/3^20, while the probability of having 8 blue 8 red 7 green marbles is (20!/7!/13!)*(13!/7!/6!)/3^20. So the solution is incorrect in my opinion.

Gorg Vlad - 4 years, 11 months ago

Log in to reply

Your "clearly" is wrong. The probability of getting 21 blue 1 red 1 green is 1 3 2 4 3 5 20 22 \frac{1}{3} \cdot \frac{2}{4} \cdot \frac{3}{5} \cdot \ldots \cdot \frac{20}{22} ; the probability of picking a blue with 1 blue in 3, times the probability of picking a blue with 2 blue in 4, times the probability of picking a blue with 3 blue in 5, and so on until 20 blue in 22.

Ivan Koswara - 4 years, 11 months ago

Log in to reply

Yeah i feel so stupid now

Gorg Vlad - 4 years, 11 months ago

I think you forgot to replace the marble you draw wirth TWO marbles of that colour.

Kai Ott - 4 years, 11 months ago
Kai Ott
Jul 15, 2016

Without knowing that all outcomes are equally likely or even thinking about it, cries , you can use the following way to solve this. We know that we have to draw 7 red, 11 yellow and 2 blue marbles. Think about a way of first drawing all blue balls, then the red ones, then the yellow ones, the probability for that is: 1 × 2 × 1 × 2 × 3 × 4 × 5 × 6 × 7 × 1 × 2 × 3 × . . . × 11 3 × 4 × 5 × 6 × 7 × . . . × 21 × 22 \frac{1×2 × 1×2×3×4×5×6×7 × 1×2×3×...×11}{3×4×5×6×7×...×21×22} = 2 ! × 7 ! × 11 ! × 2 ! 22 ! = \frac{2! × 7! × 11! × 2!}{22!} . Remember this is just one way how to get to the preferred end arrangement and all those ( 20 11 ) ( 9 7 ) {20 \choose 11} \cdot {9 \choose 7} ways are equally likely. So the probability of the given distribution is: = 2 ! × 7 ! × 11 ! × 2 ! 22 ! ( 20 11 ) ( 9 7 ) = \frac{2! × 7! × 11! × 2!}{22!} \cdot {20 \choose 11} \cdot {9 \choose 7} which can easily be reduced to 1 231 \frac{1}{231} . So the answer is 1+231=232. In that way we can derive a general formula for x red marbles y yellow marbles and z blue marbles to be P = 2 ! ( x + y + z 1 ) ( x + y + z 2 ) P = \frac{2!}{(x+y+z-1)(x+y+z-2)} . However, @Geoff Pilling 's solution appears to be simpler.

Typo: drawing all blue balls, then the red ones, then the yellow ones

Hung Woei Neoh - 4 years, 11 months ago

Log in to reply

thanks fixed it, better late than never

Kai Ott - 4 years, 5 months ago

Very nice write up @Aaa Bbb ... On the contrary, it is likely more robust than mine as it doesn't assume any prior knowledge of Pólya's Urn.

Geoff Pilling - 4 years, 11 months ago

how did you get( 20 choose 11)( 9 choose 7)

Ashish Sacheti - 4 years, 11 months ago

That's the number of distinct ways that 11 yellow, 7 red and 2 blue marbles can be arranged

Kai Ott - 4 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...