Epidemic ModelingFoundations

Module 2Beyond the virus

An epidemic is more than a virus. We treat spread as a tug of war between transmission and interruption, see why the reproduction number depends on the setting, why uneven spread makes outbreaks rarer but more explosive, and why data lags behind reality; then the biology underneath (pathogens, the three clocks of infection, routes, immunity, spillover), the psychology and economics of how people react, and the role of governments in one coupled system with feedback loops and late data.

By the end you should be able to explain why R depends on the setting, show how timing in the body and in policy changes outcomes, and describe the feedback loop between disease, behavior, money and policy.

Key ideas, one per episode

  • Ep. 4R depends on the setting: who meets whom, uneven spread, delays, and the order of the body’s clocks.
  • Ep. 5Behavior is part of the epidemic: fear flattens the curve, fatigue brings it back, and money decides who can protect.
  • Ep. 6Timing, packages and late data: governments shape what the virus needs, and models map futures, not one forecast.

Textbook: Chapter 2 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.

The title slide of Module 2: Beyond the virus

43 slides, written to be read on your own, with worked examples, “try it” boxes, our own small simulations and check-yourself questions (answers at the end). PDF, 0.9 MB.

Watch

3 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 4 · 5:09

How infections spread, and the biology behind it

Two viruses can look almost the same and still write very different epidemics.

R depends on the setting: who meets whom, uneven spread, delays, and the order of the body’s clocks.

TranscriptEpisode 4
0:00

Same virus, different epidemics. Two viruses can look almost the same in a clinic, and still write completely different epidemics. This module is about why. Module two is everything beyond the virus itself. Today: how infections spread through a population, and the biology underneath.

0:22

Transmission vs interruption. Think of an epidemic as a tug of war. On one side, transmission: an infectious person meets a susceptible one, and the germ gets across. On the other side, interruption: people become immune, cases are isolated sooner, or contacts change. We sum up the balance with one number, the reproduction number: how many people one typical case goes on to infect. At 1.5, one case grows to about eleven in six generations. At 0.7, the same chain shrinks to almost nothing. And that number is not a property of the virus alone. It depends on how people mix, how fast cases are found, and what is in place to stop them.

0:58

Who meets whom. So how do people mix? Not evenly. The same few people at home every day, groups at school and work, strangers now and then. Contact surveys show strong patterns by age. Children mostly meet children, working adults meet each other, and homes mix everyone. That's why closing schools and closing offices are different levers. They cut different parts of the contact network.

1:20

Uneven spread. People are uneven in another way, too. Some places, like a crowded indoor party, let one person infect many. We simulated two outbreaks with the same average, two new infections per case. In one, cases are all alike. In the other, very uneven. In the uneven one, three in four cases infect nobody, and just nine percent of cases cause eighty percent of all infections. And a single imported case dies out on its own eighty nine percent of the time, against twenty percent when cases are alike. So uneven spread makes outbreaks rarer, but more explosive when they take off. The average hides that.

1:56

Space, and what we see. Epidemics move through space as well. Commuters tie nearby towns together, and long trips seed outbreaks far away. In our two-town run, if two people in a thousand commute, the second town peaks twenty days after the first. At twenty in a thousand, nine days after. Then there's the gap between what happens and what we see. First infection, then symptoms, then a test, then a report. Every step adds delay. In our run, the reported curve peaks eight days after the real one, and shows only the thirty percent of infections that ever get tested. So the data is always a bit late and a bit partial. Remember that whenever someone shows you a case chart.

2:35

Kinds of germs. Now, one level deeper: biology. Germs come in several kinds: viruses, bacteria, fungi, single-celled parasites, worms, and misfolded proteins called prions. And being infected is not the same as being sick. Infection means the germ is in you, multiplying. Disease means symptoms. You can have the first without the second, and still pass it on.

2:58

Three clocks. Three clocks start at infection. The latent period ends when you become infectious. The incubation period ends when symptoms start. The infectious period is the window for spreading. Each clock varies from person to person, so think of them as distributions, not single numbers. What matters most is their order. In our toy numbers, R₀ is 2.5, and eight in ten sick people isolate. If almost all spread comes after symptoms, R drops to about 0.8. But if forty percent of spread happens before symptoms, the very same isolation only gets R down to about 1.4. Same effort, opposite outcomes. Timing inside the body becomes timing in policy.

3:41

Routes and defenses. To spread, a germ has to leave one body, survive the trip, and reach another in a big enough dose. The main routes are the air, touch, shared objects, water and food, blood or sex, and insects like mosquitoes. Each route points to its own defense. Air means ventilation and less crowding. Water means sanitation. Mosquitoes mean bed nets.

4:05

Immunity and spillover. Immunity is why epidemics slow down, and why they come back. It is not an on-off switch. It can block infection, cut spread, or soften the illness. And it can fade. In our run, when protection fades after about half a year, a second wave arrives around day two hundred forty. Smaller, but it comes back. And many pandemics begin with spillover, a germ jumping from animals to people. Human activity can lower each barrier along the way.

4:33

Recap. So: spread is a tug of war, shaped by who meets whom, where, and how fast we notice. Biology sets the clocks, the routes and the immunity. Next time, the people: fear, trust and money. Because what people do moves an epidemic as much as the virus does.

Interactive lab

Fear, fatigue and waves

Run the behavior model from Episode 5 and the Module 2 slides: an SIR town where people protect themselves when they see infections, and slowly tire of it.

Change how fast news arrives, how long people remember, and how quickly fatigue builds and fades. Watch the peak, the number of waves and the total. Three challenges check your run as you go.

Simple math

An SIR town that reacts

A town of S, I and R. Each infected person meets others at rate β₀ = 0.3 per day and recovers after 10 days on average (γ = 0.1), so R₀ = 3. One person in 10,000 is infected on day 0.

Protection
β(t) = β₀ (1 − e · p(t))

p is the share of meetings that people protect (staying home, masks, distance); e is how much protection cuts transmission.

Fear
p = P / (P + h) · (1 − F)

P is perceived risk: infections reported d days late, remembered for about m days. When P equals h, half of people protect.

Fatigue
dF/dt = φ p (1 − F) − ρ F

Fatigue F builds while people protect (rate φ) and fades when they stop (rate ρ). It limits how much fear can do.

Peak infected at once
–
Peak day
–
Waves
–
Infected by day 540
–

Running…

Infected right now

Share of the town infected on each day. A wave is a peak above 0.03%, at least 30 days after the previous one.

Protection and fatigue

Protection p (green) and fatigue F (navy, dashed), from 0 to 100%.

protection pfatigue F

Challenges

Each one is checked on your current run.

  1. With fear on, keep the peak below 1% of the town.
  2. With fatigue on, get three or more waves.
  3. With fatigue on, keep total infections under 25%.

Hints: what happens when the news comes later, or people forget faster? Does a quicker recovery from fatigue help or hurt?