दुर्गा बेरागी Durga Beragi, homeEnter the study →

Library › Artificial intelligence

Probabilistic Reasoning in Intelligent Systems

Judea Pearl · 1988 · Morgan Kaufmann

More by Judea Pearl on this shelf · 2 books →

Bayesian networks. Belief handled with probability, not rules.

About the book

Judea Pearl, a computer scientist at UCLA, published this book in 1988. Its subtitle is Networks of Plausible Inference. At a time when expert systems handled uncertainty with ad hoc rules and certainty factors, Pearl argued that probability theory, properly organised, could serve as the basis for reasoning under uncertainty in AI. He showed how to represent dependencies among variables as directed graphs, now called Bayesian networks, and how to update beliefs efficiently by passing messages along the network. The book also covers Markov networks, decision making, learning network structure from data, and comparisons with non-probabilistic approaches such as Dempster-Shafer theory and default logic.

Key ideas

  • Uncertain reasoning should use probability theory. Rule-based schemes such as certainty factors can give inconsistent answers, while probability provides a coherent standard for updating belief.
  • Directed graphs can represent which variables depend directly on which others. These Bayesian networks make the joint distribution compact, because each variable needs only its relation to its parents.
  • Graph structure encodes conditional independence. Pearl's d-separation criterion lets one read off from the graph alone which variables are independent of which others, given the evidence observed.
  • Beliefs can be updated by local message passing. In tree-like networks, each node exchanges messages with its neighbours, and the whole network reaches correct posterior probabilities.
  • Evidence can flow both ways. Reasoning can go from causes to effects for prediction and from effects to causes for diagnosis, and the network handles both in one framework.
  • Probability need not be computationally hopeless. By exploiting the structure of the network, systems can reason with many variables, which answered a common objection to probabilistic methods in AI.

Why it is on this shelf

Bayesian networks underlie diagnosis systems, spam filters and much of probabilistic machine learning. This book shows how to reason about uncertainty correctly, which matters in markets and in medicine as much as in code. It also leads directly to Pearl's later work on causality.

How to start reading it

Read the first chapter on uncertainty in AI systems, then the chapters on Bayesian inference and on Markov and Bayesian networks. Read the chapter on belief propagation carefully. Skip the later chapters on first reading.

About this book

Probabilistic Reasoning in Intelligent Systems was published by Morgan Kaufmann in 1988. Its subtitle is Networks of Plausible Inference. The author, Judea Pearl, was a professor of computer science at the University of California, Los Angeles. The book gathered and extended a body of work he and his students had developed over the previous several years, and it became the founding text of what is now called probabilistic graphical modelling.

The situation it addressed was a practical one. In the late 1970s and early 1980s, artificial intelligence had produced expert systems: programs that encoded the knowledge of specialists as rules and used those rules to diagnose diseases, interpret geological data, or configure computers. Real expertise is uncertain. A symptom suggests a disease but does not prove it. A test is usually right but not always. So the builders of expert systems needed a way to attach degrees of belief to rules and to combine them as evidence came in.

Most of them avoided probability theory. It was thought to be too demanding. A full probabilistic model of a domain with dozens of variables seemed to need an impossible number of numbers, one for every combination of values, and the computation of updated beliefs seemed hopeless. So designers invented shortcuts: certainty factors, scoring schemes, fuzzy combinations and the like. These were easy to use, but they could give answers that contradicted each other, double-count evidence, or fail in ways that were hard to predict.

Pearl argued that this retreat from probability was a mistake. His central claim was that probability theory, if it is organised around the structure of dependencies among variables, is both coherent and tractable. The structure can be drawn as a graph. The graph tells you which variables directly influence which, and therefore which numbers you actually need. And the graph also tells you how to compute: beliefs can be updated by passing messages between neighbouring nodes, each doing a small local calculation.

The book was written for researchers in artificial intelligence, but it reached statisticians, philosophers, decision theorists, engineers and later machine learning researchers. It mixes intuitive argument, worked examples and formal results. Its tone is that of someone making a case to a sceptical audience. Pearl does not simply present methods. He argues that the probabilistic approach captures how plausible reasoning ought to work, and he spends real effort comparing it fairly with its rivals.

The question it sets out to answer is this. How can a machine reason sensibly when its knowledge is incomplete and its evidence is uncertain, and do so in a way that is principled, efficient and understandable to people. Pearl's answer is the Bayesian network, together with the theory of how to read and compute with it.

The author

Judea Pearl was born in 1936 in Tel Aviv and grew up in Bnei Brak, in what was then Mandatory Palestine. He studied electrical engineering at the Technion in Haifa, then moved to the United States, where he took graduate degrees including a doctorate in electrical engineering from the Polytechnic Institute of Brooklyn in the mid 1960s. He worked for some years in industry, including at RCA research laboratories, on topics such as superconducting memory devices. In 1970 he joined the faculty at UCLA, where he has remained.

His first major book was Heuristics, published in 1984, on how intelligent search programs use rough estimates to find solutions efficiently. That book already shows his habits of mind: a concern for what makes reasoning tractable, an interest in how human intuitions can be made precise, and a preference for clear mathematical formulations of informal ideas. From heuristics he moved to uncertainty. In the early 1980s he published papers showing how beliefs could be propagated in tree-structured networks, and those papers became the core of the 1988 book.

