# #151 Diffusion Models in Python, a Live Demo with Jonas Arruda Page: https://stenobird.com/podcast/learning-bayesian-statistics/151-diffusion-models-in-python-a-live-demo-with-jonas-arruda Text version: https://stenobird.com/podcast/learning-bayesian-statistics/151-diffusion-models-in-python-a-live-demo-with-jonas-arruda.md Podcast: [Learning Bayesian Statistics](https://stenobird.com/podcast/learning-bayesian-statistics) Published: 2026-02-12T12:30:00+00:00 Episode link: https://api.riverside.com/hosting-analytics/media/db592db4c42e5fc76c47a5ab9e20f70c63b23dd3dcbf88d9f6e44da3291b791a/eyJlcGlzb2RlSWQiOiIxYzA2YzRjYy0wNjAwLTRlYTgtYTU3ZS0wMGI4NmE3MTQzMjgiLCJwb2RjYXN0SWQiOiI3OWUwYTRmYi05N2FiLTRlOTUtYTg3NS0yNGE4YjllZTI3ZGEiLCJhY2NvdW50SWQiOiI2NDQ4M2JiZWM3ZjQ1MTFhYThjMzE1Y2QiLCJwYXRoIjoibWVkaWEvY2xpcHMvNjk4ZDQ5ZWZjN2MyNTY0ZDI0NmU3MDAzL2FsZXhhbmRyZS1hbmRvcnJhcy1zdHVkaW8tY29tcG9zZXItMjAyNi0yLTEyX180LTMzLTMubXAzIn0=.mp3 Audio file: https://api.riverside.com/hosting-analytics/media/db592db4c42e5fc76c47a5ab9e20f70c63b23dd3dcbf88d9f6e44da3291b791a/eyJlcGlzb2RlSWQiOiIxYzA2YzRjYy0wNjAwLTRlYTgtYTU3ZS0wMGI4NmE3MTQzMjgiLCJwb2RjYXN0SWQiOiI3OWUwYTRmYi05N2FiLTRlOTUtYTg3NS0yNGE4YjllZTI3ZGEiLCJhY2NvdW50SWQiOiI2NDQ4M2JiZWM3ZjQ1MTFhYThjMzE1Y2QiLCJwYXRoIjoibWVkaWEvY2xpcHMvNjk4ZDQ5ZWZjN2MyNTY0ZDI0NmU3MDAzL2FsZXhhbmRyZS1hbmRvcnJhcy1zdHVkaW8tY29tcG9zZXItMjAyNi0yLTEyX180LTMzLTMubXAzIn0=.mp3 Processing state: failed JSON: https://stenobird.com/v1/public/podcasts/learning-bayesian-statistics/episodes/151-diffusion-models-in-python-a-live-demo-with-jonas-arruda Duration seconds: 5743 ## Resource • Support & get perks ! • Proudly sponsored by PyMC Labs ! • Intro to Bayes and Advanced Regression courses (first 2 lessons free) Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work ! Chapters: 00:00 Exploring Generative AI and Scientific Modeling 10:27 Understanding Simulation-Based Inference (SBI) and Its Applications 15:59 Diffusion Models in Simulation-Based Inference 19:22 Live Coding Session: Implementing Baseflow for SBI 34:39 Analyzing Results and Diagnostics in Simulation-Based Inference 46:18 Hierarchical Models and Amortized Bayesian Inference 48:14 Understanding Simulation-Based Inference (SBI) and Its Importance 49:14 Diving into Diffusion Models: Basics and Mechanisms 50:38 Forward and Backward Processes in Diffusion Models 53:03 Learning the Score: Training Diffusion Models 54:57 Inference with Diffusion Models: The Reverse Process 57:36 Exploring Variants: Flow Matching and Consistency Models 01:01:43 Benchmarking Different Models for Simulation-Based Inference 01:06:41 Hierarchical Models and Their Applications in Inference 01:14:25 Intervening in the Inference Process: Adding Constraints 01:25:35 Summary of Key Concepts and Future Directions Thank you to my Patrons for making this episode possible! Links from the show: - Come meet Alex at the Field of Play Conference in Manchester, UK, March 27, 2026! - Jonas's Diffusion for SBI Tutorial & Review (Paper & Code) - The BayesFlow Library - Jonas on LinkedIn - Jonas on GitHub - Further reading for more mathematical details: Holderrieth & Erives - 150 Fast Bayesian Deep Learning, with David Rügamer, Emanuel Sommer & Jakob Robnik - 107 Amortized Bayesian Inference with Deep Neural Networks, with Marvin Schmitt ## Actions - request_transcript: `POST https://stenobird.com/v1/public/podcasts/learning-bayesian-statistics/episodes/151-diffusion-models-in-python-a-live-demo-with-jonas-arruda/transcription-requests` — Idempotently request low-priority transcript generation for this episode. - read_markdown: `GET https://stenobird.com/podcast/learning-bayesian-statistics/151-diffusion-models-in-python-a-live-demo-with-jonas-arruda.md` — Read the agent-friendly Markdown representation of this episode resource. A page view does not enqueue transcription. Agents should invoke `request_transcript` explicitly when they need this episode processed. ## Transcript Full transcripts are not published on public pages unless there is a clear rights basis.