Epidemic simulation

Step 0 Tap a person or “Random case” to start; tap more people later to add cases
  • Vaccinated
  • Not vaccinated
  • Infected
  • Convalescent
  • Deceased
Count
Infected

Convalescent

Deceased
Unaffected Tally infected Exposed I/E ratio Case mortality % Morbidity % Overall mortality %
Vaccinated
Not vaccinated
All

Odds of infection (unvaccinated vs vaccinated): –
Odds of death (unvaccinated vs vaccinated): –

Over time Infected Convalescent Deceased

How it works

Each square is a person, vaccinated or not according to the coverage you choose. Click one to make it the index case. At every step each infected person may meet each of their eight neighbours (population density); a meeting spreads the illness with the contagiousness chance, unless the neighbour's immunity – vaccinated, unvaccinated, or convalescent after an earlier illness – blocks it. After the illness duration an infected person dies, recovers, or stays ill a little longer; vaccinated people divide their chance of dying by the “other benefits” factor. The table compares what happened to the vaccinated and unvaccinated groups, and the odds lines put the two side by side.

Reading the table

Things to try

About the “real outbreak” presets

They are rough translations of published figures into this toy's knobs, not measured parameters. The mapping: expected secondary infections in a fully susceptible grid ≈ 8 neighbours × density × contagiousness × illness duration (the grid saturates, so the realised number is lower than the R0 quoted); mortality ≈ case fatality; vaccinated immunity ≈ vaccine efficacy against infection; “other benefits” ≈ how much the vaccine cuts deaths among people who get ill anyway. Treatment, incubation, superspreading, travel and behaviour change are not modelled. Anthrax is included precisely because it does not spread between people: with contagiousness 0 every case is one you create yourself, which is what a point-source exposure looks like.

This is a teaching toy, not an epidemiological model: a square grid with eight neighbours, no movement, no incubation period and simple coin flips. The numbers illustrate ideas such as herd protection and case mortality; they do not predict anything.