Agent-based (solid) vs ODE prediction (dashed)

2D SIR Epidemic — Agent-Based vs ODE

A flat, top-down companion to the 3D SIR Epidemic Model. Individual agents move freely across a 2D plane and spread infection by real proximity contact with a per-contact transmission probability, then recover after a randomised infectious period. The live chart overlays the resulting stochastic S/I/R counts against the classic deterministic SIR differential equations solved with the same β and γ, so you can see exactly where the agent-based outcome tracks — or departs from — the textbook mean-field prediction.