probml / pyprobml

Python code for "Probabilistic Machine learning" book by Kevin Murphy
MIT License
6.53k stars 1.53k forks source link

update mcmc notebook for hierarchical bayesian linear regression to show missing plots #1007

Closed murphyk closed 2 years ago

murphyk commented 2 years ago

Currently sec 15.5.3 shows some figures and claims that they are generated by this notebook https://github.com/probml/pyprobml/blob/master/notebooks/book2/15/linreg_hierarchical_non_centered_blackjax.ipynb but in fact this notebook does not generate those figures - the plotting code is actually in https://github.com/probml/pyprobml/blob/master/notebooks/book2/15/linreg_hierarchical_pymc3.ipynb.

We should update linreg_hierarchical_non_centered_blackjax.ipynb to regenerate the plots shown below (the posterior for the parameters will look different to this figure since we are now using the non centered model).

Screen Shot 2022-07-15 at 4 12 55 PM Screen Shot 2022-07-15 at 4 15 18 PM