MC Stan
mc-stan.org
MC Stan
@mc-stan.org
Expressive probabilistic programming language for writing statistical models. Fast Bayesian inference. Interfaces for Python, Julia, R, and the Unix shell. A rich ecosystem of tools for validation and visualization.

Home https://mc-stan.org/
Reposted by MC Stan
Actually, we recently spooked away some ghosts with warnings and other scary things (with @semihaktepe.bsky.social)
October 30, 2025 at 7:00 AM
Reposted by MC Stan
October 30, 2025 at 12:51 AM
Reposted by MC Stan
Halloween @mc-stan.org
October 29, 2025 at 9:22 PM
Reposted by MC Stan
#statstab #439 {ZOID}

Thoughts: "zero-and-one inflated Dirichlet regression (also known as trinomial mixture models) in a Bayesian framework (Stan)"
Useful for composite proportions.

#Dirichlet #bayesian #stan #r #rstats #proportions

noaa-nwfsc.github.io/zoid/index.h...
Bayesian Zero-and-One Inflated Dirichlet Regression Modelling
Fits Dirichlet regression and zero-and-one inflated Dirichlet regression with Bayesian methods implemented in Stan. These models are sometimes referred to as trinomial mixture models; covariates and o...
noaa-nwfsc.github.io
October 16, 2025 at 6:30 PM
Reposted by MC Stan
#statstab #436 {chkptstanr} Checkpoint MCMC Sampling with Stan

Thoughts: This! Allows you to stop and start the sampling in {brms}. Can be a lifesaver.

#rstats #stan #brms #mcmc #efficiency #stanr #hmc #bayesian

donaldrwilliams.github.io/chkptstanr/
chkptstanr
Fit Bayesian models in Stan <doi: 10.18637/jss.v076.i01> with checkpointing, that is, the ability to stop the MCMC sampler at will, and then pick right back up where the MCMC sampler left off. ...
donaldrwilliams.github.io
October 13, 2025 at 6:37 PM
Reposted by MC Stan
One week till my trip to Columbia, SC to see my Honors student Leah defend her senior thesis! She did an excellent job on Bayesian spatiotemporal modeling of maternal mortality in South Carolina from 2018-2023. She coded up the model in Stan & R and produced some very nice maps!
October 29, 2025 at 12:40 AM
Reposted by MC Stan
We have a PR for `loo` package github.com/stan-dev/loo..., adding new columns to `loo_compare()` output. Check out how the new output looks in a variant of that case study users.aalto.fi/~ave/casestu...

Please, check out the case study and possibly try also that PR, and provide feedback!

3/3
add diff diagnostics by avehtari · Pull Request #300 · stan-dev/loo
The corresponding issue #299 This PR is not ready for merge, but needs some thought
github.com
October 28, 2025 at 1:39 PM
Reposted by MC Stan
"Uncertainty in Bayesian leave-one-out cross-validation based model comparison" with Tuomas Sivula, Asael Alonzo Matamoros, and @mansmag.bsky.social, has been published in Bayesian Analysis doi.org/10.1214/25-B...

🧵 1/
Uncertainty in Bayesian Leave-One-Out Cross-Validation Based Model Comparison
It is useful to estimate the expected predictive performance of models planned to be used for prediction. We focus on leave-one-out cross-validation (LOO-CV), which has become a popular method for estimating predictive performance of Bayesian models. Given two models, we are interested in comparing the predictive performances and associated uncertainty, which can also be used to compute the probability of one model having better predictive performance than the other model. We study the properties of the Bayesian LOO-CV estimator and the related uncertainty quantification for the predictive performance difference, and analyse when a normal approximation of this uncertainty is well calibrated and whether taking into account higher moments could improve the approximation. We provide new results of the properties both theoretically in the linear regression case and empirically for hierarchical linear, latent linear, and spline models and discuss the challenges. We show that problematic cases include: comparing models with similar predictions, misspecified models, and small data. In these cases, there is a weak connection between the distributions of the LOO-CV estimator and its error. We show that that the problematic skewness of the error distribution for the difference, which occurs when the models make similar predictions, does not fade away when the data size grows to infinity in certain situations. Based on the results, we also provide some practical recommendations for the users of Bayesian LOO-CV for comparing predictive performance of models.
doi.org
October 28, 2025 at 1:39 PM
Reposted by MC Stan
Heeju Lim, Victor E. Lachos, Victor H. Lachos
Bayesian analysis of flexible Heckman selection models using Hamiltonian Monte Carlo
https://arxiv.org/abs/2510.20942
October 27, 2025 at 5:23 AM
Reposted by MC Stan
StanCon 2026, Uppsala, Sweden

We are thrilled to announce that StanCon 2026 will take place in Uppsala, Sweden, from August 17th to August 21st, 2026. The conference brings together researchers and practitioners passionate about Bayesian inference and probabilistic programming in one of Sweden’s…
StanCon 2026, Uppsala, Sweden
We are thrilled to announce that StanCon 2026 will take place in Uppsala, Sweden, from August 17th to August 21st, 2026. The conference brings together researchers and practitioners passionate about Bayesian inference and probabilistic programming in one of Sweden’s most historic and vibrant university cities. Attendees will enjoy a week of conference talks, workshops, and tutorials spanning both foundational methods and real-world applications.
blog.mc-stan.org
October 13, 2025 at 2:53 PM
StanCon 2026, Uppsala, Sweden

We are thrilled to announce that StanCon 2026 will take place in Uppsala, Sweden, from August 17th to August 21st, 2026. The conference brings together researchers and practitioners passionate about Bayesian inference and probabilistic programming in one of Sweden’s…
StanCon 2026, Uppsala, Sweden
We are thrilled to announce that StanCon 2026 will take place in Uppsala, Sweden, from August 17th to August 21st, 2026. The conference brings together researchers and practitioners passionate about Bayesian inference and probabilistic programming in one of Sweden’s most historic and vibrant university cities. Attendees will enjoy a week of conference talks, workshops, and tutorials spanning both foundational methods and real-world applications.
blog.mc-stan.org
October 13, 2025 at 2:53 PM
Have you made a package on top of Stan? Do you have a cool trick to make Stan faster or create a fancy model? Would you like to make a guest post at Stan blog blog.mc-stan.org?

Send me a private message if you are interested (and note that with our current blog plan we don't have MathJax support)
The Stan Blog
blog.mc-stan.org
October 9, 2025 at 12:52 PM
Reposted by MC Stan
bayesplot 1.14.0 CRAN release mc-stan.org/bayesplot/ with contributions from @tjmahr.com, Behram Ulukır, and @teemusailynoja.bsky.social

My favorite new feature is the discrete style ppc_rootogram() as proposed in teemusailynoja.github.io/visual-predi... and shown below

1/3
September 3, 2025 at 12:09 PM
Reposted by MC Stan
Stan / CmdStan 2.37 release!
blog.mc-stan.org/2025/09/02/r...
- sum_to_zero_matrix type sums to zero across both rows and columns
- simplex and *_stochastic_matrix types should be now faster and more stable
- new functions exposing the built-in constraint implementations
1/2
Release of CmdStan 2.37
We are very happy to announce that the 2.37.0 release of CmdStan is now available on Github! As usual, the release of CmdStan is accompanied by new releases of Stan Math, core Stan, and Stanc3. Thi…
blog.mc-stan.org
September 2, 2025 at 5:06 PM
MC Stan is here! Follow for the latest Stan news, and tag if you want us to repost your posts about new papers, packages, courses, etc. about Stan
September 17, 2025 at 3:16 PM