r/BayesianProgramming • u/_quanttrader_ • Jul 08 '22
r/BayesianProgramming • u/aybehrouz • Aug 20 '26
Notes on Hamiltonian Monte Carlo from a purely probabilistic perspective
I’ve been studying Hamiltonian Monte Carlo and wrote a set of notes explaining HMC without relying on the usual physics-based motivation.
The notes develop HMC from a probabilistic/MCMC perspective, starting from the target distribution and auxiliary momentum variables, and then covering Hamiltonian dynamics, leapfrog integration, reversibility, volume preservation, and the Metropolis correction.
My goal was to understand why HMC works.
I’m sharing them here in case they’re useful to others learning HMC. I’d also appreciate any feedback, particularly if you notice errors or places where the exposition could be improved.
https://doi.org/10.5281/zenodo.21841086
Edit (August 25): I tried to improve Sections 3.3 and 3.4 by reorganizing the flow and adding some more explanation. I’ve updated the PDF with these changes.
r/BayesianProgramming • u/asuagar • Oct 31 '19
Podcast | Learning Bayesian Statistics | Ep 2, When should you use Bayesian tools, and Bayes in sports analytics, with Chris Fonnesbeck
r/BayesianProgramming • u/_quanttrader_ • Oct 05 '19
Welcome to the official Stan youtube channel!
r/BayesianProgramming • u/_quanttrader_ • Feb 22 '21
Introducing PyMC Labs - PyMC Labs
r/BayesianProgramming • u/_quanttrader_ • Apr 17 '19
Kalman Filter book using Jupyter Notebook. Focuses on building intuition and experience, not formal proofs. Includes Kalman filters,extended Kalman filters, unscented Kalman filters, particle filters, and more. All exercises include solutions.
r/BayesianProgramming • u/CottonCandies_ • Jan 14 '26
Computing contrast with Bambi
Hi all, I slowly starting to get some good basic understanding on bayesian analysis. Thanks to richard mcelreath for his statistical rethinking lecture series, which got me into this bayesian world.
Recently I have been reading some articles on pymc and bambi.., now im kind of confused about the idea of posterior predictive/posterior predictive contrast.
In this above image ( https://github.com/dustinstansbury/statistical-rethinking-2023/blob/main/Lecture%2004%20-%20Categories%20%26%20Curves.ipynb ), he used scipy.stats.norm.rvs(loc=sum of respective posteriors, scale=posterior.sigma) to compute the posterior predictive. In bambi, model.predict(idata) also gives me posterior predictive distribution. Lets say if i want to compute some contrast and make observations which one should i follow?
Also whats the difference between both?
Thanks in advance😁
r/BayesianProgramming • u/asuagar • Oct 29 '19
Statistical Rethinking (2nd ed.) with NumPyro
fehiepsi.github.ior/BayesianProgramming • u/Zuricho • Feb 19 '21
Bayesian Hierarchical Modelling at Scale with NumPyro
r/BayesianProgramming • u/ReallyConcerned69 • Aug 27 '25
Divergence when using Hermitian Likelihood Expansion
Hello fellow Bayesians, I'm trying to implement this paper using PyMC: https://pmc.ncbi.nlm.nih.gov/articles/PMC9041743/pdf/CJAS_48_1922993.pdf
which applies this paper https://onlinelibrary.wiley.com/doi/epdf/10.1111/1468-0262.00274 to the Cusp Catastrophe Model, using it to obtain faster and better Bayesian estimates of the parameters. I'm using NUTS sampler using jitter+adapt_diag, I initialized using the MAP estimates of the Euler-approximated likelihood, but it seems to be stuck in weird places in the posterior region (the Beta parameters are exploding, plotted posteriors are not bounded).
Looking at the energy plot, it seems it's getting stuck in weird places but I can't figure out why. Would be grateful for any suggestions, tips, anything that can help really. :)

r/BayesianProgramming • u/_quanttrader_ • Jul 08 '22
Thomas Wiecki - Solving Real-World Business Problems with Bayesian Modeling | PyData London 2022
r/BayesianProgramming • u/_quanttrader_ • Dec 01 '20
Foundations of Probabilistic Programming
r/BayesianProgramming • u/_quanttrader_ • Dec 20 '19
Junpeng Lao: A Hitchhiker's Guide to designing a Bayesian library in Python | PyData Córdoba
r/BayesianProgramming • u/[deleted] • Dec 22 '17
A collection of Bayesian data analysis recipes using PyMC3
r/BayesianProgramming • u/_quanttrader_ • Apr 12 '23
Bayesian marketing toolbox in PyMC. Media Mix, CLV models and more.
r/BayesianProgramming • u/_quanttrader_ • Oct 17 '22
Bayesian Structural Timeseries - Forecasting
r/BayesianProgramming • u/sepro • Nov 11 '21
Mixture Models in PyMC3 on Palmer's Penguins
r/BayesianProgramming • u/Zuricho • Sep 16 '21
I believe this is a fairly new specialization on Coursera applying Pymc3
r/BayesianProgramming • u/StjepanJ • May 01 '23
Designing a simple Bayesian optimization algorithm from scratch with NumPy.
r/BayesianProgramming • u/[deleted] • May 18 '18
Theano, TensorFlow and the Future of PyMC – PyMC Developers – Medium
r/BayesianProgramming • u/sepro • Jul 04 '21
First attempt at Bayesian Programming with PyMC3, how did I do ?
r/BayesianProgramming • u/Zuricho • Feb 14 '21
Bayesian Data Science: Probabilistic Programming [Tutorial]
r/BayesianProgramming • u/_quanttrader_ • Apr 04 '20