1. Home
  2. Explore
  3. Mathematics
  4. Bayesian Modeling Introduction

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Bayesian Modeling Introduction

  • 30Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Mechanistic vs Statistical Models
  • 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?

Tap to flipClick to flipspace

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

  1. 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).

  2. What are the four broad categories of mechanistic transmission models?

    1. Population-level (homogeneous) models
    2. Stratified (meta-population) models
    3. Individual-level models (ILMs)
    4. Agent-based models (high-dimensional, complex)
  3. 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.

  4. What are the three compartments in a basic SIR model?

    Susceptible (S), Infectious (I), Removed (R).

  5. 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).

  6. Write the difference equations for a discrete-time SIR model (S, I, R compartments).

    St+1=St−It∗S_{t+1} = S_t - I_t^*St+1​=St​−It∗​ It+1=It+It∗−Rt∗I_{t+1} = I_t + I_t^* - R_t^*It+1​=It​+It∗​−Rt∗​ Rt+1=Rt+Rt∗R_{t+1} = R_t + R_t^*Rt+1​=Rt​+Rt∗​ where It∗I_t^*It∗​ = new infections at time ttt, Rt∗R_t^*Rt∗​ = new removals at time ttt.

  7. How are new infections and new removals modeled stochastically in a discrete-time SIR model?

    New infections: It∗∼Binomial(St,pt)I_t^* \sim \text{Binomial}(S_t, p_t)It∗​∼Binomial(St​,pt​) where pt=1−e−βIt/Np_t = 1 - e^{-\beta I_t / N}pt​=1−e−βIt​/N. New removals: Rt∗∼Binomial(It,1−e−γ)R_t^* \sim \text{Binomial}(I_t, 1 - e^{-\gamma})Rt∗​∼Binomial(It​,1−e−γ).

  8. What is the interpretation of γ\gammaγ in the SIR model?

    γ\gammaγ is the removal rate. The average infectious period is 1/γ1/\gamma1/γ.

  9. What does the deterministic version of the SIR model use instead of stochastic binomial draws?

    Ordinary differential equations (ODEs) that describe the mean behavior.

  10. 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.

  11. What is the likelihood function for a stochastic SIR model (assuming observed It∗I_t^*It∗​ and Rt∗R_t^*Rt∗​)?

    L=∏tBinomial(It∗∣St,pt)×Binomial(Rt∗∣It,q)L = \prod_t \text{Binomial}(I_t^* | S_t, p_t) \times \text{Binomial}(R_t^* | I_t, q)L=∏t​Binomial(It∗​∣St​,pt​)×Binomial(Rt∗​∣It​,q) where pt=1−e−βIt/Np_t = 1 - e^{-\beta I_t/N}pt​=1−e−βIt​/N, q=1−e−γq = 1 - e^{-\gamma}q=1−e−γ.

  12. Why is Bayesian inference often preferred for SIR models over maximum likelihood?

    1. Posterior is interpretable (probability distribution).
    2. Handles incomplete data via data augmentation.
    3. Can incorporate prior information from piecemeal studies (easily interpretable parameters).
  13. 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.

  14. What prior distributions are typically used for β\betaβ and γ\gammaγ 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/γ1/\gamma1/γ instead of γ\gammaγ for easier elicitation.

  15. What is the basic reproduction number R0R_0R0​ in an SIR model?

    R0=βγ=β×(mean infectious period)R_0 = \frac{\beta}{\gamma} = \beta \times \text{(mean infectious period)}R0​=γβ​=β×(mean infectious period)

  16. What does R0>1R_0 > 1R0​>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 R0R_0R0​ is near 1).

  17. What does R0<1R_0 < 1R0​<1 imply about an epidemic?

    The epidemic will tend to die out.

  18. What are two common extensions of the basic SIR model?

    1. SEIR model: adds an exposed (latent) period where individuals are infected but not yet infectious.
    2. SIRS model: allows recovered individuals to become susceptible again after immunity wanes.
  19. 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.

  20. Why might the transmission rate β\betaβ be modeled as time-varying?

    Because β\betaβ captures both pathogen infectivity and contact rates, which can change due to behavioral responses, public health interventions, or pathogen evolution.

  21. How can change points be incorporated into the transmission rate?

    By allowing β\betaβ to take different values before and after a change point (e.g., β1\beta_1β1​ before policy, β2\beta_2β2​ after).

  22. 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.

  23. 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).

  24. What are the three components in the individual-level model (ILM) infection rate βit\beta_{it}βit​?

    1. Susceptibility function ΩS(i)\Omega_S(i)ΩS​(i) (covariates affecting risk of infection)
    2. Infectious pressure: sum over infectious individuals jjj of transmissibility ΩT(j)\Omega_T(j)ΩT​(j) times infection kernel κ(i,j)\kappa(i,j)κ(i,j) (connectivity)
    3. Sparks term ε(i,t)\varepsilon(i,t)ε(i,t) (background infection from outside the population)
  25. In a spatial ILM with power-law kernel, how does infection risk decay with distance?

    κ(i,j)=dij−δ\kappa(i,j) = d_{ij}^{-\delta}κ(i,j)=dij−δ​ where dijd_{ij}dij​ is distance between individuals, δ>0\delta > 0δ>0.

  26. In a network-based ILM, what does the infection kernel κ(i,j)\kappa(i,j)κ(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.

  27. What is the purpose of the 'sparks' term ε(i,t)\varepsilon(i,t)ε(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.

  28. How is the infection probability for a susceptible individual i at discrete time t in an ILM?

    P(infection)=1−e−βitP(\text{infection}) = 1 - e^{-\beta_{it}}P(infection)=1−e−βit​ where βit\beta_{it}βit​ is the infection rate for that individual.

  29. 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).

  30. Name two R packages for fitting individual-level epidemic models. (From the talk)

    1. epifitter (for discrete-time ILMs)
    2. simmer (for continuous-time ILMs) – both mentioned in the talk.
Card 1 of 30
Card 1 of 30

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent