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

  • 34Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Foundations of Mechanistic Models

What is the key difference between mechanistic models and statistical models according to the talk?

34 questions

  1. 1

    What is the key difference between mechanistic models and statistical models according to the talk?

    Model answer

    Mechanistic models are built with biological or ecological mechanisms in mind, while statistical models are mathematically derived and applied off the shelf.

    Explanation

    The speaker distinguishes between models derived from first principles (statistical) versus those built to mimic underlying processes (mechanistic), emphasizing that mechanistic models have interpretable parameters tied to the system.

  2. 2

    List three advantages of mechanistic models for infectious disease modeling.

    Model answer

    Interpretable parameters (e.g., infectious period), ability to estimate parameters in a piecemeal fashion from different sources, and predominant use for simulation and prediction rather than risk factor assessment.

    Explanation

    The speaker highlights these advantages: parameters have direct biological meaning, they can be estimated separately (e.g., from literature), and models are mainly used for forecasting and evaluating control strategies.

  3. 3

    Why are infection events in epidemic data not independent, and how does that affect modeling?

    Model answer

    Infection events are not independent because an individual's risk of infection depends on who else in the population is infectious. This feedback makes off-the-shelf statistical models inappropriate and requires mechanistic models.

    Explanation

    The speaker explains that unlike cancer survival, where risks are independent after accounting for covariates, infectious disease risk depends on the infection status of others, creating dependency that mechanistic models capture.

  4. 4

    Explain the difference between discrete-time and continuous-time epidemic models as used in the talk.

    Model answer

    Discrete-time models (used in the talk) treat time as integer steps (e.g., daily), following the structure of data, while continuous-time models use differential equations and allow infection at any instant.

    Explanation

    The speaker notes that the actual infection process is continuous, but discrete-time models are convenient for data coming in daily or weekly, and that continuous-time models are also possible.

  5. 5

    What assumption does the homogeneous mixing model make about the population?

    Model answer

    It assumes that every individual has the same risk and that contact occurs completely at random, so there are no age, gender, or geographic effects.

    Explanation

    The speaker describes population-level models as homogeneous, meaning everyone is identical and mixing is random, which is a simplification but useful.

  6. 6

    Define the three compartments in an SIR model and describe their roles.

    Model answer

    Susceptible (S): can get the disease; Infectious (I): have the disease and can transmit; Removed (R): no longer infectious or susceptible (recovered immune, dead, or quarantined).

    Explanation

    The speaker explains that individuals start in S, move to I upon infection, and then to R after the infectious period. R is a removed state, not necessarily recovery.

  7. 7

    Write the difference equations for the number of susceptibles, infectious, and removals in a discrete-time SIR model (using StS_tSt​, ItI_tIt​, RtR_tRt​, It∗I_t^*It∗​ and Rt∗R_t^*Rt∗​).

    Model answer

    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∗​.

    Explanation

    These appear in the talk: It∗I_t^*It∗​ are new infections and Rt∗R_t^*Rt∗​ are new removals at time ttt.

  8. 8

    How are new infections and new removals modeled stochastically in the discrete-time SIR model?

    Model answer

    It∗∼Binomial(St,πt)I_t^* \sim \text{Binomial}(S_t, \pi_t)It∗​∼Binomial(St​,πt​) where πt=1−e−βIt/N\pi_t = 1 - e^{-\beta I_t / N}πt​=1−e−βIt​/N, and Rt∗∼Binomial(It,1−e−γ)R_t^* \sim \text{Binomial}(I_t, 1 - e^{-\gamma})Rt∗​∼Binomial(It​,1−e−γ).

    Explanation

    The speaker presents these binomial probabilities: the infection probability depends on the number of infectious individuals and contact rate β\betaβ, while removal probability depends only on removal rate γ\gammaγ.

  9. 9

    What is the deterministic version of the SIR model, and how does it differ from the stochastic version?

    Model answer

    The deterministic version uses ordinary differential equations (ODEs) in continuous time, giving the same output each run, while the stochastic version includes random variation, allowing for different outcomes and realistic epidemic die-out.

    Explanation

    The speaker compares the deterministic ODE (mean behavior) with the stochastic model that captures uncertainty and randomness seen in real epidemics.

  10. 10

    Define the basic reproduction number R0R_0R0​ for an SIR model, and give its formula.

    Model answer

    R0=βγR_0 = \frac{\beta}{\gamma}R0​=γβ​, i.e., transmission rate multiplied by infectious period (1/γ1/\gamma1/γ). It is the expected number of direct infections from a single infected individual in a wholly susceptible population.

    Explanation

    The speaker explains that R0R_0R0​ captures the strength of the epidemic and is simple to compute in this model.

  11. 11

    What is the threshold behavior associated with R0R_0R0​?

    Model answer

    If R0>1R_0 > 1R0​>1, the epidemic tends to take off and infect many; if R0<1R_0 < 1R0​<1, the epidemic tends to die out.

    Explanation

    The speaker notes that R0=1R_0=1R0​=1 is the threshold: above 1 the infection spreads, below 1 it declines.

  12. 12

    How do you extend the SIR model to include a latent period, and what is that model called?

    Model answer

    Add an 'Exposed' (E) compartment, so individuals move from S to E (infected but not yet infectious) then to I. This is the SEIR model.

    Explanation

    The speaker introduces SEIR as an extension with a latent period, where transmission rate depends only on I (not E).

  13. 13

    Describe the SI model and when it might be used.

    Model answer

    The SI model has no recovery: individuals stay infectious indefinitely. It is used for diseases like HIV over short time horizons or when infectious period is very long.

    Explanation

    The speaker mentions SI as the simplest non-trivial model, appropriate for diseases where individuals remain infectious for the entire study period.

  14. 14

    Explain the SIRS model and how it differs from SIR.

    Model answer

    In SIRS, after recovery (R), individuals lose immunity and become susceptible again (S). There is a rate (lambda) moving from R back to S.

    Explanation

    The speaker describes adding a transition from R to S to model waning immunity.

  15. 15

    How can time-varying transmission rates be modeled, and why might transmission change over time?

    Model answer

    Transmission rate βt\beta_tβt​ can change over time, e.g., using a linear trend or change points. Reasons include government interventions, behavioral changes, or pathogen evolution.

    Explanation

    The speaker uses the Ebola example with change points corresponding to policy implementation and safe burials.

  16. 16

    How would you incorporate a vaccinated subpopulation into an SIR model?

    Model answer

    Either direct vaccinated individuals to the removed state (if fully effective) or create separate infectious compartments for vaccinated and unvaccinated, with different transmission rates.

    Explanation

    The speaker answers a question about vaccination, noting that if vaccine is not 100% effective, separate compartments allow different infectivity.

  17. 17

    What is data augmentation in the context of Bayesian inference for epidemic models?

    Model answer

    It is the joint estimation of missing data (e.g., unknown infection times) and model parameters within the Bayesian framework, treating missing data as random variables.

    Explanation

    The speaker explains that because infection times are often unobserved, data augmentation allows imputation and parameter estimation together, easier in Bayesian than frequentist.

  18. 18

    Write down the log-likelihood for the discrete-time SIR model (assuming It∗I_t^*It∗​ and Rt∗R_t^*Rt∗​ are observed).

    Model answer

    ℓ=∑t[It∗log⁡πt+(St−It∗)log⁡(1−πt)+Rt∗log⁡(1−e−γ)+(It−Rt∗)log⁡(e−γ)]\ell = \sum_t \left[ I_t^* \log \pi_t + (S_t - I_t^*) \log(1-\pi_t) + R_t^* \log (1-e^{-\gamma}) + (I_t - R_t^*) \log(e^{-\gamma}) \right]ℓ=∑t​[It∗​logπt​+(St​−It∗​)log(1−πt​)+Rt∗​log(1−e−γ)+(It​−Rt∗​)log(e−γ)] plus constants.

    Explanation

    The speaker shows the log-likelihood as sum of binomial log probabilities for infections and removals.

  19. 19

    What priors are typically used for the transmission rate β\betaβ and removal rate γ\gammaγ in a Bayesian SIR model?

    Model answer

    Gamma priors (or half-normal, half-T) are used because parameters are positive. Often a gamma prior is placed on the mean infectious period 1/γ1/\gamma1/γ for easier elicitation.

    Explanation

    The speaker mentions using gamma(1,1) as exponential prior for β\betaβ and an informative prior for γ\gammaγ based on expected infectious period.

  20. 20

    What are two reasons why Bayesian inference is preferred over maximum likelihood for epidemic models?

    Model answer
    1. Easy to incorporate prior information (e.g., from literature or experts). 2) Natural framework for data augmentation when data are incomplete (e.g., censored infection times).

    Explanation

    The speaker lists these as practical advantages, along with interpretable posteriors.

  21. 21

    Name a software tool used for Bayesian MCMC fitting of epidemic models mentioned in the talk.

    Model answer

    Nimble (and also BUGS, JAGS).

    Explanation

    The speaker demonstrates using Nimble for SIR inference, and notes that BUGS and JAGS are also usable.

  22. 22

    What is the main challenge in using maximum likelihood inference when infection times are not observed?

    Model answer

    Maximizing the likelihood over high-dimensional missing data is difficult; Bayesian data augmentation handles this more easily.

    Explanation

    The speaker contrasts the simple complete-data likelihood with the difficulty of missing data in frequentist inference.

  23. 23

    What are the three main components of an individual-level model (ILM) as defined in the talk?

    Model answer

    Susceptibility function (for each susceptible), transmissibility function (for each infectious), and infection kernel describing connectivity between individuals, plus a sparks term for external infection.

    Explanation

    The speaker describes the ILM framework with these components, each possibly depending on covariates.

  24. 24

    How does the infection probability differ between population-level and individual-level models?

    Model answer

    In the population-level model, all susceptibles have the same probability 1−e−βIt/N1-e^{-\beta I_t/N}1−e−βIt​/N; in the ILM, each susceptible has a unique probability 1−e−β×(susceptibility)×(infectious pressure)1-e^{-\beta \times \text{(susceptibility)} \times \text{(infectious pressure)}}1−e−β×(susceptibility)×(infectious pressure).

    Explanation

    The speaker writes the ILM probability as 1−e−β (susceptibility)(infectious pressure) 1-e^{-\beta \text{ (susceptibility)(infectious pressure) }}1−e−β (susceptibility)(infectious pressure)  where infectious pressure sums over infectious individuals with transmissibility and kernel.

  25. 25

    What is the 'sparks term' in an ILM and why is it included?

    Model answer

    It is a random noise term (often constant) representing infections from outside the observed population, such as from other regions not included in the study.

    Explanation

    The speaker adds this to account for unobserved sources of infection.

  26. 26

    Give an example of a simple spatial kernel used in an ILM.

    Model answer

    A power-law kernel: Kij=dij−δK_{ij} = d_{ij}^{-\delta}Kij​=dij−δ​, where dijd_{ij}dij​ is distance between individuals iii and jjj, and δ>0\delta > 0δ>0 controls the rate of decay.

    Explanation

    The speaker shows this spatial kernel in an example simulation, where risk decreases with distance.

  27. 27

    How is a contact network represented in an ILM?

    Model answer

    A binary matrix CijC_{ij}Cij​ where Cij=1C_{ij}=1Cij​=1 if individuals iii and jjj have contact through which disease can transmit, and 000 otherwise. This can be weighted or directed.

    Explanation

    The speaker uses a network example where infection spreads only along edges of the network.

  28. 28

    What is a computational challenge of fitting ILMs with MCMC?

    Model answer

    The likelihood requires computing a unique infection probability for each susceptible at each time step, which is computationally intensive for large populations, especially with spatial kernels.

    Explanation

    The speaker notes that inefficient coding can make MCMC very slow.

  29. 29

    Describe the likelihood structure for an ILM (in terms of infection events and infectious periods).

    Model answer

    The likelihood has two parts: a product over infection events of Bernoulli (or heterogeneous Bernoulli) probabilities, and a product over infectious periods (e.g., geometric distribution) for each infected individual.

    Explanation

    The speaker shows the likelihood as a product of probabilities for observed infections and removals.

  30. 30

    Name a software package mentioned for fitting individual-level models in discrete time.

    Model answer

    The speaker references an R package (likely 'EpiILM' or similar) that accompanies a paper demonstrating simulation and MCMC fitting of ILMs.

    Explanation

    Although the exact name is not clearly stated, the talk mentions an R package with a paper for discrete-time ILMs.

  31. 31

    How can you communicate the uncertainty from a stochastic model to public health officials?

    Model answer

    Simulate epidemics from the posterior distribution of parameters and present probabilities of exceeding certain thresholds (e.g., probability of a large outbreak).

    Explanation

    The speaker answers a question about stochasticity, suggesting using posterior predictive simulations to derive epidemiologically meaningful probabilities.

  32. 32

    What are two recommended books for learning about epidemic modeling?

    Model answer
    1. 'Epidemics: Models and Data using R' by Gog (population-level models). 2) 'Handbook of Infectious Disease Data Analysis' by Held et al. (more advanced, wide range of techniques).

    Explanation

    The speaker recommends these two resources, noting the first focuses on time-series SIR and maximum likelihood, the second covers various methods without code.

  33. 33

    How might an SIR-type model be applied to an RCT?

    Model answer

    For a community RCT, e.g., vaccinating children in households, one can model spread using SIR or ILMs comparing infection probabilities in intervention vs. control groups.

    Explanation

    The speaker mentions work on Hong Kong influenza where they modeled household transmission with and without vaccination.

  34. 34

    Why is it easier to elicit prior information for parameters in mechanistic models than in standard statistical models?

    Model answer

    Because parameters have direct biological interpretation (e.g., infectious period), so experts can provide plausible ranges or quantiles.

    Explanation

    The speaker contrasts with regression coefficients that are mathematical and harder to elicit.

1 of 34
Question 1 of 34

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent