Herd Immunity Simulation (v0.9)

Background Information

This simulator shows you how herd immunity works from a mathematical point of view. We make several assumptions:

Instructions

Choose from the value options in the boxes below, and then click on "Start Simulation". The simulation will begin, and you will see a timer below the simulation telling you how much time has passed since the outbreak started.

The simulation will end after two incubation periods without any cases (red dots). This is often how we declare epidemics to be over.

Take Note!

Note the differences in the number of cases, the attack rates between vaccinated and unvaccinated, etc. Pay attention to the histogram of cases (aka "Epi Curve") at the bottom once the simulation ends.

Pay attention to the vaccine effectiveness and percent vaccinated, and go above or below the Herd Immunity Threshold, whose value depends on the R0 value:

H c = 1 - 1 / R 0

Notice how different the number of cases in the vaccinated and unvaccinated are, depending on the value of "Percent Vaccinated" versus the threshold. And notice the speed at which the outbreak happens.

Common R0 Values for Diseases


1000

95

18

1

98

8

8
Vaccinated and/or Immune Vaccinated and Non-Immune Unvaccinated Infected
Currently Infected: 0
Days From First Case: 0
Days Since Last Case: 0

Pre- and Post-Epidemic Summary

Group Initial Count Final Count
Vaccinated and/or Immune (Green) 0 0
Vaccinated but Non-Immune (Blue) 0 0
Unvaccinated (Gray) 0 0
Infected (Red) 0 0
Recovered (Red to Green) 0 0

Attack Rates and Rate Ratio

Metric Value
Attack Rate - Vaccinated 0.00
Attack Rate - Unvaccinated 0.00
Rate Ratio 0.00

Complications (If Measles)

Complication Value
Ear Infections 0
Diarrhea 0
Hospitalization 0
Pneumonia 0
Encephalitis 0
Death 0

Epidemic Curve