About this book
Pattern Recognition and Machine Learning was published by Springer in 2006. Its author, Christopher M. Bishop, was then a senior researcher at Microsoft Research in Cambridge, England. The book is a graduate-level textbook. It is long, mathematical and carefully illustrated, and it quickly became one of the standard references in the field. Students often call it simply PRML, or just Bishop.
The book sets out to teach machine learning as a single subject held together by probability. Bishop's question is not only how to make a machine learn from data, but how to do so in a way that is principled, honest about uncertainty, and unified. He wants the reader to see that a long list of separate techniques, from fitting a straight line to recognising speech, are applications of one set of ideas.
Who it was written for
The intended reader is a graduate student or advanced undergraduate in computer science, engineering, statistics or physics, or a researcher moving into machine learning from another field. Bishop assumes comfort with calculus, linear algebra and basic probability. He does not assume prior study of machine learning. He includes appendices that summarise useful results, so that a determined reader can fill gaps as they arise.
The book was also written with teachers in mind. It has many exercises, graded by difficulty, and a large set of colour figures designed to make abstract ideas visible. It suits a two-semester course, or a single course that selects chapters.
The situation in 2006
When the book appeared, machine learning had recently grown into its own discipline, between statistics and computer science. Neural networks had gone through a boom in the late 1980s and early 1990s and had then cooled. Support vector machines and other kernel methods were at their height. Probabilistic graphical models, which combine graphs with probability, had become a central framework, and the Bayesian approach was spreading fast. Deep learning, in the form that would dominate after 2012, was still a small research thread.
PRML captures this moment with unusual completeness. It treats neural networks seriously but as one model among several. It gives kernel methods full treatment. And it places the probabilistic, largely Bayesian view at the centre, as the frame in which everything else is understood.
What makes it distinctive
Several books cover similar ground. Bishop's is distinctive in three ways. First, it is consistent. Almost every method is introduced as a probability model, and its learning is described as inference in that model. Second, it is visual. The figures are not decoration. They show distributions, decision boundaries, posterior beliefs narrowing as data arrives, and the progress of algorithms step by step. Third, it is careful. Derivations are complete, notation is stable from chapter to chapter, and assumptions are stated.
The result is a book that teaches a way of thinking, not only a set of techniques. A reader who works through it learns to ask of any method: what probability model is this, what does it assume, and what would the Bayesian treatment of it look like?
The author
Christopher Bishop was born in 1959 in England. He studied physics at the University of Oxford and went on to a doctorate in theoretical physics at the University of Edinburgh, working on quantum field theory. His early career was not in computing at all.
From physics to learning
After his doctorate he joined the Culham Laboratory, the British centre for research on nuclear fusion, and worked on the theory of magnetically confined plasmas. Fusion experiments produce large amounts of measurement data, and controlling a hot plasma in real time is hard. Bishop became interested in using neural networks to interpret plasma measurements quickly. This led him into the neural network research of the late 1980s.
The physics background shows throughout his later work. Physicists are trained to write down a model, state its assumptions, and derive consequences exactly. They are also used to probability in the form of statistical mechanics, where averages over many states are central. Both habits mark PRML.
Aston and the first book
Bishop moved to Aston University in Birmingham, where he became a professor and led a group in neural computing. In 1995 he published Neural Networks for Pattern Recognition with Oxford University Press. That book became a standard text of its time. It presented neural networks as statistical models and argued that they should be understood through probability, not as mysterious black boxes. PRML is in a sense its successor, much broader in scope.
Microsoft Research
In 1997 Bishop joined Microsoft Research in Cambridge, later becoming director of the lab and a Microsoft Technical Fellow. With colleagues there he worked on probabilistic methods and on tools that let people build such models without deriving every algorithm by hand. Infer.NET, a framework for probabilistic programming developed at the Cambridge lab, came out of this line of work. With John Winn he wrote an online book, Model-Based Machine Learning, which teaches the same philosophy through worked case studies.
Bishop also contributed research that appears in PRML. With Michael Tipping he developed probabilistic principal component analysis, which recasts a classical technique as a latent variable model, and the relevance vector machine, a Bayesian alternative to the support vector machine. He is a Fellow of the Royal Society and of the Royal Academy of Engineering, and in 2008 he gave the Royal Institution Christmas Lectures, a series of popular science lectures for young people.
Later work
In later years he led Microsoft Research work on AI for science, applying machine learning to problems in chemistry, materials and biology. In 2024 he published Deep Learning: Foundations and Concepts, written with his son Hugh Bishop. That book does for deep learning what PRML did for the field of 2006, and it keeps the same probabilistic outlook. Microsoft made PRML freely downloadable, which has widened its readership greatly.
The shape of the argument
PRML is a textbook, not an essay, but it has an argument. The argument is that a single framework, probability, can organise all of machine learning, and that seeing it this way makes methods clearer, more reliable and easier to extend.
Three broad movements
The book can be read in three movements. The first lays the foundation. It introduces the core ideas through a simple example, sets out probability, decision theory and a little information theory, and catalogues the main probability distributions that will be used as building blocks.
The second movement builds models of increasing richness. It begins with linear models for predicting numbers and for assigning classes, and treats each from both the classical and Bayesian points of view. It then moves to neural networks, which make the models nonlinear and adaptive, and to kernel methods, which achieve flexibility by a different route. Sparse kernel machines, such as the support vector machine and its Bayesian cousin, close this movement.
The third movement is about structure and inference. It introduces graphical models as a language for complex probability models. It then develops models with hidden variables, the algorithm used to fit them, and the methods of approximate inference that become necessary when exact calculation is impossible: deterministic approximations and random sampling. It applies these tools to continuous hidden variables and to sequences over time. A final part discusses how to combine several models into one.
How the argument builds
The order is deliberate. Each new tool is introduced when the previous tools have run out. Linear models are simple enough that the Bayesian treatment can be done exactly. When we want more flexibility, the exact treatment breaks down, and we need approximations. When models grow more complex, we need a way to describe their structure, which graphs provide. When some quantities are never observed, we need a way to reason about them, which latent variable methods provide. When even those calculations are too hard, we need approximate inference. Each step is motivated by a limit reached in the step before.
The recurring pattern
Across chapters, the same pattern repeats. First, define a probability model for the data. Second, find the parameters that best explain the data, usually by maximum likelihood. Third, notice how this can overfit. Fourth, add a prior and see that maximum likelihood with a penalty corresponds to a particular Bayesian choice. Fifth, go fully Bayesian, averaging over parameters, and see what that offers. Sixth, when the Bayesian calculation is intractable, introduce an approximation. Learning this rhythm is one of the main gifts of the book.
What the book chooses not to do
PRML says little about learning theory in the sense of formal guarantees on how well methods generalise, and little about reinforcement learning, where an agent learns from rewards. It gives limited space to decision trees and to practical engineering of large systems. It also predates modern deep learning. These are choices, not oversights. The book aims at depth in one coherent framework rather than coverage of everything.
Learning as inference
The first and most important idea of the book is that learning is a kind of inference. When a machine learns from data, it is drawing conclusions about unknown quantities from observed ones. Probability is the right language for such conclusions, because they are always uncertain.
What this means in practice
Suppose you want to predict tomorrow's sales at a shop from the weather. You collect past data: temperatures and sales. You propose that sales depend on temperature in some way, with some noise. The exact relationship is unknown. Learning, in Bishop's view, means treating the unknown relationship as something to be inferred, and expressing what you know about it as a probability distribution. Before data, the distribution is broad. After data, it narrows around the relationships that fit.
This is different from the view that learning means finding one best answer. In the probabilistic view, the result of learning is a state of belief, with its uncertainty attached. You can then use that belief to predict, and your prediction will carry its own uncertainty too. A prediction of sales tomorrow comes with a sense of how sure you are.
Two kinds of uncertainty
It helps to separate two sources of uncertainty. One is noise in the world. Even if you knew the exact relationship between weather and sales, sales would vary from day to day for reasons you do not measure. The other is uncertainty about the model itself, because you have only seen limited data. Probability handles both. The first is described by the noise model. The second is described by the distribution over parameters. A good prediction combines them.
This distinction matters greatly in practice. With lots of data, model uncertainty shrinks and only noise remains. With little data, model uncertainty can dominate. A method that ignores model uncertainty will be overconfident exactly when data is scarce, which is when overconfidence does most harm.
Probability as degree of belief
Bishop adopts the view that probability can describe degrees of belief, not only frequencies of repeated events. This is the Bayesian interpretation. It allows one to speak of the probability that a parameter has a certain value, even though the parameter is not random in the sense of a coin toss. It is simply unknown.
He supports this with an argument associated with the physicist Richard Cox. If one wants a numerical measure of belief that behaves consistently with common sense, then, under mild assumptions, it must obey the rules of probability. The sum rule and the product rule, and Bayes' theorem which follows from them, are therefore the rules of rational reasoning under uncertainty, not just rules about dice.
Often confused with
This idea is often confused with the claim that Bayesian methods are subjective and therefore unscientific. Bishop's treatment shows that the prior is an explicit, inspectable assumption, and that its influence fades as data grows. Every method carries assumptions. The Bayesian view puts them on the table.
It is also confused with the claim that every practical method must be Bayesian. Bishop does not say that. He presents classical methods fully and often recommends them. His point is that the probabilistic frame explains what those methods assume and when they may fail.
Where it leads
Once learning is inference, many things fall into place. Model selection becomes a question of which model the data supports. Prediction becomes averaging over what you do not know. Missing data becomes just another unknown to reason about. And the whole problem of designing a learning system becomes the problem of writing down a good probability model, then finding a way to compute with it.
Overfitting and how to tame it
The second key idea is the problem of overfitting, and the family of remedies for it. Bishop introduces it at the very start of the book with a simple curve-fitting example, and it returns in every chapter after.
The basic problem
Imagine you have a handful of points on a graph, produced by some smooth underlying process plus noise. You want to recover the process so you can predict new points. You try curves of increasing flexibility. A straight line misses the shape. A gentle curve fits nicely. A very wiggly curve passes exactly through every point. The wiggly curve has zero error on the data you have. Yet it predicts new points badly, because it has bent itself to fit the noise.
This is overfitting. A flexible model, given limited data, learns accidents of the sample instead of the pattern behind it. The opposite failure, underfitting, happens when the model is too rigid to capture the real pattern. Good learning lies between.
An everyday analogy
A student who memorises past exam papers word for word may score perfectly on those papers and fail a new one. He has fitted the noise, the specific questions, rather than the subject. A student who learns only one rule of thumb fails too, because the subject is richer than the rule. The good student learns structure flexible enough to handle new questions but not so tied to old ones that it breaks.
Classical remedies
Bishop shows several remedies. One is simply to get more data. With many points, the wiggly curve can no longer chase every one, and its flexibility is put to good use. Another is to hold back some data for testing and choose the model that predicts held-out data best. This is cross-validation. A third is regularisation: add a penalty to the fitting objective that discourages extreme parameter values. Large coefficients produce wild curves. Penalising them keeps the curve smooth.
The Bayesian reading of regularisation
The book then shows something illuminating. Adding a penalty on the size of parameters is exactly equivalent to placing a prior belief on them, a belief that small values are more likely, and then choosing the single most probable parameter setting given the data. This is called the maximum a posteriori estimate. Regularisation, which looks like an engineering trick, turns out to be a Bayesian assumption in disguise.
This is typical of PRML. A familiar technique is reinterpreted as a probability model, and its hidden assumptions become visible. Once you see regularisation as a prior, you can ask whether that prior is sensible for your problem, and you can imagine others.
Bias and variance
Bishop also presents the bias-variance decomposition. For a given kind of model, the expected error on new data can be split into parts. Bias measures how far the model's average prediction is from the truth, which is high for rigid models. Variance measures how much predictions change from one training sample to another, which is high for flexible models. Noise is the irreducible remainder. Reducing one of bias or variance tends to raise the other. Bishop is careful to note that this decomposition is useful for intuition but of limited practical use, because it requires averaging over many datasets you do not have.
Why it matters
Overfitting is the central practical danger in machine learning. Every model that is powerful enough to be useful is powerful enough to overfit. Understanding it, and understanding the different ways of controlling it, is the foundation of trustworthy practice. Modern deep networks are vastly over-parameterised and yet often generalise well, which has led to new research on why. The basic lesson of PRML still holds: performance on training data tells you little by itself.
Averaging instead of choosing
The third key idea is the full Bayesian treatment, in which one does not choose a single best set of parameters at all. Instead one averages predictions over all possible parameters, weighting each by how probable it is given the data.
The idea in plain terms
Suppose a panel of experts each has a different theory of how weather affects sales. Some theories fit past data well, some badly. The classical approach picks the best-fitting expert and listens only to her. The Bayesian approach listens to all of them, giving each a weight in proportion to how well their theory is supported. The final prediction is the weighted average.
This has two benefits. First, it does not throw away information. Several theories may fit the data almost equally well, and they may disagree about the future. Averaging captures that disagreement as uncertainty in the prediction. Second, it guards against overfitting automatically. A wildly flexible theory that fits the data exactly by chance is only one voice among many, and the averaging tempers it.
Predictions that know their limits
Bishop shows this vividly with linear regression. When the Bayesian treatment is done exactly, the predicted uncertainty is small near the training data and grows as one moves away from it. The model, in effect, knows where it has evidence and where it is guessing. A classical point estimate gives the same confidence everywhere. For any application where wrong confidence is costly, such as medicine or finance, this difference matters a great deal.
Model evidence
The Bayesian approach also offers a principled way to compare models. One can compute how probable the observed data is under each model, after averaging over that model's parameters. This quantity is called the model evidence or marginal likelihood. Simple models spread their predictions narrowly and score well only if the data falls where they expect. Complex models spread their predictions widely and pay a cost for doing so. The evidence therefore balances fit against complexity without a separate penalty. This automatic preference for simplicity is sometimes called the Bayesian Occam's razor.
Bishop develops a practical version called the evidence approximation, in which certain settings, such as the strength of a prior or the noise level, are chosen by maximising the evidence. This lets the data decide how complex the model should be.
The cost
Full Bayesian averaging is usually expensive or impossible to compute exactly. Only for special combinations of model and prior, called conjugate pairs, do the integrals come out in closed form. For most interesting models, approximations are needed. A large part of the book is about those approximations. The Bayesian ideal sets the target; the rest of the work is getting close to it at tolerable cost.
Often confused with
Averaging over parameters is sometimes confused with ensembling, in which several separately trained models are averaged. They are related but not the same. Ensembles combine models without a probabilistic weighting, while Bayesian averaging weights each possibility by its posterior probability. Bishop treats ensembles separately, near the end of the book.
Deciding under uncertainty
The fourth key idea separates two tasks that are often blurred: inferring what is probably true, and deciding what to do. Bishop treats this through decision theory.
Two stages
In the probabilistic view, learning produces probabilities. But in practice we usually need a decision: is this tumour malignant, should this email go to spam, which product should we stock? Bishop argues that one should first compute the probabilities as well as possible, and then make the decision by combining those probabilities with the costs of different errors.
An example makes this concrete. A medical test gives a seventy percent probability that a patient has a disease. Should the doctor treat? It depends on the costs. If missing the disease is very dangerous and treatment is mild, treat. If treatment is harmful and the disease mild, perhaps wait. The probability is the same in both cases. The decision differs because the costs differ. Keeping inference and decision separate lets the costs change without retraining the model.
The reject option
Separating the stages has other benefits. A system that knows its probabilities can choose to abstain when it is unsure, passing hard cases to a human. This is called the reject option. A system trained only to output decisions cannot do this well, because it has no reliable sense of its own uncertainty. The system can also adjust if the mix of cases changes, for example if a disease becomes more common, by updating prior probabilities without retraining.
Generative and discriminative approaches
Bishop distinguishes three ways to build a classifier. The first models how the data for each class is generated, then uses Bayes' theorem to compute class probabilities. This is the generative approach. The second models the class probabilities directly given the data, without modelling the data itself. This is the discriminative approach, of which logistic regression is the classic example. The third skips probabilities entirely and learns a function that maps data straight to decisions.
Each has a place. Generative models can handle missing data, detect unusual inputs and use unlabelled data, but they spend effort modelling details irrelevant to the decision. Discriminative models focus on the decision boundary and often classify better with enough data. Direct decision functions are simplest but lose the advantages of probabilities. Bishop's preference, where cost allows, is to keep probabilities in the loop.
Why it matters
This idea is perhaps the most useful for practitioners outside research. Many failures of deployed systems come from confusing a model's score with a decision, or from ignoring the asymmetric costs of errors. Bishop's framing gives a clear discipline: estimate probabilities honestly, then decide with explicit costs.
Kernels and Gaussian processes
The fifth key idea is that flexibility can be achieved not only by adding parameters but by working directly with similarities between data points. This leads to kernel methods and to Gaussian processes, one of the most elegant topics in the book.
From features to similarities
A linear model predicts by combining features of the input. To capture complex patterns one can add many features, but this grows costly. Kernel methods take another route. Many algorithms can be rewritten so that the data appears only through comparisons between pairs of points. If we define a similarity function, called a kernel, that behaves like an inner product in some feature space, we can work in that space without ever computing the features. Very rich, even infinite, feature spaces become usable. This is often called the kernel trick.
A simple way to think of it: instead of describing every house by a long list of features and learning weights for each, you predict the price of a new house by looking at houses most similar to it, with a carefully designed notion of similarity. The design of the similarity function encodes what you believe matters.
Gaussian processes
Bishop then shows that Bayesian linear regression, taken to the limit of infinitely many features, becomes a Gaussian process. Instead of a distribution over parameters, one places a distribution directly over functions. The kernel says how strongly the function's values at two points are correlated. Nearby points, under a typical kernel, have similar values, which expresses a belief in smoothness.
Gaussian processes give predictions with honest error bars, which widen away from the data. They need few settings and adapt their complexity to the data. Their main limit is cost: exact computation grows quickly with the number of data points. Even so, they remain widely used for problems with modest data where uncertainty matters, such as tuning the settings of other algorithms or modelling physical experiments.
Sparse kernel machines
The support vector machine is a kernel method that makes predictions using only a subset of the training points, called support vectors. It was very popular when the book appeared, and Bishop gives it a careful treatment. He then presents the relevance vector machine, a Bayesian alternative that tends to use even fewer points and gives probabilistic outputs. It is a good example of the book's method: take a successful technique and ask what a Bayesian version would look like.
Often confused with
Kernels here are not the same as kernels in operating systems or in image filtering, though the name is shared. And a Gaussian process is not a process in time in the usual sense. It is a distribution over functions, which may be functions of space, time or anything else.
Neural networks as probability models
The sixth key idea is that neural networks, often treated as opaque, can be understood as flexible probability models. Bishop had argued this in his 1995 book and restates it here.
Networks as adaptive basis functions
A linear model combines a fixed set of features. A neural network learns its features from data. Each hidden unit computes a simple nonlinear function of a weighted sum of inputs, and its weights are learned. The network is therefore a linear model whose basis functions adapt. This view demystifies the network. It is not a model of a brain. It is a flexible function with many parameters.
Training as likelihood
Training a network by minimising squared error corresponds to maximum likelihood under a Gaussian noise model. Training a classifier with the cross-entropy error corresponds to maximum likelihood under a model of class probabilities. Choosing the error function is choosing a probability model. Bishop also derives backpropagation, the algorithm that computes how the error changes with each weight, as an efficient application of the chain rule of calculus.
Regularisation and Bayesian networks
The usual practical tricks, weight decay, early stopping and building invariance into the network, are each linked to the earlier discussion of overfitting. Bishop then sketches Bayesian neural networks, where one places priors on the weights and approximates the posterior, so that the network can express uncertainty. He also presents mixture density networks, which output a whole probability distribution rather than a single value, useful when one input can lead to several possible outputs.
How this part has aged
Of all the chapters, this one has aged most. It predates convolutional networks at scale, modern activation functions, normalisation layers, attention and the vast datasets of today. Yet its conceptual core holds: a network defines a probability model, its loss is a likelihood, and its overfitting can be understood and controlled with the same tools as any other model. Bishop's 2024 deep learning book builds on exactly this core.
Distributions as building blocks
A quieter idea runs underneath the whole book: complex models are assembled from a small set of well-understood probability distributions. Bishop spends an early chapter on these building blocks, and a reader who learns them well finds the rest of the book far easier.
The Gaussian at the centre
The Gaussian, or normal, distribution is the bell curve. It appears everywhere in PRML. It is easy to compute with, it describes the sum of many small independent effects, and it has the special property that many operations on Gaussians, such as conditioning on part of a vector or adding Gaussian noise, produce Gaussians again. This closure is why so many exact results in the book are possible. Linear regression, probabilistic PCA, Gaussian processes and the Kalman filter all rest on it.
Bishop also shows its weaknesses. A single Gaussian has one peak and thin tails. Data with several clusters, or with occasional extreme values, fits it badly. Mixtures of Gaussians address the first problem. Heavier-tailed distributions, such as the Student's t, address the second, and Bishop shows how such a distribution can be understood as an infinite mixture of Gaussians with different widths.
Counts, choices and proportions
For yes-or-no outcomes there is the Bernoulli distribution, and for counts of successes the binomial. For choices among several options there is the multinomial. For uncertainty about a proportion, such as the probability that a coin lands heads, there is the beta distribution, and for proportions across several options, the Dirichlet. These pairs, a likelihood and a matching prior, illustrate conjugacy: start with a beta belief about a coin, observe some tosses, and your updated belief is again a beta, with its parameters shifted by the counts. The arithmetic of learning reduces to adding up what you have seen.
The exponential family
Bishop then shows that most of these distributions belong to a single family, the exponential family, which shares a common mathematical form. This is not just tidiness. Members of the family have sufficient statistics, simple summaries of the data that capture everything relevant for learning. They have conjugate priors. And they share general results for maximum likelihood. Recognising a distribution as a member of the family tells you at once much of how to work with it.
Without a fixed form
Finally, the chapter introduces nonparametric methods, which do not fix the shape of the distribution in advance. A histogram is the simplest. Kernel density estimation places a small bump at each data point and adds them up. The nearest-neighbour method classifies a new point by looking at the closest training points. These methods are flexible but need much data and grow costly as data grows. They set up the later chapters on kernels, where flexibility is retained but handled more cleverly.
A little information theory
In the opening chapter Bishop also introduces a few ideas from information theory: entropy, as a measure of uncertainty in a distribution, and the Kullback-Leibler divergence, as a measure of how different two distributions are. These seem a detour at first. They return in force in the chapters on approximate inference, where the divergence becomes the yardstick for how good an approximation is. MacKay's book on this shelf develops this link much further.
Why it matters
Practitioners often reach for a model without asking what distribution it assumes. Learning the building blocks well lets you see those assumptions instantly and choose better ones. When a model behaves strangely, the cause is often a distribution that does not fit the data: thin tails where outliers occur, one peak where there are two. The early chapter teaches you to notice.
Committees of models
The book closes with a short treatment of combining models, a practical idea with a probabilistic interpretation.
Several heads
Committees average the predictions of several models, which reduces variance in the sense discussed earlier. Bagging trains each model on a different random resample of the data. Boosting, made famous by the AdaBoost algorithm, trains models one after another, each focusing on the cases its predecessors got wrong, and combines them with weights. Bishop shows that boosting can be understood as step-by-step minimisation of a particular error function, which explains both its power and its sensitivity to mislabelled data.
Dividing the work
Decision trees split the input space into regions with simple rules and make a prediction in each. Bishop presents them briefly and notes their weakness: hard splits and instability. Mixtures of experts soften this, letting several models each handle a part of the input space, with a learned gating function deciding how much to trust each. This is a latent variable model again: the hidden variable is which expert is responsible.
The difference from Bayesian averaging
Bishop takes care to distinguish combining models from Bayesian model averaging. In Bayesian averaging, one model is assumed to be true and we are uncertain which. In combining, the combination itself is the model, and its parts may each be wrong in different useful ways. The distinction is subtle and often missed. It explains why ensembles can outperform any single member, while Bayesian averaging, with enough data, tends to settle on one.
Graphs that carry probability
The seventh key idea is the graphical model: a way of drawing a probability model as a graph, so that its structure can be seen, reasoned about and computed with. Bishop gives this a long chapter, and it changes how the rest of the book reads.
Why graphs are needed
A joint probability distribution over many variables can be enormously complex. If you have twenty yes-or-no variables, a full table of their joint probabilities has over a million entries. But real problems rarely need this. Most variables depend directly on only a few others. A patient's symptoms depend on her diseases. Her diseases depend on age and exposure. Her test results depend on her diseases and on the test's quality. Writing down these direct dependencies is enough to specify the whole distribution compactly.
A graph does this naturally. Each variable becomes a node. An arrow from one node to another means the second depends directly on the first. The full distribution is then the product of small pieces, one for each node given its parents. Such a graph with arrows is called a Bayesian network or directed graphical model.
Two kinds of graph
Bishop also presents undirected graphs, called Markov random fields. Here links have no direction. They express that variables are directly related, without saying which causes which. Such graphs suit problems like images, where each pixel is related to its neighbours and no direction is natural. He then introduces factor graphs, which make explicit the factors into which a distribution breaks, and which turn out to be convenient for computation.
Reading independence from a graph
A graph does more than save space. It lets you read off which variables are independent of which, given what you know. Bishop teaches a set of rules, known as d-separation for directed graphs, that let you trace paths through the graph and decide whether information can flow between two nodes. This turns a question about large probability tables into a question about drawings.
A simple case teaches a surprising lesson. Suppose two independent causes, such as rain and a sprinkler, can each make the grass wet. Knowing it rained tells you nothing about the sprinkler. But if you observe that the grass is wet, the two causes become linked: learning that it rained makes the sprinkler less likely to be the explanation. This effect is called explaining away. It is natural for people, yet many simple models miss it. The graph shows it clearly.
Efficient inference
The biggest payoff is computational. If the graph has a tree-like structure, one can compute the probability of any variable, given observations, by passing messages along the links. Each node collects messages from its neighbours, combines them with its own local factor, and sends a summary onward. This is the sum-product algorithm. A close cousin, the max-sum algorithm, finds the single most probable joint setting. Many algorithms invented separately in different fields turn out to be special cases of message passing on a graph.
Why it matters
Graphical models make assumptions visible. Anyone can look at the graph and ask whether an arrow belongs there, or whether a missing link is justified. They also make computation general. Once a model is drawn, standard algorithms apply. This is why they became a common language across machine learning, statistics, signal processing and the study of causation. Judea Pearl's work, represented on this shelf, is the deepest source of this tradition.
Often confused with
A Bayesian network is often taken to be a causal model. It need not be. The arrows express statistical dependence in a chosen factorisation, and the same distribution can often be drawn with arrows pointing different ways. Only with additional assumptions, the subject of Pearl's Causality, do arrows carry causal meaning.
Hidden causes and the EM algorithm
The eighth key idea is the latent variable model, in which observed data is explained by hidden quantities that are never directly seen. Bishop treats this as one of the most powerful moves in modelling, and he derives the main algorithm for fitting such models in a general form.
Why hide variables
Suppose you measure the heights of a crowd that, unknown to you, contains both adults and children. The distribution of heights has two humps. A single bell curve fits it poorly. But if you imagine each person carrying a hidden label, adult or child, and each group having its own bell curve, the data is explained well. The label is a latent variable. You never see it, yet assuming it makes the model both simpler and more faithful.
This is a mixture model. It describes data as coming from several sources, each with its own simple distribution, with a hidden choice of source for each data point. Mixtures of Gaussian distributions are the standard example, used to find clusters in data.
The chicken-and-egg problem
Fitting such a model looks circular. If you knew each person's hidden label, you could easily estimate each group's average height. If you knew each group's average height, you could easily guess each person's label. But you know neither.
The expectation-maximisation algorithm, or EM, breaks the circle by alternating. Start with a guess for the groups. In the expectation step, compute for each data point how probable each hidden label is, given the current guess. In the maximisation step, re-estimate the groups using these soft, probabilistic labels. Repeat. Each round is guaranteed not to make the fit worse. The algorithm usually settles into a good solution, though it can get stuck in a poor one depending on the start.
The general view
Bishop does not stop at mixtures. He shows why EM works in general, by viewing it as the alternate improvement of a lower bound on the quantity we really want. This general derivation explains why each step helps, shows how EM relates to the familiar k-means clustering method, and opens the door to the variational methods of the next chapter. It is a fine example of the book's habit of revealing the common structure under many algorithms.
Continuous hidden variables
Hidden variables need not be labels. They can be continuous quantities. Principal component analysis, a classical method for reducing many measurements to a few underlying dimensions, is reinterpreted in the book as a latent variable model: the data is generated from a small number of hidden continuous factors plus noise. This is probabilistic PCA, developed by Bishop and Michael Tipping. Factor analysis is a close relative. Once PCA has a probability model, it can handle missing values, be mixed with other models, and be given a Bayesian treatment.
Hidden states in time
The same idea applies to sequences. In a hidden Markov model, a system moves between hidden states over time, and each state produces observations. Speech recognition used such models for decades: the hidden states are sounds, the observations are acoustic signals. When the hidden states are continuous, one gets a linear dynamical system, whose inference algorithm is the Kalman filter, used for tracking and navigation. Bishop shows that these famous algorithms are message passing on a chain-shaped graph, tying them back to the general framework.
Why it matters
Latent variable models are how one models structure that is real but not observed: topics in documents, regimes in markets, underlying conditions in patients. The EM algorithm and its relatives are the workhorses for fitting them. Seeing them through Bishop's unified lens lets a reader invent new models for new problems rather than searching for a ready-made one.
Approximate inference
The ninth key idea is that exact probabilistic reasoning is usually impossible in realistic models, and that there are disciplined ways to approximate it. Bishop gives two chapters to this, one on deterministic approximations and one on sampling.
Why approximation is needed
The Bayesian recipe asks for averages over all unknowns. In simple models these averages have formulas. In most models of interest, they involve integrals or sums so vast that no computer could evaluate them exactly. One must approximate. The question is how to do it well, and how to know what one has given up.
Variational inference
Variational methods replace the true, complicated distribution over unknowns with a simpler one chosen from a convenient family, and then adjust the simpler one to be as close as possible to the truth. Closeness is measured by a quantity from information theory called the Kullback-Leibler divergence. A common choice is to assume that groups of unknowns are independent of each other, which makes the calculation manageable. This is called the mean-field approximation.
An analogy: you cannot draw a coastline exactly, so you fit the best smooth curve from a family of curves you can draw. You will lose detail, but you get a usable map quickly. Variational inference is fast and scales well. Its typical weakness is overconfidence: the simpler distribution tends to underestimate how spread out the truth is.
Bishop also presents expectation propagation, another deterministic method that matches certain averages of the true distribution, and which tends to err in a different direction.
Sampling methods
The other approach is to draw random samples that are distributed, at least approximately, according to the true distribution, and then use the samples to estimate any average one wants. If you could draw a thousand plausible settings of the unknowns, you could average predictions over them.
Drawing such samples is itself hard. Markov chain Monte Carlo methods solve this by building a random walk whose long-run behaviour visits each setting in proportion to its probability. The Metropolis-Hastings algorithm proposes random moves and accepts or rejects them by a simple rule. Gibbs sampling updates one variable at a time from its distribution given all the others. Bishop also discusses more advanced methods, such as slice sampling and hybrid Monte Carlo, which borrows ideas from physics to move through the space more efficiently.
Sampling methods are, in principle, exact given enough time. In practice one cannot always tell whether the walk has run long enough, and they can be slow.
Choosing between them
The book is balanced. Neither family is presented as best. Deterministic methods are fast and predictable but biased. Sampling methods are flexible and asymptotically correct but costly and harder to diagnose. A good practitioner knows both and chooses by the problem. Modern probabilistic programming tools, which let users write models and have inference done automatically, are built on exactly these two families.
The tradition around it
PRML sits in a long line of attempts to make learning from data rigorous, and it has close neighbours on this shelf.
What came before
Its roots are in statistics: the method of least squares from the early nineteenth century, the likelihood ideas of Ronald Fisher, and the Bayesian reasoning of Thomas Bayes and Pierre-Simon Laplace, revived in the twentieth century by Harold Jeffreys and the physicist Edwin Jaynes. Its more immediate roots are in pattern recognition, a field that grew from the 1950s, and in the neural network revival of the 1980s, documented on this shelf by Parallel Distributed Processing. Bishop's own Neural Networks for Pattern Recognition is its direct predecessor. The earlier limits of simple networks, set out in Minsky and Papert's Perceptrons, are part of the background to its treatment of linear classifiers.
Close neighbours
Three books in this bay belong naturally beside it. The Elements of Statistical Learning by Hastie, Tibshirani and Friedman covers much of the same ground from the frequentist statistics side, with more on trees, boosting and the lasso and less on Bayesian methods. Reading the two together gives a rounded view. David MacKay's Information Theory, Inference, and Learning Algorithms shares the Bayesian outlook and adds a deep link to compression and coding; MacKay and Bishop drew on overlapping ideas, and MacKay's work on the evidence framework for neural networks is part of PRML's background. Judea Pearl's Probabilistic Reasoning in Intelligent Systems is the founding text for the graphical models chapter, and his Causality goes beyond it into cause and intervention.
Artificial Intelligence: A Modern Approach by Russell and Norvig gives the wider setting in which machine learning is one part of building intelligent agents. Reinforcement Learning by Sutton and Barto covers what PRML leaves out: learning to act from rewards.
What came after
After 2006 the field was transformed by deep learning, which trained large networks on huge datasets using graphics processors. Kevin Murphy's Machine Learning: A Probabilistic Perspective in 2012 and his later two-volume Probabilistic Machine Learning extended the same outlook with wider coverage. Variational methods were joined to neural networks in variational autoencoders and related models, and diffusion models for image generation draw on the same mathematics of latent variables and approximate inference. Probabilistic programming languages made Bishop's model-based approach practical for many users. Bishop's own Deep Learning: Foundations and Concepts updates the story to the era of transformers.
Books such as On Intelligence on this shelf come from a different direction, the brain, but meet PRML at the idea that a good model predicts its data. Hidden Markov models in particular are a concrete, mathematical version of the sequence memory Hawkins describes in words.
Questions and criticisms
Not a first book
The most common complaint is difficulty. PRML assumes a fair amount of mathematics and moves quickly. Readers without solid linear algebra and probability often struggle from the early chapters. It is better as a second book, or as a first book only with a teacher or a study group.
The Bayesian tilt
Some statisticians find its preference for Bayesian methods one-sided. Frequentist ideas, such as confidence intervals, hypothesis tests and learning theory guarantees, receive less space. A reader should know that there are serious arguments on the other side, and that many successful methods are justified without priors at all.
Dated coverage
The neural network chapter predates the deep learning era, and support vector machines receive more weight than they now hold in practice. Topics such as convolutional and recurrent networks at scale, attention and transformers, and optimisation of very large models are missing. Readers interested in current practice will need later books. The conceptual chapters, by contrast, have hardly dated at all.
Practice and data
The book is about models and inference, not about the craft of working with real data: cleaning it, choosing features, validating fairly, deploying systems and watching them fail. It is not a guide to practice. Its examples are deliberately small and clean, so that ideas are clear.
Errata and notation
Like any long technical book, the first printings had errors, and corrections were published. The notation is consistent, but dense. Readers should keep a notation sheet as they go.
What has held up
The deep structure of the book has aged very well. Learning as inference, the separation of inference from decision, the Bayesian reading of regularisation, graphical models, latent variables, EM, variational inference and sampling are all still central. Much of modern generative AI is built on ideas taught here. A reader who masters PRML can read current research papers in probabilistic machine learning with far less difficulty than one who has learned only recipes.
Why it is on this shelf
This shelf holds Vedanta, Jyotish, science, economics and technology. PRML belongs here as the shelf's careful account of how to reason from evidence under uncertainty.
For the reader of technology, it explains why machine learning methods work, not just how to call them. That understanding is what lets one trust a model, debug it, and know when it should not be used.
For the reader of economics, its treatment of decisions under uncertainty, with probabilities kept separate from costs, is directly useful. Forecasting demand, judging risk and choosing under incomplete information are all problems of this shape. Its honest handling of small data is especially relevant where data is costly to gather.
For the reader of Jyotish, it offers a strict discipline for any system of prediction. Every forecast should come with its uncertainty. A model should be judged by how well it predicts data it has not seen, not by how well it explains data it was built on. Overfitting is a danger to every interpretive art, and this book names it precisely.
For the reader of Vedanta, the Bayesian view has a quiet resonance. Knowledge here is always a state of belief updated by evidence, never a final grasp of things as they are. The book is a disciplined account of what the tradition would call vyavaharika knowledge, the knowledge proper to the empirical world of transactions, carefully distinguished from the paramarthika, the absolute standpoint that no inference reaches. Keeping both in view makes each clearer.
How to read it
PRML is not read in a week. It is worked through over months. A steady pace of one section a day, with a pencil, is better than long bursts.
Prepare
Before starting, refresh linear algebra (matrices, eigenvalues), multivariable calculus (partial derivatives, the chain rule, integrals of Gaussians) and basic probability. Read the appendices on probability distributions and on properties of matrices early, and keep them marked.
First pass
Read the introductory chapter closely, all of it. The curve-fitting example, the sections on probability and Bayes, decision theory and the short introduction to information theory set up everything that follows. Then read the chapter on probability distributions, focusing on the Gaussian, which is used throughout. Then read linear models for regression and for classification. These four chapters together are the book's foundation.
Next read graphical models, then mixture models and EM. These two chapters show the framework at full strength. Then read the chapter on continuous latent variables for probabilistic PCA, and the chapter on sequential data for hidden Markov models.
What to skip at first
On a first pass, skim the neural networks chapter for its probabilistic framing, since later books cover modern networks better. Skim the sparse kernel machines chapter unless you need support vector machines. Leave approximate inference and sampling for a second pass, once the rest is secure; they are demanding and depend on everything before.
How to work
Do the easier exercises at the end of each chapter, marked with a single star. Rederive the key results yourself before reading Bishop's derivation. Redraw the important figures by hand. Better still, write small programs that reproduce them with synthetic data. Seeing a posterior narrow as you add points, or EM settle on clusters, teaches more than any page.
What to read next
From this shelf, read The Elements of Statistical Learning alongside PRML for the frequentist side. Read MacKay's Information Theory, Inference, and Learning Algorithms for a more playful, deeper look at the Bayesian view and its link to information. Read Pearl's Probabilistic Reasoning in Intelligent Systems and then Causality to go from association to cause. Read Sutton and Barto's Reinforcement Learning to learn how agents act on what they infer.
Questions to carry
- When a model fits training data perfectly, what has it learned and what has it merely memorised?
- What prior belief is hidden inside a regularisation penalty you already use?
- When is it better to average over many models than to choose the best one?
- How would you explain to a non-specialist why a prediction should carry an error bar?
- Why should inference and decision be kept separate, and when might it be fine to merge them?
- What does a generative model know that a discriminative one does not?
- What assumptions does a graph make visible that a formula hides?
- Why does observing a shared effect make two independent causes dependent?
- What real structure in your own data might be better described by hidden variables?
- What is lost when a variational approximation assumes independence between unknowns?
- How would you tell whether a sampling method has run long enough?
- Which parts of this book would change if it were written today, and which would not?
- Is probability the only coherent language for uncertainty, or one good choice among several?
Words to know
- Likelihood: the probability of the observed data under a model with given parameters, viewed as a function of those parameters.
- Maximum likelihood: choosing parameters that make the observed data most probable.
- Prior: a probability distribution expressing belief about unknowns before seeing the data.
- Posterior: the updated distribution over unknowns after combining the prior with the data through Bayes' theorem.
- Bayes' theorem: the rule that the posterior is proportional to the likelihood times the prior.
- Maximum a posteriori estimate: the single most probable parameter setting under the posterior; equivalent to regularised fitting.
- Overfitting: fitting the noise in training data so closely that predictions on new data suffer.
- Regularisation: adding a penalty to discourage overly complex models; in Bayesian terms, a prior.
- Predictive distribution: the distribution of a new observation, averaged over uncertainty in the parameters.
- Model evidence: the probability of the data under a model after averaging over its parameters; used to compare models.
- Conjugate prior: a prior that, combined with a given likelihood, yields a posterior of the same family, making calculation exact.
- Decision theory: the framework for choosing actions by combining probabilities with the costs of outcomes.
- Generative model: a model of how data is produced, including the input; contrasted with a discriminative model of outputs given inputs.
- Kernel: a function measuring similarity between two inputs, equivalent to an inner product in some feature space.
- Gaussian process: a probability distribution over functions, specified by a mean and a kernel.
- Graphical model: a graph whose nodes are variables and whose links encode how their joint distribution factorises.
- Explaining away: the effect by which observing a common effect makes its independent causes compete as explanations.
- Latent variable: a quantity in a model that is never directly observed but helps explain the data.
- Mixture model: a model in which each data point comes from one of several component distributions, chosen by a hidden variable.
- EM algorithm: an iterative method for fitting latent variable models by alternating between inferring hidden variables and updating parameters.
- Hidden Markov model: a model of sequences in which hidden states evolve over time and each produces an observation.
- Variational inference: approximating a complex distribution by the closest member of a simpler family.
- Markov chain Monte Carlo: methods that draw samples from a distribution by running a random walk whose long-run behaviour matches it.
- Vyavaharika: in Vedanta, the empirical standpoint of everyday knowledge and transactions.
- Paramarthika: in Vedanta, the absolute standpoint from which reality is known as it is.
A note on this edition
This is a study edition written for this shelf in our own words. It describes and discusses Pattern Recognition and Machine Learning but does not reproduce its text, derivations, figures or exercises. The book itself is in copyright. It is worth getting, whether from a library, a bookshop, or the free copy that has been made available online, and it rewards slow, active work with a pencil and a computer at hand.