SIR / SEIR Explorer

Interactive compartmental model simulator. Choose a model, set parameters, and run. Example scenarios load pre-configured parameter sets for common teaching and research use cases. All results include auto-generated interpretations.

Example scenarios
Parameters
Initial conditions
Simulation
Simulation length in days
Smaller = more accurate, slower
Parameters defined β (beta) = transmission rate (day⁻¹). Controls how fast susceptibles become infected. γ (gamma) = recovery rate (day⁻¹). 1/γ = mean infectious period. σ (sigma) = progression rate from exposed to infectious (day⁻¹). 1/σ = mean latent period. μ (mu) = per capita birth/death rate (day⁻¹). For vital dynamics. Convert from years⁻¹: μ = 1/70 yr⁻¹ ≈ 0.000039 day⁻¹. ω (omega) = rate of immunity loss (day⁻¹). 1/ω = mean duration of immunity. ω = 1/365 ≈ 0.00274 day⁻¹ (1-year immunity). v (vax) = vaccine coverage. Proportion of population vaccinated before outbreak (0–1). ε (eff) = vaccine efficacy. Fraction of vaccinated individuals fully protected (0–1). The effectively immunised fraction is v·ε.
R₀ formulas by model SIR / SI: R₀ = β/γ (SI: R₀ = β·N since no recovery) SEIR: R₀ = β/γ (latent period does not affect R₀ — only timing) SEIR + vital dynamics: R₀ = β·σ / [(σ+μ)(γ+μ)] SEIR + waning immunity: R₀ = β/γ (same as SIR — ω shifts equilibrium, not R₀) SEIR + vaccination: R₀ = β/γ (baseline); Rₑff = R₀·(1 − v·ε) after vaccination
The latent period (1/σ) delays the epidemic but does not change R₀ or the final size. Vital dynamics (μ) allow endemic equilibrium by continuously replenishing susceptibles. Waning immunity (ω) causes recurrent epidemic waves. Vaccination reduces the effective susceptible pool — Rₑff < 1 when v·ε > 1 − 1/R₀ (herd immunity threshold).