Reed–Frost epidemics and bond percolation, pathwise (EPI-1) #
The Reed–Frost (Independent Cascade) epidemic on a finite graph G: in every round, each infected
node infects each susceptible neighbour across the edge between them if that edge is open, and
then recovers for good. Every edge carries a single coin ω e : Bool, flipped once and for all
(true = open). The open edges form the percolated graph perc G ω.
Pathwise, for every coin assignment, the nodes infected in round t are exactly those at distance
t from the initial set I₀ in perc G ω, and the recovered ones those at distance < t; the
epidemic is over after card V rounds, and its final recovered set is the set of nodes connected to
I₀ by open edges. With i.i.d. Bernoulli(p) coins, the probability that a node is eventually
infected is the probability that bond percolation connects it to I₀.
The percolated graph: the edges of G whose coin is true.
Equations
Instances For
One round: a susceptible node becomes infected if it has an infected neighbour across an open edge; every infected node recovers.
Equations
Instances For
The epidemic started from the infected set I₀, with nobody recovered.
Equations
- Epidemics.run G ω I₀ 0 = { infected := I₀, recovered := ∅ }
- Epidemics.run G ω I₀ t.succ = Epidemics.step G ω (Epidemics.run G ω I₀ t)
Instances For
Distance from the set I₀ in a graph H (⊤ if v is not connected to I₀).
Equations
- Epidemics.setDist H I₀ v = ⨅ u ∈ I₀, H.edist u v
Instances For
Pathwise layers: the nodes infected in round t are those at percolation distance t.
The nodes recovered by round t are those at percolation distance < t.
The epidemic is over after card V rounds.
Final size: the eventually recovered nodes are those connected to I₀ by open edges.
Independent Bernoulli(p) coins, one per unordered pair of nodes.
Equations
- Epidemics.coins p h0 h1 = Dynamics.Distribution.independent fun (x : Sym2 V) => Epidemics.bernoulli p h0 h1
Instances For
Reed–Frost ⇔ bond percolation: the probability that v is eventually infected equals the
probability that v is connected to I₀ in the percolated graph.
The epidemic cannot outlast the percolation distances: if every node connected to I₀ is at
distance < t, nobody is infected in round t.