This project simulates the spread of an epidemic using the SIR (Susceptible-Infected-Recovered) model. The system of ordinary differential equations (ODEs) was solved numerically using a fourth-order Runge-Kutta integrator (RK4). A sensitivity analysis was performed varying the infection rate (
The SIR model describes the time evolution of three compartments:
-
$S(t)$ : susceptible individuals -
$I(t)$ : infected individuals -
$R(t)$ : recovered individuals
The dynamics are governed by:
where:
-
$\beta$ = infection rate -
$\gamma$ = recovery rate -
$N = S + I + R$ = total population
Sensitivity is computed as:
where
SIR.ipynb– Jupyter notebook.