pymc-devs / pymc

Bayesian Modeling and Probabilistic Programming in Python
https://docs.pymc.io/
Other
8.46k stars 1.97k forks source link

Update PyMC Overview NB to use ArViZ best practices #6644

Open cluhmann opened 1 year ago

cluhmann commented 1 year ago

Notebook title: Introductory Overview of PyMC Notebook url: https://www.pymc.io/projects/docs/en/stable/learn/core_notebooks/pymc_overview.html

Issue description

A question came up on discourse recently (here) in which a posterior predictive plot caused a mess because the observed data and the posterior predictive data implied different bin schemes. Talking to @OriolAbril , the notebook does not reflect best practices with ArViZ. This notebook should instead use az.plot_ppc() which will enforce more sensible binning.

OriolAbril commented 1 year ago

The source of the notebook is https://github.com/pymc-devs/pymc/blob/main/docs/source/learn/core_notebooks/pymc_overview.ipynb, so I'll transfer the issue from pymc-examples to pymc repo