This week’s Riddler Classic poses a question about bacteria (paraphrased for brevity):

Each bacterium in a colony splits into two copies with probability p and dies with probability (1p). If the colony starts with one bacterium, what is the probability that the colony survives forever?

We can model the colony’s size as a Galton-Watson process. Let Xt be the colony’s size in generation t{1,2,} and let Yit be the number of offspring generated by bacterium i{1,2,,Xt}. The Yit are independently and identically distributed, with Pr(Yit=y)={pif y=21pif y=00otherwise for each i and t. The colony’s size grows according to Xt+1=i=1XtYit with X1=1. Our goal is to compute limtPr(Xt>0)=1limtqt, where qtPr(Xt=0) is the probability that the colony is extinct by generation t.

We can compute qt by conditioning on Y11, the number of offspring generated by the first bacterium. If Y11=0 then the colony is extinct from the second generation onwards. However, if Y11=2 then there are two sub-colonies in the second generation that must be extinct in (t1) generations if the whole colony is extinct by generation t. These sub-colonies grow independently, so the probability that both are extinct in (t1) generations is qt12. Thus, by the law of total probability, we have qt=Pr(Xt=0|Y11=0)Pr(Y11=0)+Pr(Xt=0|Y11=2)Pr(Y11=2)=1×(1p)+qt12×p=1p+pqt12 for t2. Defining qlimtqt and taking limits as t gives1 q=1p+pq2, which has solutions q=1±14p(1p)2p=1±(2p1)22p=1±|2p1|2p. The larger solution exceeds unity when p<0.5, which we cannot have because q is a probability. Thus limtPr(Xt>0)=11|2p1|2p. For example, if p=0.8 then the colony survives forever with probability 11|2×0.81|2×0.8=0.75. If p<0.5 then extinction is guaranteed because each bacterium generates fewer than one offspring on average.


  1. The function xx2 is continuous and so preserves limits. ↩︎