Kurtz's law of large numbers for SIR in discrete time: the chain (CRN-2) #
The stochastic SIR epidemic of the roadmap (row CRN-2) is the continuous-time Markov chain on
N agents with reactions S + I → 2I at rate β S I / N and I → R at rate γ I. Its total
jump rate is at most Λ = (β + γ) N; uniformizing at rate Λ, each ring of a rate-Λ Poisson
clock is an infection with probability β S I / (N Λ), a recovery with probability γ I / Λ, and
otherwise nothing. We formalize this discrete-time chain (the jump chain of the uniformization),
with one step per unit 1 / ((β + γ) N) of time:
- a
Rounddraws an ordered pair(u, v)of agents uniformly with replacement and one ofβ + γequally likely clocks:βinfection clocks (Sum.inl) andγrecovery clocks (Sum.inr), soβ, γare natural numbers (rates with a rational ratio, up to a time change); step: on an infection clock, ifuis infected andvsusceptible thenvbecomes infected; on a recovery clock, ifuis infected thenurecovers; otherwise nothing changes.
Then the expected increment of the scaled counts scaled x = (S, I, R) / N is exactly
sirField β γ (scaled x) / ((β + γ) N), the Kermack–McKendrick field of EPI-7
(Epidemics.KermackMcKendrickDefs) times the time step, and each step moves scaled x by at
most 1 / N (Epidemics.KurtzDrift). The chain is the kernel Dynamics.Kernel.ofStep (step β γ);
path probabilities are Dynamics.expList averages over i.i.d. uniform rounds, the state after the
rounds l being l.foldl (step β γ) x₀. deviationProb is the probability that the chain leaves
a tube around a curve during a finite horizon; the law of large numbers is in Epidemics.Kurtz.
The three compartments of the SIR model.
- susceptible : Compartment
- infected : Compartment
- recovered : Compartment
Instances For
Equations
- One or more equations did not get rendered due to their size.
A configuration of N agents: the compartment of every agent.
Equations
Instances For
The number of agents of the configuration x in the compartment c.
Equations
- Epidemics.Kurtz.count c x = {v : Fin N | x v = c}.card
Instances For
The scaled counts (S / N, I / N, R / N) of a configuration, as a point of the state space
ℝ × ℝ × ℝ of the Kermack–McKendrick field sirField.
Equations
- One or more equations did not get rendered due to their size.
Instances For
One step of the uniformized SIR chain with infection weight β and recovery weight γ: on an
infection clock, an infected u infects a susceptible v; on a recovery clock, an infected u
recovers; otherwise nothing changes. A uniform round thus infects with probability
β / (β + γ) · (I / N) · (S / N) and recovers with probability γ / (β + γ) · I / N, the jump
probabilities of the continuous-time chain (S + I → 2I at rate β S I / N, I → R at rate
γ I) uniformized at rate (β + γ) N.
Equations
- One or more equations did not get rendered due to their size.
- Epidemics.Kurtz.step β γ x (u, fst, Sum.inr val) = if x u = Epidemics.Kurtz.Compartment.infected then Function.update x u Epidemics.Kurtz.Compartment.recovered else x
Instances For
The probability that the SIR chain started at x₀ is, at some step k ≤ n, at distance more
than δ from the curve x at the matching time k / ((β + γ) N). The n rounds are i.i.d.
uniform (Dynamics.expList), the state after k of them is (l.take k).foldl (step β γ) x₀, and
dist on ℝ × ℝ × ℝ is the sup distance (Prod.dist_eq).
Equations
- One or more equations did not get rendered due to their size.