Probabilistic programming language for Bayesian statistical modelling
open sourceBSD-3-Clausefree
Stan is a probabilistic programming language and C++ toolkit for Bayesian statistical modelling, from simple regressions to multilevel and time-series models. You write a model in the Stan language; the stanc3 compiler translates it to C++, which is compiled into a program that runs full Bayesian inference with the No-U-Turn sampler (a variant of Hamiltonian Monte Carlo), approximate inference with ADVI, or penalised maximum likelihood with L-BFGS, all built on the Stan Math automatic differentiation library. Interfaces include CmdStan for the command line, CmdStanPy and PyStan for Python, CmdStanR and RStan for R, Julia, MATLAB, Mathematica and Stata.
Libraries for Stan
Talira doesn't list any yet.
Problems it solves
- fit a Bayesian hierarchical model
- run MCMC sampling on a custom statistical model
- Bayesian inference from Python or R with a probabilistic programming language
Features
- Stan modelling language
- NUTS Hamiltonian Monte Carlo sampling
- ADVI variational inference and L-BFGS optimisation
- Stan Math automatic differentiation library
- interfaces for the command line, Python, R, Julia, MATLAB, Mathematica and Stata
Limitations
- Needs a C++17 compiler and GNU Make to compile models.1
