Epidemic model
How an outbreak grows and fades, and what immunity and interventions do to the peak and the total. A classic SEIR model: susceptible, exposed, infectious, recovered.
Vaccine coverage × effectiveness, or past infection.
More options
Infected overall
63%
About 629,277 people.
Peak
Day 176
About 66,307 people infectious at once.
A scenario, not a forecast: the model is not calibrated to real data. Use it to compare settings, not to predict a real outbreak.
- ✓ Population conserved (S+E+I+R = N): Holds at every day.
- ✓ No negative compartment: All compartments stay at or above zero.
Effective R at the start
2.00
Herd immunity threshold
60%
Infections averted by the intervention
8,178
People infectious over time
Susceptible and recovered
For your protocol
An SEIR model of a population of 1,000,000 with R0 = 2.5, a 4-day latent period, a 6-day infectious period and 20% immune at the start, with transmission cut by 30% from day 40 for 90 days, projects an epidemic peak on day 176 with about 66,307 people infectious at once, and 63% of the population infected overall (8,178 infections fewer than with no intervention). The herd immunity threshold for this R0 is 60%.
How this simulation works
A deterministic SEIR model solved with fourth-order Runge–Kutta. Transmission is R0 divided by the infectious period; people pass from exposed to infectious at one over the latent period and recover at one over the infectious period. Immunity at the start (vaccination or past infection) removes people from the susceptible group. The intervention multiplies transmission by one minus the cut while it lasts. Everyone mixes evenly, and there are no births, deaths, waning immunity or chance events, so it shows the shape of an epidemic rather than a forecast. With no intervention it reproduces the classic final-size equation.