Explore
Module 1 · Part 1 of 12 · Free preview

Part 1

Chapter 1: The Intractable Abyss--– In the winter of 1953, a group of scientists at Los Alamos National Laboratory faced a problem that would, within decades, reshape the entire landscape of statistics, machine learning, and artificial intelligence. They were not trying to build a better regression model or optimize a recommendation engine. They were trying to simulate the behavior of neutrons as they traveled through fissile material—a problem of life-and-death importance for the design of nuclear weapons. The equations governing neutron transport were well-understood in principle, but they involved high-dimensional integrals over impossibly complex geometries.

No analytic solution existed. No computer of the era could perform the necessary numerical integration by brute force. The scientists were, to use a term that would later become fashionable, facing an intractable distribution.This book is about a single mathematical operator—the Gibbs sampling operator—that has become one of the most powerful tools ever devised for escaping such abysses. But before we can understand the operator, before we can implement it, debug it, or extend it, we must first understand the nature of the problem it was designed to solve. That problem, simply stated, is this: how do we compute expectations or draw inferences from probability distributions that we cannot write down in closed form?1.1 The Curse of the Unknown NormalizerEvery probability distribution over a discrete or continuous state space can be written in a canonical form.

For a discrete random variable XXX taking values in some set X\mathcal{X}X, we might write:p(x)=p~(x)Zp(x) = \frac{\tilde{p}(x)}{Z}p(x)=Zp~​(x)​where p~(x)≥0\tilde{p}(x) \geq 0p~​(x)≥0 is an unnormalized density or mass function, andZ=∑x∈Xp~(x)Z = \sum_{x \in \mathcal{X}} \tilde{p}(x)Z=x∈X∑​p~​(x)is the normalizing constant, also called the partition function in statistical physics. For continuous variables, the sum becomes an integral:Z=∫Xp~(x) dxZ = \int_{\mathcal{X}} \tilde{p}(x) \, dxZ=∫X​p~​(x)dxFor a Bayesian statistician, p~(x)\tilde{p}(x)p~​(x) might be the product of a prior and a likelihood: p(θ)×p(data∣θ)p(\theta) \times p(\text{data} \mid \theta)p(θ)×p(data∣θ).

Keep reading — free

Sign in with your SamEnrico account to read the whole of lesson 1.

Sign in