LawSynthGitHub

SIR epidemic

The compartmental susceptible–infected–recovered model recovered from a synthetic outbreak curve, including the mass-action infection term.

Discover

Recover the world from observations with a single deterministic command:

$ lawsynth discover outbreak.csv --time day --state S,I,R --output sir.lsworld

Recovered law system

A clean run recovers the following continuous laws:

dS/dt = −β S I / N
dI/dt = β S I / N − γ I
dR/dt = γ I

Fitted parameters: β ≈ 0.30, γ ≈ 0.10, R₀ = β/γ ≈ 3.0.

Next

Inspect and use the bundle:

$ lawsynth explain sir.lsworld
$ lawsynth forecast sir.lsworld --horizon 40 --step 0.05 --output sir-forecast.csv
$ lawsynth report sir.lsworld --output sir.html