Bayesian Statistics 1st assignment, by L. Bocchi & G. Castro, for the Data Science MSc (UB, 2022-23). It consists in:
Both using analytical derivations, as well as, Stan code.
We consider a more elaborate mixture prior for the spinning coin. The Bayesian analysis is performed:
- Using the theoretical formulas (prior predictive pmf, posterior pdf, posterior predictive pmf)
- Using independent random numbers (
rbeta()
functions, etc.) - Using JAGS
- Using Stan