Outbreak sandbox: R0, epidemic curves and herd immunity
NAVLEBCSEChange R0, the infectious period and vaccination coverage and watch an epidemic curve rise and fall, and find the herd immunity threshold.
- 1You change
How many contacts an infected animal has, the chance each one transmits, how long it stays infectious, vaccination and control measures.
- 2Inside
Animals move from susceptible to exposed, infectious and recovered. Each new case infects R0 × (share still susceptible) others.
- 3The readout
The epidemic curve, the peak, how many animals get infected, and the herd immunity threshold.
Epidemic curve over 120 days
What happens inside: the SEIR model
Numbers are animals on the chosen day; arrows light up when animals are moving along them. Click any box.
Click a box to see what it means.
Pick a problem
Contact rates, transmission chances and periods in these problems are illustrative round numbers chosen to show the principle, not measured values for any real disease.
Starting point
A closed herd of 1,000 animals with no immunity and one infectious animal. R0 = 4 contacts a day × 10% chance × 5 days infectious = 2. Move the day along the chart, then raise the vaccinated share past the herd immunity threshold and watch the outbreak disappear.
Study notes
Formulas to know
Spread and herd immunity
Simple models: everyone mixes evenly.
| Measure | Formula |
|---|---|
| Basic reproduction number (R0)New cases from one case in a fully susceptible population | contacts/day × chance per contact × days infectious |
| Effective reproduction number (Re, Rt)Below 1 the outbreak shrinks | R0 × share still susceptible |
| Herd immunity thresholdImmune share that keeps Re below 1 | 1 − 1/R0 |
| Critical vaccination coverageWith a vaccine of efficacy E | (1 − 1/R0) ÷ E |
| Final size (closed herd)Share ever infected, z | z = 1 − e−R0·z |
| PeakNew cases peak when Re falls to 1 | share susceptible = 1/R0 |
R0 against herd immunity
Immune share needed, and share infected if nothing is done.
| R0 | Herd immunity | Ever infected |
|---|---|---|
| 1.5 | 58% | |
| 2 | 80% | |
| 3 | 94% | |
| 4 | 98% | |
| 5 | 99% | |
| 10 | > 99.9% |
Rates used in outbreaks
| Measure | Formula |
|---|---|
| Attack rateCumulative incidence during an outbreak | new cases ÷ animals at risk |
| Morbidity rate | sick animals ÷ population |
| Mortality rate | deaths ÷ population |
| Case fatality rate | deaths ÷ cases |
| Incidence vs prevalence | prevalence ≈ incidence × duration |
Time periods
| Period | From and to |
|---|---|
| Latent period | Infection to becoming infectious |
| Incubation period | Infection to first clinical signs. If shedding starts before signs, isolating sick animals is too late. |
| Infectious period | The time an animal can transmit; carriers extend it |
| Prepatent period | Parasites: infection to eggs or larvae in feces |
| Serial interval | Onset in one case to onset in the case it infected; spacing of waves in a propagated curve |
Epidemic curve shapes
Cases by date of onset.
Memory hooks
- R0 is CPD: Contacts × Probability × Duration. Cut any one and R0 falls.
- Above 1 it grows, below 1 it goes.
- Herd immunity = 1 − 1/R0: R0 of 4 needs 75% immune.
- Vaccination lowers Re, not R0: R0 is defined in a fully susceptible population.
- The curve peaks when the susceptible share falls to 1/R0, long before every animal is infected.
- A longer latent period slows the outbreak but does not change how many get infected in a closed herd.
- Early control beats strong late control: animals already infected keep transmitting.
- Dead-end hosts (horses with West Nile virus) have R0 of zero for onward spread.
Exam check
For exam study only. Simplified teaching models: do not use these tools to make decisions for real patients. Last reviewed November 2026.