fbpx
Wikipedia

Stan (software)

Stan is a probabilistic programming language for statistical inference written in C++.[2] The Stan language is used to specify a (Bayesian) statistical model with an imperative program calculating the log probability density function.[2]

Stan
Original author(s)Stan Development Team
Initial releaseAugust 30, 2012 (2012-08-30)
Stable release
2.32.2[1]  / 15 May 2023; 2 months ago (15 May 2023)
Repository
  • github.com/stan-dev/stan
Written inC++
Operating systemUnix-like, Microsoft Windows, Mac OS X
PlatformIntel x86 - 32-bit, x64
TypeStatistical package
LicenseNew BSD License
Websitemc-stan.org

Stan is licensed under the New BSD License. Stan is named in honour of Stanislaw Ulam, pioneer of the Monte Carlo method.[2]

Stan was created by a development team consisting of 34 members[3] that includes Andrew Gelman, Bob Carpenter, Matt Hoffman, and Daniel Lee.

Interfaces Edit

The Stan language itself can be accessed through several interfaces:

In addition, higher-level interfaces are provided with packages using Stan as backend, primarily in the R language:[4]

  • rstanarm provides a drop-in replacement for frequentist models provided by base R and lme4 using the R formula syntax;
  • brms[5] provides a wide array of linear and nonlinear models using the R formula syntax;
  • prophet provides automated procedures for time series forecasting.

Algorithms Edit

Stan implements gradient-based Markov chain Monte Carlo (MCMC) algorithms for Bayesian inference, stochastic, gradient-based variational Bayesian methods for approximate Bayesian inference, and gradient-based optimization for penalized maximum likelihood estimation.

Automatic differentiation Edit

Stan implements reverse-mode automatic differentiation to calculate gradients of the model, which is required by HMC, NUTS, L-BFGS, BFGS, and variational inference.[2] The automatic differentiation within Stan can be used outside of the probabilistic programming language.

Usage Edit

Stan is used in fields including social science,[8] pharmaceutical statistics,[9] market research,[10] and medical imaging.[11]

References Edit

  1. ^ "Release 2.32.2". 15 May 2023. Retrieved 1 June 2023.
  2. ^ a b c d e Stan Development Team. 2015. Stan Modeling Language User's Guide and Reference Manual, Version 2.9.0
  3. ^ "Development Team". stan-dev.github.io. Retrieved 2018-07-25.
  4. ^ Gabry, Jonah. "The current state of the Stan ecosystem in R". Statistical Modeling, Causal Inference, and Social Science. Retrieved 25 August 2020.
  5. ^ "BRMS: Bayesian Regression Models using 'Stan'". 23 August 2021.
  6. ^ Hoffman, Matthew D.; Gelman, Andrew (April 2014). "The No-U-Turn Sampler: Adaptively Setting Path Lengths in Hamiltonian Monte Carlo". Journal of Machine Learning Research. 15: pp. 1593–1623.
  7. ^ Kucukelbir, Alp; Ranganath, Rajesh; Blei, David M. (June 2015). "Automatic Variational Inference in Stan". 1506 (3431). arXiv:1506.03431. Bibcode:2015arXiv150603431K. {{cite journal}}: Cite journal requires |journal= (help)
  8. ^ Goodrich, Benjamin King, Wawro, Gregory and Katznelson, Ira, Designing Quantitative Historical Social Inquiry: An Introduction to Stan (2012). APSA 2012 Annual Meeting Paper. Available at SSRN 2105531
  9. ^ Natanegara, Fanni; Neuenschwander, Beat; Seaman, John W.; Kinnersley, Nelson; Heilmann, Cory R.; Ohlssen, David; Rochester, George (2013). "The current state of Bayesian methods in medical product development: survey results and recommendations from the DIA Bayesian Scientific Working Group". Pharmaceutical Statistics. 13 (1): 3–12. doi:10.1002/pst.1595. ISSN 1539-1612. PMID 24027093. S2CID 19738522.
  10. ^ Feit, Elea (15 May 2017). "Using Stan to Estimate Hierarchical Bayes Models". Retrieved 19 March 2019.
  11. ^ Gordon, GSD; Joseph, J; Alcolea, MP; Sawyer, T; Macfaden, AJ; Williams, C; Fitzpatrick, CRM; Jones, PH; di Pietro, M; Fitzgerald, RC; Wilkinson, TD; Bohndiek, SE (2019). "Quantitative phase and polarization imaging through an optical fiber applied to detection of early esophageal tumorigenesis". Journal of Biomedical Optics. 24 (12): 1–13. arXiv:1811.03977. Bibcode:2019JBO....24l6004G. doi:10.1117/1.JBO.24.12.126004. PMC 7006047. PMID 31840442.

