1. Home
  2. Explore
  3. Statistics
  4. Learning Bayesian Statistics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Learning Bayesian Statistics

Speaker 1Speaker 2

Learning Bayesian Statistics

10:47
0:00-10:47
  1. Simon

    Today we’re following Ali’s journey into Bayesian statistics: first encountering it in a demanding machine-learning course, then returning to it through teaching, practical work, and more approachable learning resources. The story is useful because it shows that understanding a subject can take more than one pass—and that the way you learn it matters.

  2. Hope

    Ali’s first exposure came during a master’s in artificial intelligence at the University of Edinburgh in 2015. The machine learning and pattern recognition course had a reputation for being difficult; the previous year’s average mark was low, and about half the students reportedly didn’t pass. Ali later felt grateful for taking it anyway, even though the experience was initially bewildering.

  3. Simon

    The course was taught by Ian Murray and Chris Williams, whose work was closely connected to the material. Murray’s research included Markov chain Monte Carlo, and Williams was known for Gaussian processes for machine learning. But impressive expertise and a rigorous course didn’t automatically make the material easy for Ali to absorb.

  4. Hope

    That’s an important distinction: being taught by knowledgeable researchers doesn’t mean a student will immediately understand what they’re teaching. Ali had studied computer science as an undergraduate, with more emphasis on programming and discrete mathematics, and had gone several years without using calculus and statistics. So the mathematical foundations felt unfamiliar again.

  5. Simon

    Ali describes looking at course slides and not knowing what the figures meant. Terms such as likelihood, prior, and posterior felt like ciphers, and even attractive diagrams didn’t help much at first. Ali copied them into a notebook in the hope they would make sense later—but at that point, there was little understanding behind the notes.

  6. Hope

    The same was true of Bayesian linear regression diagrams: Ali was fascinated by all the lines and curves, and that visual appeal became a motivation to keep studying. It wasn’t necessarily a deep technical reason to begin with, but it gave Ali something to be curious about. Sometimes a small spark of interest can keep you engaged before the concepts click.

  7. Simon

    As the course progressed, it covered sampling methods, including rejection sampling, importance sampling, and Markov chain Monte Carlo. Ali understood one piece—that you can estimate an expected value by averaging over samples—but concepts such as ergodicity and Markov chains still felt alien. Hamiltonian Monte Carlo and other technical terms added to the sense of being lost.

  8. Hope

    Then the material moved into variational inference, energy-based models, and free energy, including ideas drawn from statistical physics. Gaussian processes came up too, and Ali says they still weren’t fully understood even later on. The point isn’t that every concept became effortless; it’s that partial understanding can be a starting point for future learning.

  9. Simon

    Ali also began the course associating Bayesian statistics with Naive Bayes, then realized that the broader Bayesian framework is not the same thing as the Naive Bayes classifier. The name can create a misleading impression. Learning Bayesian statistics means engaging with a much wider set of ideas than one particular model.

  10. Hope

    Despite studying for countless hours, Ali did not do well on the exam: the final mark was below average. But Ali passed, graduated a few months later, and later looked back on the course as an important beginning. A disappointing result didn’t erase the value of the experience or prevent a return to the subject.

  11. Simon

    After graduation, Ali became a young lecturer at Universitas Al Azhar Indonesia, teaching artificial intelligence, data mining, and pattern recognition, as well as some basic probability. Teaching neural networks, deep learning, linear classifiers, and support vector machines created opportunities to revisit machine learning and statistics. It became a way to review old material and learn more.

  12. Hope

    Ali had also taken a more introductory applied machine-learning course during the master’s. Its mathematics was less rigorous than the challenging machine-learning and pattern-recognition course, and Ali found the explanations clearer and easier to follow. Still, understanding machine-learning techniques without feeling secure about probability and statistics left Ali dissatisfied—and curious about how to move further into Bayesian machine learning.

  13. Simon

    About a year into teaching, Ali joined AB Rooms, a hospitality startup with a business model similar to OYO Rooms. The work involved helping with strategic decisions, especially using marketing and pricing data. The practical setting gave Ali real questions to connect with statistical ideas.

  14. Hope

    One early resource was a talk by J. Founder Plus comparing frequentist and Bayesian approaches. It helped clarify some of the high-level discussion, but didn’t answer everything: Ali still found some ideas hard to grasp because the talk focused mainly on the broad comparison. That’s a useful reminder that an introduction can open a door without taking you all the way through it.

  15. Simon

    A major turning point was Cameron Davidson-Pilon’s book, Bayesian Methods for Hackers. Ali especially valued its simple, relatable examples and its hacker-first approach: the book includes code that readers can run and experiment with. Instead of demanding every technical detail up front, it often starts with an application and lets the underlying ideas unfold.

  16. Hope

    That structure is a top-down approach. You meet a use case first, and the theory develops around it, rather than beginning with all the foundations and proofs. For Ali, that made Bayesian methods easier to approach than a theory-first course. The book also used PyMC3, a probabilistic programming library whose design Ali particularly liked—while acknowledging that familiarity with a first tool may have influenced that preference.

  17. Simon

    One example in the book asks when the expected number of text messages received changes. It’s a change-point question: when did the pattern shift? Ali points out that similar questions arise in many everyday datasets, such as the number of tweets or electricity usage. The example offered a way to practice on a relatable problem and then try the same kind of reasoning with your own data.

  18. Hope

    Another example involved ordering Reddit submissions using information such as their upvote ratios. That helped Ali think about a work problem at AB Rooms: ranking properties by review scores. Properties can have different numbers of reviews and different scores, so the challenge is how to compare and rank them fairly. A worked example from the book provided a bridge from learning to an applied business question.

  19. Simon

    Ali used Bayesian methods for other work too, including Bayesian optimal pricing, and wrote a technical blog post about Bayesian inference with PyMC3. A blog post by Chad Schard introduced Bayesian workflow and diagnostics. Ali also gave a company talk and advocated using Bayesian methods with colleagues. These activities turned learning into practice, explanation, and discussion.

  20. Hope

    Looking back, Ali contrasts two learning styles. The machine-learning and pattern-recognition course was theory-first and bottom-up: it emphasized mathematical foundations, detailed inference, and sampling methods. Bayesian Methods for Hackers was more application-first and top-down, with executable examples that readers could explore before taking on all the technical details.

  21. Simon

    Ali didn’t stop with the book, though. Relearning Bayesian methods also meant strengthening probability and statistics. One resource was Stanford’s CS109, Probability for Computer Scientists, which Ali found accessible and tailored to computer-science students. Ali especially praised the course slides and their relatable examples.

  22. Hope

    Ali also recommended Harvard’s Stat 110 course by Joe Blitzstein, along with the associated book, which is available free online. The recommendation wasn’t just to watch lectures: Ali encouraged working through exercises too. Practice helps turn a clear explanation into something you can actually use.

  23. Simon

    Another resource was Richard McElreath’s lecture series and book, Statistical Rethinking—called Statistical Thinking in Ali’s account. It presents Bayesian statistics from the beginning using examples from evolutionary anthropology. The course uses R and McElreath’s own package, but Ali noted that people had ported code to PyMC3 and also tried porting examples personally as an exercise.

  24. Hope

    Ali also pointed learners toward the example notebooks and discussion forum for PyMC3. Notebooks can show how ideas work in code, while a discussion space gives you somewhere to ask questions and compare ideas with other learners. Together, those resources extend learning beyond reading or watching a lecture.

  25. Simon

    Eventually Ali could look at a slide that had once seemed unreadable and understand it. That moment mattered—not because every advanced topic had become completely mastered, but because the foundations and examples had accumulated enough to make the material meaningful. Ali describes learning to see problems through a Bayesian perspective, almost like looking through a different pair of glasses.

  26. Hope

    So what should a learner take from the journey? First, find a motivation that fits your own experience. Ali’s motivation came partly from practical examples and the wish to connect machine learning with probability and statistics. Real cases can be a helpful introduction before a deep dive into theory.

  27. Simon

    Second, choose resources that suit how you learn. If mathematical derivations feel comfortable, theory-rich books such as Kevin Murphy’s machine-learning text or David MacKay’s information-theory book may be rewarding. If you need examples and code to make ideas concrete, Ali suggests Bayesian Methods for Hackers or Statistical Rethinking as more approachable starting points.

  28. Hope

    And third, try things out. Experiment with code, adapt examples to your own data, do exercises, and discuss the ideas with other people. For Ali, learning by teaching was especially effective: explaining probability and machine learning to students helped clarify the concepts and how they fit together.

  29. Simon

    That’s the heart of Ali’s story: a difficult first encounter did not have to be the final word. A change of approach, stronger foundations, practical questions, and teaching all helped make Bayesian statistics more understandable over time.

  30. Hope

    And if the material feels hard right now, Ali’s closing thought is reassuring: this too shall pass, probably. Find a reason to keep going, use resources that meet you where you are, and give yourself chances to practice. Understanding can grow through repeated encounters.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent