In this assignment we will explore the SIR model of epidemics using an agent based model.
The SIR model is a simple model of the spread of a disease in a population. The population is divided into three groups: those susceptible to the disease, those infected with the disease, and those who have recovered from the disease and are immune to it. There are multiple variations of the SIR model, for example the SIRD variation includes the number of people dead due to the disease.
When implementing SIR type models, we can use two approaches:
Continuous models - In this approach, we model the population as continuous variables. The population is divided into three compartments: Susceptible, Infected, and Recovered. The rate of change of each compartment is modeled using differential equations.
Discrete models - In this approach, we model the population as a collection of individuals. Each individual is in one of three states: Susceptible, Infected, or Recovered. The state of each individual changes over time based on the interactions between individuals. This is the agent based approach that we will focus on in this assignment.
The following pages summaries the theory and the implementation of the continuous and agent based models of SIR models. You should create a notebook and implement each of the listed tasks.
Two notebooks:
Upload completed notebooks to Moodle using following link