After Probabilistic Reasoning in Intelligent Systems, Pearl turned to causation. He came to think that probability alone could not express the most important things people want to know, such as what would happen if we intervened in a system, or what would have happened if something had been different. That work led to his book Causality: Models, Reasoning, and Inference, first published in 2000, which sits on this same shelf, and later to a popular account, The Book of Why, written with Dana Mackenzie in 2018. He received the Turing Award in 2011 for fundamental contributions to artificial intelligence through the development of a calculus for probabilistic and causal reasoning.

In 2002 his son, the journalist Daniel Pearl, was kidnapped and murdered in Pakistan. Judea Pearl and his family established the Daniel Pearl Foundation, which works to promote understanding between cultures. This belongs to his life rather than to the book, which was written long before, but readers often know of it and it is part of how he is remembered.

It matters for reading this book that Pearl later criticised some of its limits himself. He has described the 1988 book as a work of associational reasoning, concerned with what goes with what. His later work argues that a full account of reasoning needs causal models on top. Reading the early book with that in mind makes it clearer what it achieves and where it deliberately stops.

The shape of the argument

The book moves from motivation, through foundations, to machinery, and then out to extensions and comparisons.

It opens with a broad survey of how AI systems had handled uncertainty and why the problem was hard. Pearl separates two styles of approach. In one, which he calls extensional, the certainty of a conclusion is computed from the certainties of the rules that produced it, piece by piece, as in a calculator. In the other, which he calls intensional, certainty is attached to whole states of the world, and the belief in any proposition depends on everything that is known. Probability theory is intensional. Rule-based schemes are usually extensional. Pearl argues that extensional schemes are attractive because they are modular and fast, but that they break down in characteristic ways, and that the task is to recover their modularity inside an intensional framework.

The foundations come next. Pearl reviews Bayesian inference, explains why conditional probability is the right tool for updating belief, and then gives a careful account of independence. This is the heart of the theoretical part. He asks what properties the relation of conditional independence has, shows that these properties can be captured by graphs, and develops two kinds of graph: undirected graphs, giving Markov networks, and directed acyclic graphs, giving Bayesian networks. He gives criteria for reading independence from each.

Then the machinery. Pearl develops a scheme for updating beliefs in a Bayesian network by local message passing. He shows it is exact on networks shaped like trees and on singly connected networks, called polytrees, and discusses methods for networks with loops, including clustering nodes together, conditioning on selected variables, and random simulation. He extends the approach from finding the probability of each variable to finding the single most probable explanation of all the evidence.

The later parts reach outward. There is material on decisions, on combining beliefs with utilities and on the value of gathering information. There is material on hierarchies of categories, continuous variables, and uncertainty about the probabilities themselves. There is a discussion of how network structure might be learned from data. And there is a long, fair comparison with non-probabilistic formalisms, chiefly Dempster-Shafer theory and the logics of default reasoning studied in AI at the time.

Two threads run throughout. The first is that structure is what makes probability usable. Without structure, probability is a vast table. With structure, it is a set of small local pieces, and computation can be local too. The second is that probability, so organised, agrees with human intuitions about plausible reasoning far better than its rivals, and that where it seems to disagree, closer study usually shows the intuition was relying on a structural assumption the network can make explicit.

Idea one: probability as the logic of uncertain belief

The starting claim is that degrees of belief should obey the rules of probability. If you think rain tomorrow is likely, and you learn something new, your belief should change in the way Bayes' rule prescribes. Bayes' rule says that the probability of a hypothesis given evidence is proportional to the prior probability of the hypothesis times the probability of the evidence if the hypothesis were true.

Pearl defends this on several grounds. One is coherence: an agent whose degrees of belief violate the probability rules can be shown, by classical arguments from de Finetti and others, to accept combinations of bets that guarantee a loss. Another is that the probability calculus has the right qualitative behaviour. It handles the fact that evidence can make a belief stronger in one context and weaker in another. It lets beliefs be revised when new evidence arrives, and makes the order of evidence irrelevant to the final result. And it supplies a common currency in which very different kinds of knowledge can be combined.

An everyday case makes the point. Suppose a medical test for a rare condition is ninety-five percent accurate. A patient tests positive. Many people, including doctors, judge that the patient very probably has the condition. But if only one person in a thousand has it, then among a thousand people tested, about one true case tests positive and about fifty healthy people also test positive by mistake. The chance that a given positive result is a true case is about one in fifty. Bayes' rule gets this right automatically, because it weighs the evidence against the prior. Ad hoc scoring schemes that ignore base rates get it badly wrong.

This idea is often confused with the claim that probabilities must be frequencies measured from data. Pearl's view is broader. Probabilities can express an expert's judgement, provided they are used consistently. The numbers in a Bayesian network may come from data, from experts, or from both. What matters is that they are combined by the rules.

The idea leads directly to the rest of the book. Once you accept probability as the standard, the question becomes how to make it practical, and the answer is structure.

Idea two: why rules with certainty factors fail

To see why Pearl insisted on probability, it helps to see how the alternatives failed. The best-known alternative was the certainty factor model used in the MYCIN system, built at Stanford in the 1970s to recommend treatments for blood infections. Each rule carried a number saying how strongly its premise supported its conclusion. When rules chained together, their numbers were combined by fixed formulas. When several rules supported the same conclusion, their numbers were combined by another formula.

This works well when evidence comes from separate, unrelated sources pointing to one conclusion. It fails when the sources are related. Suppose two rules both conclude that the patient has an infection, one from a fever and one from a high white cell count. If fever and white cell count are both caused by the same underlying infection, they are not independent pieces of evidence in the right sense, and the scheme may count overlapping evidence twice. Or suppose evidence for a conclusion should also weaken belief in a rival explanation. A purely local rule has no way to do that, because each rule acts without regard to the others.

