A lockdown of strength u between its start and end; 2% of infections need a bed for 10 days.
Epidemic ModelingPolicy and practice
Module 10Intervention policies
Interventions, optimal control and vaccination. In made-up towns, we put interventions into the equations (a dial on transmission, settings in a contact matrix, vaccination as a flow, isolation as a box), see why lockdown timing matters as much as strength, solve an optimal-control problem two ways, weigh health against the economy on a Pareto front, choose who gets vaccinated first, and see how travel cuts, data lags and drug resistance change the answer.
Key ideas, one per episode
- Ep. 41A 60-day lockdown started on day 65 nearly halved deaths; started on day 10, it changed almost nothing. Shielding seniors cut deaths by 31% while barely moving R0.
- Ep. 42The optimal policy builds to about a 50% cut and tapers, landing near herd immunity; a plan made with the wrong R0 does no better than nothing until it is re-planned.
- Ep. 43Only 24 of 468 lockdowns were on the Pareto front; children first cut infections most, seniors first cut deaths most, and a later start doubled deaths.
- Ep. 44A 99% travel cut bought four weeks; a 12-day data lag raised peak beds from 213 to over capacity; heavy treatment handed 95% of infections to a resistant strain.
Textbook: Chapter 10 of T. Lazebnik, Epidemic Modeling: Principles, Algorithms, and Applications (Academic Press, 2026). The episodes and slides follow the chapter’s topics in our own words, figures and simulations; nothing is copied from the book.
Watch
4 short episodes for this module. Pick one from the list, and open the transcript to read along: each timestamp plays the episode from there. The narration is generated with a voice clone of Teddy, used with his permission.
Episode 41 · 2:56
Putting interventions into the model
How interventions enter an epidemic model: a dial on the transmission rate, why lockdown timing matters as much as strength, contact matrices by setting (school, work, shielding), vaccination as a flow, and testing and isolation.
A 60-day lockdown started on day 65 nearly halved deaths; started on day 10, it changed almost nothing. Shielding seniors cut deaths by 31% while barely moving R0.
TranscriptEpisode 41
Decisions inside the equations. A model that only predicts can't help a mayor decide. To help, the decisions have to be inside the equations. Welcome to Module ten: intervention policies.
A dial on transmission. The simplest way in is a dial on transmission. Distancing or masks multiply the infection rate by one minus u, where u, between zero and one, is how hard we push. Our town has a million people, an R₀ of 2.5 and a thousand hospital beds. With no action, eighty nine percent are infected, the beds overflow for forty five days, and about nine thousand one hundred people die. Turn the dial to thirty percent and leave it there. The peak falls by more than half, but the wave lasts longer, and the beds still overflow, now for fifty six days.
Timing. Timing matters as much as strength. Take a sixty day lockdown that cuts transmission by sixty percent, enough to hold R at one, and slide its start date. Started on day ten, it changes almost nothing: the epidemic simply waits. Started on day one hundred, after the peak, it's too late. The best start here was day sixty five, which cut deaths from about nine thousand one hundred to about four thousand nine hundred.
Who meets whom. Many measures act on who meets whom. Split contacts by setting: home, school, work, and everything else. A policy then scales parts of the contact matrix. In an age-structured version of our town, closing schools lowers R₀ from 2.5 to 2.1, yet deaths barely move. Shielding seniors hardly changes R₀ at all, but cuts deaths by thirty one percent. Closing schools, and cutting contacts at work and everywhere else in half, brings R₀ down to 1.3, and the share infected from eighty five to thirty nine percent.
Vaccines and isolation. Vaccination is different: it moves people out of the susceptible box. In the equations, it's a flow from S straight to immune. If half a percent of susceptible people gain immunity each day from day zero, forty six percent are eventually infected instead of eighty nine. Start on day sixty, after the wave took off, and eighty two percent are. Testing and isolation split the infectious box: people who are found move to isolation, where they no longer infect. If sixty percent of infections are ever found, isolating them within a day cuts R in half. It falls to 1.25. Find ninety percent and isolate within two days, and R drops below one. Speed and coverage both matter: what is never found can't be isolated.
Next. Next: how to choose the best policy over time, with optimal control.
Hard and short, or gentle and long?. Lock down hard and short, or gently and long? Optimal control turns that question into mathematics.
The objective and the maximum principle. First, write down what we want to make small: the cost of infections over time, plus the cost of the measures, plus the infections still to come once we stop. Here the measure is a cut u in transmission, up to seventy percent, and its cost grows with the square of u. Pontryagin's maximum principle gives the conditions an optimal policy must meet. It adds a second set of equations, the adjoints, which run backwards in time. Each adjoint is a shadow price: the future cost of one more person in that state. The rule for the best cut follows: push harder when there are many infections, and when an infection costs much more in the future than a susceptible person does.
The optimal policy. Our town is a simple SIR model with an R₀ of 2.5. With no measures, eighty nine percent are eventually infected. The best constant cut, kept all along, is just thirteen percent, and it barely helps. The optimal policy starts small, builds to a cut of about fifty percent near the peak, then tapers slowly. The peak falls by half, and in the end sixty three percent are infected: close to the sixty percent where herd immunity is reached, with little overshoot. The best single strict lockdown costs about eight and a half percent more than the optimum. And two very different solvers agree: the adjoint method and a direct search over weekly cuts land within 0.02 percent of each other.
Smooth or bang-bang. The shape depends on the costs. If the cost of measures grows in proportion to u, instead of its square, the optimum becomes bang-bang: one strict lockdown, here from about day sixty to day one hundred twenty, and nothing else. And if infections weigh five times less, the best policy is gentle: never more than a twenty percent cut, for about a hundred days. So the answer is never just lock down or don't. It depends on what you count, and how you weigh it.
Model predictive control. One catch: the optimum is only as good as the model. Suppose the planner believes R₀ is two, when it's really 2.5. Following that plan to the end does no better than doing nothing. Re-planning every two weeks from the latest data recovers most of the loss, even with the wrong R₀. Re-estimating R₀ each time as well brings the cost back to the optimum. That's model predictive control: plan, act for a while, look again, and plan again.
Next. Next: the economy enters the objective, and we choose who gets vaccinated first.
Two bills. Every lockdown sends two bills: one paid in health, one in livelihoods. And every vaccine dose is a choice about who goes first.
An economy in the model. Our town again, now with an economy. A lockdown that cuts transmission by sixty percent costs thirty percent of that day's output. And people don't wait for orders: as hospital beds fill, they cut their contacts on their own. So doing nothing isn't free. With no lockdown, caution alone cut the share infected from eighty nine to seventy two percent, and cost about 2.4 percent of a year's output.
The Pareto front. Now try four hundred sixty eight lockdowns, with different strengths, start dates and lengths. Each one is a point: economic loss across, deaths up. Most are wasteful: another policy has both fewer deaths and a smaller loss. Only twenty four points are left. They form the Pareto front, the set of honest compromises. Which point to pick depends on how a death is weighed against output. That's a value judgement, not a calculation. Count a death as twenty years of one person's output, and a short, moderate lockdown wins. Count it as a hundred years, and a longer one does. And if a vaccine arrives on day two hundred, the picture changes. At the higher weight, the best choice is to suppress hard from day ten until the vaccine: deaths almost vanish, at a cost of seventeen percent of a year's output.
Who gets vaccinated first. Now, vaccines. In a well-mixed town, an R₀ of 2.5 means sixty percent must be immune for herd immunity. With a vaccine that's ninety percent effective, that's sixty seven percent coverage. But people differ. In our age-structured town, five thousand doses a day arrive from day thirty, four hundred thousand in all. Who should go first? To cut infections, vaccinate those with the most contacts: children first gave the fewest infections. To cut deaths, protect those most at risk: seniors first gave about thirteen hundred deaths, against about thirty two hundred for children first. If the vaccine mainly prevents severe disease rather than infection, the indirect protection fades: every order gave about the same number of infections, and seniors first was still best for deaths. And speed counts. Starting the same campaign on day sixty, instead of day thirty, doubled the deaths.
No universal ranking. The best order isn't a universal ranking. It depends on the vaccine, the contacts, the timing, and what you choose to minimize.
Next. Next: interventions in space and on networks, policies that react to data, pathogens that evolve, and what real epidemics taught us.
Where you act. Where you act matters as much as how hard. And the pathogen can answer back.
Travel cuts. Six cities: a hub of two million, and five towns on a ring, linked by daily travel. An outbreak starts in one town. With no restrictions, the hub passes one infectious person in ten thousand on day thirty eight. Cutting all travel by ninety percent delays that to day fifty one. Even a ninety nine percent cut only reaches day sixty six, and in the end the same eighty nine percent are infected. Cut only the hub's links, and the hub is delayed just as much, but the neighbouring towns still catch it on day thirty eight, along the ring. Infection follows every path that's left open. Travel restrictions buy time, here about two weeks per tenfold cut. Time is worth a lot, if you use it to prepare.
Policies that react to data. Real policies react to data: measures go on when a signal passes a threshold, and off when it falls. Here, a seventy percent cut goes on above fifteen hundred new infections a day, and off below five hundred. If we could see infections the day after they happen, hospital beds would peak at two hundred thirteen, a fifth of capacity. With the four day lag of wastewater, three hundred fifty two. With the eight day lag of reported cases, six hundred eleven. With the twelve day lag of hospital admissions, the beds overflow. The lag also makes the response cruder: fewer, longer lockdowns, and almost twice the deaths in the first year.
Pathogens answer back. Pathogens evolve, and our measures shape the selection. Suppose an antiviral cuts the infectious period of treated people in half. A resistant strain shrugs it off. It spreads ten percent less well, but the drug can't touch it. Treating sixty percent of infections cut total infections by almost a fifth, but a third of them were resistant. Treating ninety percent made the resistant strain dominant by day ninety: ninety five percent of infections, and nearly as many in total as with no treatment. Vaccines that stop disease but not infection raise similar questions: in poultry, such vaccines have let more virulent strains of Marek's disease keep spreading. Evolution-aware policy counts tomorrow's strains, not just today's cases.
What real epidemics taught. Real epidemics teach the same lessons. In 1918, American cities that acted early and kept their measures in place generally saw lower peaks of death. With SARS in 2003, faster isolation after symptoms helped bring transmission down. In West Africa in 2014, Ebola showed that isolation beds and safe burials must scale up fast enough to keep pace. And COVID-19 turned every idea in this module into a daily decision: timing, triggers, vaccine priorities and new variants.
Next. That closes Module ten. Next, in Module eleven: uncertainty, sensitivity, and how to compare models.
2:56Episode 41 · 10.1Putting interventions into the modelA 60-day lockdown started on day 65 nearly halved deaths; started on day 10, it changed almost nothing. Shielding seniors cut deaths by 31% while barely moving R0.
2:57Episode 42 · 10.2Optimal control for epidemicsThe optimal policy builds to about a 50% cut and tapers, landing near herd immunity; a plan made with the wrong R0 does no better than nothing until it is re-planned.
3:02Episode 43 · 10.3Health and economy; vaccination strategyOnly 24 of 468 lockdowns were on the Pareto front; children first cut infections most, seniors first cut deaths most, and a later start doubled deaths.
3:15Episode 44 · 10.4Space, networks, strains and real use casesA 99% travel cut bought four weeks; a 12-day data lag raised peak beds from 213 to over capacity; heavy treatment handed 95% of infections to a resistant strain.
Interactive lab
Lockdowns and vaccine priority
Choose a lockdown's start day, length and strength in the module's town and see beds, deaths and lost output; then give a limited vaccine supply to children, adults or seniors first and compare infections and deaths.
The first panel runs the module's town of a million people with one lockdown you design; the second runs its age-structured version with a vaccine campaign. Everything runs in your browser.
Lockdowns and vaccine priority
The module's made-up town: a million people, R₀ 2.5, a thousand hospital beds. Design one lockdown, then decide who gets a limited vaccine first. Everything runs in your browser.
With caution on, people cut contacts by up to half as beds fill. Patients who find no bed die more often.
Doses go to susceptible people, group by group, in the order you choose; children, adults and seniors mix differently.
Running…
Hospital beds in use
Orange: with your lockdown; grey: no lockdown; dashed: capacity.
Challenges
Each one is checked on your current settings, in its own panel.
- Without caution, bring deaths below 5,000 with one lockdown.
- Without caution, find a lockdown of at least 50% for at least 30 days that is so early it barely helps (deaths within 2% of no lockdown).
- Vaccines: get fewer than 600,000 infections.
- Vaccines: get fewer than 1,000 deaths.
Running…
New infections a day
Blue: with your campaign; grey: no vaccine.
Play
A game that goes with this module, and what to look for while you play.
Mayor's Outbreak
An SIR strategy game in your browser
In this module: steer a city through an epidemic with your own policies, then compare your choices with the trade-offs this module computes.
Mayor's Outbreak is a browser-based SIR strategy simulation where you steer a city through an epidemic by balancing mobility, testing, and public protection.

