40 year old Billy Peltzer gets a Mogwai from his father for old times' sake. This adds to the collection of Mogwai he's received over the years, bringing him to a total of 20 Mogwai. One night, when Billy is about to go to bed to get rest for his business trip, his young son Willy kindly asks to play with the Mogwai. Too tired to care, Billy permits the request on the condition that Willy not feed the Mogwai after midnight, that he not get them wet, and that he not shine any bright light upon them. Willy marches out the door to the Mogwai house (similar to a doghouse) in the backyard and has some fun with the Mogwai. Willy, sleepy like his father, passes out in the Mogwai shed without sealing the latch on the cupboard, leaving the snacks unsecured. Overnight, one of the Mogwai binges on cookies and muffins and turns into a gremlin. Willy wakes in a cold sweat to find the converted Mogwai (and his father has already left for the business trip).
Gremlins and Mogwai interact such that once every minute a Gremlin can choose another individual and turn it into a Gremlin. Similarly, a Mogwai can choose an individual and turn it into a Mogwai. If a Mogwai chooses another Mogwai, or a Gremlin chooses another Gremlin, nothing changes. The relative chance that a given Gremlin is chosen to convert an individual (versus an individual Mogwai being chosen) is .
Question : What is the probability that all 20 are Gremlin by the time Willy's dad returns two weeks later?
Details and assumptions
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.
I used a Markov chain to model this problem. There are 21 states: n = 0 , 1 , 2 , . . . , 2 0 . Of these, 19 states are transient (their chances decrease to zero in the limit) and 2 states are permanent (for n = 0 and n = 2 0 ).
To model a state change, you can skip the situation where the chosen Gremlin or Mogwai chooses one of its own (nothing changes). Then the state changes become simple: in one of the transient states, n decreases with probability p or n increases with probability 1 − p = q .
Let A be the 19 x 19 matrix showing the probabilities to move from one of the 19 transient states: 1 ≤ n ≤ 1 9 . Then A i + 1 , i = q (here q = 3 6 1 9 ); A i , i + 1 = p (here p = 3 6 1 7 ) for i = 1 , 2 , . . . , 1 8 and A i , j = 0 for all other 1 ≤ i , j ≤ 1 9 . Let Q be the 2 x 19 matrix showing the probabilities to reach one of the two permanent states (n=0 or n=20). The matrix R is the 2 x 2 matrix showing the probabilities for the permanent states. Here R = I 2 , 2 , the identity matrix of order 2 x 2.
Furthermore, let b = ( b 1 b 2 ) be the vector with the initial probabilities of the 19 transient states ( b 1 ) and the two permanent states ( b 2 ). Here, b = ⎝ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎛ 1 0 0 . . . 0 0 0 ⎠ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎞ .
The asked probabilities are governed by M = ( A Q 0 R ) , where 0 is the 19 x 2 matrix with all zeroes.
The probabilities can be computed one step at a time: we start with b . After the first conversion, we have M b . After the 8th conversion we have M 8 b . You can see:
M k =
= ( A k Q A k − 1 + R Q A k − 2 + R 2 Q A k − 3 + . . . + R k − 1 Q 0 R k )
= ( A k Q ( A k − 1 + A k − 2 + . . . + I ) 0 R k )
In the limit, A k → 0 and the series of 2 x 19 matrices in the lower left corner approach Q ( I − A ) − 1 . Now, we don't need to know the complete inverse of the matrix I − A , but only its first column, let's call that vector ( c i ) i , since b 1 = e 1 , the first unit vector of dimension 19.
It can be shown that there are two solutions for c i to have all but rows 1 and 19 of ( I − A ) − 1 c become zero: c i = a . 1 i and c i = b . ( q p ) i for real constants a and b . Carefully choosing a and b so that the last row becomes 0 also and row 1 becomes exactly 1 , gives us: c i = q . ( 1 − f 2 0 ) ( 1 − f 2 0 − i ) , for i = 1 , 2 , . . . , 1 9 and f = q p .
Now, only what is left, is to calculate only the bottom (second) row of Q ( I − A ) − 1 b = Q c , or, Q 2 , 1 9 . c 1 9 = q . q . ( 1 − f 2 0 ) ( 1 − f ) = 1 − f 2 0 1 − f = 1 − ( 1 9 1 7 ) 2 0 1 − 1 9 1 7 ≈ 0 . 1 1 8 .