Pearl's diagnosis was precise. Extensional schemes treat each rule as a self-contained license to update belief, regardless of what else is known. But in probability, whether a piece of evidence supports a conclusion often depends on what else is known. A wet lawn supports the hypothesis that it rained, unless you also know the sprinkler was on. Rules cannot express that kind of dependence on context. Later analysis by David Heckerman showed that certainty factors are equivalent to probability only under strong and usually false independence assumptions.

There is a fair point on the other side, and Pearl grants it. Rule systems are modular. You can add a rule without rewriting the rest. Probability seemed to give up this modularity, since every belief depends on everything. Pearl's response is not to deny the value of modularity but to relocate it. In a Bayesian network, the modules are the local relationships between each variable and its direct causes. You can add a variable or change one relationship without redoing the whole model. Modularity is kept, but at the level of the model, not at the level of the inference rules.

This is often misread as a claim that all rule-based systems are useless. They are not. In domains where uncertainty is low or where evidence sources really are independent, simple schemes may be good enough. Pearl's claim was that they have no principled way of telling when they are good enough, and that a probabilistic model does.

Idea three: independence is the key to tractability

A full joint probability distribution over twenty yes-or-no variables has over a million entries. Over fifty variables it is beyond any computer. This is what made probability seem hopeless. The way out is that most variables are not directly related to most others. Knowing the weather in another city tells you nothing extra about your car's battery, given what you already know. Independence, and especially conditional independence, is what lets a big distribution be broken into small pieces.

Two variables are conditionally independent given a third if, once you know the third, learning one tells you nothing more about the other. A person's shoe size and reading ability are related in children, because both grow with age. But among children of the same age, they are roughly independent. Age screens one off from the other.

Pearl's insight was to treat conditional independence as a structure worth studying for its own sake. He asked which properties every conditional independence relation must have, regardless of the numbers. With colleagues, especially Azaria Paz, he identified a set of axioms, sometimes called the graphoid axioms, which state for instance that if X is independent of Y and Z together, given some evidence, then X is also independent of Y alone given that evidence. These axioms describe the logic of relevance: when does one thing bear on another, given what is known.

The importance of this step is easy to miss. It shifted attention from the numbers to the qualitative pattern of what is relevant to what. People are poor at estimating exact probabilities, but good at judging which factors directly influence which others. By building on qualitative independence judgements, Pearl made models that rest mostly on the kind of knowledge people actually have, and that need numbers only for small local relationships.

This idea is easily confused with the assumption that all variables are independent, which is what some naive schemes assume. Pearl's approach is the opposite. It assumes dependence everywhere unless the structure says otherwise, and then uses the independences that do hold to save effort.

Idea four: Bayesian networks

A Bayesian network is a directed acyclic graph, meaning a set of nodes joined by arrows with no cycles, in which each node is a variable and the arrows point from direct influences to what they influence. Each node carries a small table giving the probability of each of its values for each combination of values of its parents, the nodes with arrows into it. That is the whole model.

The graph and the tables together define a complete joint distribution. The probability of any full combination of values is just the product of the local probabilities, each node given its parents. If each node has only a few parents, the number of numbers needed grows roughly in proportion to the number of variables, not exponentially. A model with a hundred variables might need a few thousand numbers instead of an astronomical table.

A small example. Consider a house alarm that can be set off by a burglary or by an earthquake. When the alarm sounds, a neighbour may call you. A minimal network has burglary and earthquake as parents of alarm, and alarm as parent of the call. You need the chance of a burglary, the chance of an earthquake, the chance of the alarm for each of the four combinations of burglary and earthquake, and the chance of a call given alarm and given no alarm. That is a handful of numbers, each easy to think about, and together they let you answer any question about the four variables.

The arrows are naturally drawn from causes to effects, and Pearl stresses that this is how people tend to think. Causal knowledge is stable and modular. The chance that an earthquake sets off the alarm does not depend on how common burglaries are. But in this book the arrows are officially about probabilistic dependence, not causation. A network with the arrows reversed can represent the same distribution, though often with more arrows and less natural numbers. This gap between causal intuition and probabilistic formalism is exactly what Pearl later set out to close in Causality.

The name Bayesian network, which Pearl introduced in the mid 1980s, refers to the use of Bayes' rule in updating, and to the subjective reading of probability. The same structures are also called belief networks, causal networks, and directed graphical models. A related model, the Markov network or Markov random field, uses an undirected graph and expresses symmetric relationships. Pearl treats both and explains when each is the better fit.

Idea five: reading independence from a graph

A Bayesian network does more than store numbers compactly. Its shape alone tells you which variables are independent of which others given any set of observations. Pearl gave a precise graphical criterion for this, called d-separation, where d stands for directional.

There are three basic patterns along any path in the graph. In a chain, A causes B which causes C. Here A and C are related, but if you know B, learning A tells you nothing more about C. Observing the middle node blocks the path. In a fork, B causes both A and C. Again A and C are related through their common cause, and again knowing B blocks the path. In a collider, A and C both cause B. Here A and C are independent to begin with, but if you observe B, they become related. Observing the middle node opens the path.

The collider is the surprising case. Take the alarm network again. Burglaries and earthquakes are unrelated. But if you hear the alarm, they become related: learning that there was an earthquake makes a burglary less likely, because the earthquake already explains the alarm. Pearl called this pattern explaining away. It is a form of reasoning people do easily but that rule-based systems found very hard to capture.

