Academics · High School · Epidemiology
Set the population, R0 and how many people are immune, and watch the epidemic curve rise, peak and burn out. Then work an attack rate table the way outbreak investigators do.
Change one number at a time and watch what moves. Keep a run to compare against.
Loading the outbreak lab. If nothing appears, turn on JavaScript.
The lab computes each of these. Here is what they mean.
How many people one case infects, on average, when no one is immune. It depends on the germ and on how people mix.
R0 times the share of people who can still catch it. The outbreak grows while it is above 1 and shrinks once it falls below 1.
1 − 1/R0: the immune share at which effective R starts below 1. For R0 2.5 it is 60%; for R0 15 it is about 93%.
Of the people in a group, the share who got sick. Used when everyone at an event can be counted.
Attack rate among those who ate a food divided by the attack rate among those who did not. 1 means no difference.
Used when cases and healthy controls were chosen separately: the odds that a case ate it, divided by the odds that a control did.
Academics · High SchoolFree
Three groups, two arrows, and two formulas the page checks itself against.
Everyone mixes evenly, no one is born, dies or moves, a person who recovers stays immune, and no one changes behavior as cases rise. Real outbreaks break all of these, which is why public health agencies use larger models with age groups, places and changing contact. The SIR model is still the one every course starts with, because its three rules already explain the peak, the burnout before everyone is infected, and herd immunity.
The curves are integrated in steps of a tenth of a day (fourth-order Runge–Kutta). Two results have exact formulas, and the page reports the model next to them: the peak comes when the share not yet infected falls to 1/R0, and the total ever infected solves ln(S₀/S∞) = R0 × (share infected over the outbreak). For the example the integrated run and the exact formulas agree to within one person. The food table uses the standard 95% intervals for a risk ratio (on the log scale) and an odds ratio (Woolf’s method); for the chicken salad that is a risk ratio of 5.0, from 1.9 to 12.9.
A teaching model, not a forecast: real illnesses, places and people do not mix evenly. The potluck, its foods and its counts are made up. Support: team@caveatacademic.com.