Home▸Biology▸Contact-Network Outbreaks: Branching-Process Extinction, Final Size and Herd Immunity (2D)

Contact-Network Outbreaks: Branching-Process Extinction, Final Size and Herd Immunity (2D)

The same model as a flat top-down picture: a Blender-rendered petri dish with the contact network drawn on it (person pawns tinted by state, contacts as lines, amber lines mark the contacts that carried the infection), the exact stochastic run on the left and charts of the epidemic curve and the bimodal final-size histogram below. The side panel has the extinction probability, the large-outbreak size, the herd-immunity threshold and the numerical checks, with the same controls as the 3D version.

Biology2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Contact-Network Outbreaks: Branching-Process Extinction, Final Size and Herd Immunity (2D) ↗ Open standalone

A generic pathogen spreads through a contact network of 140 people standing on a petri dish: every person has a handful of contacts, the infection is run as an exact stochastic Gillespie simulation, and a much larger network of 1500 people is simulated in the background to collect statistics. Most small outbreaks die out by chance and only a fraction take off, so the histogram of final sizes has two humps; the model explains the numbers with branching-process theory. The probability that one seed dies out is a fixed point of a generating function, and it differs from the well-known 1/R0 of a fully mixed population because contacts in a network and the shared infectious period change how much the number of new cases fluctuates. Change the degree distribution (random, equal contacts, hubs), the transmissibility, the immunised fraction and the number of seeds, and read the extinction probability, the size of large outbreaks (which reduces to the Kermack-McKendrick relation z = 1 - exp(-R z) for a random network) and the herd-immunity threshold 1 - 1/(T kappa). Twelve numerical checks compare the Gillespie runs with the closed forms, the exact bisection root, the 1/R0 law for a mixed population, the mixing limit of the network theory and an explicit branching-process simulation. The petri dish, agar, person pawns, contact bonds and immunity shields are Blender models. Educational epidemiology with a generic pathogen; not a forecast and not medical advice.

⚙ Under the hood

The same model as a flat top-down picture: a Blender-rendered petri dish with the contact network drawn on it (person pawns tinted by state, contacts as lines, amber lines mark the contacts that carried the infection), the exact stochastic run on the left and charts of the epidemic curve and the bimodal final-size histogram below. The side panel has the extinction probability, the large-outbreak size, the herd-immunity threshold and the numerical checks, with the same controls as the 3D version.

EpidemiologyContact NetworkBranching ProcessOutbreak ExtinctionHerd ImmunitySIR ModelGillespie AlgorithmGenerating FunctionsSuperspreadingKermack-McKendrick

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)