Official course description:
Full info last published 15/11-19

### Probabilistic Programming

##### Course info
Language:
English
ECTS points:
7.5
Course code:
KSPRPRO1KU
Participants max:
15
Offered to guest students:
no
Offered to exchange students:
Offered as a single subject:
no
##### Programme
Level:
MSc. Master
Programme:
MSc in Computer Science
Course manager
Full Professor
Teacher
Postdoc
Semester
Forår 2020
Start
27 January 2020
End
31 August 2020
##### 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 PyMC3 framework - probably the most popular probabilistic library today. Occasionally we will show examples of other probabilistic programming languages to illustrate concepts.

This is a pilot course in a development stage, opened to a small group of students.

##### 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 PyMC3 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
##### Learning activities

• About 10 lectures on probabilistic Bayesian modeling and programming. The lectures are an opportunity to reflect on the prescribed reading material and to engage in a discussion on this topic.
• About 10 exercise session on building models and programming analyses.  The major part of the learning takes part in the exercises and the associated home works, as this is a programming skill oriented course.
• About 10 home works: each exercise is supposed to be continued in self-study homework style after the exercises.  Group-work and individual study is permitted.

##### Course literature

John Kruschke. Doing Bayesian Data Analysis. Academic Press 2015 (2nd edition)

Supporting material: Bayesian Methods for Hackers; available at: https://nbviewer.jupyter.org/github/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/blob/master/Prologue/Prologue.ipynb

##### Student Activity Budget
Estimated distribution of learning activities for the typical student
• Preparation for lectures and exercises: 27%
• Lectures: 11%
• Exercises: 31%
• Project work, supervision included: 31%
##### Ordinary exam
Exam type:
C: Submission of written work, external (bestået/ikke bestået)
Exam variation:
CG: Submission of written work for groups.
Exam submisson description:
The exam submission will include code and report text
Group submission:
Group
• Group size: 1-3 students.

##### Time and date
Ordinary Exam - submission Mon, 11 May 2020, 08:00 - 14:00
Reexam - submission Wed, 8 Jul 2020, 08:00 - 14:00