D-separation combines these three patterns. Two sets of variables are independent given some evidence if every path between them is blocked: either by an observed node in a chain or fork, or by a collider that is not observed and has no observed descendants. With this rule, one can answer questions of relevance by inspecting the graph, without touching any numbers.

This idea is often confused with simple graph connectivity, as if two variables were independent whenever there is no path between them. That is part of it, but the direction of the arrows and the position of the evidence matter. A path through a collider is blocked until you observe the collider, then it opens. That is why the criterion is directional.

D-separation leads to a great deal. It underlies methods for learning graph structure from data, since independence patterns in data constrain which graphs are possible. And it became central in Pearl's later causal work, where the same graphical patterns explain confounding and selection bias.

Idea six: belief propagation

Having a compact model is not enough. You also need to compute updated beliefs when evidence comes in. Pearl's answer was a message-passing scheme now called belief propagation.

The idea is that each node in the network acts as a small processor. It holds its own local table and talks only to its neighbours. Evidence enters at some nodes. Each node sends two kinds of message. Messages going down the arrows, from parents to children, carry predictive support: given what is known above me, here is how likely each of my values is. Messages going up the arrows, from children to parents, carry diagnostic support: given what is known below me, here is how strongly each of your values is supported. Each node combines the messages it receives with its own table, updates its belief, and sends new messages on.

For networks shaped like trees, and more generally for polytrees, in which there is at most one path between any two nodes when the arrows are ignored, this scheme gives exactly the correct posterior probabilities after messages have passed across the network once in each direction. The work done is proportional to the size of the network, not exponential in it.

The scheme also has a pleasing interpretation. It is local, so it could in principle be run by distributed hardware. It is asynchronous, so nodes can update in any order and still reach the right answer. And each message has a meaning a person can understand, which makes the system's reasoning traceable. Pearl saw these as virtues not only for engineering but as a model of how plausible reasoning might be organised in a mind.

An analogy: imagine a family tree where each person knows only their own parents and children. A rumour about one member must reach the others. Each person passes on what they have heard, adjusted by what they know about their own link. If the tree has no loops, every person ends up with an accurate picture after one sweep up and one sweep down. That is belief propagation on a tree.

The scheme is often confused with simply chaining rules forward. The difference is that belief propagation passes information in both directions at once and combines it correctly, so it handles prediction and diagnosis together and accounts for explaining away. A forward-chaining rule system does only one direction and cannot let one explanation discount another.

Idea seven: networks with loops

Real domains are rarely trees. A disease may cause two symptoms that share another cause, creating a loop. In networks with loops, simple belief propagation is no longer guaranteed to be exact, because messages can circulate and count the same evidence more than once.

Pearl discusses several remedies. One is clustering: group nodes together into larger compound nodes until the network of clusters is a tree, and then run propagation on that. This is the basis of what became the junction tree algorithm, developed in its standard form by Steffen Lauritzen and David Spiegelhalter in a paper published in 1988, and by others. A second is conditioning: choose a small set of nodes whose observation would break all the loops, solve the tree problem for each possible combination of their values, and combine the results weighted by their probabilities. The chosen set is called a cutset. A third is stochastic simulation: draw random samples of all variables in a way that respects the evidence, and estimate probabilities from the samples. Pearl describes a scheme of this kind that is closely related to what statisticians call Gibbs sampling.

Each remedy has costs. Clustering and conditioning can blow up exponentially if the loops are many and tangled. Sampling can be slow to converge. In 1990 Gregory Cooper proved that exact inference in general Bayesian networks is NP-hard, which means no method can be efficient on every network. Pearl's framework does not escape this. What it does is make clear where the difficulty lies: in the loop structure of the graph. Sparse, nearly tree-like networks are easy. Dense, highly looped ones are hard.

A later discovery added a twist. In the 1990s researchers found that running belief propagation on loopy networks anyway, ignoring the lack of guarantees, often gives very good approximate answers. The decoding algorithms for turbo codes and low-density parity-check codes, which approach the theoretical limits of communication channels and are used in mobile phones and satellite links, turned out to be loopy belief propagation. Robert McEliece, David MacKay and Jung-Fu Cheng drew this connection in 1998. Pearl had mentioned the possibility of iterating on loopy networks, but its practical power was not understood until then.

Idea eight: the most probable explanation

Sometimes you do not want the probability of each variable separately. You want the single best story that accounts for everything you have seen. A doctor wants to know which combination of diseases most likely explains a patient's symptoms, not the separate probability of each disease.

Pearl calls this belief revision, as distinct from belief updating, and develops a variant of the message-passing scheme for it. Instead of summing over possibilities, each node passes messages that track the best possible configuration of the rest of the network. The result is the most probable explanation, the full assignment of values that has the highest probability given the evidence.

The distinction matters because the two questions can have different answers. The most likely value of each variable taken separately need not combine into the most likely joint story. Suppose two diseases each have a sixty percent chance given the symptoms, but they rarely occur together. Then the best single explanation may contain only one of them, even though each on its own is more likely than not.

The idea connects to the way people reason in diagnosis, law and science, where a coherent account is often more useful than a list of marginal probabilities. It also connects to the Viterbi algorithm used in speech recognition and coding, which finds the most likely sequence of hidden states in a chain and is a special case of the same approach.

Idea nine: decisions and the value of information

Reasoning under uncertainty is usually in service of action. Pearl extends networks with decision nodes, which represent choices, and utility nodes, which represent how good each outcome is. The resulting structures, close to what Ronald Howard and James Matheson called influence diagrams, let one compute which action gives the best expected result.

