Branching processes explained

Start with one individual. It has a random number of children, each child has a random number of children of its own, and so on, generation after generation. Will the family die out, or grow without end? A branching process answers that question with a single number, the mean number of children m, and a single equation, q = G(q). The same model describes surnames, neutrons in a reactor, the first cases of an epidemic and a post that goes viral.

A simulated family tree growing from one individual over twenty generations, the lines that died out in grey, beside a chart of the population of hundreds of simulated families on a log scale
A simulated family tree growing from one individual over twenty generations, the lines that died out in grey, beside a chart of the population of hundreds of simulated families on a log scale

Why do surnames die out?

In Victorian Britain people worried that old aristocratic surnames were disappearing. In 1873 Francis Galton put the question as a puzzle in the Educational Times: if each man has a given chance of having 0, 1, 2 ... sons, what share of surnames will be extinct after a number of generations? The clergyman and mathematician Henry William Watson answered with a clever tool, the generating function, and in 1874 the two published "On the probability of the extinction of families". Watson made one slip: he concluded that every surname dies out in the end, which is only true when men have on average one son or fewer. Unknown to both, the French statistician Irénée-Jules Bienaymé had already stated the right answer in 1845, which is why the model is also called the Bienaymé–Galton–Watson process.

The model

Generation 0 has k individuals. Each individual of generation n has a random number of children, independently of everyone else and always with the same distribution: p₀ is the chance of no children, p₁ of one child, and so on. The children together form generation n + 1. Write Zₙ for the size of generation n. The mean number of children m = p₁ + 2p₂ + 3p₃ + ... decides almost everything. Because the individuals act independently, the mean size of generation n is E[Zₙ] = k·mⁿ: it shrinks geometrically when m < 1, stays at k when m = 1 and grows geometrically when m > 1. Once a generation is empty, every later one is empty too: the family is extinct.

The generating function and the extinction equation

The generating function of the number of children is G(s) = p₀ + p₁s + p₂s² + ..., the expected value of s to the power of the number of children. It turns a family tree into algebra. Let qₙ be the chance that one individual's line is extinct by generation n. The line is extinct by generation n + 1 exactly when the line of each of its children is extinct by generation n, and if there are j children that has chance qₙ^j. Averaging over j gives qₙ₊₁ = G(qₙ), starting from q₀ = 0. The chances qₙ climb towards a limit q, the chance that the line ever dies out, and q is the smallest solution of q = G(q) between 0 and 1. With k individuals at the start, every one of the k lines must die out, so the chances become qₙᵏ and qᵏ.

Subcritical, critical, supercritical

G is a convex curve from G(0) = p₀ to G(1) = 1, and its slope at s = 1 is m. If m < 1 (subcritical), the curve lies above the line y = s everywhere before 1, so the only solution is q = 1: extinction is certain, and fast. If m > 1 (supercritical), the curve crosses the line once below 1, so q < 1: the family survives with chance 1 − q, and a family that survives grows roughly like mⁿ. The surprising case is m = 1 (critical): the mean size stays exactly k forever, yet the curve only touches the line at 1, so extinction is still certain (unless every individual has exactly one child). The few critical families that survive long are large ones: the chance of surviving n generations is about 2/(σ²n), where σ² is the variance of the number of children, so with Poisson children only about 9% of families reach generation 20 and 2% reach generation 100.

A worked example

Let the number of children be Poisson with mean m = 1.5, so G(s) = e^(1.5(s − 1)). The chance of no children is q₁ = e^(−1.5) ≈ 0.223. Then q₂ = G(0.223) ≈ 0.312, q₃ ≈ 0.356, q₄ ≈ 0.381, q₅ ≈ 0.395, and the sequence settles at q ≈ 0.417, the solution of q = e^(1.5(q − 1)). So even with one and a half children on average, 41.7% of families die out, almost all of them in the first few generations. Start with three individuals and the chance falls to 0.417³ ≈ 7.3%. The mean after 10 generations is 1.5¹⁰ ≈ 57.7, but that average mixes the 41.5% of families already extinct by then with surviving families of about 99. The spread matters as well: with geometric children of the same mean, G(s) = 1/(1 + 1.5(1 − s)) and q = 1/m ≈ 0.667, while with 0, 1 or 2 children (binomial with p = 0.75) q = ((1 − p)/p)² = 1/9 ≈ 0.111. More variation means more families with no children at all, and more extinctions.

