Bayesian Modeling Introduction
- 30Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
How do mechanistic models of disease transmission differ from statistical models?
Mechanistic models are built with biological/ecological mechanisms in mind, with easily interpretable parameters (e.g., infectious period, contact rate). Statistical models are off-the-shelf models (e.g., linear models, GLMs) for analyzing data, with parameters often having mathematical interpretations (e.g., effect of increasing a covariate).
Or swipe the card
30 cards
How do mechanistic models of disease transmission differ from statistical models?
Mechanistic models are built with biological/ecological mechanisms in mind, with easily interpretable parameters (e.g., infectious period, contact rate). Statistical models are off-the-shelf models (e.g., linear models, GLMs) for analyzing data, with parameters often having mathematical interpretations (e.g., effect of increasing a covariate).
What are the four broad categories of mechanistic transmission models?
- Population-level (homogeneous) models
- Stratified (meta-population) models
- Individual-level models (ILMs)
- Agent-based models (high-dimensional, complex)
What is the key difference between infectious disease data and typical survival analysis data?
In infectious diseases, infection events are non-independent: my risk of infection depends on who else is infected. In survival analysis, independence is assumed after accounting for covariates.
What are the three compartments in a basic SIR model?
Susceptible (S), Infectious (I), Removed (R).
What does the 'removed' state in an SIR model represent?
It means the individual is disconnected from the transmission process: cannot be infected and cannot infect others (e.g., recovered with immunity, died, or quarantined).
Write the difference equations for a discrete-time SIR model (S, I, R compartments).
St+1=St−It∗ It+1=It+It∗−Rt∗ Rt+1=Rt+Rt∗ where It∗ = new infections at time t, Rt∗ = new removals at time t.
How are new infections and new removals modeled stochastically in a discrete-time SIR model?
New infections: It∗∼Binomial(St,pt) where pt=1−e−βIt/N. New removals: Rt∗∼Binomial(It,1−e−γ).
What is the interpretation of γ in the SIR model?
γ is the removal rate. The average infectious period is 1/γ.
What does the deterministic version of the SIR model use instead of stochastic binomial draws?
Ordinary differential equations (ODEs) that describe the mean behavior.
Why is adding stochasticity to epidemic models considered more realistic?
Stochasticity captures real-world variability: epidemics can die out by chance, and different outcomes are possible even with the same parameters.
What is the likelihood function for a stochastic SIR model (assuming observed It∗ and Rt∗)?
L=∏tBinomial(It∗∣St,pt)×Binomial(Rt∗∣It,q) where pt=1−e−βIt/N, q=1−e−γ.
Why is Bayesian inference often preferred for SIR models over maximum likelihood?
- Posterior is interpretable (probability distribution).
- Handles incomplete data via data augmentation.
- Can incorporate prior information from piecemeal studies (easily interpretable parameters).
What is data augmentation in the context of Bayesian SIR models?
Jointly estimating the missing data (e.g., unobserved infection times) and model parameters as random variables.
What prior distributions are typically used for β and γ in a Bayesian SIR model?
Gamma priors (or half-normal, uniform, half-t) because both are positive rate parameters. Often a prior is placed on the mean infectious period 1/γ instead of γ for easier elicitation.
What is the basic reproduction number R0 in an SIR model?
R0=γβ=β×(mean infectious period)
What does R0>1 imply about an epidemic?
The epidemic tends to take off and infect a large portion of the population (though may die out by chance if R0 is near 1).
What does R0<1 imply about an epidemic?
The epidemic will tend to die out.
What are two common extensions of the basic SIR model?
- SEIR model: adds an exposed (latent) period where individuals are infected but not yet infectious.
- SIRS model: allows recovered individuals to become susceptible again after immunity wanes.
How does the SEIR model differ from SIR in terms of compartments and transitions?
Adds an 'Exposed' (E) compartment. Individuals move S → E → I → R. From E to I occurs at some rate (latent period), and from I to R at removal rate.
Why might the transmission rate β be modeled as time-varying?
Because β captures both pathogen infectivity and contact rates, which can change due to behavioral responses, public health interventions, or pathogen evolution.
How can change points be incorporated into the transmission rate?
By allowing β to take different values before and after a change point (e.g., β1 before policy, β2 after).
What is the main assumption in population-level (homogeneous) SIR models?
All individuals are identical and mix homogeneously (purely random contacts) – no age, gender, or geographic differences.
List three factors that make individuals heterogeneous in disease transmission. (Susceptibility and/or transmissibility)
Geography/spatial distance, contact networks, genetics, prior immunity, vaccination status, lifestyle factors (e.g., IV drug use).
What are the three components in the individual-level model (ILM) infection rate βit?
- Susceptibility function ΩS(i) (covariates affecting risk of infection)
- Infectious pressure: sum over infectious individuals j of transmissibility ΩT(j) times infection kernel κ(i,j) (connectivity)
- Sparks term ε(i,t) (background infection from outside the population)
In a spatial ILM with power-law kernel, how does infection risk decay with distance?
κ(i,j)=dij−δ where dij is distance between individuals, δ>0.
In a network-based ILM, what does the infection kernel κ(i,j) typically represent?
It is often binary: 1 if there is a contact (edge) between i and j, 0 otherwise. Can also be weighted or directed.
What is the purpose of the 'sparks' term ε(i,t) in an ILM?
To allow for infections from outside the observed population (e.g., from other regions) that are not captured by the kernel.
How is the infection probability for a susceptible individual i at discrete time t in an ILM?
P(infection)=1−e−βit where βit is the infection rate for that individual.
What is the likelihood structure for an individual-level model (ILM)?
Two parts: 1) For each time step, a product over susceptible individuals of Bernoulli probabilities (infected or not). 2) A component for the infectious period distribution (e.g., geometric).
Name two R packages for fitting individual-level epidemic models. (From the talk)
epifitter(for discrete-time ILMs)simmer(for continuous-time ILMs) – both mentioned in the talk.

Ask anything
We've read this whole study set, so questions about it get the best answers.