r/datascience • u/rhiever • 22d ago
Statistics What would a fully Bayesian programming environment look like?
https://statmodeling.stat.columbia.edu/2026/11/11/the-challenge-of-truly-probabilistic-programming/
97
Upvotes
429
u/Yourdataisunclean 22d ago •
Depends on what happened prior.
20
u/Synthetic-Meat-2000 21d ago
Are you asking about running Markov Chain Monte-Carlo simulations and developing hierarchical models? It will R with some extensions, if you are fluent in R, otherwise PyMC in Python.
With PyMC, it's worth learning to configure the backend to your CPU or GPU to get the max performance
11
u/selfintersection 21d ago
So Gelman wants to be able to work with the outputs of the model without needing to worry about the fact that you're doing the algebra per-draw. I don't quite understand why the generated quantities block doesn't work for him, because it works just like that. But maybe the issue is that he wants to do it more interactively, in R or something afterward.
7
u/hendrik0806 21d ago
I can kind of relate - although I have in generell mixed feelings about vectorisation beside from its efficiency. Thinking about the model and parameters in iterations gives me a feeling for the data flow - especially when the model contains multiple modules with measurement and structural parts. This is why I kind of dislike when indexes falls away using vectorisation in stan. In R parameters as vectors are pretty simple to handle especially with tidyverse functions and storing them as lists in tibbles through nest. I don’t really see any necessity for packages that abstract away important details when handling those samples.
1
u/k-theodore3 10d ago
Start by making assumptions inspectable: priors and likelihoods as explicit objects, with provenance and prior predictive checks close to the code.
1
u/nur88175 4d ago
I'd want every derived quantity to report posterior uncertainty and Monte Carlo error side by side; a tight interval is no comfort if the estimate is poorly sampled.
1
u/frank-andreas8 18h ago
A useful environment would make prior sensitivity easy: tweak an assumption, rerun, and see which posterior conclusions change.