---
format: "aidr-story-markdown/v1"
id: "751eda46e59a03ee8589cf847de40f1ad49cce27fdcb39a2483fe5d937eb44dc"
canonical_url: "https://aidr.today/751eda46?lang=en"
title: "An Introduction to Probabilistic Programming (2021)"
lang: "en"
requested_lang: "en"
available_langs: ["en"]
translation_fallback: null
fallback_fields: []
published_at: "2026-11-30T18:47:51.000Z"
category: "Research"
topics: ["inference"]
source_urls: ["https://arxiv.org/abs/1809.10756","https://lobste.rs/s/qtjgym/introduction_probabilistic"]
summary: "This book is a graduate-level introduction to probabilistic programming. It not only provides a thorough background for anyone wishing to use a probabilistic programming system, but also introduces the techniques needed to design and build these systems. It is aimed at people who have an undergraduate-level understanding of either or, ideally, both probabilistic machine learning and programming languages. We start with a discussion of model-based reasoning and explain why conditioning is a foundational computation central to the fields of probabilistic machine learning and artificial intelligence. We then introduce a first-order probabilistic programming language (PPL) whose programs correspond to graphical models with a known, finite, set of random variables. In the context of this PPL we introduce fundamental inference algorithms and describe how they can be implemented. We then turn to higher-order probabilistic programming languages. Programs in such languages can define models with dynamic computation graphs, which may not instantiate the same set of random variables in each execution. Inference requires methods that generate samples by repeatedly evaluating the program. Foun…"
---

# An Introduction to Probabilistic Programming \(2021\)

> [Open the canonical story](<https://aidr.today/751eda46?lang=en>)

**Published:** 2026-11-30T18:47:51.000Z
**Category:** Research
**Topics:** inference

## Summary

This book is a graduate\-level introduction to probabilistic programming\. It not only provides a thorough background for anyone wishing to use a probabilistic programming system, but also introduces the techniques needed to design and build these systems\. It is aimed at people who have an undergraduate\-level understanding of either or, ideally, both probabilistic machine learning and programming languages\. We start with a discussion of model\-based reasoning and explain why conditioning is a foundational computation central to the fields of probabilistic machine learning and artificial intelligence\. We then introduce a first\-order probabilistic programming language \(PPL\) whose programs correspond to graphical models with a known, finite, set of random variables\. In the context of this PPL we introduce fundamental inference algorithms and describe how they can be implemented\. We then turn to higher\-order probabilistic programming languages\. Programs in such languages can define models with dynamic computation graphs, which may not instantiate the same set of random variables in each execution\. Inference requires methods that generate samples by repeatedly evaluating the program\. Foun…

## Sources

- [Story source](<https://arxiv.org/abs/1809.10756>)
- [Discussion](<https://lobste.rs/s/qtjgym/introduction_probabilistic>)

