stan-dev/stan
Stan is a C++ library for full Bayesian inference using Hamiltonian Monte Carlo (NUTS) and automatic differentiation variational inference.

Stan provides complete Bayesian inference via the No-U-Turn sampler (a Hamiltonian Monte Carlo variant), approximate Bayesian inference through automatic differentiation variational inference (ADVI), and penalized maximum likelihood estimation with L-BFGS optimization. It builds on the Stan Math library, which supplies automatic differentiation using C++ template overloads along with a templated matrix and probability function library. Multiple interfaces are available including R, Python, MATLAB, Julia, and the command line.
Frequently asked
- What is stan-dev/stan?
- Stan is a C++ library for full Bayesian inference using Hamiltonian Monte Carlo (NUTS) and automatic differentiation variational inference.
- Is stan open source?
- Yes — stan-dev/stan is open source, released under the BSD-3-Clause license.
- What language is stan written in?
- stan-dev/stan is primarily written in C++.
- How popular is stan?
- stan-dev/stan has 2.8k stars on GitHub.
- Where can I find stan?
- stan-dev/stan is on GitHub at https://github.com/stan-dev/stan.