Simulate the epidemic model SIR

Postman DocumentationThe classical SIR model is used to model the disease spread. It divides the population into three non-overlapping classes: susceptibles (S), infected, (I), and recovered (R). The model describes how the number of individuals under each of the classes changes over time. These changes are described according to the system of ordinary differential equations below:

$$\backslash begin\{aligned\}\; \{dS\; \backslash over\; dt\}\; \&=\; \{\; -\; \{\backslash beta\; SI\}\; \backslash over\; N\; \}\; \backslash \backslash \; \{dI\; \backslash over\; dt\}\; \&=\; \{\; \{\backslash beta\; SI\}\; \backslash over\; N\; \}\; -\; \{\backslash gamma\; I\}\; \backslash \backslash \; \{dR\; \backslash over\; dt\}\; \&=\; \{\backslash gamma\; I\}\; \backslash end\{aligned\}$$\( \beta \) is the effective transmission rate while \( \gamma \) is the removal rate. The model assumes a closed population (i.e. constant population). This means that at each time \( t \), \( S + I + R = N \), where \( N \) is the total population. Read More.

The API needs six parameters. All query parameters must be a number:

**s**- initial number of susceptible individuals**i**- initial number of infected**r**- initial number of recovered**b**- beta (effective transmission rate)**g**- gamma (removal rate)**t**- time length

The response is an object with three keys:

**t**- index of time (index starts at 0)**s**- number susceptible individuals at time t**i**- number infected individuals at time t**r**- number recovered individuals at time t

© Imari Borda. All rights reserved. Design: HTML5 UP. Favicon: Freepik - Flaticon