Chain reactions and epidemics

A neutron that splits a uranium nucleus releases a few new neutrons, each of which may split another nucleus or escape. Reactor physicists call the mean number of next-generation neutrons the multiplication factor k: below 1 a chain reaction dies out, at 1 it is critical and steady, above 1 it grows. The first reactor, Chicago Pile-1, reached a k just over 1 on 2 December 1942. An epidemic starts the same way: each infected person infects a random number of others, with mean R₀, the basic reproduction number. With R₀ = 2.5 and Poisson numbers of infections, one imported case still fizzles out with chance about 11%. Real diseases spread more unevenly, with a few superspreaders and many who infect no one, and like the geometric example above that makes more introductions die out by chance, and the ones that take off harder to predict.

More branching in the world

Biology is full of branching processes. A new gene variant with a small advantage s is usually lost by chance in the first generations: J. B. S. Haldane showed in 1927 that it survives with a chance of only about 2s. Cells divide or die, which makes tumour growth, bacterial colonies and the copying of DNA in a PCR machine branching processes too. Every person alive descends in the female line from one woman, "mitochondrial Eve", because all the other maternal lines of her time died out, just as the model predicts for lines in a population of steady size. Surnames still show it: in Korea, where names pass from father to child over many centuries, nearly half the population is called Kim, Lee or Park. And online, a post that each viewer shares with a few others goes viral only when the mean number of new shares per share is above 1, and even then most posts die out early.

Explore it

Open the branching process app and start with Poisson children and a mean of 1.2: the Extinction chance tile shows the theory, 68.6%, with the share of the simulated families that died out beside it. Press Play to watch one family grow generation by generation in the tree: lines that end turn grey, and the ones still alive keep their colour. Press New run for other families: some die in the second generation, others take off. Set the mean to 1.0 and add generations, and every family dies out sooner or later even though the mean stays 1. Under Chart, Extinction by generation puts the simulated share of extinct families next to the theory qₙ, with q as a line. Switch Children to Geometric or to 0, 1 or 2 and compare the extinction chances at the same mean, and raise Start with to see qᵏ. The pencil opens the picture in the photo editor with the tree, the individuals, each series of the chart and the labels on layers of their own.

Frequently asked questions

What is a branching process?

A model of a population in which every individual has a random number of children, independently and with the same distribution, and the children form the next generation. The simplest version, with discrete generations, is the Galton–Watson process, named after Francis Galton and Henry Watson, who studied it in 1873–74, and also after Irénée-Jules Bienaymé, who solved it in 1845.

When does a branching process die out?

For certain when the mean number of children m is 1 or less, even at exactly m = 1 (unless every individual has exactly one child). When m is above 1 the family dies out with a chance q below 1, the smallest solution of q = G(q), where G is the generating function of the number of children.

How do you calculate the extinction probability?

Write down the generating function G(s) = p₀ + p₁s + p₂s² + ... and solve q = G(q) for the smallest q between 0 and 1, or simply iterate q ← G(q) starting from 0. For Poisson children with mean 1.5 that gives q ≈ 0.417. With k individuals at the start the chance is qᵏ.

Why does a critical process die out when its mean stays constant?

Because the mean averages over families. At m = 1 almost every family dies out, while the few that survive grow large, and together they keep the average at the starting size. The chance of surviving n generations falls like 2/(σ²n), so in the long run no family is left.

Ready to try it?

Open PictorX in your browser — no install, no credit card required to start.

Open the branching process