pymcmcstat 1.9.1
A library to perform MCMC simulations using DRAM
License: MIT

`pymcmcstat`
============

|docs| |build| |coverage| |license| |zenodo| |joss| |pypi| |pyversion|

The `pymcmcstat <https://github.com/prmiles/pymcmcstat/wiki>`__ package is a Python program for running Markov Chain Monte Carlo (MCMC) simulations.
Included in this package is the ability to use different Metropolis based sampling techniques:

* Metropolis-Hastings (MH): Primary sampling method.
* Adaptive-Metropolis (AM): Adapts covariance matrix at specified intervals.
* Delayed-Rejection (DR): Delays rejection by sampling from a narrower distribution.  Capable of `n`-stage delayed rejection.
* Delayed Rejection Adaptive Metropolis (DRAM): DR + AM

This package is an adaptation of the MATLAB toolbox `mcmcstat <http://helios.fmi.fi/~lainema/mcmc/>`_.  The user interface is designed to be as similar to the MATLAB version as possible, but this implementation has taken advantage of certain data structure concepts more amenable to Python.  

Note, advanced plotting routines are available in the `mcmcplot <https://prmiles.wordpress.ncsu.edu/codes/python-packages/mcmcplot/>`__ package.  Many plotting features are directly available within `pymcmcstat <https://github.com/prmiles/pymcmcstat/wiki>`__, but some user's may find `mcmcplot <https://prmiles.wordpress.ncsu.edu/codes/python-packages/mcmcplot/>`__ useful.

Installation
============

This code can be found on the `Github project page <https://github.com/prmiles/pymcmcstat>`_.  This package is available on the PyPI distribution site and the latest version can be installed via

::

    pip install pymcmcstat
    
The master branch on Github typically matches the latest version on the PyPI distribution site.  To install the master branch directly from Github,

::

    pip install git+https://github.com/prmiles/pymcmcstat.git

You can also clone the repository and run ``python  setup.py install``.

Getting Started
===============

- `Tutorial notebooks <https://github.com/prmiles/pymcmcstat_examples>`_
- `Documentation <http://pymcmcstat.readthedocs.io/>`_
- `Release history <https://github.com/prmiles/pymcmcstat/blob/master/CHANGELOG.rst>`_
- `Contributing guidelines <https://github.com/prmiles/pymcmcstat/blob/master/CONTRIBUTING.rst>`_

License
=======

`MIT <https://github.com/prmiles/pymcmcstat/blob/master/LICENSE.txt>`_

Contributors
============

See the `GitHub contributor page <https://github.com/prmiles/pymcmcstat/graphs/contributors>`_

Citing pymcmcstat
=================

Miles, (2019). pymcmcstat: A Python Package for Bayesian Inference Using Delayed Rejection Adaptive Metropolis. Journal of Open Source Software, 4(38), 1417, https://doi.org/10.21105/joss.01417

Also, please cite the appropriate `Zenodo archive <https://zenodo.org/badge/latestdoi/107596954>`_ for the version of `pymcmcstat` that you are using.

Feedback
========

- `Feature Request <https://github.com/prmiles/pymcmcstat/issues/new?template=feature_request.md>`_
- `Bug Report <https://github.com/prmiles/pymcmcstat/issues/new?template=bug_report.md>`_

Sponsor
=======
This work was sponsored in part by the NNSA Office of Defense Nuclear Nonproliferation R&D through the Consortium for Nonproliferation Enabling Capabilities.

|cnec|

   
.. |docs| image:: https://readthedocs.org/projects/pymcmcstat/badge/?version=latest
    :target: https://pymcmcstat.readthedocs.io/en/latest/?badge=latest
    
.. |build| image:: https://travis-ci.org/prmiles/pymcmcstat.svg?branch=master
    :target: https://travis-ci.org/prmiles/pymcmcstat
    
.. |license| image:: https://img.shields.io/badge/License-MIT-yellow.svg
    :target: https://github.com/prmiles/pymcmcstat/blob/master/LICENSE.txt

.. |coverage| image:: https://coveralls.io/repos/github/prmiles/pymcmcstat/badge.svg
    :target: https://coveralls.io/github/prmiles/pymcmcstat

.. |zenodo| image:: https://zenodo.org/badge/107596954.svg
    :target: https://zenodo.org/badge/latestdoi/107596954
    
.. |pypi| image:: https://img.shields.io/pypi/v/pymcmcstat.svg
    :target: https://pypi.org/project/pymcmcstat/
    
.. |pyversion| image:: https://img.shields.io/pypi/pyversions/pymcmcstat.svg
    :target: https://pypi.org/project/pymcmcstat/

.. |cnec| image:: https://raw.githubusercontent.com/prmiles/pymcmcstat/master/doc/cnec-logo.png
    :target: https://cnec.ncsu.edu/

.. |joss| image:: http://joss.theoj.org/papers/10.21105/joss.01417/status.svg
    :target: https://doi.org/10.21105/joss.01417