Learning Bayesian Statistics
Learning Bayesian Statistics
Alexandre Andorra
Are you a researcher or data scientist / analyst / ninja? Do you want to learn Bayesian inference, stay up to date or simply want to understand what Bayesian inference is? Then this podcast is for you! You'll hear from researchers and practitioners of all fields about how they use Bayesian statistics, and how in turn YOU can apply these methods in your modeling workflow. When I started learning Bayesian methods, I really wished there were a podcast out there that could introduce me to the methods, the projects and the people who make all that possible. So I created "Learning Bayesian Statistics", where you'll get to hear how Bayesian statistics are used to detect black matter in outer space, forecast elections or understand how diseases spread and can ultimately be stopped. But this show is not only about successes -- it's also about failures, because that's how we learn best. So you'll often hear the guests talking about what *didn't* work in their projects, why, and how they overcame these challenges. Because, in the end, we're all lifelong learners! My name is Alex Andorra by the way. By day, I'm a Senior data scientist. By night, I don't (yet) fight crime, but I'm an open-source enthusiast and core contributor to the python packages PyMC and ArviZ. I also love Nutella, but I don't like talking about it – I prefer eating it. So, whether you want to learn Bayesian statistics or hear about the latest libraries, books and applications, this podcast is for you -- just subscribe! You can also support the show and unlock exclusive Bayesian swag on Patreon!
Why a Bayesian Workflow Goes Beyond Fitting Models
Today's clip is from Episode 164, featuring Andrew Gelman, Aki Vehtari & Richard McElreath. In this conversation, Andrew explains why a Bayesian workflow goes far beyond simply fitting a model. He discusses the importance of building, fitting, and checking models, and why moving between simpler and more complicated models can reveal insights that a single model might miss. He also explores how simulation and generative modeling can help researchers evaluate new models and gain confidence in their results, even when there isn't an established method or published study to rely on. It's a look at why good statistical practice isn't just about getting an answer, but knowing how much you can trust it. Full discussion hereSupport & Resources→ Support the show on Patreon→ Bayesian Modeling Course (first 2 lessons free): Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work!
Sep 2
4 min
#164 Bayesian Workflow, with Andrew Gelman, Aki Vehtari & Richard McElreath
Support & Resources→ Support the show on Patreon→ Bayesian Modeling Course (first 2 lessons free)Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome workTakeaways:Q: What is the "Bayesian Workflow" book about, and who is it for?A: It covers what the three authors know that isn't already in Bayesian Data Analysis (BDA3) or Statistical Rethinking, organized around case studies that walk through full analyses end to end rather than just giving a recommendation. It's not an introduction to Bayesian inference -- it assumes you already know the basics -- but a guide to making theoretically informed, professional decisions at the many branching points a real analysis involves that source books rarely acknowledge.Q: What's a concrete way to report Bayesian results without just handing over a posterior distribution?A: Report a few named scenarios from the distribution, such as pessimistic, median, and optimistic. This is easier to discuss than a full posterior and helps shift the conversation toward what would move outcomes from the median toward the optimistic case.Full takeawaysChapters:00:18:22 What is the elevator pitch for the Bayesian Workflow book?00:20:12 Where does workflow sit between statistical theory and case studies?00:27:21 Why express your scientific background in a generative model?00:36:43 How is a Bayesian workflow different from a pipeline?00:39:03 What is reverse Bayes, and how does it help with prior sensitivity?00:43:53 How do Bayesians reinterpret non-Bayesian methods?00:45:02 How is the Bayesian Workflow book structured?00:48:49 How do you model bat mortality at wind farms from zero-inflated carcass counts?00:52:24 When does a hierarchical model stop being an innocuous assumption?00:58:17 Can multilevel regression and poststratification pool detection across sites?00:59:32 Why start with a big generative simulation before the statistical model?01:02:05 What is the "secret weapon" of comparing shrinkage to fixed-effects estimates?01:11:02 How do you detect which assumptions are actually driving your inference?01:15:24 How do you get regulated industries to accept a posterior instead of a score?01:22:04 Should statisticians soften uncertainty for decision makers?01:23:11 Why report three scenarios instead of a single number?01:27:51 How do you handle a leaky instrument in causal inference?01:29:16 What is a principal stratification model?01:34:47 What are the three authors working on next?Thank you to my Patrons for making this episode possible!Full show notes
Aug 31
1 hr 44 min
Making Gaussian Processes Easier to Use
Today's clip is from Episode 154, featuring Thomas Pinder. In this conversation, Thomas shares what he sees as the next steps for GPJax and how the project could become easier to use beyond its original research-focused audience.He discusses creating a higher-level interface that could make fitting Gaussian processes possible in just a few lines of code, while still keeping the flexibility and infrastructure that GPJax provides. He also talks about making the documentation more engaging by moving beyond synthetic examples and showcasing real-world applications, such as modeling ocean currents with Gaussian processes.It's a look at how GPJax could evolve from a powerful research tool into something that's even more accessible and practical for a wider range of users.Full discussion hereSupport & Resources→ Support the show on Patreon→ Bayesian Modeling Course (first 2 lessons free): Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work!
Aug 25
4 min
The Future of Faster MCMC
Today's clip is from Episode 163, featuring Eliot Carlson and Adrian Seyboldt. In this conversation, Eliot and Adrian look beyond current approaches to HMC adaptation and preconditioning and share the ideas they're most excited to explore next.Eliot discusses new ways of parallelizing MCMC by solving for an entire trajectory at once rather than computing every step sequentially, a potentially powerful direction for expensive, high-dimensional problems. Adrian, meanwhile, talks about exploring non-adjusting methods and going beyond first-order information by investigating how higher-order autodiff and second-order derivatives could open up new possibilities for sampling.It's a glimpse into some of the ideas that could help make MCMC faster and more scalable as computational hardware continues to become increasingly parallel.Full discussion hereSupport & Resources→ Support the show on Patreon→ Bayesian Modeling Course (first 2 lessons free): Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work!
Aug 21
4 min
#163 How to make your models sample faster, with Adrian Seyboldt & Eliot Carlson
Support & Resources→ Support the show on Patreon→ Bayesian Modeling Course (first 2 lessons free)Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome workTakeaways:Q: What is mass matrix adaptation, in plain terms?A: Mass matrix adaptation is best understood as an automatic, fairly dumb, but very effective reparameterization of your model. The simplest version, the diagonal mass matrix, just rescales each parameter so its posterior standard deviation becomes one, which is exactly what you'd do by hand if you had the patience. Every time you sample a PyMC or Stan model, this kind of reparameterization is happening under the hood.Q: How does Nutpie's approach to mass matrix adaptation differ from Stan and PyMC's default?A: Stan and PyMC's default sampler only use one source of information for diagonal mass matrix adaptation: the posterior standard deviation estimated from warm-up draws. Nutpie also uses the gradients of the log density, which HMC is already computing at every step to build its trajectory. For a standard normal distribution, the covariance of the gradients is exactly the inverse covariance of the draws, so Nutpie takes the geometric mean of the two resulting standard deviations. There's no guarantee it's always better, but in practice it usually is.Q: What problem does "Preconditioning Hamiltonian Monte Carlo by Minimizing Fisher Divergence" actually solve?A: Preconditioning HMC means transforming your target distribution into one that's friendly to sample, but doing that well requires knowing things about the distribution, like its covariance, that sampling itself is supposed to discover. This chicken-and-egg problem is usually handled by sketching a rough estimate from a handful of early warm-up draws, which can burn a large share of total sampling time. Adrian and Eliot's paper formalizes how to make better use of a second signal, the score function, that HMC already computes for free but that Stan-style preconditioning ignores.Chapters:00:00:00 What is HMC preconditioning?00:09:03 A more robust low-rank mass matrix00:11:58 What is mass matrix adaptation?00:18:06 What does preconditioning HMC mean?00:20:57 What is normalizing flow adaptation, and when does a linear mass matrix fall short?00:23:50 When does normalizing flow adaptation actually help, and when is classic mass matrix adaptation enough?00:27:13 What is Fisher divergence?00:30:10 Why is HMC's trajectory, not its density, the right target for preconditioning?00:33:04 What are the diagonal, dense, and low-rank-plus-diagonal versions of mass matrix adaptation?00:46:25 How much faster is low-rank-plus-diagonal adaptation?00:51:07 What's the practical recommendation for using Nutpie and its mass matrix adaptation?00:54:31 Why does low-rank adaptation sometimes fail spectacularly?01:01:35 Where does this research fit in the bigger picture of HMC?01:12:12 How could centered vs. non-centered parameterization be chosen automatically?Thank you to my Patrons for making this episode possible!Links from the show here
Aug 13
1 hr 24 min
Bayesian Statistics vs. Epistemology
Today's clip is from episode 160, featuring Vaden Masrani. In this conversation, Vaden explores the tension between Bayesian statistics and Bayesian epistemology, and why he sees them as fundamentally different.He explains why Bayesian epistemology can run into problems when trying to explain where hypotheses themselves come from, and argues that an emphasis on finding supporting evidence can encourage confirmation bias rather than genuine scientific inquiry. He also discusses Hempel's paradox, Popper's idea of falsification, and why these philosophical problems don't necessarily undermine Bayesian statistics itself.Full discussion hereSupport & Resources→ Support the show on Patreon→ Bayesian Modeling Course (first 2 lessons free): Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work!
Aug 13
5 min
Bayesian Epistemology Is "Bayes' Theorem Without the Data"
Today's clip is from episode 160, featuring Vaden Masrani. In this conversation, Vaden lays out a sharp critique of Bayesian epistemology - the roughly hundred-year-old philosophical tradition, popular in some Oxford-adjacent circles, that treats subjective probability estimates as legitimate even when there's no data behind them.Vaden's core objection: doing Bayes' theorem on numbers you made up in your head is like fitting a regression line to an empty scatter plot - the math looks rigorous, but there's nothing underneath it. He argues this "math-washing" can trick people into thinking a decision is well-informed simply because it's dressed up in probability language, when frequentists and data-driven Bayesians alike would say the same thing: no data, no model.Get the full discussion hereSupport & Resources→ Support the show on Patreon→ Bayesian Modeling Course (first 2 lessons free): Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work!
Aug 7
4 min
Why Bayesians Have an Edge in AI
Today's clip is from episode 162, featuring Chris Krapu. In this conversation, Chris explains why Bayesian thinking remains surprisingly valuable in today's AI landscape - even when the models themselves aren't explicitly Bayesian.Rather than uncertainty estimation, Chris highlights a different advantage: Bayesian training provides a deep intuition for concepts like priors, sampling, rejection sampling, and high-dimensional geometry, making it much easier to understand and apply modern AI research. He also discusses why Bayesian methods are becoming increasingly relevant for evaluating agentic AI systems, where complex workflows and limited evaluation data make hierarchical models and sensible priors especially powerful.Get the full discussion hereSupport & Resources→ Support the show on Patreon→ Bayesian Modeling Course (first 2 lessons free): Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work!
Aug 3
4 min
#162 Bayesian Hydrology & GPU AI, with Christopher Krapu
Support & Resources→ Support the show on Patreon→ Bayesian Modeling Course (first 2 lessons free)Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome workTakeaways:Q: How does putting a Gaussian process on unknown coordinates fix noisy location data in mineral prospecting?A: In mining and geostatistics, the classic Gaussian process model, known there as kriging, assumes you know exactly where each sample was taken. Chris’ project broke that assumption on purpose: the recorded coordinates for each core sample were only accurate to within a rough radius. By treating the true locations as latent variables and putting a Gaussian process over them jointly with the measurements, the model could still reconstruct the underlying gold-concentration field, even though the exact sampling locations were never known precisely. It's a demonstration that Gaussian processes can absorb structural uncertainty that looks, at first glance, like it should make the problem impossible.Q: What is "Poverty Bayes," and what did it cost to train a two-million-parameter Bayesian model?A: Poverty Bayes was Chris’ experiment in seeing how cheaply a large Bayesian model could be trained using modern cloud infrastructure. He fit a hierarchical logistic regression with close to two million parameters, using PyMC's Hamiltonian Monte Carlo on a single A100 GPU rented through Modal, a serverless platform that deploys a Python script straight to GPU hardware with almost no setup. He'd originally guessed it would cost around five dollars, the price of a Big Mac, but the real bill came in an order of magnitude lower. A model that would take a Gibbs sampler weeks to run, and that once required a research lab's dedicated GPU, now costs pocket change and a few minutes of setup.Q: What's the current bottleneck in Bayesian-at-scale tooling?A: Chris argues the software has largely caught up: PyMC's JAX backend and NumPyro make GPU-accelerated Bayesian modeling work out of the box for most problems. What's missing is common knowledge. Companies are clearly running large Bayesian models in production, but the results stay behind corporate firewalls. Chris’ proposal is a community benchmark effort: which frameworks handle a million-parameter Markov random field on a given GPU out of the box, since this kind of expensive, slow-running benchmark is a poor fit for standard CI pipelines but valuable for the field to know.Chapters:22:57 When does GPU acceleration actually pay off for a Bayesian model?26:33 What did it cost to train a two-million-parameter model on Modal?30:36 What happened when Chris asked 200 different LLMs to flip a coin?34:50 Where do Bayesian ideas show up in the agentic AI systems Chris builds at Nvidia?40:16 Are statisticians being made obsolete by large language models?41:19 How does putting a Gaussian process on unknown coordinates fix noisy data in mineral prospecting?58:05 What is Chris looking forward to working on next?Thank you to my Patrons for making this episode possible!Links from the show here
Jul 28
1 hr 4 min
The Next Step Beyond LLMs: Foundation Models for Inference
Today's clip is from episode 161, featuring Luigi Acerbi. In this conversation, Luigi explains one of the biggest engineering bottlenecks facing transformer-based probabilistic models—and how his group found a way around it.The core challenge is that many inference models treat data as an unordered set, making them naturally permutation invariant. That's statistically elegant, but computationally painful: every time a new data point arrives, the model has to recompute attention over the entire dataset from scratch, preventing the kind of KV caching that makes modern language models so efficient.Luigi walks through his team's solution: a hybrid architecture that keeps the original context fully set-based while introducing a causal-attention buffer for newly arriving data. The result is dramatically faster inference- up to 100× faster in some settings - opening the door to applications like reinforcement learning, active data acquisition, and, ultimately, Luigi's long-term vision of a foundation model for Bayesian inference.Get the full discussion hereSupport & Resources→ Support the show on Patreon→ Bayesian Modeling Course (first 2 lessons free)Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work
Jul 22
5 min
Load more