Part IV · Chapter 10

Contagion

A virus does not spread through a crowd; it spreads through a network of contacts. One number tells you whether an outbreak grows or fizzles, but the shape of the network bends that number, and protecting the hubs can stop an epidemic that protecting the same number of random people barely slows.

A new infection arrives in town with one traveller. The traveller meets people; some of them catch it; they meet people; some of them catch it. Whether this chain fizzles after a few links or sweeps through the whole town is one of the most consequential questions in science, and by now you have almost every tool needed to answer it.

Susceptible, infected, recovered

The classic way to think about an epidemic sorts people into three boxes, an idea introduced in 1927 by William Kermack and Anderson McKendrick:

People only ever move one way: S to I to R. And the single most important number is the basic reproduction number, R0 (“R-nought”): the average number of new infections caused by one infected person in a population where everybody is still susceptible.

If that sounds familiar, it should. It is the branching argument from Chapter 5. If each case causes fewer than one new case on average, the chain of infection dwindles and dies. If each causes more than one, it can snowball. Watch the family tree of an outbreak:

Interactive 10.1

Outbreak family tree

Set R0 and grow one outbreak generation by generation, then run hundreds at once to see how often they die out.

1.5
Below R0 = 1 every outbreak dies out. Above 1, many still die out by bad luck in the first few generations, when only a handful of people carry the chain. But the ones that survive that fragile start grow explosively. Each case here infects a random number of others, averaging R0.
Key idea

R0 is the average number of new infections caused by one case in a fully susceptible population; above 1 an outbreak can grow, below 1 it must eventually die out.

Herd immunity

Now suppose some share of the population is immune, through vaccination or past infection. Each case still meets as many people, but only the susceptible ones can catch it. If a share v is immune, a case causes on average R0 × (1 − v) new cases. As soon as that drops below 1, outbreaks cannot take off, even though not everyone is protected. This is herd immunity.

herd immunity threshold = 1 − 1 / R0 Read aloud: immunise more than one minus one over R-nought of the population. For R0 = 2 that is half; for R0 = 4, three quarters. The more contagious the disease, the closer to everyone you need.
Interactive 10.2

The herd immunity line

Set R0, then move the vaccinated share. Dots are averages of simulated outbreaks in a well-mixed town of 1,000.

2.5
30%
The outbreak shrinks smoothly as vaccination rises and hits essentially zero at the threshold line, well before everybody is vaccinated: the unvaccinated are protected by the vaccinated around them. Dots average 60 simulated outbreaks, including those that die out early by chance; the line is the theory for that same average. Raise R0 and the threshold moves right. This model is well-mixed: anyone can meet anyone with equal chance. Real contact networks are not like that.
Careful

The tidy 1 − 1/R0 rule assumes a well-mixed population and immunity handed out at random. Change either assumption and the threshold moves. Real contact patterns are networks, with clusters, bridges and hubs; and, as the next figure shows, who is immune can matter as much as how many.

Contagion on a network

On a network, an infected person can only infect the people they are linked to. Each step, every infected person gets a chance to pass it along each of their links to a susceptible neighbour, and a chance to recover. The shape of the network then decides almost everything. Here is the full laboratory: you can rebuild the network, cut links, choose who is immune, and seed the outbreak yourself.

Interactive 10.3

The contagion lab

Choose a network and a tool, then Play. With “Link / cut” you can click two nodes to link them and click a line to cut it. Run silent trials to compare strategies fairly.

susceptibleinfectedrecoveredimmunised (square)
Network
Clicking a node
0.25
0.25
Immunise 10%:
Each trial restarts from one random case, with the current network, immunity and sliders.
Lab notebook: run some silent trials to record results here.
Each step is a real random draw: every infected node gets an independent chance (the transmission slider) along each link to a susceptible neighbour, then an independent chance to recover. Try the hub-heavy network with no immunity, then immunise 10% at random and run trials, then immunise the 10% biggest hubs instead. Same number of protected people; very different outcomes. The “random friend” strategy lands in between, and needs no map of the network at all.

Why the hubs matter so much

Remember the friendship paradox from Chapter 2: following a link lands you on well-connected nodes far more often than picking a node at random. An infection travels by following links, so it reaches hubs early, and every hub it reaches has many more links to pass it along. That is why, for a network that is not too loopy, the effective reproduction number depends not just on the average degree but on how spread out the degrees are:

R0 ≈ T × (average onward links of a node reached by following a link) Read aloud: R-nought is about the chance T that an infected person infects a given contact before recovering, times the number of further contacts that a newly infected person typically has. Hubs push that second number far above the plain average degree.

For networks with extremely heavy-tailed degrees, theory (Romualdo Pastor-Satorras and Alessandro Vespignani, 2001) even suggests the epidemic threshold can become very low, because every hub the infection reaches passes it to so many others. The same fact cuts the other way: remove the hubs from the chain and the network falls below threshold. That is the robust-yet-fragile story of Chapter 7, turned into a public-health strategy. Since in real life nobody has the full contact map, in 2003 Reuven Cohen, Shlomo Havlin and Daniel ben-Avraham proposed a clever workaround: pick random people and immunise a random friend of each. By the friendship paradox, the friends are disproportionately hubs.

Key idea

On a network, infection follows links and so reaches hubs early; heavy-tailed networks spread disease more easily, and immunising hubs (or random friends, who are often hubs) is far more effective than immunising the same number of people at random.

Careful: a model, not a forecast

The lab is a deliberately simple SIR model on a fixed network. Real diseases have incubation periods, people who never show symptoms, immunity that can fade, and contact networks that change daily as people change their behaviour. Models like this one are for building intuition about mechanisms, such as why hubs and thresholds matter, not for predicting any real outbreak.

Intuition check

In a well-mixed population, a disease has R0 = 4 and immunity is handed out at random. Roughly what share must be immune to stop outbreaks from taking off?

Intuition check

On a hub-heavy contact network you have vaccine for 10% of people, and no map of the network. Which plan is likely to protect the population best?

What you now see

  • The SIR model moves people from susceptible to infected to recovered; R0 decides whether an outbreak can grow.
  • Even above 1, many single introductions die out by chance; the survivors grow explosively.
  • Herd immunity needs a share 1 − 1/R0 immune in a well-mixed population, not everyone.
  • On networks, infection follows links and reaches hubs early, so immunising hubs (or random friends) beats immunising at random.