Consider the following compartmental SEIR model (without births or deaths) for influenza:
Consider the following compartmental SLIAR model (with births or deaths) for influenza during the 1957 pandemic:
$$ \begin{aligned} S' &= -\beta S (I + \delta A)\ L' &= \beta S (I + \delta A) - \kappa L\ I' &= p \kappa L - \alpha I \ A' &= (1 - p) \kappa L - \eta A\ R' &= \alpha I + \eta A \end{aligned}
NOTE: This is nearly the same description as given in AFg6K7h4fhy2/declarative_numpyro_example.py
Given observations
The output from inferring parameter values from observations:
Given observations
"""
A short example guide on using numpyro declaratively, i.e.
with out specifying defining a log posterior explicitly.
"""
import jax.random as jr
import numpyro as npro