Skip to content

Example of Poisson-Gamma model in Bayesian analysis in R

Notifications You must be signed in to change notification settings

JRigh/Poisson-Gamma-example-in-R

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poisson-Gamma models: examples in R

Example of Poisson-Gamma models in Bayesian inference in R programing.

We take an example of Poisson data (artificially generated) of size 20 and model the prior with a Gamma(2,2) distribution. We then sample from the posterior Gamma(19,22) and compute posterior quantities using direct sampling from the identified distribution.

posterior

We also show how to derive the Jeffreys prior, which is an improper prior but has the propriety of being weakly informative.

jeffreys

Then using we show an example of multi-stage Gibbs sampling for a Poisson process with Gamma prior.

Rplot01.

Python implementation will be added soon.

About

Example of Poisson-Gamma model in Bayesian analysis in R

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages