Python/PyMC3 versions of the programs described in Doing bayesian data analysis by John K. Kruschke
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 15 commits behind aloctavodia:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Figures
IPython
02_SimpleGraph.py
03_IntegralOfDensity.py
03_RunningProportion.py
04_BayesUpdate.py
05_BernBeta.py
05_BetaPosteriorPredictions.py
06_BernGrid.py
07_BernBetaPyMCFull.py
07_BernMetropolisTemplate.py
08_BernTwoGrid.py
08_BernTwoMetropolis.py
08_BernTwoPyMC.py
09_BernBetaMuKappaPyMC.py
09_BernBetaMuKappaPyMC_TT.py
09_FilconPyMC.py
09_FilconPyMC_ex9.2.A.py
09_FilconPyMC_ex9.2.B.py
10_BernBetaModelCompPyMC.py
10_FilconModelCompPyMC.py
10_ToyModelCompPyMC.py
12_OneOddGroupModelComp.py
13_minNforHDIpower.py
15_SystemsPyMC.py
15_YmetricXsinglePyMC.py
16_SimpleLinearRegressionPyMC.py
16_SimpleRobustLinearRegressionPyMC.py
17_MultiLinRegressHyperPyMC.py
17_MultipleLinearRegressionPyMC.py
18_ANOVAonewayNonhomogvarBrugs.py
18_ANOVAonewayPyMC.py
19_ANOVAtwowayPyMC.py
Guber1999data.txt
HDI_of_grid.py
HDIofICDF.py
HtWtDataGenerator.py
McDonaldSK1991data.txt
McIntyre1994data.csv
QianS2007SeaweedData.txt
README.md
Salary.csv
SolariLS2008data.txt
Systems.txt
hpd.py
plot_post.py

README.md

Doing_bayesian_data_analysis

![Gitter](https://badges.gitter.im/Join Chat.svg)

This repository contains the Python version of the R programs described in the great book Doing bayesian data analysis (first edition) by John K. Kruschke (AKA the puppy book).

All the code is adapted from the Kruschke's book, except hpd.py that is taken (without modifications) from the PyMC project.

The name of the programs are the same used in the book, except they begin with a number indicating the chapter. All programs are written in Python and instead of BUGS/JAGS the PyMC3 module is used.

Thanks to Brian Naughton the code is also available as an IPython notebook