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
Permalink
Failed to load latest commit information.
Figures update sampling, python3 compatible, use darkgrid style Feb 5, 2018
IPython update Apr 22, 2015
02_SimpleGraph.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
03_IntegralOfDensity.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
03_RunningProportion.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
04_BayesUpdate.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
05_BernBeta.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
05_BetaPosteriorPredictions.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
06_BernGrid.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
07_BernBetaPyMCFull.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
07_BernMetropolisTemplate.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
08_BernTwoGrid.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
08_BernTwoMetropolis.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
08_BernTwoPyMC.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
09_BernBetaMuKappaPyMC.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
09_BernBetaMuKappaPyMC_TT.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
09_FilconPyMC.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
09_FilconPyMC_ex9.2.A.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
09_FilconPyMC_ex9.2.B.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
10_BernBetaModelCompPyMC.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
10_FilconModelCompPyMC.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
10_ToyModelCompPyMC.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
12_OneOddGroupModelComp.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
13_minNforHDIpower.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
15_SystemsPyMC.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
15_YmetricXsinglePyMC.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
16_SimpleLinearRegressionPyMC.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
16_SimpleRobustLinearRegressionPyMC.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
17_MultiLinRegressHyperPyMC.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
17_MultipleLinearRegressionPyMC.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
18_ANOVAonewayNonhomogvarBrugs.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
18_ANOVAonewayPyMC.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
19_ANOVAtwowayPyMC.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
Guber1999data.txt new datasets Nov 16, 2014
HDI_of_grid.py update sampling, python3 compatible, use darkgrid style Feb 5, 2018
HDIofICDF.py remove intermediate variable add inline comments Sep 19, 2014
HtWtDataGenerator.py fix reference to Kruschke Oct 1, 2014
McDonaldSK1991data.txt update Dec 6, 2014
McIntyre1994data.csv new Nov 5, 2014
QianS2007SeaweedData.txt new data May 5, 2015
README.md add link to Jordi Warmenhoven repository Jul 23, 2018
Salary.csv new data May 5, 2015
SolariLS2008data.txt update Dec 6, 2014
Systems.txt new Sep 30, 2014
hpd.py accidentally deleted yesterday Sep 11, 2014
plot_post.py remove y axis from plots Apr 30, 2015

README.md

Doing_bayesian_data_analysis

Gitter

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

Second edition

If you are interested on the PyMC3 code for the second edition of Doing bayesian data analysis, please check this Repository.