Free tools & games for everyone
Free · No sign-up · No accounts
Model how things spread: SIR and SEIR outbreak curves with herd immunity, germs and habits on a small-world network, and opinions that agree or split.
| Tab | Move between tabs, boxes and buttons |
|---|---|
| Enter in a box | Run the current model |
| Arrow keys in a number box | Change the value by one step |
| Changing a box on Outbreak curves | Redraws the curves straight away |
Outbreak curves use the SEIR model (SIR when the delay is 0) for a well-mixed population: susceptible people become exposed at rate β S I with β = R0 ÷ days infectious, exposed people become infectious at rate 1 ÷ days before infectious, and infectious people recover at rate 1 ÷ days infectious. It is solved with fourth-order Runge-Kutta in 0.05-day steps. The final share never infected solves Send = S0 e−R0 (1 − immune − Send) (Kermack and McKendrick, 1927); the herd-immunity threshold is 1 − 1/R0.
The network is a Watts-Strogatz small world (1998): a ring where each person is linked to the nearest contacts on each side, with each link moved to a random person by the shortcut chance. Single-contact spread passes from each sick person to each healthy contact with the chance per step, and people recover after the set number of steps. Adoption follows Granovetter's threshold model (1978). Opinions follow the bounded-confidence model of Deffuant and others (2000): two random people meet; if their views differ by less than the open-mindedness, each moves halfway towards the other. Camps are groups of views within 0.01 of each other that hold at least 2 % of the people.
These are teaching models with made-up, adjustable numbers. They leave out real-world detail such as age, travel, seasons, behaviour changes and treatments, so they are not forecasts and not health advice.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product