
Foundations
Pattern Recognition and Machine Learning
Christopher M. Bishop · Springer · 2006
The argument
Bishop teaches machine learning as probabilistic inference. Pattern recognition, regression and classification are all treated as problems of modeling uncertainty, and the book takes a Bayesian view throughout. According to the publisher it was the first machine learning textbook to cover probabilistic graphical models and deterministic inference methods comprehensively.
How the book is built
- 01
Foundations
Chapters 1 and 2
Chapter 1 uses polynomial curve fitting as a running example, then covers probability theory (including Bayesian probabilities and Bayesian curve fitting), model selection, the curse of dimensionality, decision theory and information theory. Chapter 2 builds the toolkit of distributions: binary and multinomial variables with beta and Dirichlet priors, the Gaussian in depth, the exponential family with conjugate and noninformative priors, and nonparametric methods.
- 02
Linear models
Chapters 3 and 4
Linear basis function models for regression, the bias-variance decomposition, Bayesian linear regression, Bayesian model comparison and the evidence approximation. Classification follows with discriminant functions (including Fisher's linear discriminant and the perceptron), probabilistic generative and discriminative models, logistic regression, the Laplace approximation and Bayesian logistic regression.
- 03
Neural networks and kernel methods
Chapters 5 to 7
Chapter 5 treats neural networks: network functions, training, error backpropagation, the Hessian, regularization (early stopping, invariances, tangent propagation, convolutional networks) and Bayesian neural networks. Chapter 6 covers kernel methods including Gaussian processes, and Chapter 7 sparse kernel machines, including maximum margin classifiers.
- 04
Graphical models and inference
Chapters 8 to 11
Graphical models, mixture models and EM, approximate inference (variational methods) and sampling methods. This is the part that sets the book apart from other textbooks of its time.
- 05
Latent variables, sequences and combining models
Chapters 12 to 14
Continuous latent variables (PCA and its probabilistic versions), sequential data, and combining models. The appendices cover data sets, probability distributions, matrix properties, calculus of variations and Lagrange multipliers.
Concepts worth keeping
Bayesian view of probability
Probabilities express degrees of belief, and learning updates a prior into a posterior. Chapter 1 introduces it through curve fitting, and later chapters apply it to regression, classification and neural networks.
Bias-variance decomposition
Chapter 3 splits expected error into bias and variance, which gives a precise way to think about under- and overfitting.
Evidence approximation
Chapter 3 shows how to choose model complexity and hyperparameters from the data using the marginal likelihood, without a held-out set.
Kernels and Gaussian processes
Chapter 6 reframes prediction in terms of similarity between data points, and develops Gaussian processes for regression and classification.
Graphical models
Chapter 8 uses graphs to describe how variables depend on each other, which makes inference algorithms easier to read and derive.
Expectation maximization and variational inference
Chapters 9 and 10 give the standard methods for fitting models with latent variables when exact inference is not possible.
What the author concludes
The book ends by showing how models can be combined (Chapter 14), after covering the main families one by one. Its message is that most methods in machine learning are variations on a small number of probabilistic ideas, and that understanding those ideas lets you derive and compare methods instead of memorizing them.
Limits to keep in mind
- It was published in 2006. Deep learning, as the field means it now, gets only one chapter on neural networks, and there is nothing on transformers or modern generative models.
- It demands comfort with linear algebra, calculus and probability. The publisher describes it as aimed at advanced undergraduates and first-year PhD students.
- It has 431 exercises and little code, so it teaches derivations well and implementation less.
What I take into AI engineering work
- When a model behaves strangely, reason about it as a probabilistic model: what is the likelihood, what is the prior, and what is being approximated.
- Use the bias-variance and model comparison material to decide how much model complexity a dataset can support.
- Keep Gaussian process and kernel ideas in mind for small-data problems where uncertainty estimates matter.
- Use the chapters on graphical models and variational inference as the vocabulary for reading papers on latent-variable and generative models.
Sources
My note
The idea that stands out is treating learning as probabilistic inference, so uncertainty is part of the model and not an afterthought. Linear models, kernels and neural networks read as variations on how a model builds its features. Graphical models make independence assumptions visible, and approximate inference is what makes the principled approach usable.
Next bookReinforcement Learning