There Just Might Be A Gremlin In Your House.

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 r G = 19 17 r_{G} = \frac{19}{17} .

Question : What is the probability that all 20 are Gremlin by the time Willy's dad returns two weeks later?

Details and assumptions

  • For our purposes, two weeks is an infinite amount of time .
  • Obviously, once all 20 become either Gremlin or Mogwai, there can be no further changes and the population is permanently Gremlin or Mogwai.
  • Only one Mogwai or Gremlin is chosen to convert an individual per minute.
  • If there are n n Gremlins at a given time, the chance that a Gremlin will be chosen to convert a Mogwai is n r G n r G + ( 20 n ) 20 n 19 \displaystyle\frac{n r_{G}}{nr_{G} + \left(20-n\right)}\frac{20-n}{19} .
  • If there are m m Mogwai at a given time, the chance that a Mogwai will be chosen to convert a Gremlin is m m + r G ( 20 m ) 20 m 19 \displaystyle\frac{m}{m + r_{G}\left(20-m\right)}\frac{20-m}{19} .


The answer is 0.118.

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

Ron van den Burg
Feb 6, 2014

I used a Markov chain to model this problem. There are 21 states: n = 0 , 1 , 2 , . . . , 20 n = 0, 1, 2, ..., 20 . Of these, 19 states are transient (their chances decrease to zero in the limit) and 2 states are permanent (for n = 0 n = 0 and n = 20 n = 20 ).

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 n decreases with probability p p or n n increases with probability 1 p = q 1-p=q .

Let A A be the 19 x 19 matrix showing the probabilities to move from one of the 19 transient states: 1 n 19 1 \leq n \leq 19 . Then A i + 1 , i = q A_{i+1,i}=q (here q = 19 36 q=\frac{19}{36} ); A i , i + 1 = p A_{i,i+1}=p (here p = 17 36 p=\frac{17}{36} ) for i = 1 , 2 , . . . , 18 i=1,2,...,18 and A i , j = 0 A_{i,j}=0 for all other 1 i , j 19 1 \leq i, j \leq 19 . Let Q 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 R is the 2 x 2 matrix showing the probabilities for the permanent states. Here R = I 2 , 2 R = I_{2,2} , the identity matrix of order 2 x 2.

Furthermore, let b = ( b 1 b 2 ) b=\begin{pmatrix}b_1 \\ b_2 \end{pmatrix} be the vector with the initial probabilities of the 19 transient states ( b 1 b_1 ) and the two permanent states ( b 2 b_2 ). Here, b = ( 1 0 0 . . . 0 0 0 ) b=\begin{pmatrix}1 \\ 0 \\ 0 \\ . \\ . \\ . \\ 0 \\ 0 \\ 0\end{pmatrix} .

The asked probabilities are governed by M = ( A 0 Q R ) M=\begin{pmatrix}A & 0 \\ Q & R \end{pmatrix} , where 0 0 is the 19 x 2 matrix with all zeroes.

The probabilities can be computed one step at a time: we start with b b . After the first conversion, we have M b Mb . After the 8th conversion we have M 8 b M^8b . You can see:

M k = M^k =

= ( A k 0 Q A k 1 + R Q A k 2 + R 2 Q A k 3 + . . . + R k 1 Q R k ) =\begin{pmatrix}A^k & 0 \\ QA^{k-1} + RQA^{k-2} + R^2 QA^{k-3} + ... + R^{k-1}Q & R^k \end{pmatrix}

= ( A k 0 Q ( A k 1 + A k 2 + . . . + I ) R k ) = \begin{pmatrix} A^k & 0 \\ Q(A^{k-1}+A^{k-2}+...+I) & R^k \end{pmatrix}

In the limit, A k 0 A^k \rightarrow 0 and the series of 2 x 19 matrices in the lower left corner approach Q ( I A ) 1 Q(I-A)^{-1} . Now, we don't need to know the complete inverse of the matrix I A I-A , but only its first column, let's call that vector ( c i ) i (c_i)_i , since b 1 = e 1 b_1=e_1 , the first unit vector of dimension 19.

It can be shown that there are two solutions for c i c_i to have all but rows 1 and 19 of ( I A ) 1 c (I-A)^{-1}c become zero: c i = a . 1 i c_i = a.1^i and c i = b . ( p q ) i c_i = b.(\frac p q)^i for real constants a a and b b . Carefully choosing a a and b b so that the last row becomes 0 0 also and row 1 1 becomes exactly 1 1 , gives us: c i = ( 1 f 20 i ) q . ( 1 f 20 ) c_i=\frac{(1-f^{20-i})}{q.(1-f^{20})} , for i = 1 , 2 , . . . , 19 i=1, 2, ..., 19 and f = p q f=\frac p q .

Now, only what is left, is to calculate only the bottom (second) row of Q ( I A ) 1 b = Q c Q(I-A)^{-1}b=Qc , or, Q 2 , 19 . c 19 = q . ( 1 f ) q . ( 1 f 20 ) = 1 f 1 f 20 = 1 17 19 1 ( 17 19 ) 20 0.118 Q_{2,19}.c_{19}=q.\frac{(1-f)}{q.(1-f^{20})}=\boxed{ \frac{1-f}{1-f^{20}} = \frac{ 1-\frac{17}{19} }{ 1-(\frac{17}{19})^{20} } \approx 0.118 } .

Shamik Banerjee
Jan 21, 2014

This problem is just like what's given in the following link that uses Markov Chain. Gambler's Ruin Problem

The answer is, therefore, equal to = {1 - (17/19)}/{1 - (17/19)^{20}} = 0.118024.

It would probably help others to spend some time explaining the idea and calculation behind this kind of process.

Josh Silverman Staff - 7 years, 4 months ago

If there are 0 Mogwai, the probability of Gremlification is obviously 1. If there are 20 Mogwai, the probability of Gremlification is obviously 0.

We wish to find the probability of Gremlification at 19 Mogwai. Let this be x.

We will now show that P(x)=17/36 P(x+1)+19/36 P(x-1). We only care about the relative probability of a G converting an M or an M converting a G. But there are as many GM pairs as there are MG pairs, so it follows that their relative probabilities are 17:19, in favor of gremlification. (MM and GG result in P(x); subtract it from the LHS and it works out.)

Given this, we now know that P(18) = 36/19 x = x + 17/19 x. But P(17) = x + 17/19 x + (17/19)^2 x, by a similar argument. (since the sum of coefficients are the same on both sides of that equation, we can subtract x from all of the terms and this is simply a scaled down problem. Repeating this logic, we get that P(0) = x (1+17/19+...+(17/19)^19)=1, so we can solve for x quite easily using geometric sequences.

bob smith - 7 years, 4 months ago

Nice Solution! I ran a Monte Carlo simulation, which outputted .119. Now I've been inspired to research Markov Chains!

Shreyas Balaji - 7 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...