Skip to content

This repository is for R-based Bayesian and MCMC algorithms to enhance prediction in SIR-type epidemic models, optimizing prior selection and parameter estimation using adaptive sampling methods to improve accuracy and quantify uncertainty in disease dynamics.

Notifications You must be signed in to change notification settings

Chen-ZJ79/Infectious-Disease-Simulation-with-Bayesian-Inference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bayesian SIR Parameter Estimation (MH + Gibbs + Adaptive MCMC)

This repository provides an R implementation for Bayesian parameter estimation in a Susceptible–Infected–Removed (SIR)-type epidemic model using Metropolis–Hastings (MH) and Gibbs sampling.

Results

1️⃣ Standard Metropolis–Hastings Sampling

MH Trace Plots

Each panel shows the parameter trajectory across iterations. The red line marks the true simulated value. This version uses a fixed proposal covariance, resulting in slower convergence.

2️⃣ Adaptive MH + Gibbs Sampling

Adaptive MH Trace Plots

Adaptive MH automatically updates the proposal covariance using the running chain covariance, leading to smoother mixing and faster convergence. Parameters stabilize around their true values more efficiently.

About

This repository is for R-based Bayesian and MCMC algorithms to enhance prediction in SIR-type epidemic models, optimizing prior selection and parameter estimation using adaptive sampling methods to improve accuracy and quantify uncertainty in disease dynamics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages