Epidemic ModelingCore models

Module 5Multi-strain and evolving pandemics

Most diseases come in several strains. We give each strain its own infected box in one shared pool of people, show that identical strains are just labels, see why a fitter strain must also arrive in time, and read its advantage from the log odds of its share. Then we track immune history, see the number of boxes explode, add cross-immunity and the invasion threshold, and follow strains arriving one after another into repeat waves. Finally, mutation makes new strains during the epidemic: in the equations a new strain grows smoothly from day one, in reality it starts as one case and often fizzles, and controlling spread slows evolution.

By the end you should be able to build a multi-strain model with immune histories, compute a new strain's effective reproduction number in the immunity landscape it meets, add mutation with a mutation matrix, and explain why chance and the number of infections decide how often new strains emerge.

Key ideas, one per episode

  • Ep. 17Strains compete for people: identical strains are labels, a fitter strain must arrive in time, and log odds reveal the advantage.
  • Ep. 18Immune history decides who a new strain can reach: above a cross-immunity threshold it can't take off.
  • Ep. 19Mutation makes new strains; most new mutants fizzle, and fewer infections mean fewer chances to evolve.

Textbook: Chapter 5 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 5: Multi-strain and evolving pandemics

32 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.7 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 17 · 3:48

Strains side by side

Two strains, one pool of people.

Strains compete for people: identical strains are labels, a fitter strain must arrive in time, and log odds reveal the advantage.

TranscriptEpisode 17
0:00

One virus, several strains. Flu comes in several strains every winter. COVID came in variant after variant. Today our model gets more than one strain, and we ask: when does one strain push out another?

0:18

A shared pool of susceptibles. Start with the simplest version. Each strain gets its own infected box and its own rates. But all strains draw from the same pool of susceptible people. And we make a strong assumption: recover from any strain, and you're immune to all of them. One shared recovered box. So strains never meet directly. They compete for people. Every person one strain infects is a person the other strain can no longer reach. Each strain's effective reproduction number is its own R₀ times the share still susceptible. When one strain uses up susceptibles, it pulls down the other strain's number too.

0:54

Identical strains. In the model, a strain is just a label we attach to infections. So here's a first test: several identical strains, each with R₀ of two, starting together from the same total number of cases. One strain, two, three or four: the epidemic is exactly the same every time. Eighty percent infected, with the peak on day sixty eight. Splitting an epidemic into labels doesn't make it bigger. The strains share it.

1:18

Timing beats fitness. Now make them different. Strain A has R₀ of 1.8. Strain B is fitter, with 2.6. If both start on day zero, B wins. It causes about sixty percent of all infections, and the epidemic reaches eighty six percent of the town, against seventy three percent with A alone. But let B arrive twenty days late, as a handful of cases, and it causes only fifteen percent of infections. Forty days late: one percent. Later than that: almost nothing. B is just as fit as before. Its R₀ never changed. It simply arrived after A had used up the people it needed. In a race for susceptibles, timing can beat fitness. Even on day sixty, B's effective reproduction number is still above two. But it starts from so few cases that A's wave is over before B can grow.

2:06

Reading a variant's advantage. There's a neat way to spot a fitter strain early: follow its share among new cases. While both strains are growing and B is still rare, the log odds of B's share rise in a straight line. The slope is the difference between the two transmission rates. Here, 0.08 per day, and that's exactly the slope in our run. That's how a variant's advantage is often read from data: plot the log odds of its share, and read the slope. In our run, B passed half of all cases on day fifty eight. Case counts alone can't show this. You need to know which strain each case has, and that means sequencing a sample of cases, which we'll meet in Module nine.

2:49

Beyond full protection. Real multi-strain models relax the strong assumption. Recovering from one strain rarely protects fully against another. Strains can also differ in latent period and severity, so each one may get its own exposed box. But the shared pool stays the core idea. Strains interact through the people they infect.

3:07

Recap. So: parallel strains drawing from one pool of susceptibles. Identical strains don't add up to a bigger epidemic. A fitter strain wins only if it arrives in time. And the slope of the log odds of its share reveals its advantage. Next time: immunity that depends on your history. Who has had which strain, and what that does to the next wave.

Interactive lab

Strains, immunity and mutation

Change cross-immunity, timing and R0 for two strains, then run a ladder of four strains made by mutation and follow the waves and the strain diversity.

Both panels solve the course's immune-history model in your browser: everyone is tracked by which strains they have had, and the mutation panel adds a mutation matrix. Four challenges check your runs as you go.

Simple math

Strains that share one town

Everyone is tracked by their immune history: which strains they have had. Both panels solve the same model in your browser.

Histories
new infections of strain j in history J = λⱼ × sⱼ,J × (share with history J)

Nobody catches a strain twice. After any other strain, susceptibility is 1 − σ (σ is the cross-immunity). Recovery adds the strain to the history; 10 days infectious.

Invasion
Rₑ(B) = R₀(B) × [never infected + (1 − σ) × had A]

A strain that lands with Rₑ below 1 cannot take off, however high its R₀.

Mutation and diversity
λⱼ = Σᵢ βᵢ Iᵢ Qᵢⱼ · N = exp(−Σ pₖ ln pₖ)

Qᵢⱼ is the chance a transmission by strain i founds strain j. N is the effective number of strains in the current mix.

Infected by A
–
Infected by B
–
B’s Rₑ on arrival
–
Infected at least once
–

Solving…

Infected now, by strain

Strain A orange, strain B purple; 600 days.

Challenges

Each one is checked on your current settings, here or in the mutation panel below.

  1. With full cross-immunity (σ = 1) and B arriving on day 60 or later, make B infect more people than A.
  2. With both R₀ at 2.5 and B arriving on day 150, set σ so that B lands with Rₑ between 0.95 and 1.05.
  3. In the mutation panel, get four separate waves.
  4. In the mutation panel, get more than 3 strains circulating at once (effective number).
Waves
–
Strain 2 reaches 1 in 10,000
–
Most strains at once
–
Infections per person
–

Solving…

Infected now, by strain

Strains 1 to 4 in orange, purple, amber and teal; dashed: all strains together.

Effective number of strains

1 when one strain dominates, 2 when two are equally common.