Probabilistic Programming (Spring 2025)
Official course description, subject to change:
Course info
Programme
Staff
Course semester
Exam
Abstract
This course introduces basics of Bayesian statistics, Bayesian data analysis, Bayesian learning, and the programming tools that enable automation of these methods. The course emphasizes programmable statistical methods over pen and pencil analytics.Description
Bayesian statistics and probabilistic programming are believed to be the proper foundation for development and industrialization of next generation of AI systems. Bayesian statistics gives a well defined theoretical basis, that is analytically understandable, while probabilistic programming gives an instrument of automation, needed for proper industrialization of the method.
This course introduces basics of Bayesian statistics, Bayesian data
analysis, Bayesian learning, Bayesian Hypothesis testing, and the programming tools that enable
automation of these methods. We will cover Bayesian reasoning and diagnosis and build models of concrete examples. We will learn several sampling methods and apply them to problems at hand. The course emphasizes programmable
statistical methods over pen and pencil analytics. Every week we solve a programing exercise associated with the topic of the lecture.
We will study Bayesian Analysis using an established textbook. For each chapter we will implement examples and exercises of models and analyses using Python's PyMC framework - probably the most popular probabilistic library today. Occasionally we will show examples of other probabilistic programming languages to illustrate concepts.
Formal prerequisites
- You need to be a confident programmer in object-oriented and functional programming styles
- You should know basic probability theory at high-school level (concepts like discrete probability, or normal distribution). We will recall all the necessary notions in the course, but we will not provide a systematic course on probability theory. You may consider taking Linear Algebra and Probability in parallel, if you lack a systematic exposition to these topics.
- You should know Python, or be willing to learn it fast (learning Python fast is possible). We will spend only one class explaining the basics of Python, so if you do not know Python before taking the course, you will have to pick it up by yourself. Python is a language with a low barrier of entry, but you are recommended to start learning it before the class begins, if you have no experience.
Intended learning outcomes
After the course, the student should be able to:
- Identify applications of Bayesian analysis
- Formulate Bayesian Models
- Implement construction of Bayesian Models using a probabilistic programming framework (PyMC) in Python
- Learn model parameters from data
- Explain differences between sampling algorithms, select, and use an appropriate inference algorithm
- Evaluate the models, inference, and learning queries experimentally
- Test your probabilistic programs
Ordinary exam
Exam type:D: Submission of written work with following oral, External (7-point scale)
Exam variation:
D1G: Submission for groups with following oral exam based on the submission. Shared responsibility for the report.