A further question is whether to gather more information before acting. A test costs money and time. Is it worth doing. The answer depends on how much the result could change your decision and how much better the changed decision would be. This is the value of information, and a network makes it computable: you can ask what you expect to believe after each possible result, what you would then do, and how much better off you would be on average.

Consider a farmer deciding whether to plant early. A soil test might reveal moisture levels. If the test result would not change the decision either way, it is worth nothing, however accurate it is. If it would change the decision in some cases and those cases matter, it may be worth a great deal. This simple logic is often ignored in practice, where people gather information because it feels responsible rather than because it bears on a choice.

This part of the book is less original than the core, since decision theory was well developed by 1988. Its value lies in showing that decisions fit naturally into the same graphical framework, so that one model can support both inference and choice.

Idea ten: probability and its rivals

Pearl gives sustained attention to two rivals. The first is Dempster-Shafer theory, developed by Arthur Dempster and Glenn Shafer, which assigns belief to sets of possibilities rather than to single outcomes and so can represent ignorance differently from probability. Pearl treats it seriously. He shows that its belief functions can be understood as probabilities of provability, the chance that the evidence proves a proposition, rather than the chance that the proposition is true. He argues that this makes Dempster-Shafer useful for some questions but misleading if its numbers are read as ordinary degrees of belief, and that its rule of combination can give strange results when evidence conflicts.

The second rival is non-monotonic logic, the family of formal systems that AI researchers developed to handle default reasoning, such as concluding that a bird flies unless told otherwise. These logics struggled with cases where defaults conflict. Pearl shows how probability, interpreted in the limit where some probabilities are very close to one, can give a semantics for defaults that resolves many of these puzzles. This line of work, developed with colleagues such as Hector Geffner and Moises Goldszmidt, connects qualitative and quantitative reasoning.

The tone of these chapters is notable. Pearl does not dismiss the rivals. He explains what each gets right, where it differs from probability, and which questions each is suited to. This fairness made the book persuasive to readers who did not start out as Bayesians.

Reasoning in both directions

One of the quiet strengths of the framework is that it does not care which way the reasoning runs. Rule-based systems usually ran in one direction. Some reasoned forward, from conditions to conclusions, like a planner predicting the effects of an action. Others reasoned backward, from a goal or an observation to what might explain it, like a diagnostic program. Mixing the two in one system was awkward and often produced inconsistencies.

A Bayesian network is built once, usually with arrows from causes to effects, and then used either way. Enter a cause and ask about effects, and you are predicting. Enter an effect and ask about causes, and you are diagnosing. Enter some of each and ask about anything, and you are doing a mixture that has no special name but is what most real reasoning looks like. Bayes' rule handles the inversion automatically. The same local tables serve every kind of question.

Consider a mechanic and a car that will not start. The mechanic knows how faults produce symptoms: a dead battery means no lights and no cranking, an empty tank means cranking but no firing. That knowledge runs from causes to effects. But the task runs the other way, from symptoms to faults. And as the work proceeds, the reasoning switches again: having guessed the battery, the mechanic predicts what a voltmeter should show, then checks. A network supports all of these moves from one model, which is why it fits diagnostic and troubleshooting work so well.

This symmetry is often taken for granted now, but in the 1980s it was one of the most persuasive features of Pearl's approach. It showed that a single coherent representation could support the whole range of plausible reasoning, instead of separate systems for prediction and explanation that had to be kept in agreement by hand.

The point also exposes a subtle trap. Because the network reasons equally well in both directions, it is tempting to forget which direction is causal. Diagnosis from effect to cause is legitimate inference, but it is not the same as influence. Learning that the lights are off raises belief that the battery is dead. It does not drain the battery. Keeping that distinction clear is easy in a car and hard in economics or medicine, where the same confusion produces costly mistakes. Pearl's later work on causality makes the distinction formal.

Idea eleven: learning the structure from data

So far the network has been supplied by a person who knows the domain. A natural question is whether the graph itself could be found from data. If we have records of many cases, each giving values for all the variables, can we discover which variables directly depend on which.

Pearl's answer starts from independence. Every graph implies a particular pattern of conditional independences. If we can test, from data, which independences actually hold, we can rule out graphs that imply the wrong pattern. Sometimes only a few graphs survive. The book treats this problem in an early form, including the special case of finding the best tree-shaped network, for which Chow and Liu had given an efficient method in 1968, and discusses how hidden variables can sometimes be inferred from patterns of dependence among observed ones.

There is a fundamental limit here, and it is worth understanding clearly. Different graphs can imply exactly the same independences. A chain from A through B to C and a chain from C through B to A imply the same thing: A and C are related, but independent given B. Data about association alone cannot tell them apart. But a collider is different. If A and C are independent, yet both become dependent once B is known, the only graphs that fit have arrows from A and from C into B. So the data can sometimes fix the direction of some arrows, and not others.

This is a remarkable fact, and it is the seed of much later work. It means that observational data, with no experiments at all, can sometimes reveal something about the direction of influence, provided one accepts certain assumptions about how the data were generated. Pearl and Thomas Verma developed this in work around 1990, and Peter Spirtes, Clark Glymour and Richard Scheines at Carnegie Mellon developed it into practical algorithms in their book Causation, Prediction, and Search.

An analogy: imagine looking at a set of tangled ropes from above. You cannot see which end is tied to what. But at a point where two ropes are knotted into a third, the shape of the knot tells you something about how they meet. Colliders are the knots that give away direction.

