My favorites | Sign in
Logo
                
Code license: MIT License
Labels: python, Bayesian, MCMC, statistics, estimation

PyMC

Bayesian estimation, particularly using Markov chain Monte Carlo (MCMC), is an increasingly relevant approach to statistical estimation. However, few statistical software packages implement MCMC samplers, and they are non-trivial to code by hand. PyMC is a python module that implements the Metropolis-Hastings algorithm as a python class, and is extremely flexible and applicable to a large suite of problems. PyMC includes methods for summarizing output, plotting, goodness-of-fit and convergence diagnostics.

Download

Source code and binary packages for the 2.0 release are now available at the Python Package Index. If a binary package is not available for your platform, building PyMC should pose no particular problem, requiring only a C and Fortran compiler. Build instructions can be found in the user guide included in the source distribution.

Previous users of the 1.3 version should note that the syntax used to define statistical models has changed significantly. While it is always difficult to break backward-compatibility, the changes bring drastic improvements in performance and flexibility.

Examples

To get an idea of what a PyMC2 model looks like, we have provided a few examples:

For users familiar with BUGS, here are a few examples that are translated directly from BUGS models; the original code is included in each file as a docstring:

User-contributed tutorials and recipes can be found in in the wiki. More examples can be found in the examples folder in the source tree.

Also, the user guide contains a tutorial section.

Support

The PyMC User’s Guide contains detailed installation instructions, as well as some MCMC theoretical background and a tutorial on using PyMC. The user's guide is available in the downloads section.

For help, questions or suggestions on a particular topic related to PyMC, please visit the PyMC Google Group.

If you wish to file a bug report or suggest enhancements to PyMC, please submit an issue at our issues page.

Note: A large number of bugs and issues have been fixed since PyMC 2.0 was released. We therefore recommend that serious users build a version for themselves using the current development code, rather than run the released version.









Hosted by Google Code