Mathematical Reference
This page summarizes the core equations. The stochastic implementation uses integer-valued daily transitions, typically drawn from Poisson processes and capped by compartment counts.
Force Of Infection
For susceptible age group (i), the force of infection is:
where:
(C_{ij}) is the contact matrix from susceptible age group (i) to infectious age group (j);
(N) is node population;
(I_j^\ast) is the weighted infectious population in age group (j);
(\beta_i(t)) is the baseline beta after NPI modification.
For SEITRS:
where (\rho_T =) rel_inf_T_to_I.
SEIRS Daily Transitions
For SEIRS:
with rates:
SEITRS Daily Transitions
SEITRS disease progression is:
The antiviral stockpile model creates treatment transitions:
This keeps treatment resource-constrained. If no antiviral stockpile is released, the treatment transition count is zero.
Competing Clocks
When a compartment has competing exits and the desired realized fraction is (p_i), the simulator adjusts branch multipliers (\pi_i) so:
The implemented solution is:
For two branches, this reduces to the helper
DiseaseModel.adjust_two_way_split_proportion.