Further reading Edit

  • Carpenter, Bob; Gelman, Andrew; Hoffman, Matthew; Lee, Daniel; Goodrich, Ben; Betancourt, Michael; Brubaker, Marcus; Guo, Jiqiang; Li, Peter; Riddell, Allen (2017). "Stan: A Probabilistic Programming Language". Journal of Statistical Software. 76 (1): 1–32. doi:10.18637/jss.v076.i01. ISSN 1548-7660. PMC 9788645. PMID 36568334.
  • Gelman, Andrew, Daniel Lee, and Jiqiang Guo (2015). Stan: A probabilistic programming language for Bayesian inference and optimization, Journal of Educational and Behavioral Statistics.
  • Hoffman, Matthew D., Bob Carpenter, and Andrew Gelman (2012). Stan, scalable software for Bayesian modeling 2015-01-21 at the Wayback Machine, Proceedings of the NIPS Workshop on Probabilistic Programming.

External links Edit

  • Stan web site
  • Stan source, a Git repository hosted on GitHub

stan, software, other, uses, stan, disambiguation, stan, probabilistic, programming, language, statistical, inference, written, stan, language, used, specify, bayesian, statistical, model, with, imperative, program, calculating, probability, density, function,. For other uses see Stan disambiguation Stan is a probabilistic programming language for statistical inference written in C 2 The Stan language is used to specify a Bayesian statistical model with an imperative program calculating the log probability density function 2 StanOriginal author s Stan Development TeamInitial releaseAugust 30 2012 2012 08 30 Stable release2 32 2 1 15 May 2023 2 months ago 15 May 2023 Repositorygithub wbr com wbr stan dev wbr stanWritten inC Operating systemUnix like Microsoft Windows Mac OS XPlatformIntel x86 32 bit x64TypeStatistical packageLicenseNew BSD LicenseWebsitemc stan wbr orgStan is licensed under the New BSD License Stan is named in honour of Stanislaw Ulam pioneer of the Monte Carlo method 2 Stan was created by a development team consisting of 34 members 3 that includes Andrew Gelman Bob Carpenter Matt Hoffman and Daniel Lee Contents 1 Interfaces 2 Algorithms 3 Automatic differentiation 4 Usage 5 References 6 Further reading 7 External linksInterfaces EditThe Stan language itself can be accessed through several interfaces CmdStan a command line executable for the shell CmdStanR and rstan R software libraries CmdStanPy and PyStan libraries for the Python programming language CmdStan rb library for the Ruby programming language MatlabStan integration with the MATLAB numerical computing environment Stan jl integration with the Julia programming language StataStan integration with Stata In addition higher level interfaces are provided with packages using Stan as backend primarily in the R language 4 rstanarm provides a drop in replacement for frequentist models provided by base R and lme4 using the R formula syntax brms 5 provides a wide array of linear and nonlinear models using the R formula syntax prophet provides automated procedures for time series forecasting Algorithms EditStan implements gradient based Markov chain Monte Carlo MCMC algorithms for Bayesian inference stochastic gradient based variational Bayesian methods for approximate Bayesian inference and gradient based optimization for penalized maximum likelihood estimation MCMC algorithms Hamiltonian Monte Carlo HMC No U Turn sampler 2 6 NUTS a variant of HMC and Stan s default MCMC engine Variational inference algorithms Automatic Differentiation Variational Inference 7 Optimization algorithms Limited memory BFGS Stan s default optimization algorithm Broyden Fletcher Goldfarb Shanno algorithm Laplace s method for classical standard error estimates and approximate Bayesian posteriorsAutomatic differentiation EditStan implements reverse mode automatic differentiation to calculate gradients of the model which is required by HMC NUTS L BFGS BFGS and variational inference 2 The automatic differentiation within Stan can be used outside of the probabilistic programming language Usage EditStan is used in fields including social science 8 pharmaceutical statistics 9 market research 10 and medical imaging 11 References Edit Release 2 32 2 15 May 2023 Retrieved 1 June 2023 a b c d e Stan Development Team 2015 Stan Modeling Language User s Guide and Reference Manual Version 2 9 0 Development Team stan dev github io Retrieved 2018 07 25 Gabry Jonah The current state of the Stan ecosystem in R Statistical Modeling Causal Inference and Social Science Retrieved 25 August 2020 BRMS Bayesian Regression Models using Stan 23 August 2021 Hoffman Matthew D Gelman Andrew April 2014 The No U Turn Sampler Adaptively Setting Path Lengths in Hamiltonian Monte Carlo Journal of Machine Learning Research 15 pp 1593 1623 Kucukelbir Alp Ranganath Rajesh Blei David M June 2015 Automatic Variational Inference in Stan 1506 3431 arXiv 1506 03431 Bibcode 2015arXiv150603431K a href Template Cite journal html title Template Cite journal cite journal a Cite journal requires journal help Goodrich Benjamin King Wawro Gregory and Katznelson Ira Designing Quantitative Historical Social Inquiry An Introduction to Stan 2012 APSA 2012 Annual Meeting Paper Available at SSRN 2105531 Natanegara Fanni Neuenschwander Beat Seaman John W Kinnersley Nelson Heilmann Cory R Ohlssen David Rochester George 2013 The current state of Bayesian methods in medical product development survey results and recommendations from the DIA Bayesian Scientific Working Group Pharmaceutical Statistics 13 1 3 12 doi 10 1002 pst 1595 ISSN 1539 1612 PMID 24027093 S2CID 19738522 Feit Elea 15 May 2017 Using Stan to Estimate Hierarchical Bayes Models Retrieved 19 March 2019 Gordon GSD Joseph J Alcolea MP Sawyer T Macfaden AJ Williams C Fitzpatrick CRM Jones PH di Pietro M Fitzgerald RC Wilkinson TD Bohndiek SE 2019 Quantitative phase and polarization imaging through an optical fiber applied to detection of early esophageal tumorigenesis Journal of Biomedical Optics 24 12 1 13 arXiv 1811 03977 Bibcode 2019JBO 24l6004G doi 10 1117 1 JBO 24 12 126004 PMC 7006047 PMID 31840442 Further reading EditCarpenter Bob Gelman Andrew Hoffman Matthew Lee Daniel Goodrich Ben Betancourt Michael Brubaker Marcus Guo Jiqiang Li Peter Riddell Allen 2017 Stan A Probabilistic Programming Language Journal of Statistical Software 76 1 1 32 doi 10 18637 jss v076 i01 ISSN 1548 7660 PMC 9788645 PMID 36568334 Gelman Andrew Daniel Lee and Jiqiang Guo 2015 Stan A probabilistic programming language for Bayesian inference and optimization Journal of Educational and Behavioral Statistics Hoffman Matthew D Bob Carpenter and Andrew Gelman 2012 Stan scalable software for Bayesian modeling Archived 2015 01 21 at the Wayback Machine Proceedings of the NIPS Workshop on Probabilistic Programming External links EditStan web site Stan source a Git repository hosted on GitHub Retrieved from https en wikipedia org w index php title Stan software amp oldid 1170014675, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.