Contact network on a petri dish
Epidemic curve and final-size histogram

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

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.

Made with 🟠 Blender