This idea is often over-read. Structure learning from observational data depends on assumptions, especially that every independence in the data reflects the structure rather than a coincidence of numbers, and that no important variable has been left out. When those assumptions fail, the inferred structure can be wrong. The method is a tool for generating and constraining hypotheses, not a machine for revealing truth from spreadsheets.

Beyond yes and no: hierarchies, quantities and doubt

Most of the book's examples use variables with a few discrete values: present or absent, high or low. Real problems also involve categories arranged in hierarchies, quantities that vary continuously, and doubt about the probabilities themselves. Pearl shows that the network framework stretches to cover these cases, though with more effort.

Hierarchies arise whenever hypotheses come in nested families. A fever might point to an infection, and infections divide into viral and bacterial, and those divide further. Evidence may bear on a whole family at once or on one member only. Pearl shows how propagation can be organised along such a taxonomy, so that evidence about the general class flows correctly down to its members and evidence about a member flows up.

Continuous variables, such as temperature or blood pressure, cannot have tables listing every value. When relationships are linear and noise is Gaussian, that is, bell-shaped, the whole network can be summarised by means and variances, and propagation becomes a matter of passing a few numbers. This is the same mathematics as the Kalman filter, used for decades to track aircraft and spacecraft. Pearl's treatment shows that such filters are a special case of belief propagation.

Doubt about the numbers raises a philosophical question. If an expert is unsure whether a probability is thirty or fifty percent, should the model carry that uncertainty. Pearl's general answer is that uncertainty about a probability can itself be modelled as a variable with its own distribution, and that for a single decision what matters is the average. The doubt becomes important only when further evidence could sharpen it. This answer satisfies many readers but not all, and it connects to the criticism from imprecise probability discussed later.

Idea twelve: structure as knowledge

Beneath all the technical results lies a view about what knowledge is. For Pearl, much of what an expert knows is not numbers but structure: which factors matter, which act through which, which are irrelevant once something else is known. A good doctor knows that a certain symptom is relevant to a disease only through a particular organ, so that once the organ's state is known, the symptom adds nothing. That is a judgement of conditional independence, and it is often more reliable than any probability the doctor could state.

This view changes how one builds and checks a model. Instead of asking an expert for hundreds of numbers, one first asks for the graph. That conversation is natural. Experts can argue about whether one factor directly affects another, and the argument is productive. Only then are numbers needed, and only for small local relationships that are easy to discuss.

It also changes how one explains a conclusion. A network can trace why it reached a belief: this evidence raised that intermediate node, which raised this hypothesis, while that other evidence explained away a rival. Such explanations follow the paths in the graph. They are close to the explanations people give each other, which was one of Pearl's stated aims.

The idea is sometimes confused with the claim that only the graph matters and the numbers are unimportant. That is not right. The numbers determine the strength of every effect, and bad numbers give bad answers. The claim is that the graph carries the most robust and most communicable part of the knowledge, and that a system built on it will be easier to construct, criticise and correct.

This view leads, again, toward causation. The judgements experts make about structure are usually causal judgements, about what produces what. Pearl's later work makes this explicit, and argues that causal structure is the deepest and most stable part of what we know about the world. In this book the seed of that argument is already present, in the repeated observation that the most natural networks are the ones drawn from causes to effects.

The tradition around it

What came before

Bayes' rule goes back to Thomas Bayes and Pierre-Simon Laplace in the eighteenth century. Subjective probability, the view that probabilities measure degrees of belief, was developed in the twentieth century by Frank Ramsey, Bruno de Finetti and Leonard Savage. Graphical representations of dependence also have a history: Sewall Wright's path analysis in genetics in the 1920s, the physicists' Markov random fields, and work by statisticians on log-linear models and conditional independence, including that of Philip Dawid, who gave an influential axiomatic treatment of conditional independence in 1979.

In AI, the immediate background was expert systems and their uncertainty schemes. Pearl's own 1982 paper on how Bayesian reasoning could be done by an inference engine of local processors was a turning point. Work by Richard Duda, Peter Hart and colleagues on the PROSPECTOR system had also tried to use Bayesian updating in rules. Pearl gave the whole effort a solid foundation.

What came after

The book changed AI's attitude to uncertainty within a few years. By the early 1990s Bayesian networks were being used in medical diagnosis, troubleshooting systems and decision support, and probability was the default framework for uncertain reasoning. Learning network structure and parameters from data became a major field, with contributions from David Heckerman, Gregory Cooper, Peter Spirtes, Clark Glymour, Richard Scheines and many others. The book by Daphne Koller and Nir Friedman, Probabilistic Graphical Models, published in 2009, is a large modern synthesis of the field Pearl founded.

Machine learning absorbed the framework. Hidden Markov models, Kalman filters, mixture models and topic models are all special cases of graphical models, and variational and sampling methods for them became standard. Pattern Recognition and Machine Learning by Christopher Bishop and Information Theory, Inference, and Learning Algorithms by David MacKay, both on this shelf, present graphical models as part of the core of the field. MacKay's book in particular shows the link between belief propagation and error-correcting codes.

Pearl's own development led to Causality: Models, Reasoning, and Inference, also on this shelf. There he adds to the network an explicit notion of intervention, writing it as a do operator, and shows how to compute the effects of actions and how to reason about counterfactuals. That book can be read as the answer to a question this one leaves open: what do the arrows really mean.

Neighbours on this shelf

