PyStan
Pystan is a Python interface to Stan, a probabilistic programming language used for Bayesian inference. It enables Python users to define statistical models in Stan’s modeling language and to perform full Bayesian analysis using Stan’s sampling and optimization algorithms, such as Hamiltonian Monte Carlo and the No-U-Turn Sampler.
The library exposes a Pythonic API for working with Stan models. A user writes a model as
Pystan has seen two major generations. PyStan 2 was the legacy interface that bundled the Stan C++
Typical usage involves defining a model, compiling it, preparing a data dictionary, performing sampling, and then
Pystan is open-source and maintained by the Stan community. It is distributed via PyPI and interoperates with