# #157 Amortized Inference & BayesFlow in Practice, with Stefan Radev Page: https://stenobird.com/podcast/learning-bayesian-statistics/157-amortized-inference-bayesflow-in-practice-with-stefan-radev Text version: https://stenobird.com/podcast/learning-bayesian-statistics/157-amortized-inference-bayesflow-in-practice-with-stefan-radev.md Podcast: [Learning Bayesian Statistics](https://stenobird.com/podcast/learning-bayesian-statistics) Published: 2026-05-06T04:45:00+00:00 Episode link: https://api.riverside.com/hosting-analytics/media/db7c89f08159ca376ac59eb2ebd92d19a417209ac2b694b4644c972638c7a00e/eyJlcGlzb2RlSWQiOiJhYzg5NzY3Mi0zYzk3LTQ0NDctYTg5ZC1iZjYzZjQwMzJkNTkiLCJwb2RjYXN0SWQiOiI3OWUwYTRmYi05N2FiLTRlOTUtYTg3NS0yNGE4YjllZTI3ZGEiLCJhY2NvdW50SWQiOiI2NDQ4M2JiZWM3ZjQ1MTFhYThjMzE1Y2QiLCJwYXRoIjoibWVkaWEvY2xpcHMvNjlmYWM0YmNjMWY1OTZmYzYyMDBjMDkxL2FsZXhhbmRyZS1hbmRvcnJhcy1zdHVkaW8tY29tcG9zZXItMjAyNi01LTZfXzYtMzQtNC5tcDMifQ==.mp3 Audio file: https://api.riverside.com/hosting-analytics/media/db7c89f08159ca376ac59eb2ebd92d19a417209ac2b694b4644c972638c7a00e/eyJlcGlzb2RlSWQiOiJhYzg5NzY3Mi0zYzk3LTQ0NDctYTg5ZC1iZjYzZjQwMzJkNTkiLCJwb2RjYXN0SWQiOiI3OWUwYTRmYi05N2FiLTRlOTUtYTg3NS0yNGE4YjllZTI3ZGEiLCJhY2NvdW50SWQiOiI2NDQ4M2JiZWM3ZjQ1MTFhYThjMzE1Y2QiLCJwYXRoIjoibWVkaWEvY2xpcHMvNjlmYWM0YmNjMWY1OTZmYzYyMDBjMDkxL2FsZXhhbmRyZS1hbmRvcnJhcy1zdHVkaW8tY29tcG9zZXItMjAyNi01LTZfXzYtMzQtNC5tcDMifQ==.mp3 Processing state: failed JSON: https://stenobird.com/v1/public/podcasts/learning-bayesian-statistics/episodes/157-amortized-inference-bayesflow-in-practice-with-stefan-radev Duration seconds: 4723 ## Resource 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 work Takeaways: Q: What is simulation-based inference and what does "sim-to-real" mean? A: Simulation-based inference (SBI) uses a mechanistic simulator as an epistemic tool: you train a neural network on a large number of labeled simulations and then deploy it on real, unlabeled data. The "sim-to-real" framing captures the key asymmetry -- your network never sees real data during training, only simulations, but it generalizes to real observations at inference time. This is the opposite of the more common "synthetic-for-ML" approach, where fake data is used purely to augment real training data. Q: What is the amortized inference agent skill and what does it do? A: It's an open-source AI agent skill, co-developed by Stefan and Alexandre, that teaches an AI coding agent to run a complete, state-of-the-art amortized inference workflow. Because amortized inference is recent enough that it's underrepresented in LLM training data, vanilla agents tend to get it wrong. The skill injects the right methodology: it guides the agent to set up the simulator, choose the right network architecture, run a pilot, train with appropriate diagnostics, and produce an actionable report -- without the user needing to know the details. Q: What is calibration coverage and why should you never skip it? A: Calibration coverage tells you whether your posterior uncertainty is honest -- whether your credible intervals actually contain the true parameter at the right frequency. A model can show poor parameter recovery yet still be well-calibrated (because it's falling back on the prior), or it… ## Actions - request_transcript: `POST https://stenobird.com/v1/public/podcasts/learning-bayesian-statistics/episodes/157-amortized-inference-bayesflow-in-practice-with-stefan-radev/transcription-requests` — Idempotently request low-priority transcript generation for this episode. - read_markdown: `GET https://stenobird.com/podcast/learning-bayesian-statistics/157-amortized-inference-bayesflow-in-practice-with-stefan-radev.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.