Learning Bayesian Statistics

Learning Bayesian Statistics

By Alexandre AndorraScienceTechnology
Download on the App Store

All Learning Bayesian Statistics episodes

  • #17 Reparametrize Your Models Automatically, with Maria Gorinova

    Have you already encountered a model that you know is scientifically sound, but that MCMC just wouldn’t run? The model would take forever to run — if it ever ran — and you would be greeted with a lot of divergences in the end. Yeah, I know, my stress levels start raising too whenever I hear the word « divergences »…

    Well, you’ll be glad to hear there are tricks to make these models run, and one of these tricks is called re-parametrization — I bet you already heard about the poorly-named non-centered parametrization?

    Well fear no more! In this episode, Maria Gorinova will tell you all about these model re-parametrizations! Maria is a PhD student in Data Science & AI at the University of Edinburgh. Her broad interests range from programming languages and verification, to machine learning and human-computer interaction. 

    More specifically, Maria is interested in probabilistic programming languages, and in exploring ways of applying program-analysis techniques to existing PPLs in order to improve usability of the language or efficiency of inference.

    As you’ll hear in the episode, she thinks a lot about the language aspect of probabilistic programming, and works on the automation of various “tricks” in probabilistic programming: automatic re-parametrization, automatic marginalization, automatic and efficient model-specific inference.

    As Maria also has experience with several PPLs like Stan, Edward2 and TensorFlow Probability, she’ll tell us what she thinks a good PPL design requires, and what the future of PPLs looks like to her.

    Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work at https://bababrinkman.com/ !

    Links from the show:

    • Maria on the Web: http://homepages.inf.ed.ac.uk/s1207807/index.html
    • Maria on Twitter: https://twitter.com/migorinova
    • Maria on GitHub: https://github.com/mgorinova
    • Automatic Reparameterisation of Probabilistic Programs (Maria's paper with Dave Moore and Matthew Hoffman): https://arxiv.org/abs/1906.03028
    • Stan User's Guide on Reparameterization: https://mc-stan.org/docs/2_23/stan-users-guide/reparameterization-section.html
    • HMC for hierarchical models -- Background on reparameterization: https://arxiv.org/abs/1312.0906
    • NeuTra -- Automatic reparameterization: https://arxiv.org/abs/1903.03704
    • Edward2 -- A library for probabilistic modeling, inference, and criticism: http://edwardlib.org/
    • Pyro -- Automatic reparameterization and marginalization: https://pyro.ai/
    • Gen -- Programmable inference: http://probcomp.csail.mit.edu/software/gen/
    • TensorFlow Probability: https://www.tensorflow.org/probability/

    52 min
  • #16 Bayesian Statistics the Fun Way, with Will Kurt

    A librarian, a philosopher and a statistician walk into a bar — and they can’t find anybody to talk to; nobody seems to understand what they are talking about. Nobody? No! There is someone, and this someone is Will Kurt! 

    Will Kurt is the author of ‘Bayesian Statistics the Fun Way’ and ‘Get Programming With Haskell’. Currently the lead Data Scientist for the pricing and recommendations team at Hopper, he also blogs about stats and probability at countbayesie.com.

    In this episode, he’ll tell us how a Boston librarian can become a Data Scientist and work with Bayesian models everyday. He’ll also explain the value of Bayesian inference from a philosophical standpoint, why it’s useful in the travel industry and how his latest book came into life.

    Finally, Will is also a big fan of the “mind projection fallacy”, an informal fallacy first described by physicist and Bayesian philosopher Edwin Thompson Jaynes. Does that intrigue you? Well, stay tuned, he’ll tell us more in the episode…

    Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work at https://bababrinkman.com/ !

    Links from the show:

    • Will's Blog: https://www.countbayesie.com
    • Will on Twitter: https://twitter.com/willkurt
    • Bayesian Statistics the Fun Way -- Understanding Statistics and Probability with Star Wars, LEGO, and Rubber Ducks: https://nostarch.com/learnbayes
    • Get Programming with Haskell: https://www.amazon.com/Get-Programming-Haskell-Will-Kurt/dp/1617293768
    • The Mind Projection Fallacy: https://en.wikipedia.org/wiki/Mind_projection_fallacy
    • Probability Theory -- The Logic of Science by E.T. Jaynes: https://www.cambridge.org/core/books/probability-theory/9CA08E224FF30123304E6D8935CF1A99
    • Wittgenstein's Lectures on the Foundations of Mathematics: https://www.amazon.com/Wittgensteins-Lectures-Foundations-Mathematics-Cambridge/dp/0226904261

    1 hr 8 min
  • #15 The role of Python in Science and Education, with Michael Kennedy

    This is it folks! This is the first of the special episodes I want to do from time to time, to expand our perspective and get inspired by what’s going on elsewhere. The guests will not come directly from the Bayesian world, but will still be related to science or programming.

    For the first episode of the kind, I had the chance to chat with Michael Kennedy! Michael is not only a very knowledgeable and respected member of the Python community, he’s also the founder and host of Talk Python To Me, the most popular Python podcast. He’s the founder and chief author at Talk Python Training, where he develops many Python developer online courses. 

    And before that, Michael was a professional software trainer for over 10 years – he has taught numerous developers throughout the world! But Michael is not only an entrepreneur and teacher – he’s also a father, a husband, and a proud inhabitant of Portland, OR! 

    As you’ll hear, our conversation spanned a large array of topics — the role of Python in science and research; how it came to be so important in data science, and why; what are Python’s threats and weaknesses and how it should evolve to not become obsolete. Michael also has interesting thoughts on the role of programming in education and how it relates to geometry — but I’ll let you discover that one by yourself…

    Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work at https://bababrinkman.com/ !

    Links from the show:

    • Michael on Twitter: https://twitter.com/mkennedy
    • The Talk Python Podcast: https://talkpython.fm/
    • The Python Bytes Podcast: https://pythonbytes.fm/
    • Michael's blog: https://blog.michaelckennedy.net/
    • Michael on Crowdcast: https://www.crowdcast.io/mkennedy
    • Jupytext -- Turn Jupyter Notebooks to scripts and (R) Markdown files: https://jupytext.readthedocs.io/en/latest/introduction.html

    1 hr 6 min
  • #14 Hidden Markov Models & Statistical Ecology, with Vianey Leos-Barajas

    I bet you love penguins, right? The same goes for koalas, or puppies! But what about sharks? Well, my next guest loves sharks — she loves them so much that she works a lot with marine biologists, even though she’s a statistician! 

    Vianey Leos Barajas is indeed a statistician primarily working in the areas of statistical ecology, time series modeling, Bayesian inference and spatial modeling of environmental data. Vianey did her PhD in statistics at Iowa State University and is now a postdoctoral researcher at North Carolina State University.

    In this episode, she’ll tell us what she’s working on that involves sharks, sheep and other animals! Trying to model animal movements, Vianey often encounters the dreaded multimodal posteriors. She’ll explain why these can be very tricky to estimate, and why ecological data are particularly suited for hidden Markov models and spatio-temporal models — don’t worry, Vianey will explain what these models are in the episode!

    Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work at https://bababrinkman.com/ !

    Links from the show:

    • Vianey on Twitter: https://twitter.com/vianey_lb
    • Hidden Markov Models in the Stan User's Guide: https://mc-stan.org/docs/2_18/stan-users-guide/hmms-section.html
    • Tagging Basketball Events with HMM in Stan: https://mc-stan.org/users/documentation/case-studies/bball-hmm.html
    • HMMs with Python and PyMC3: https://ericmjl.github.io/bayesian-analysis-recipes/notebooks/markov-models/
    • The Discrete Adjoint Method -- Efficient Derivatives for Functions of Discrete Sequences (Betancourt, Margossian, Leos-Barajas): https://arxiv.org/abs/2002.00326
    • Vianey will be doing an HMM 90-minute introduction at the International Statistical Ecology Conference in June 2020: http://www.isec2020.org/
    • Stan for Ecology -- a website for the ecology community in Stan: https://stanecology.github.io/
    • LatinR 2020 -- 7th to 9th October 2020: https://latin-r.com/
    • Migramar -- Science for the Conservation of Marine Migratory Species in the Eastern Pacific: http://migramar.org/hi/en/
    • Pelagios Kakunja -- Know, educate and conserve for a sustainable sea: https://www.pelagioskakunja.org/

    Book recommendations:

    • Hidden Markov Models for Time Series: https://www.routledge.com/Hidden-Markov-Models-for-Time-Series-An-Introduction-Using-R-Second-Edition/Zucchini-MacDonald-Langrock/p/book/9781482253832
    • Handbook of Mixture Analysis:
    50 min
  • #13 Building a Probabilistic Programming Framework in Julia, with Chad Scherrer

    How is Julia doing? I’m talking about the programming language, of course! What does the probabilistic programming landscape in Julia look like? What are Julia’s distinctive features, and when would it be interesting to use it?

    To talk about that, I invited Chad Scherrer. Chad is a Senior Research Scientist at RelationalAI, a company that uses Artificial Intelligence technologies to solve business problems.

    Coming from a mathematics background, Chad did his PhD at Indiana University of Bloomington and has been working in statistics and data science for a decade now. Through this experience, he’s been using and developing probabilistic programming languages – so he’s familiar with python, R, PyMC, Stan and all the blockbusters of the field. 

    But since 2018, he’s particularly interested in Julia and developed Soss, an open-source lightweight probabilistic programming package for Julia. In this episode, he’ll tell us why he decided to create this package, and which choices he made that made Soss what it is today. But we’ll also talk about other projects in Julia, like Turing or Gen for instance.

    Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work at https://bababrinkman.com/ !

    Links from the show:

    • Chad's Website: https://cscherrer.github.io/
    • Chad on Twitter: https://twitter.com/ChadScherrer
    • Soss Package: https://github.com/cscherrer/Soss.jl
    • Soss Presentation at 2019 Strata NYC: https://slides.com/cscherrer/2019-09-26-strata#/
    • Passage -- A Parallel Sampler Generator for Hierarchical Bayesian Modeling: https://bit.ly/2UTmaYB
    • Dynamic HMC in Julia: https://github.com/tpapp/DynamicHMC.jl
    • Advanced HMC in Julia: https://github.com/TuringLang/AdvancedHMC.jl
    • Monte Carlo Measurements in Julia: https://github.com/baggepinnen/MonteCarloMeasurements.jl
    • Turing.jl -- Bayesian inference with probabilistic programming: https://turing.ml/dev/
    • Gen.jl -- Probabilistic modeling and inference in Julia: https://www.gen.dev/
    • Etalumis -- Bringing Probabilistic Programming to Scientific Simulators at Scale: https://arxiv.org/abs/1907.03382
    • Omega.jl -- A programming language for causal and probabilistic reasoning: http://www.zenna.org/Omega.jl/latest/
    • JuliaLang -- The Ingredients for a Composable Programming Language: https://white.ucc.asn.au/2020/02/09/whycompositionaljulia.html
    • Simpy -- Discrete event simulation for Python:
    44 min
  • #12 Biostatistics and Differential Equations, with Demetri Pananos

    Do you know Google Summer of Code? It’s a time of year when students can contribute to open-source software by developing and adding much needed functionalities to the open-source package of their choice. And Demetri Pananos did just that.

    He did it in 2019 with PyMC3, for which he developed the API for ordinary differential equations. In this episode, he’ll tell us why and how he did that, what he learned from the experience, and what the strengths and weaknesses of the API are in his opinion.

    Demetri is a Ph.D candidate in Biostatistics at Western University, in Ontario, Canada. His research interests surround machine learning and Bayesian statistics for personalized medicine. He earned his Master’s in Applied Mathematics from The University of Waterloo and is a firm believer in open science, interdisciplinary collaboration, and reproducible research. 

    Other than that, he loves plotting data and drinking IPA beer – well, who doesn’t?”

    Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work at https://bababrinkman.com/ !

    Links from the show:

    • Demetri on Twitter: https://twitter.com/PhDemetri
    • Demetri on GitHub: https://github.com/Dpananos
    • Demetri's website: https://dpananos.github.io/
    • PyMC3, Probabilistic Programming in Python: https://docs.pymc.io/
    • Chris Bishop, Pattern Recognition and Machine Learning: https://www.amazon.fr/Pattern-Recognition-Machine-Learning-Christopher/dp/0387310738
    • Bayesian Data Analysis (Gelman, Carlin, Stern, Dunson, Vehtari, Rubin): http://www.stat.columbia.edu/~gelman/book/
    • Parallel Plots: https://arviz-devs.github.io/arviz/generated/arviz.plot_parallel.html

    47 min
  • #11 Taking care of your Hierarchical Models, with Thomas Wiecki

    I bet you already heard about hierarchical models, or multilevel models, or varying-effects models — yeah this type of models has a lot of names! Many people even turn to Bayesian tools to build _exactly_ these models. But what are they? How do you build and use a hierarchical model? What are the tricks and classical traps? And even more important: how do you _interpret_ a hierarchical model?

    In this episode, Thomas Wiecki will come to the rescue and explain what multilevel models are, how to build them, what their powers are… but also why you should be very careful when building them…

    Does the name Thomas Wiecki ring a bell? Probably because he’s the host and creator of the PyData Deep Dive Podcast, where he interviews open-source contributors from the Python and Data Science worlds! Thomas is also the VP of Data Science at Quantopian, a crowd-sourced quantitative investment firm that encourages people everywhere to write investment algorithms.

    Finally, Thomas is a longtime Bayesian and core-developer of PyMC3, a fantastic python package to do probabilistic programming in Python. On his blog, he publishes tutorial articles and explores new ideas such as Bayesian Deep Learning. Caring a lot about open-source software sustainability, he puts all he’s up to on his Patreon page, that you’ll find in the show notes.

    Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work at https://bababrinkman.com/ !

    Links from the show:

    • Thomas’ series on Hierarchical Regression: https://twiecki.io/blog/2013/08/12/bayesian-glms-1/
    • Non-centered Parametrization with PyMC3: https://twiecki.io/blog/2017/02/08/bayesian-hierchical-non-centered/
    • Using Bayesian Decision Making: https://twiecki.io/blog/2019/01/14/supply_chain/
    • PyMC3 - Probabilistic Programming in Python: https://docs.pymc.io/
    • Symbolic PyMC: https://pymc-devs.github.io/symbolic-pymc/
    • PyData Deep Dive Podcast: https://pydata-podcast.com
    • Thomas on Twitter: https://twitter.com/twiecki?lang=en
    • Thomas on Patreon: https://www.patreon.com/twiecki
    • Thomas on GitHub: https://github.com/twiecki
    • Alex’s Hierarchical Model of Elections in Paris: https://mybinder.org/v2/gh/AlexAndorra/pollsposition_models/master?urlpath=%2Fvoila%2Frender%2Fdistrict-level%2Fmunic_model_analysis.ipynb

    59 min
  • #10 Exploratory Analysis of Bayesian Models, with ArviZ and Ari Hartikainen

    How do you handle your MCMC samples once your Bayesian model fit properly? Which diagnostics do you check to see if there was a computational problem? And isn’t that nice when you have beautiful and reliable plots to complement your analysis and better understand your model?

    I know what you think: plotting can be long and complicated in these cases. Well, not with ArviZ, a platform-agnostic package to do exploratory analysis of your Bayesian models. And in this episode, Ari Hartikainen will tell you why.

    Ari is a data-scientist in geophysics and a researcher at the Department of Civil Engineering of Aalto University in Finland. He mainly works on geophysics, Bayesian statistics and visualization. 

    Ari’s also a prolific open-source contributor, as he’s a core-developer of the popular Stan and ArviZ libraries. He’ll tell us how PyStan interacts with ArviZ, what he thinks ArviZ most useful features are, and which common difficulties he encounters with his models and data.

    Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work at https://bababrinkman.com/ !

    Links from the show:

    • Ari on GitHub: https://github.com/ahartikainen
    • Ari on Twitter: https://twitter.com/a_hartikainen
    • ArviZ -- Exploratory analysis of Bayesian models: https://arviz-devs.github.io/arviz/
    • Introductory paper of ArviZ in The Journal of Open Source Software: https://www.researchgate.net/publication/330402908_ArviZ_a_unified_library_for_exploratory_analysis_of_Bayesian_models_in_Python
    • Stan -- Statistical Modeling Platform: https://mc-stan.org/
    • GPflow -- Gaussian processes in TensorFlow: https://www.gpflow.org/
    • GPy -- Gaussian processes framework in Python: https://sheffieldml.github.io/GPy/

    45 min
  • #9 Exploring the Cosmos with Bayes and Maggie Lieu

    Have you always wondered what dark matter is? Can we even see it — let alone measure it? And what would discover it imply for our understanding of the Universe?

    In this episode, we’ll take look at the cosmos with Maggie Lieu. She’ll tell us what research in astrophysics is made of, what model she worked on at the European Space Agency, and how Bayesian the world of space science is.

    Maggie Lieu did her PhD in the Astronomy & Space Department of the University of Birmingham. She’s now a Research Fellow of Machine Learning & Cosmology at the University of Nottingham and is working on projects in preparation for Euclid, a space-based telescope whose goal is to map the dark Universe and help us learn about the nature of dark matter and dark energy.

    In a nutshell, she tries to help us better understand the entire cosmos. Even more amazing, she uses the Stan library and applies Bayesian statistical methods to decipher her astronomical data! But Maggie is not just a Bayesian astrophysicist: she also loves photography and rock-climbing!

    Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work at https://bababrinkman.com/ !

    Links from the show:

    • Maggie's Website: https://maggielieu.com/
    • Maggie's Google Scholar Page: https://scholar.google.co.uk/citations?user=ilfwfuUAAAAJ&hl=en
    • Maggie on Twitter: https://twitter.com/Space_Mog
    • Maggie on GitHub: https://github.com/MaggieLieu
    • Maggie on YouTube: https://www.youtube.com/channel/UClO6TuRE6XLzbMBmQ_KY38A
    • Stan -- Statistical Modeling Platform: https://mc-stan.org/
    • Stan's YouTube Channel: https://www.youtube.com/channel/UCwgN5srGpBH4M-Zc2cAluOA

    54 min
  • #8 Bayesian Inference for Software Engineers, with Max Sklar

    What is it like using Bayesian tools when you’re a software engineer or computer scientist? How do you apply these tools in the online ad industry? 

    More generally, what is Bayesian thinking, philosophically? And is it really useful in every day life? Because, well you can’t fire up MCMC each time you need to make a quick decision under uncertainty… So how do you do that in practice, when you have at most a pen and paper?

    In this episode, you’ll hear Max Sklar’s take on these questions. Max is a software engineer with a focus on machine learning and Bayesian inference. Now working at Foursquare’s innovation lab, he recently led the development of a causality model for Foursquare’s Ad Attribution product and taught a course on Bayesian Thinking at the Lviv Data Science Summer School.

    Max is also an open-source enthusiast and a fellow podcaster – he’s the host of the Local Maximum podcast, where you can hear every week about the latest trends in AI, machine learning and technology from an engineering perspective.

    Ow, and if you liked the movie « Her », with Joaquin Phoenix, well you’re in for a treat at the end of this episode…

    Our theme music is « Good Bayesian », by Baba Brinkman (feat MC Lars and Mega Ran). Check out his awesome work at https://bababrinkman.com/ !

    Links from the show:

    • Local Maximum podcast website: https://www.localmaxradio.com
    • Max on Twitter: https://twitter.com/maxsklar
    • Bayesian linear models: https://github.com/maxsklar/BayesPy/tree/master/LinearModels
    • Bayesian Dirichlet-Multinomial estimation: https://github.com/maxsklar/BayesPy/tree/master/DirichletEstimation
    • Bayesian Thinking for Applied Machine Learning slides: https://docs.google.com/presentation/d/1eiceuvXlsoFKoHdqjF3qXBkyht7vR0YXQPG82ady-TU/edit?usp=sharing

    49 min