The zombie plague

Probability Level pending

10 people are in a room.

1 is a zombie, and 9 are not.

Every minute, all ten people pair up randomly (forming 5 pairs). If a zombie pairs up with a non-zombie, the non-zombie becomes a zombie.

If the expected number of minutes before everyone in the room is a zombie, is given by a b \frac{a}{b} where a a and b b are coprime positive integers, what is a + b a+b ?


Image credit: http://www.forbes.com/


The answer is 283.

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

Arjen Vreugdenhil
Oct 24, 2016

The number of ways in which ten people can be paired up is 10 ! 2 5 5 ! = 945. \frac{10!}{2^5\cdot 5!} = 945. After the first minute, there can only be an even number of zombies at any time.

Suppose there are eight zombies in the room. It is unlikely, but possible that the number of zombies remains 8 ; this happens when the two non-zombies pair up. The number of ways this can be done is equal to the number of ways eight zombies can pair up: 8 ! 2 4 4 ! = 105. \frac{8!}{2^4\cdot 4!} = 105. Thus the probability P 8 8 = 105 / 945 = 1 / 9 P_{8\to 8} = 105/945 = 1/9 . The only alternative is that the number of zombies increases to 10 , with probability P 8 10 = 8 / 9 P_{8\to 10} = 8/9 .

If E 8 E_8 is the expected number of minutes when starting with eight zombies, then E 8 = 1 + 1 9 E 8 , E_8 = 1 + \frac 1 9 E_8, from which we find that E 8 = 9 / 8 E_8 = 9/8 .

Suppose there are six zombies in the room. The most unlikely event is that the number remains 6 ; this requires all zombies to pair up, and all non-zombies to pair up. The number of ways this can be done is 6 ! 2 3 3 ! 4 ! 2 2 2 ! = 45 , \frac{6!}{2^3\cdot 3!}\cdot\frac{4!}{2^2\cdot 2!} = 45, giving the probability P 6 6 = 1 / 21 P_{6\to 6} = 1/21 . It is also possible that the number increases to 8 . This requires two of the zombies to pair up with two of the non-zombies, and the remaining four zombies to pair up with each other; this can be done in ( 6 5 ) ( 4 3 ) 2 4 ! 2 2 2 ! = 540 \frac{(6\cdot 5)\cdot (4\cdot 3)}{2}\cdot\frac{4!}{2^2\cdot 2!} = 540 ways, making P 6 8 = 4 / 7 P_{6\to 8} = 4/7 . The remaining case of increasing to 10 zombies has P 6 10 = 1 1 / 21 4 / 7 = 8 / 21 P_{6\to 10} = 1 - 1/21 - 4/7 = 8/21 .

Thus for the expected number of minutes when starting with six zombies, we get E 6 = 1 + 1 21 E 6 + 4 7 E 8 , E_6 = 1 + \frac1{21}E_6 + \frac 4 7 E_8, E 6 = 21 20 + 3 5 E 8 = 69 40 . E_6 = \frac{21}{20} + \frac 3 5 E_8 = \frac{69}{40}.

The case of four zombies is similar to that of six; just flip zombies and non-zombies! The probabilities are P 4 4 = 1 / 21 P_{4\to4} = 1/21 ; P 4 6 = 4 / 7 P_{4\to 6} = 4/7 ; and P 4 8 = 8 / 21 P_{4\to 8} = 8/21 . We get E 4 = 1 + 1 21 E 4 + 4 7 E 6 + 8 21 E 8 , E_4 = 1 + \frac1{21}E_4 + \frac 4 7 E_6 + \frac 8{21} E_8, E 4 = 21 20 + 3 5 E 6 + 2 5 E 8 = 507 200 . E_4 = \frac{21}{20} + \frac 3 5 E_6 + \frac 2 5 E_8 = \frac{507}{200}.

The case of two zombies is similar to that of eight: P 2 2 = 1 / 9 P_{2\to 2} = 1/9 and P 2 4 = 8 / 9 P_{2\to 4} = 8/9 . Thus E 2 = 1 + 1 9 E 2 + 8 9 E 4 , E_2 = 1 + \frac19 E_2 + \frac 89 E_4, E 2 = 9 8 + E 4 = 183 50 . E_2 = \frac 98 + E_4 = \frac{183}{50}.

Finally, when starting with one zombie it will take one minute to create a second zombie with certainly, so E 1 = 1 + E 2 = 233 50 . E_1 = 1 + E_2 = \frac{233}{50}.

The answer is therefore 233 + 50 = 283 233 + 50 = \boxed{283} .

Ah, nice write up, @Arjen Vreugdenhil !

Geoff Pilling - 4 years, 7 months ago
Geoff Pilling
Oct 21, 2016

Let E n = E_n = Expected number of minutes given n n zombies in the room (out of 10).

Then the answer can be found with the following set of linear equations:

  • E 1 = 1 + E 2 E_1 = 1 + E_2
  • E 2 = 1 + ( 1 / 9 ) E 2 + ( 8 / 9 ) E 4 E_2 = 1 + (1/9)*E_2 + (8/9)*E_4
  • E 4 = 1 + ( 1 / 21 ) E 4 + ( 4 / 7 ) E 6 + ( 8 / 21 ) E 8 E_4 = 1 + (1/21)*E_4 + (4/7)*E_6 + (8/21)*E_8
  • E 6 = 1 + ( 1 / 21 ) E 6 + ( 4 / 7 ) E 8 + ( 8 / 21 ) E 10 E_6 = 1 + (1/21)*E_6 + (4/7)*E_8 + (8/21)*E_{10}
  • E 8 = 1 + ( 1 / 9 ) E 8 + ( 8 / 9 ) E 10 E_8 = 1 + (1/9)*E_8+(8/9)*E_{10}
  • E 10 = 0 E_{10} = 0

Solving, E 1 = 233 50 E_1 = \frac{233}{50}

233 + 50 = 283 233+50=\boxed{283}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...