Models / Compartmental models

SIR Compartmental models

The SIR model is the classic compartmental model of infectious-disease spread, dividing a population into Susceptible, Infected and Recovered groups. Susceptible individuals become infected at a rate set by the transmission coefficient β through contact with the infected, and infected individuals recover at rate γ.

Despite its simplicity, the model captures the characteristic epidemic curve and the threshold behaviour governed by the basic reproduction number.

tune

Simulation parameters

beta 0.2
gamma 0.1
tune

Initial conditions

s 0.9
i 0.1
r 0
analytics

Analyses

Time course

Loading chart...

Add analysis

Model Details

Review and edit model structure, biological variables, and kinetic parameters.

NameTex nameInitial valueActions

Edit Options

Edit Options

Edit Options

preview

Generated LaTeX Code

\begin{align*}
  \frac{d s}{dt} &= - beta \cdot i \cdot s \\ 
  \frac{d i}{dt} &= beta \cdot i \cdot s - gamma \cdot i \\ 
  \frac{d r}{dt} &= gamma \cdot i
\end{align*}

Fit to data

Fit settings

SettingValue
Fit backend
Function evaluations per progress update
Maximum total function evaluations
Stop once residual norm reaches
Curriculum learning (advanced)

Every bar shares one fixed step budget. Drag a divider to move a cutoff, drag a bar's top edge (or focus it and use the arrow keys) to change its share — the final stage isn't draggable, it always gets whatever's left. Double-click a bar or use its + to split it, use a divider's × (or Delete/Backspace while it's focused) to remove it.

Split into equal stages:
min viable
1000 it. (final)
t=0 t=100
StageData cutoffIteration budget
1 (final)full data1000 iterations (runs to convergence within this)

Data

Plot options

ParameterFitLog-spaceInitial guess / fixed value Fitted value
beta —
gamma —

Edit analysis

Plot options

Variable selection
Show Normalize

Build your own model

Choose how you want to define your system.

ODE models

Steady-state models