Stan: A Probabilistic Programming Language

By Bob Carpenter, Andrew Gelman, Matthew D. Hoffman, Daniel Lee, Ben Goodrich, Michael Betancourt, Marcus A. Brubaker, Jiqiang Guo, Peter Li, Allen B. Riddell. 2017

7,506 citations recorded by the source corpus.

Stan is a probabilistic programming language for specifying statistical models. A Stan program imperatively defines a log probability function over parameters conditioned on specified data and constants. As of version 2.14.0, Stan provides full Bayesian inference for continuous-variable models through Markov chain Monte Carlo methods such as the No-U-Turn sampler, an adaptive form of Hamiltonian Monte Carlo sampling. Penalized maximum likelihood estimates are calculated using optimization methods such as the limited memory Broyden-Fletcher-Goldfarb-Shanno algorithm. Stan is also a platform for computing log densities and their gradients and Hessians, which can be used in alternative algorithms such as variational Bayes, expectation propagation, and marginal inference using approximate integration. To this end, Stan is set up so that the densities, gradients, and Hessians, along with intermediate quantities of the algorithm such as acceptance probabilities, are easily accessible. Stan can be called from the command line using the cmdstan package, through R using the rstan package, and through Python using the pystan package. All three interfaces support sampling and optimization-based inference with diagnostics and posterior analysis. rstan and pystan also provide access to log probabilities, gradients, Hessians, parameter transforms, and specialized plotting.

Subfields: Artificial Intelligence, Statistics and Probability, Probabilistic & Bayesian Methods

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yoshua Bengio
  2. Sergey Levine
  3. Ruslan Salakhutdinov
  4. Quoc V. Le
  5. Percy Liang
  6. Mohit Bansal
  7. David M. Blei
  8. Eric P. Xing

In Statistics and Probability

  1. David M. Blei
  2. Paul-Christian Burkner
  3. Zoubin Ghahramani
  4. Dustin Tran
  5. Aki Vehtari
  6. Frank D. Wood
  7. Andrew Gelman
  8. Stephan Mandt

In Probabilistic & Bayesian Methods

  1. David M. Blei
  2. Zoubin Ghahramani
  3. Frank D. Wood
  4. Michalis K. Titsias
  5. Dustin Tran
  6. Stephan Mandt
  7. Hongseok Yang
  8. Richard E. Turner

Citations in the corpus