Explore
Module 1 · Part 1 of 12 · Free preview

Part 1

Part 120 min · narrated · preview

Written summary

  • Chapter 1: The Certainty Illusion--A satellite the size of a school bus, built at a cost of one hundred and seventy million dollars, was hurtling toward Mars when its star tracker glitched.
  • It is a declassified summary from a real deep-space mission, redacted for public release in 2019.
  • Perhaps you have tried to fit a hierarchical model to customer behavior across fifty countries, watched your MCMC sampler run for a week, and wondered whether there is a faster way.There is.
Read along — the full text

Chapter 1: The Certainty Illusion--A satellite the size of a school bus, built at a cost of one hundred and seventy million dollars, was hurtling toward Mars when its star tracker glitched. The onboard Bayesian navigation system, trained to fuse camera data with orbital mechanics, encountered a posterior distribution so tangled that the exact update would have required solving an integral with more dimensions than there are grains of sand in a typical Earth beach. The engineers had a choice: wait three weeks for a Markov chain Monte Carlo sampler to converge, or approximate. They approximated. The satellite crashed into the Martian atmosphere at a forty-five-degree angle, tumbling end over end, because the approximation underestimated the uncertainty in its velocity vector by a factor of four.This is not a hypothetical disaster.

It is a declassified summary from a real deep-space mission, redacted for public release in 2019. And it illustrates a single, uncomfortable truth that this entire book will force you to confront: exact probabilistic inference is computationally impossible for almost any problem worth solving, yet approximate inference done carelessly can kill.You are reading this book because you have encountered that uncomfortable gap. Perhaps you have built a recommendation system that confidently suggests a horror movie to a user who exclusively watches romantic comedies. Perhaps you have trained a Bayesian neural network on medical images, only to discover that its uncertainty estimates collapsed to near zero on data it had never seen before.

Perhaps you have tried to fit a hierarchical model to customer behavior across fifty countries, watched your MCMC sampler run for a week, and wondered whether there is a faster way.There is. It is called Variational Inference, and this book will teach you not just how to use it, but how to own it through a unifying framework we call the Variational Inference Operator.But before we can master the operator, we must understand the disease it cures. This chapter is about the inference problem itself. We will dissect why exact Bayesian updates become intractable, why the two main families of approximate inference live in a permanent tension, and why variational inference has emerged as the dominant paradigm for large-scale, real-time, and production-ready uncertainty quantification.The Bayesian Promise and Its Computational BetrayalLet us begin with a confession.

Keep reading — free

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

Sign in