
— Oct 3, 2022
How to build a SIR model with Numpy
The SIR model is a well-known way to simulate disease spreading for researchers. The model consists of the mutually exclusive susceptible, infected, and recovered compartments. The base model is simple and can give a good indication of the course of a disease. Using the equations for the different compartments and initial states, the disease model can be simulated. Let's build a simple one in numpy!