Advanced bayesian statistics notes

Code is mostly from lectures, with small changes. I definitely do not write code like that :-)