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.
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.
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.
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
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?
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.
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.
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.
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.
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.
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.
Protected against a new strain?. You had flu last winter. This winter, a different strain arrives. Are you protected? Partly. Today: immunity that depends on your history.
Immune histories. To model reinfection, we keep track of history: which strains each person has already had. With two strains, A and B, there are four histories: none, A only, B only, and both. People who had A can still catch B, and the other way round. Each strain gets an infected box for every history that hasn't had that strain yet. With two strains, that's four infected boxes. And it explodes. Four strains: sixteen histories and thirty two infected boxes. Ten strains: over a thousand histories, and five thousand one hundred twenty infected boxes. Compare a parallel model with ten strains and no history: just twelve boxes. Tracking history is more honest, and much more expensive.
Cross-immunity. History can change three things: how likely you are to be infected again, how sick you get, and how infectious you are. We'll focus on the first: cross-immunity. Say an earlier infection lowers your chance of catching a different strain by a share, sigma. Sigma of zero means no protection. Sigma of one means full protection, as in the last episode.
A second strain arrives. Our test: strain A, with R₀ of two and a half, sweeps through the town. By day one hundred fifty, eighty nine percent have had it. Then strain B arrives, just as transmissible. With no cross-immunity, B infects eighty nine percent all over again, in a second wave as high as the first. With sigma of one half, B still infects forty seven percent, in a lower and slower wave. With sixty percent protection, B creeps along for more than a year and infects twenty three percent. Above about two thirds, B can't take off at all. The tipping point is where B's effective reproduction number crosses one.
The invasion threshold. That number is B's R₀, times B's effective susceptible pool: everyone who never had B, weighted by how well protected they are. Here, that's the eleven percent never infected, plus the eighty nine percent who had A, counted at one minus sigma. Multiply by two and a half, set it equal to one, and sigma comes out at 0.67. So a strain's real potential depends on the immunity landscape it lands in, not just on its own R₀.
Waves of strains. Now four strains, arriving every hundred fifty days, each with R₀ of 2.4 and forty percent cross-immunity. We get wave after wave: twenty two percent infected at the first peak, then seven, six and five percent. Each new strain finds people its predecessors left only partly protected. By day eight hundred, more than half the town has been infected three or four times. Only one person in five hundred has never been infected. Immune history turns one epidemic into a sequence of waves. It's one of the ingredients behind repeated flu seasons and variant waves.
Shortcuts. Because full histories explode, modelers use shortcuts. They group histories into a few immune statuses, or place strains on a map of antigenic distance, where nearby strains protect more against each other. And one number per strain often summarizes it all: the effective susceptible share. Who could still catch this particular strain, and how easily.
Recap. So: track immune history. Cross-immunity decides whether a new strain can invade. The threshold is its effective reproduction number in the landscape it lands in. And a sequence of strains makes a sequence of waves. Next time: where new strains come from. Mutation, during the epidemic itself.
Strains made during spread. So far, every strain was there from the start, or arrived from somewhere else. But new strains are also made during an epidemic, by mutation. Today, evolution enters the model.
The mutation matrix. Every transmission copies the pathogen, and copies can carry mistakes. Most changes do nothing. A few produce a new strain. In the model, a mutation matrix Q answers one question: when strain i transmits, what's the chance the new infection is strain j? Usually it's i again. With a small probability, mu, it's the next strain on a ladder. Mutation doesn't change how many new infections happen. It only changes which strain they are.
A ladder of strains. Our ladder: four strains, each escaping immunity to the ones before it, and each a bit more transmissible, with R₀ of two, 2.2, 2.4 and 2.6. Only strain one is there at the start. With no mutation: one wave, and it's over. Eighty percent infected. With one mutation in a million transmissions, each new strain takes off in turn: four waves, around days ninety one, one ninety, two sixty five and three twenty seven. With more mutation, the strains arrive sooner and the waves merge. At one in a thousand, all four strains together make one long wave. And each tenfold increase in mutation brings the next strain only about twenty four days sooner. In these equations, the wait depends on the logarithm of the mutation rate.
Chance decides emergence. But there's a catch. In the equations, a new strain exists from day one, as a tiny fraction of a person, and it grows smoothly. Real emergence is a matter of chance. A brand new mutant starts as a single case. And like any first case, it often fizzles. From Module three: it survives with a chance of about one minus one over its reproduction number. We checked this with four thousand simulated chains of cases. With a reproduction number of two, fifty one percent survived, against fifty percent in theory. With 1.2, seventeen percent.
Fewer infections, fewer variants. So successful new strains appear at a rate of: the mutation rate, times the number of transmissions, times the chance each mutant survives. Take a town of a million, and a variant that's made once in a million transmissions and would survive half the time. If the epidemic runs with R₀ of three, about nine hundred forty thousand people get infected, and there's a thirty eight percent chance a new variant takes hold. Hold R₀ to 1.3, and it's about four hundred twenty thousand infections and a nineteen percent chance. Fewer infections mean fewer chances to mutate. Controlling spread also slows evolution.
Measuring diversity. To follow diversity, count strains in a smarter way: take the Shannon diversity of the strain mix, and turn it into an effective number of strains. One strain dominating gives one. Two equally common strains give two. In our run with one mutation in a hundred thousand, the effective number rises to about two at each handover, and falls back as the new strain takes over.
Messier evolution. Real evolution is messier. Gains in transmission and immune escape come together, strains can recombine, and selection depends on the immunity left by earlier waves. Genomic surveillance, in Module nine, is how we watch it happen.
Module 5 recap. That's Module five: strains side by side, immune history and cross-immunity, and mutation that makes new strains, with chance deciding which ones survive. Next, Module six: agent-based models, where we simulate every person.
3:48Episode 17 · 5.1Strains side by sideStrains compete for people: identical strains are labels, a fitter strain must arrive in time, and log odds reveal the advantage.
4:11Episode 18 · 5.2Reinfection and immune historyImmune history decides who a new strain can reach: above a cross-immunity threshold it can't take off.
4:01Episode 19 · 5.3Mutation and new strainsMutation makes new strains; most new mutants fizzle, and fewer infections mean fewer chances to evolve.
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.
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.
A strain that lands with Rₑ below 1 cannot take off, however high its R₀.
Qᵢⱼ is the chance a transmission by strain i founds strain j. N is the effective number of strains in the current mix.
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.
- With full cross-immunity (σ = 1) and B arriving on day 60 or later, make B infect more people than A.
- 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.
- In the mutation panel, get four separate waves.
- In the mutation panel, get more than 3 strains circulating at once (effective number).
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.
