Aki Vehtari
@avehtari
Professor in computational Bayesian modeling, Aalto University, Finland. Co-author of Bayesian Data Analysis 3rd ed, Regression and Other Stories, Active Statistics and Bayesian Workflow. #mcmc_stan and #arviz developer.
Finally, got a copy of Bayesian workflow book in my hand, and it looks awesome! I really like we did get full colors for figures, too
New paper "To select or not to select: predictively consistent priors instead of model selection" with Anna Elisabeth Riha, Leevi Lindgren, @davidkohns.bsky.social, @paulbuerkner.com arxiv.org/abs/2606.22850 Model selection is not a substitute for building good models in the first place 1/
Two recommendations for cmdstanr in case studies: 1) use sample(..., refresh=0) to avoid 80 lines of MCMC progress reporting 2) cmdstanr::print_stan_file() in Quarto with output asis to get color formatting ``` #| output: asis print_stan_file(stan_file) ``` e.g., avehtari.github.io/Bayesian-Wor...
It took quite long time to merge the PR as we wanted to be careful with the design choices as we had to also change from matrix output to dataframe to support text in diagnostic columns. Now the model names are also columns, for example, making it easier to use tinytable 5/
Here diag_diff indicates that the magnitude of the difference is less than 4 and we can't trust p_worse, but then it really doesn't matter because the performance difference is small anyway 4/
diag_elpd is reminding if the single model LOO computation diagnostics are indicating issues, like here some Pareto-k values in PSIS-LOO computation are high and the comparison cannot be trusted 3/
This PR adds new columns to the LOO comparison. p_worse is the probability that a model has worse performance than the best model. diag_diff tells whether that probability can be trusted, for example, here due to small number of observations (N<100) 2/
I was charging a rental car and I guess I should have stopped charging at this point for a big win? (Ladattu = Charged, Lopeta lataus = Stop charging)
My wife bought us a new painting by Pia Sinkkonen named "Taasko yövuorossa?" which translates to "On the night shift again?", but in my head I call it "1. Draw some circles. 2. Draw the rest of the funny owls."
I've made a geometrical model for disc golf putting with uncertainty in 2D angle and distance control. Based on the model, the putting angle accuracies of top PDGA MPO and FPO players are about 1° and 1.4°, respectively. See more at users.aalto.fi/~ave/casestu...
The streets were already too well cleared and sprinkled with gravel yesterday after lunch, so that I had to walk back home, but today the views are even prettier with sunshine
Bayesian Workflow by Andrew Gelman, Aki Vehtari, @rmcelreath.bsky.social with @danpsimpson.bsky.social, @charlesm993.bsky.social, @yulingy.bsky.social, Lauren Kennedy, Jonah Gabry, @paulbuerkner.com, @modrakm.bsky.social, @vianeylb.bsky.social (in production, estimated copy-editing time 6 weeks)
Juho Timonen defended his thesis succesfully 🎉 (the thesis includes two papers I helped with: speeding up ODEs with importance sampling dx.doi.org/10.1002/sta4... and longitudinal GPs doi.org/10.1093/bioi...). Photo includes supervisor Harri Lähdesmäki and the opponent @mrattray.bsky.social
Sunshine, smoking ice and ice flowers along our walk today (photos by my wife)
I was two weeks on vacation in sunny and warm Sardinia, Italy, played in a beach ultimate tournament (this year we were the 4th best team in the world, and the best non-USA team), learned to kite surf, snorkeled, and ate lots of delicious food and gelato
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
We tested the accuracy of the MCSE with 41 posteriordb posteriors of varying complexity, plus with one Birthdays posterior. MCSE matches well the variation in repeated runs of MCMC and bridge sampling. Most of the variation in bridge sampling accuracy is explained by the number of dimensions.
For categorical and ordinal data a series of calibration plots can be used. The plots below show one of these calibration plots for Model 1 and Model 2 (the same as in the first post in this thread). The red line going most time outside the blue envelope indicates that Model 1 is misspecifed. 3/4
Instead of PPC bar graphs, it is better to look at the calibration of the predictive probabilities with binned calibration plots or even better with PAV-adjusted calibration plot. 2/4
Posterior predictive checking of binary, categorical and many ordinal models with bar graphs is useless. Even the simplest models without covariates usually have such intercept terms that category specific probabilities are learned perfectly. Can you guess which model, 1 or 2, is misspecifed? 1/4
It's sometimes difficult to get the focus needed for book writing, but this place was perfect for me
Based on this photo from 1920's at Helsinki University of Technology (which was later merged to Aalto University), they were also teaching how to draw an owl! (cc @rmcelreath.bsky.social)
A new revised version of "Uncertainty in Bayesian leave-one-out cross-validation based model comparison" with Sivula, @mansmag.bsky.social, and Matamoros. We have clarified the goal of the paper, made more clear that the uncertainty is described by the posterior of unknown elpd difference, 1/4