Within this bay, the book sits beside Parallel Distributed Processing, published two years earlier, as the other great response to the brittleness of rule-based AI. The PDP group answered with learned, opaque weights. Pearl answered with explicit, interpretable probabilities. For decades these were rival camps. Modern deep learning comes from the first, but much of its theory, especially for generative models, borrows the language of the second. Artificial Intelligence: A Modern Approach by Russell and Norvig gives Bayesian networks a central place and is a good bridge. The Sciences of the Artificial by Herbert Simon offers a contrasting view of rational choice under limited knowledge, stressing satisficing rather than optimal updating. Reinforcement Learning by Sutton and Barto builds on the same probabilistic foundations to treat learning from reward.

Questions and criticisms

Where do the numbers come from

A standing objection is that Bayesian networks need many probabilities, and experts are often unable or unwilling to supply them. Pearl's answer is that the structure does most of the work, that local probabilities are easier to judge than global ones, and that results are often robust to modest errors in the numbers. Experience since has broadly supported this, especially when the numbers can be refined with data. But elicitation remains a practical difficulty in many applications.

Computational hardness

Exact inference is NP-hard in general, and approximate inference with guaranteed accuracy is also hard. Pearl's methods are efficient only on sparse structures. This is a real limit, though not a refutation, since every framework for uncertain reasoning faces some version of it. Much of the later field has been about approximation methods that work well in practice.

Probability and ignorance

Critics from the Dempster-Shafer and imprecise probability traditions argue that a single probability cannot distinguish knowing that a coin is fair from knowing nothing about the coin. Both may get a probability of one half. Pearl's reply is that the difference shows up in how beliefs change with new evidence, which a network can represent through its structure and through uncertainty about parameters. Not everyone is satisfied with this, and the debate continues in the philosophy of probability.

Correlation and causation

The most important limitation is one Pearl himself later stressed. The 1988 framework is about association. It can tell you how observing one variable changes belief about another. It cannot by itself tell you what would happen if you forced a variable to take a value. In the alarm example, observing the alarm raises belief in a burglary. Pressing the alarm button by hand does not. A purely probabilistic network cannot distinguish these without additional causal assumptions. This is the gap Pearl's later book fills.

Are people Bayesian

Pearl often appeals to human intuition, arguing that the probabilistic model matches how people reason when they reason well. Yet during the same years, Daniel Kahneman and Amos Tversky documented systematic ways in which people depart from probability: neglecting base rates, judging likelihood by resemblance, and being swayed by how a question is framed. This might seem to undercut Pearl's appeal to intuition.

The tension is real but smaller than it looks. Pearl's appeal is mainly to qualitative judgements of relevance and structure, such as explaining away, which people make readily. The heuristics and biases findings mostly concern numerical judgement, which Pearl agrees people are poor at. A reasonable reading is that people are good at building the graph and poor at doing the arithmetic, which is exactly the division of labour a Bayesian network supports. Later work in cognitive science, by Joshua Tenenbaum, Thomas Griffiths and others, has used graphical models to explain many aspects of human learning and causal judgement, giving partial support to Pearl's view.

What has held up

The core ideas have held up very well. Probability is now the standard language for uncertainty in AI and machine learning. Conditional independence and graphical models are taught in every serious course. Belief propagation, in exact and loopy forms, runs in communication systems, vision algorithms and many other places. The d-separation criterion is a basic tool in causal inference and in epidemiology. The book's insistence on making assumptions explicit and reasoning about them clearly has had influence far beyond AI.

What has aged

Some material has aged. The treatment of learning network structure from data is early and has been far surpassed. Some of the comparisons with rival formalisms address debates that have since faded. The style of the book, with long discursive passages mixed with formal results, can make it hard to find specific methods quickly. And the large modern successes in AI have come mainly from deep learning rather than from explicit graphical models, though the two are increasingly combined.

Why it is on this shelf

This shelf gathers books on Vedanta, Jyotish, science, economics and technology. This book belongs here because it teaches how to reason correctly when you do not know enough, which is the ordinary condition of anyone making decisions. Its lessons apply in a clinic, in a market, in a courtroom and in the design of software.

For economics, the link is direct. Markets are full of signals that are related through hidden common causes, and confusing correlation with independent confirmation is one of the commonest errors in financial and economic judgement. The habits this book trains, asking which variables directly influence which, noticing when two signals share a cause, and noticing when one explanation discounts another, are useful in reading any economic situation.

For a reader of Jyotish, the book offers a discipline worth applying. Any system that claims to infer hidden states from observed signs, whether a diagnosis from symptoms or a forecast from indicators, can be examined in the terms the book provides: what are the variables, what depends on what, what is the prior, how much should each sign move belief, and how would one check the model against outcomes. Applying that discipline does not settle questions of worth by itself, but it makes them precise.

For a reader of Vedanta, the book is a careful account of one kind of knowing, the inferential knowledge that the Nyaya and Vedanta traditions call anumana, meaning inference from a sign to what it signifies. Indian epistemology classifies the means of valid knowledge, the pramanas, and studies when an inference is sound. Pearl's work can be read as a modern, quantitative contribution to that same old question of how evidence should move belief.

For a reader of technology, it explains the reasoning inside many systems in daily use, from spam filters and fault diagnosis tools to the decoders in every mobile phone. Knowing how those systems weigh evidence makes it easier to judge when to trust them and when they are likely to fail.

We keep it, therefore, as the clearest founding statement of a way of thinking that has become standard, written by someone who had to argue for it against strong resistance.

How to read it

This is a demanding book, but its core can be reached by a patient reader with some comfort with basic probability.

