The DOI matches its Crossref record; 44 of the 49 references it cites were found in a registry or an index.
Stan : A Probabilistic Programming Language
Open accessAbstract
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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“When dealing with more complex models that go beyond the staple analyses such as t tests, there exist a number of software packages that allow custom coding, such as JAGS (Plummer, 2003) or Stan (Carpenter et al., 2017).”
From The JASP guidelines for conducting and reporting a Bayesian analysis (2021) · cites this paper as Carpenter et al., 2017
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
R: A Language and Environment for Statistical Computing
R Core Team (2000) · doi:10.32614/r.manuals · Cited by 355,893
Equation of State Calculations by Fast Computing Machines
Metropolis, N., Rosenbluth, A. W., Rosenbluth, M. N., Teller, A. H., & Teller, E. (1953) · The Journal of Chemical Physics · doi:10.1063/1.1699114 · Cited by 37,192
Gelman, A., Carlin, J. B., Stern, H. S., & Rubin, D. B. (2003) · doi:10.1201/9780429258480 · Cited by 27,276 · cited 8×
“This supplies fairly diffuse starting points when transformed back to the constrained scale, and thus help with convergence diagnostics as discussed in (Gelman et al. 2013).”
BackgroundMethodInfluentialSelf-citationInference from iterative simulation using multiple sequences
Gelman, A., & Rubin, D. B. (1992) · Statistical Science · doi:10.1214/ss/1177011136 · Cited by 16,627 · cited 2×
“Before performing output analysis, we recommend generating multiple independent chains in order to more effectively monitor convergence; see (Gelman and Rubin 1992) for more analysis.”
MethodSelf-citationBraun, W. J., & Murdoch, D. J. (2021) · Cambridge University Press eBooks · doi:10.1017/9781108993456.011 · Cited by 14,099
Data Analysis Using Regression and Multilevel/Hierarchical Models
Gelman, A., & Hill, J. (2006) · doi:10.1017/cbo9780511790942 · Cited by 13,597
Self-citationNocedal, J. M., & Wright, S. J. (2006) · Springer series in operations research/Springer series in operations research and financial engineering · doi:10.1007/978-0-387-40065-5 · Cited by 10,206
WinBUGS - A Bayesian modelling framework: Concepts, structure, and extensibility
Lunn, D. J., Thomas, A., Best, N., & Spiegelhalter, D. J. (2000) · Statistics and Computing · doi:10.1023/a:1008929526011 · Cited by 5,397 · cited 3×
“(Gelman et al. 2013, Section 5.1) define a hierarchical model of the incidence of tumors in rats in control groups across trials; a very similiar model is defined for mortality rates in pediatric surgeries across hospitals in (Lunn et al. 2000, 2009, Examples, Volume 1).”
BackgroundMethodInfluentialJAGS: A program for analysis of Bayesian graphical models using Gibbs sampling
Plummer, M. (2003) · Cited by 4,720
Duane, S., Kennedy, A. D., Pendleton, B. J., & Roweth, D. (1987) · Physics Letters B · doi:10.1016/0370-2693(87)91197-x · Cited by 4,081
CODA: convergence diagnosis and output analysis for MCMC
Plummer, M., Best, N., Cowles, K., & Vines, K. (2006) · Open Research Online (The Open University) · Cited by 3,317
The No-U-turn sampler: adaptively setting path lengths in Hamiltonian Monte CarloPreprint
Homan, M. D., & Gelman, A. (2014) · arXiv (Cornell University) · Cited by 3,078
Self-citationEnsemble samplers with affine invariance
Goodman, J. B., & Weare, J. (2010) · Communications in Applied Mathematics and Computational Science · doi:10.2140/camcos.2010.5.65 · Cited by 3,075 · cited 2×
“Two flavors of ensemble samplers are also in the works: an affine invariant ensemble sampler (Goodman and Weare 2010) and a differential evolution sampler (Ter Braak 2006).”
MethodThe No-U-Turn Sampler: Adaptively Setting Path Lengths in Hamiltonian Monte CarloPreprint
Hoffman, M. D., & Gelman, A. (2011) · arXiv (Cornell University) · doi:10.48550/arxiv.1111.4246 · Cited by 2,815 · cited 14×
“For the default NUTS sampler in Stan 2.2.0, these are lp__,accept_stat__,stepsize__,treedepth__,n_divergent__,theta The values for lp__ indicate the log probability (up to an additive constant).”
MethodInfluentialSelf-citationHindmarsh, A. C., Brown, P. N., Grant, K. E., Lee, S. L., Serban, R., Shumaker, D. E., & Woodward, C. S. (2005) · ACM Transactions on Mathematical Software · doi:10.1145/1089014.1089020 · Cited by 2,661
MCMC Using Hamiltonian Dynamics
Neal, R. M. (2011) · Handbook of Markov Chain Monte Carlo · doi:10.1201/b10905-6 · Cited by 2,574
The BUGS project: evolution, critique and future directions
Lunn, D., Spiegelhalter, D., Thomas, A., & Best, N. (2009) · Statistics in Medicine · doi:10.1002/sim.3680 · Cited by 1,876 · cited 2×
“(Gelman et al. 2013, Section 5.1) define a hierarchical model of the incidence of tumors in rats in control groups across trials; a very similiar model is defined for mortality rates in pediatric surgeries across hospitals in (Lunn et al. 2000, 2009, Examples, Volume 1).”
BackgroundInfluentialRiemann manifold langevin and hamiltonian monte carlo methods
Girolami, M., & Calderhead, B. (2011) · Journal of the Royal Statistical Society Series B: Statistical Methodology · doi:10.1111/j.1467-9868.2010.00765.x · Cited by 1,473
Neal, R. M. (2003) · The Annals of Statistics · doi:10.1214/aos/1056562461 · Cited by 1,454
Why We (Usually) Don't Have to Worry About Multiple Comparisons
Gelman, A., Hill, J., & Yajima, M. (2012) · Journal of Research on Educational Effectiveness · doi:10.1080/19345747.2011.618213 · Cited by 1,274 · cited 1×
“Applying a hierarchical model then considering posterior inference appropriately adjusts for mulitple comparisons; see (Gelman, Hill, and Yajima 2012; Efron 2010) for discussion.”
MethodSelf-citationHuber, M. (2011) · Chapman & Hall/CRC eBooks · doi:10.1201/b10905-10 · Cited by 1,269 · cited 2×
“An additional benefit of RHMC are transitions that can cover much larger variations in density, making it uniquely suited to these models; see (Neal 2011). vector[K] beta; beta <- mu + sigma * beta_raw; } model { beta ~ normal(0,1); } This reparameterization removes the particular correlations…”
MethodSlice SamplingPreprint
Neal, R. M. (2000) · arXiv (Cornell University) · Cited by 1,160
Efron, B. (2010) · Cambridge University Press eBooks · doi:10.1017/cbo9780511761362 · Cited by 820
CVODE, a stiff/nonstiff ODE solver in C
Cohen, S., & Hindmarsh, A. (1996) · Computers in Physics · doi:10.1063/1.4822377 · Cited by 748
The BUGS Book: A Practical Introduction to Bayesian Analysis
Lunn, D. J., Jackson, C. H., Best, N., Thomas, A. C., & Spiegelhalter, D. J. (2012) · Cited by 530
Efficient and portable combined random number generators
L’Ecuyer, P. (1988) · Communications of the ACM · doi:10.1145/62959.62969 · Cited by 494
Introduction to Markov Chain Monte Carlo
Geyer, C. J. (2011) · Chapman & Hall/CRC eBooks · doi:10.1201/b10905-2 · Cited by 334
The BUGS Book: A Practical Introduction to Bayesian Analysis
Fouley, J.-L. (2013) · CHANCE · doi:10.1080/09332480.2013.868759 · Cited by 259 · cited 2×
“A direct encoding in BUGS (Lunn, Thomas, and Spiegelhalter 2000; Lunn, Spiegelhalter, Thomas, and Best 2009; Lunn, Jackson, Best, Thomas, and Spiegelhalter 2012) or JAGS (Plum-mer 2003) can grind these tools to a halt.”
C++ Templates: The Complete Guide
Josuttis, N. M., Gregor, D., & Vandevoorde, D. (2002) · Medical Entomology and Zoology · Cited by 253
Goossens, M., Mittelbach, F. G., & Samarin, A. (1993) · CERN Document Server (European Organization for Nuclear Research) · Cited by 209
Hamiltonian Monte Carlo for Hierarchical Models
Betancourt, M., & Girolami, M. (2015) · Chapman & Hall/CRC eBooks · doi:10.1201/b18502-11 · Cited by 205
Self-citationA Short History of MCMC: Subjective Recollections from Incomplete Data
Robert, C. P., & Casella, G. (2011) · Chapman & Hall/CRC eBooks · doi:10.1201/b10905-3 · Cited by 198
Large-scale inference: empirical Bayes methods for estimation, testing, and prediction
Dialsingh, I. (2012) · Journal of Applied Statistics · doi:10.1080/02664763.2012.692543 · Cited by 197
An Improved Acceptance Procedure for the Hybrid Monte Carlo Algorithm
Neal, R. M. (1994) · Journal of Computational Physics · doi:10.1006/jcph.1994.1054 · Cited by 179 · cited 1×
“The MCMC samplers provided include Euclidean manifold Hamiltonian Monte Carlo (EHMC, or just HMC) (Duane, Kennedy, Pendleton, and Roweth 1987; Neal 1994, 2011) and the No-U-Turn sampler (NUTS) (Hoffman and Gelman 2011).”
MethodSchling, B. (2011) · Cited by 152
Chacon, S. (2009) · Apress eBooks · doi:10.1007/978-1-4302-1834-0 · Cited by 152
Large-Scale Inference: Empirical Bayes Methods for Estimation, Testing, and Prediction
Robert, C. P. (2012) · CHANCE · doi:10.1080/09332480.2012.726568 · Cited by 115
A General Metric for Riemannian Manifold Hamiltonian Monte Carlo
Betancourt, M. (2013) · Lecture notes in computer science · doi:10.1007/978-3-642-40020-9_35 · Cited by 77 · cited 5×
“…Monte Carlo (RHMC) introduces a location-dependent metric that can overcome these final hurdles (Girolami and Calderhead 2011); Stan has a prototype implementation of RHMC based on the SoftAbs metric of (Betancourt 2012), using a generalization of NUTS to Riemannian manifolds (Betancourt 2013).”
BackgroundMethodInfluentialSelf-citationThe Stan Math Library: Reverse-Mode Automatic Differentiation in C++Preprint
Carpenter, B., Hoffman, M. D., Brubaker, M. A., Lee, D. D., Li, P., & Betancourt, M. (2015) · arXiv (Cornell University) · doi:10.48550/arxiv.1509.07164 · Cited by 68
Self-citationSmart, J. F. (2011) · Cited by 57
Algorithmic Differentiation of Implicit Functions and Optimal Values
Bell, B. M., & Burke, J. V. (2008) · Lecture notes in computational science and engineering · doi:10.1007/978-3-540-68942-3_7 · Cited by 56 · cited 2×
“2 We explored existing algorithmic differentiation packages with open licenses such as RAD (Gay 2005) and its repackaging in the Sacado module of the Trilinos toolkit, and the CppAD package of the COIN-OR toolkit (Bell and Burke 2008).”
MethodGeneralizing the No-U-Turn Sampler to Riemannian ManifoldsPreprint
Betancourt, M. (2013) · arXiv (Cornell University) · doi:10.48550/arxiv.1304.1920 · Cited by 32 · cited 3×
“Riemannian manifold Hamiltonian Monte Carlo (RHMC) introduces a location-dependent metric that can overcome these final hurdles (Girolami and Calderhead 2011); Stan has a prototype implementation of RHMC based on the SoftAbs metric of (Betancourt 2012), using a generalization of NUTS to Riemannian manifolds (Betancour…”
BackgroundMethodSelf-citationIdentifying the Optimal Integration Time in Hamiltonian Monte CarloPreprint
Betancourt, M. (2016) · arXiv (Cornell University) · doi:10.48550/arxiv.1601.00225 · Cited by 29 · cited 7×
“We were hearing more about Hamiltonian Monte Carlo (HMC) sampling, which appeared promising but was also problematic in that the Hamiltonian dynamics simulation requires the gradient of the log posterior.”
MethodInfluentialSelf-citationAn Introduction to Markov Chain Monte CarloPreprint
Jespersen, N. S. (2010) · SSRN Electronic Journal · doi:10.2139/ssrn.1594971 · Cited by 20 · cited 2×
“Geyer (2011) provides a thorough introduction to effective sample size and MCSE estimation.”
Flagged first, then by citations
5 of the 49 references couldn’t be matched to a known paper.
Cited by
Sorted by citations
brms : An R Package for Bayesian Multilevel Models Using Stan
Bürkner, P.-C. (2017) · Journal of Statistical Software · doi:10.18637/jss.v080.i01 · Cited by 9,476
“Similar to software packages like WinBugs , Stan comes with its own programming language, allowing for great modeling Ćexibility (cf., Stan Development Team 2017b; Carpenter et al. 2017).”
BackgroundMethodAdvanced Bayesian Multilevel Modeling with the R Package brms
Bürkner, P.-C. (2018) · The R Journal · doi:10.32614/rj-2018-017 · Cited by 3,015
“Possibly the most powerful program for performing full Bayesian inference available to date is Stan (Stan Development Team, 2017b; Carpenter et al., 2017).”
BackgroundTaylor, S. J., & Letham, B. (2017) · The American Statistician · doi:10.1080/00031305.2017.1380080 · Cited by 2,904
“…sum of each of these components, plus noise: When the seasonality and holiday features for each observation are combined into a matrix X and the changepoint indicators a ( t ) in a matrix A , the entire model can be expressed in a few lines of Stan code [Carpenter et al., 2016], given in Listing 1.”
dynesty: a dynamic nested sampling package for estimating Bayesian posteriors and evidences
Speagle, J. S. (2020) · Monthly Notices of the Royal Astronomical Society · doi:10.1093/mnras/staa278 · Cited by 2,697
Global estimates of mortality associated with long-term exposure to outdoor fine particulate matter
Burnett, R., Chen, H., Szyszkowicz, M., Fann, N., Hubbell, B., Pope, C. A., Apte, J. S., Brauer, M., Cohen, A., Weichenthal, S., et al. (2018) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.1803222115 · Cited by 2,504
“US Environmental Protection Agency (2012) Regulatory impact analysis for the final revisions to the national ambient air quality standards for particulate matter (Office of Air Quality Planning and Standards, Health and Environmental Impacts Division, Research Triangle Park, NC), Technical Report EPA-452/R-12-005.”
MethodInfluential
Metadata
- Authors
- Carpenter, B., Gelman, A., Hoffman, M. D., Lee, D., Goodrich, B., Betancourt, M., Brubaker, M., Guo, J., Li, P., & Riddell, A.
- Affiliations
- Columbia University (US)
- Adobe Systems (United States) (US)
- York University (CA)
- Indiana University (US)
- ORCID
- Venue
- Journal of Statistical Software
- Publisher
- Foundation for Open Access Statistic
- Published
- 2017
- Volume
- 76
- Issue
- 1
- Pages
- 1-32
- ISSN
- 1548-7660 (ISSN-L)
- PMC
- PMC9788645
- OpenAlex
- W2577537660
- Semantic Scholar
- f8110d834fcc9a3a1c4416d4b165984219fe26f4
- Cited by
- 7,754
- References
- 49
- Citations by year
- 2026: 672 · 2025: 811 · 2024: 811 · 2023: 835 · 2022: 917 · 2021: 1127 · 2020: 970 · 2019: 752 · 2018: 516 · 2017: 253
- FWCI
- 474.30
- Type
- journal article
- Language
- en
- Open access
- diamond
- doi.org
- Licence
- cc-by
- Locations
- Journal of Statistical Software (publishedVersion, cc-by)
- PubMed (publishedVersion)
- PubMed Central (acceptedVersion)
- OSTI OAI (U.S. Department of Energy Office of Scientific and Technical Information) (submittedVersion, other-oa)
- RePEc: Research Papers in Economics (submittedVersion)
- DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion)
- Journal of Systems and Software
- Grantee Submission
- Funders
- National Science Foundation (0934516, 1205516)
- U.S. Department of Energy (DESC0002099)
- Harvard University
- National Institutes of Health (1g20rr030893-01)
- Institute of Education Sciences (R305D090006-09A, R305D090006)
- National Center for Research Resources (G20RR030893)
- Topics
- Physical Sciences › Mathematics › Statistics and Probability › Markov Chains and Monte Carlo Methods
- Physical Sciences › Mathematics › Statistics and Probability › Data Analysis with R
- Physical Sciences › Mathematics › Statistics and Probability › Statistical Methods and Bayesian Inference
- Keywords
- Stan, probabilistic programming languages, Bayesian inference, Markov chain Monte Carlo, No-U-Turn Sampler, Hamiltonian Monte Carlo, L-BFGS optimization, penalized likelihood, variational inference, expectation propagation, marginal inference, R interface, Python interface, posterior analysis
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review