Controlling Spread
How Epidemics Spread
Chapter 9 · Controlling Spread
On 27 July 1377 the Great Council of Ragusa, today's Dubrovnik, passed a law that kept travellers from plague-stricken places out of the city until they had waited a month on the islands offshore. The waiting period was first thirty days (a trentino) and was later lengthened to forty (a quarantena, from which we get “quarantine”). In 1423 Venice put a hospital for plague victims on the island of Santa Maria di Nazareth, an early lazaretto. Nobody then knew about germs, and the logic was simply that sick people spread sickness and keeping people apart for long enough should stop it. Six hundred years later, the logic is the same, but we can ask sharper questions. Which separation matters most: of the sick, of the possibly exposed, or of everyone? How quickly must it happen? And what happens when we stop? This chapter answers those with two small simulations: a model of a closure that cuts contacts, and a model of case isolation plus contact tracing.
Four Kinds of Control
The words are used loosely in the news, so fix them. Isolation separates people known to be infected from everyone else. Quarantine separates people who may have been exposed but are not known to be infected, in case they are. Contact tracing is the work of finding those people: ask each case who they met, then get in touch. Closures and distancing cut contacts for everyone, whether or not they have been exposed. Vaccination, the other great control, was the subject of How Epidemics Spread 4. All of these work on the same two things: they lower the number of people each case infects (R), or they shorten the time a case spends spreading. John Snow’s pump handle is a different kind again: it removes a shared source. The table compares the four main ones.
| Isolation | Quarantine | Contact tracing | Closures and distancing | |
|---|---|---|---|---|
| Who is affected | known cases | people possibly exposed | contacts of known cases | everyone |
| Needs | testing or symptoms to find cases | a list of who was exposed | interviews, staff, speed | no information, only compliance |
| Cost per person | high, but few people | moderate, some are not infected | staff time | low each, enormous in total |
| Weak point | transmission before cases are found | missed contacts, long waits | delays and unknown contacts | the epidemic returns when it ends |
| Model below | detection delay | traced share and delay | traced share and delay | contact cut c over a window |
Closures: When and How Long
A closure lowers the contact rate for a while. In the model that is one multiplication: for the days the closure is in force, the transmission rate is multiplied by (1 − c), where c is the share of contacts cut. The effective reproduction number becomes R0 × (1 − c) × (share still susceptible). The code uses the S-I-R model of How Epidemics Spread 3 with an assumed R0 of 2.5 and an assumed infectious period of 5 days, in a population of 1,000,000 with 10 people infected at the start. It steps in quarter-day steps, and reports three things for six scenarios: the peak share of the population infected at one time, the day of that peak, and the share who are ever infected.
With no control, 23.72 per cent of the population are infected at the peak on day 41, and 89.6 per cent are ever infected. A 70 per cent cut from day 20 to day 80 changes almost nothing in the end: the epidemic is pushed back, the peak arrives on day 112 instead of 41, but it is as tall (22.86 per cent) and the total is the same (89.3 per cent). Extending the closure to day 200 delays the peak to day 255 and again the total is 89.2 per cent. This is the central lesson of closures that end: unless something has changed by the time they lift, the susceptible people are still there and the epidemic picks up where it left off. What could change is a vaccine, a treatment, better tests, or time to build a tracing system. A weaker cut makes a different trade. A 40 per cent cut leaves R at 1.5 during the closure, so cases still grow, but more slowly: the peak is only 6.49 per cent, on day 65, and the total 78.1 per cent. Timing matters too. A 70 per cent cut starting on day 40, just when the epidemic peaks, leaves the peak where it was (23.47 per cent, on day 40, the day the cut started) but lowers the total to 65.7 per cent. My reading is that stopping transmission at the peak prevents much of the “overshoot” in which an uncontrolled epidemic keeps infecting people after most are already immune; I have not tested that. The last row, a cut that is never lifted, keeps cases to 1.5 per cent, but that is a different question from the others: nobody can hold a 70 per cent cut for ever, and the model says nothing about what that costs.
One more caution about the 20 to 200 row. A model with continuous amounts never lets the infection die out completely; a tiny fraction of a person remains and grows back. Real epidemics are made of whole people, and as shown in How Epidemics Spread 6, a tiny number of cases can simply vanish by chance, or be reseeded from outside. Treat the late peak as a feature of the model rather than a prediction.
| Scenario (R0 2.5 assumed) | Peak infected | Peak day | Ever infected |
|---|---|---|---|
| No control | 23.72% | 41 | 89.6% |
| 70% cut, days 20 to 80 | 22.86% | 112 | 89.3% |
| 70% cut, days 40 to 100 | 23.47% | 40 | 65.7% |
| 70% cut, days 20 to 200 | 22.83% | 255 | 89.2% |
| 40% cut, days 20 to 80 | 6.49% | 65 | 78.1% |
| 70% cut, never lifted | 0.32% | 20 | 1.5% |
Isolation, Tracing and the Race Against Time
A closure treats everyone. Isolation and tracing treat only the people who matter, but they have to win a race: each case has to be removed before it has infected too many others. The second model is a branching process, as in How Epidemics Spread 6. Each case infects a random number of people (Poisson, mean R = 2.5, assumed), each after a random lag (gamma-shaped, mean 5 days, as in How Epidemics Spread 8). Each case is detected a random time after being infected, with a mean you can set, and isolated at once; a case infects nobody after it is isolated. With contact tracing, each newly infected person is traced with some probability p: they are quarantined a fixed delay after their infector was isolated, if that is sooner than their own detection. The code starts every outbreak with 3 cases and calls the outbreak escaped if it reaches 300 cases (an assumed cut-off; the Hellewell summary gave 5,000 cases or 12 weeks for its definition of control). It runs 300 outbreaks per plan. Every case is eventually detected here, which is optimistic, and isolation is perfect, which is also optimistic.
Without isolation every outbreak escapes. Isolating cases with a mean detection time of 5 days is not enough: 59 per cent of outbreaks escape, because by the time a case is found it has already passed the infection on, and each of those cases will do the same. Cutting the detection time to 3 days stops all 300 in this run. Detection speed is a threshold effect in this model, not a gentle slope. Tracing with the 5-day detection and a 2-day delay brings escape down to 11 per cent at 50 per cent tracing and to 0 at 90 per cent. But the same 90 per cent tracing with a 5-day delay does no better than isolation alone (63 per cent escape, against 59 per cent, which is within what 300 runs can scatter by, about 3 points either way by a rough binomial estimate of mine). A trace that takes as long as the detection itself does not catch anyone early. The mean size of the outbreaks that were contained is also informative: 37.5 cases for the 50 per cent trace, since a weaker control lets contained outbreaks run longer before they die out. The direction agrees with the summary of Hellewell and colleagues, that faster isolation and more tracing both help, and that more infectious diseases need more of both. That is a qualitative agreement with a summary, nothing more.
| Plan (R = 2.5 assumed, 300 runs) | Escaped | Mean size if contained | What it shows |
|---|---|---|---|
| No isolation | 100% | none contained | the baseline |
| Isolate, 5-day detection | 59% | 12.3 | not fast enough alone |
| Isolate, 3-day detection | 0% | 7.9 | speed alone can be enough |
| 5-day detection, trace 50%, 2-day delay | 11% | 37.5 | tracing helps a lot |
| 5-day detection, trace 90%, 2-day delay | 0% | 16.3 | high coverage, fast |
| 5-day detection, trace 90%, 5-day delay | 63% | 14.3 | coverage without speed fails |
Comparing Strategies Honestly
The two models make different promises. The closure model asks how much total harm a measure prevents, in a well-mixed population. The branching model asks whether a small outbreak can be stopped before it grows. Often the right answer is a combination: a short closure while tracing capacity is built, then tracing and isolation to keep numbers down after reopening. Comparing strategies by simulation needs the same discipline as comparing drugs. Change one thing at a time; run many random repeats and report the spread, as in How Epidemics Spread 6; write down every assumed number; and look for the scenario where your favourite plan fails. The most important numbers to vary are the ones you are least sure of: the delay, the share of cases that are ever found, and the share of contacts you can name. The measures are also not independent in real life (people who isolate may also be the ones who distance), and none of the models here counts the cost of a measure, which is what makes the choice hard.
Using the closure model (R0 2.5, a 70 per cent contact cut, both assumed), try starting days of 10, 30 and 50 with closure lengths of 30, 60 and 120 days. Print the peak share infected and the share ever infected for each of the nine. When does a closure change the peak, when does it change only the total, and when does it change neither?
📄 View solutionUsing the branching model with R = 2.5 and a 5-day mean detection time (assumed), find the share of 200 outbreaks that escape for tracing coverages of 30, 50, 70 and 90 per cent and tracing delays of 1, 3 and 5 days. Which matters more at low coverage, and what does a 5-day delay do to the benefit of high coverage?
📄 View solutionCombine a contact cut with isolation (no tracing). Cut contacts by 0, 20, 40 and 50 per cent, so that R becomes 2.5 × (1 − cut), and use mean detection times of 7, 5 and 3 days. For each pair print the share of 200 outbreaks that escape. How much of a contact cut is needed to make slow detection enough, and how optimistic are the model’s assumptions?
📄 View solutionQuick Reference
- Isolation: separate known cases; quarantine: separate people who may have been exposed; tracing: find those people
- Closure model: transmission multiplied by (1 − c) between a start and an end day; effective R = R0 × (1 − c) × share susceptible
- A closure that ends leaves the susceptible people; unless something changes the epidemic returns (peak delayed, total similar)
- Timing: started at the peak, a cut lowered the total but not the peak; started early and short, it only delayed the epidemic (in this model)
- Branching model: Poisson children, gamma lags, detection delay, isolated cases infect nobody; escaped = reaches the case cap
- Race against time: tracing needs coverage and speed; a trace as slow as detection adds little
- Compare strategies: many runs, one change at a time, all assumptions stated, include a scenario where the plan fails
- Assumes: well-mixed population, perfect isolation, every case eventually detected, illustrative numbers