Start with the opening chapter on uncertainty in AI systems. It contains the motivation and the distinction between extensional and intensional approaches, and it is largely non-mathematical. Read it in one or two sittings. Then read the chapter on Bayesian inference, which reviews the basics and introduces the style of reasoning Pearl will build on. If your probability is rusty, keep a short introductory text beside you.

The chapter on Markov and Bayesian networks is the theoretical centre. Read it slowly, with a pencil. Draw the small networks yourself. For each of the chain, fork and collider patterns, invent your own example from daily life and check that the independence behaves as the theory says. Work out the alarm example, or one of your own, by hand: compute the probability of a burglary given the alarm, then given the alarm and an earthquake report, and see explaining away happen in the numbers.

Then read the chapter on belief propagation. Work through propagation on a small tree with three or four nodes by hand, keeping track of the two kinds of message. If you can program, implement it, then add a loop and watch what goes wrong. This is the single best exercise for understanding the book.

On a first pass, skip or skim the later chapters on composite beliefs, decisions, hierarchies and continuous variables, learning structure, and rival formalisms. Return to them selectively once the core is solid. The chapter comparing probability with Dempster-Shafer theory and default logic is worth reading on a second pass for its fairness and for the philosophical light it sheds.

A reasonable pace is one chapter every week or two, with exercises. The core path takes about six to eight weeks.

From this shelf, read next Causality: Models, Reasoning, and Inference by the same author, which completes the picture. For a modern treatment of graphical models within machine learning, turn to Pattern Recognition and Machine Learning by Bishop, or to MacKay's Information Theory, Inference, and Learning Algorithms for the connection with coding. For contrast, read Parallel Distributed Processing to see the other response to rule-based AI.

Questions to carry

  • Why should degrees of belief obey the rules of probability rather than some other calculus?
  • What exactly goes wrong when evidence is combined by local rules that ignore context?
  • How can a qualitative judgement about which variables are relevant to which do more work than precise numbers?
  • In a collider, why does observing the common effect make two independent causes dependent?
  • Where in your own reasoning have you counted the same evidence twice because two signals shared a cause?
  • Why is belief propagation exact on trees and not on graphs with loops, and why does it often work anyway?
  • When is the single most probable explanation more useful than the probability of each variable on its own?
  • How would you decide whether a test or a piece of research is worth doing before a decision?
  • What does a probability of one half fail to say about the state of your knowledge?
  • What is the difference between observing that a variable has a value and setting it to that value?
  • Do the arrows in a Bayesian network mean causation, and if not, what do they mean?
  • Why did probability, once thought impractical for AI, become its standard language?
  • How could the reasoning in this book be used to test any system that claims to read hidden states from outward signs?

Words to know

  • Bayes' rule: the formula for updating the probability of a hypothesis in light of evidence, using the prior probability and the likelihood of the evidence.
  • Prior probability: the degree of belief in a hypothesis before the evidence at hand is considered.
  • Posterior probability: the degree of belief after the evidence has been taken into account.
  • Likelihood: the probability of observing the evidence if a given hypothesis were true.
  • Joint distribution: the probability of every combination of values of all variables in a model.
  • Conditional independence: two variables are conditionally independent given a third if, once the third is known, learning one gives no further information about the other.
  • Bayesian network: a directed acyclic graph whose nodes are variables and whose arrows show direct dependence, with a local probability table at each node.
  • Directed acyclic graph: a set of nodes joined by arrows with no path that leads back to its start.
  • Parent: in a Bayesian network, a node with an arrow pointing into a given node.
  • Markov network: an undirected graphical model in which links express symmetric dependence.
  • D-separation: Pearl's graphical criterion for reading conditional independence from a Bayesian network.
  • Collider: a node with two or more arrows pointing into it on a path; observing it makes its causes dependent.
  • Explaining away: the pattern by which evidence for one cause of an observed effect lowers belief in other causes.
  • Belief propagation: computing updated beliefs by passing local messages between neighbouring nodes.
  • Polytree: a directed graph with no loops when the direction of arrows is ignored; belief propagation is exact on it.
  • Cutset conditioning: handling loops by fixing a small set of nodes, solving each case, and combining the results.
  • Junction tree: a tree of clusters of variables built from a looped network so that exact propagation can be run.
  • Most probable explanation: the single full assignment of values with the highest probability given the evidence.
  • Certainty factor: a number attached to a rule in systems such as MYCIN to express strength of support, combined by fixed formulas.
  • Extensional and intensional: Pearl's terms for computing certainty piece by piece from rules, versus attaching it to whole states of the world.
  • Dempster-Shafer theory: a formalism that assigns belief to sets of possibilities and can be read as the probability that the evidence proves a proposition.
  • Value of information: the expected improvement in a decision that would result from learning something before choosing.
  • Anumana: the Sanskrit term in Indian epistemology for inference, knowledge gained by reasoning from a sign to what it indicates.

A note on this edition

This is a study edition written for this shelf in our own words. It is a companion to Probabilistic Reasoning in Intelligent Systems, not a replacement for it. It explains the book's ideas, background and later influence, but it does not reproduce its text, derivations, figures or examples in detail. The small examples used here are our own or are standard illustrations in the field.

The book itself is in copyright. It has been reprinted many times and is widely held by university libraries. Its central chapters, on networks and on propagation, are worth working through in the original with paper and pencil. Get the book from a library or a bookshop and read it alongside this edition.

Terms from this book with their own page: Anumana

More from “Artificial intelligence”

The whole section →