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

Library › Artificial intelligence

Causality: Models, Reasoning, and Inference

Judea Pearl · 2000 · Cambridge University Press

More by Judea Pearl on this shelf · 2 books →

Cause given a mathematics. Correlation is not enough.

About the book

Judea Pearl published Causality in 2000 through Cambridge University Press, with a second edition in 2009. Pearl received the Turing Award in 2011 partly for this work. The book gives a mathematical language for cause and effect, which traditional statistics had largely avoided. It uses causal diagrams and structural equation models to represent assumptions, and defines interventions with the do-operator. Chapters cover probability and graphs, inferring causal structure from data, identifying causal effects from diagrams, actions and plans, structural models in social science and economics, Simpson's paradox and confounding, counterfactuals, bounds from imperfect experiments, probability of causation, and actual causation. An epilogue reproduces a public lecture on the history of causal thinking.

Key ideas

  • Probability describes associations, but causal questions ask what would happen under intervention. Pearl distinguishes observing that a variable has a value from setting it, written with a do-operator.
  • Causal diagrams make assumptions explicit. Arrows record which variables directly affect which, and from the diagram one can work out which effects can be estimated from data.
  • The back-door criterion tells which variables to adjust for in order to remove confounding. Adjusting for the wrong variables can create bias rather than remove it, so the diagram must guide the choice.
  • The do-calculus is a set of three rules for turning questions about interventions into expressions involving only observed probabilities, whenever the causal diagram makes that possible.
  • Simpson's paradox, where a trend reverses when data is split into groups, is resolved by causal reasoning. Statistics alone cannot say which comparison is the right one.
  • Counterfactuals, questions about what would have happened, can be defined and computed in structural models. This supports reasoning about responsibility, explanation and the probability of causation.

Why it is on this shelf

Economics, medicine and business decisions all ask causal questions, and most data analysis answers only correlational ones. Pearl gives the tools to tell the difference and to state assumptions openly. For anyone reading studies or running experiments on a product, this is the foundation.

How to start reading it

Read the epilogue lecture first for the big picture. Then read chapter one and chapter three on causal diagrams and identification. Chapter six on Simpson's paradox is a good test. Pearl's The Book of Why is a gentler companion.

About this book

Causality: Models, Reasoning, and Inference is Judea Pearl's systematic account of how to reason about cause and effect with mathematics. Cambridge University Press published it in 2000, and a second edition, corrected and extended with new material, followed in 2009. It gathers into one volume a body of work that Pearl and his students and colleagues had built over roughly a decade, much of it first published as journal papers and conference articles in statistics, computer science, epidemiology and philosophy.

The question the book sets out to answer sounds simple. When we say that one thing causes another, what exactly do we mean, and how can we tell from data whether it is true? For most of the twentieth century, statistics had an awkward relationship with this question. Its founders had taught that correlation is not causation, and they were right, but the lesson hardened into a habit of not speaking about causes at all. Statistical language could describe how variables move together. It had no agreed symbols for saying that one variable makes another move.

Pearl's claim is that this silence was not a matter of caution but of missing vocabulary. Probability theory, however refined, describes a world we only watch. Causal questions concern a world we change: what happens if we give the drug, raise the price, ban the pesticide, or had not taken the job. To answer them we need a language in which changing a system is a different operation from observing it. The book supplies that language, shows what it can and cannot conclude from data, and argues that a large set of old puzzles in statistics, economics and philosophy dissolve once it is used.

The intended readers are several. Statisticians and epidemiologists are addressed directly, since they handle confounding every day and often lack a principled rule for it. Economists and social scientists are addressed because their structural equation models already contain causal ideas that, Pearl argues, the profession had partly forgotten how to read. Computer scientists working on artificial intelligence are addressed because a machine that plans, explains or takes responsibility must reason about interventions and counterfactuals. Philosophers are addressed because the analysis of causation is an old problem in their field, and Pearl offers a formal account that can be checked.

The book is not light reading. It assumes comfort with probability, conditional independence and some graph theory, and parts of it are written as theorems with proofs. Yet the central ideas can be grasped without every proof, and Pearl writes with unusual directness for a technical author. He argues, teases, and repeatedly stops to tell the reader why a result matters. This companion aims to give a reader the ideas, the context and a plan, so that time spent with the book itself is well used.

It is worth saying at the start what kind of book this is not. It is not a cookbook for running regressions, nor a survey of every method of causal inference. It is an argument for a particular framework, built on graphs and structural equations, together with the main results that framework yields. Readers who come from other traditions, such as the potential outcomes school associated with Donald Rubin, will find the book sometimes polemical. That too is part of its character, and part of what made it influential.

The author

Judea Pearl was born in 1936 in Tel Aviv and grew up in Bnei Brak, then a small town near it. He studied electrical engineering at the Technion in Haifa, then moved to the United States, where he took a master's degree in physics at Rutgers and a doctorate in electrical engineering at the Polytechnic Institute of Brooklyn in the mid 1960s. He worked for some years in industrial research labs on electronic memory devices before joining the University of California, Los Angeles in 1970, where he spent the rest of his career in the computer science department.

His path to causality ran through artificial intelligence. In the 1970s and early 1980s he worked on search and heuristics, and his book Heuristics appeared in 1984. He then turned to a problem that troubled the field: how should an intelligent system reason when its knowledge is uncertain? The expert systems of the time used ad hoc certainty factors that behaved badly when evidence was combined. Pearl showed that probability theory could be made practical for such systems if the dependencies between variables were represented by a directed graph, and if beliefs were updated by passing messages along the graph's links.

That work culminated in Probabilistic Reasoning in Intelligent Systems, published in 1988, which sits on the same shelf as this book. It established what came to be called Bayesian networks as a standard tool of artificial intelligence. The graphs in that book were probabilistic: an arrow meant a statistical dependence structured in a particular way. But Pearl came to see that people who drew such graphs nearly always drew arrows from causes to effects, and that the graphs were most stable and most useful when they did. That observation led him from probability to causation.

Through the late 1980s and the 1990s he and his collaborators developed the tools gathered in Causality: a criterion for reading independence from graphs, an account of how causal structure can sometimes be discovered from data, the treatment of interventions as surgery on a model, the back-door and front-door criteria, the do-calculus, bounds on effects from imperfect experiments, and a structural account of counterfactuals. Among his collaborators were Thomas Verma, Dan Geiger, Alexander Balke, Jin Tian, Joseph Halpern and later Ilya Shpitser.

Pearl received the Turing Award, computing's highest honour, for 2011, cited for contributions to artificial intelligence through the development of a calculus for probabilistic and causal reasoning. After Causality he wrote more accessible works: Causal Inference in Statistics: A Primer, with Madelyn Glymour and Nicholas Jewell, in 2016, and The Book of Why, with the science writer Dana Mackenzie, in 2018. The latter brought his ideas to a general audience and is the natural companion to this volume.

His life also carries a public sorrow. His son Daniel Pearl, a journalist, was murdered in Pakistan in 2002. Judea Pearl and his family founded the Daniel Pearl Foundation to promote dialogue and understanding across cultures, and he has written and spoken widely on those themes. This does not bear on the mathematics of the book, but it explains why readers often know his name from outside computer science.

The shape of the argument

The book moves in three broad stages. The first stage builds the machinery. It begins with probability and graphs, explains how a directed graph encodes conditional independence, and then asks how much causal structure can be recovered from data alone. This stage is the bridge from Pearl's earlier work on Bayesian networks to his causal work, and it ends with a sober answer: data can sometimes reveal causal direction, but only under assumptions, and often only partly.

The second stage is the heart of the book. It introduces interventions, treated as modifications of a causal model, and asks when the effect of an intervention can be computed from data gathered without intervening. Here come the graphical criteria for adjustment and the three rules of the do-calculus. The stage then turns outward, applying the framework to topics where confusion had long reigned: structural equation models in economics and the social sciences, the meaning of confounding, and Simpson's paradox. These chapters are partly technical and partly historical, and they carry much of the book's polemical energy.

The third stage climbs from interventions to counterfactuals. Here the question is not what will happen if we act, but what would have happened in a particular case had things been different. Pearl defines counterfactuals within structural models, shows how to compute them, and uses them to analyse instrumental variables and imperfect experiments, the probability that one event was necessary or sufficient for another, and the notion of actual cause that lawyers and historians use. The book closes with an epilogue reproducing a public lecture that tells the history of causal thought in plain language.

Throughout, the method is the same. Pearl states a question that practitioners care about, shows that it cannot be posed, let alone answered, in the language of probability alone, writes it in causal notation, and then reduces it to a question about the graph. Once in that form, the question either has an answer that can be read off with a simple rule, or it can be shown to have no answer without further assumptions. This pattern, translate, reduce, decide, is the book's real lesson. Readers who learn to apply it will find it more useful than any single theorem.

The second edition added commentary to several chapters and a long final chapter of reflections and replies, in which Pearl answers questions and objections that readers had raised in the years after the first edition. That added material is valuable because it shows the framework under pressure, meeting actual confusions rather than imagined ones.

Seeing is not doing

Two kinds of question

The first key idea is a distinction that seems obvious once stated and yet was missing from standard notation. There is a difference between seeing that a variable has a value and making it have that value. Suppose we observe that people who carry lighters are more likely to develop lung cancer. The conditional probability of cancer given a lighter is high. But if we handed lighters to a random sample of people, their cancer risk would not change. Observing the lighter tells us something, because lighter carriers tend to smoke. Giving out lighters does nothing, because lighters do not cause cancer.

Ordinary probability has one operation for this situation: conditioning. Conditioning answers the question of how our beliefs should change when we learn something. It cannot answer the question of how the world changes when we act on it. Pearl introduces a separate operator, written do of x, to mark the second kind of question. The probability of cancer given do of lighter means the probability of cancer in a world where we have set lighter possession by our own hand, regardless of what would normally have determined it.

Interventions as surgery

How should such a quantity be computed? Pearl's answer is that a causal model consists of mechanisms, one for each variable, each saying how that variable is determined by its direct causes. An intervention replaces one mechanism with a fixed value and leaves all the others alone. In a diagram, this means deleting every arrow pointing into the variable we set, because once we set it, its usual causes no longer influence it. Everything downstream still responds as before. The idea is often called graph surgery.

The assumption that we can change one mechanism without disturbing the rest is called modularity or autonomy. It is what makes causal models more than summaries of data. A table of correlations tells us nothing about which parts would stay fixed if we intervened. A causal model, by contrast, commits us to a view of which pieces of the world are separate, and that commitment is what lets us predict the result of actions we have never taken.

Why it matters

The distinction matters because most practical questions are about doing. A doctor wants to know what a treatment will do, not what its presence predicts. A government wants to know what a tax will do to employment. A company wants to know what a price change will do to sales. Data collected passively shows correlations shaped by the reasons people chose what they chose. The do-operator makes the gap between the two kinds of question visible and forces the analyst to say how the gap is to be crossed.

The idea is often confused with mere causal language. Many papers say that x affects y while computing only a regression coefficient. Pearl's notation makes such statements testable: either the analyst can show that the regression coefficient equals the interventional quantity under stated assumptions, or the claim is unsupported. The idea also leads directly to the rest of the book, since nearly every later result is a rule for computing a do-expression from ordinary observed probabilities.

Diagrams as a language for assumptions

What an arrow says

The second key idea is that causal assumptions should be written as diagrams, and that diagrams are not just pictures but precise statements. In a causal diagram, each node is a variable and each arrow from one variable to another says that the first may directly influence the second. The more informative part of a diagram is what it leaves out. A missing arrow is a strong claim: it says there is no direct influence. A missing node is a claim too: it says there is no unmeasured common cause of two variables, unless such a cause is drawn, often as a dashed two-headed arrow.

Consider a simple model of a fertiliser trial. Fertiliser affects soil nitrogen, nitrogen affects yield, and rainfall affects both nitrogen and yield. Drawn as a diagram, this has four nodes and four arrows. It says, among other things, that fertiliser affects yield only through nitrogen. If that is false, because fertiliser also changes soil acidity which affects yield, the diagram is wrong, and conclusions drawn from it may be wrong. The diagram therefore exposes exactly what must be believed for an analysis to hold.

Reading independence from a graph

Pearl shows how to read off, from the diagram alone, every conditional independence that the model implies. The rule is called d-separation, short for directional separation. It treats a path between two variables as open or blocked. A chain, where influence passes through a middle variable, is blocked if we condition on the middle. A fork, where a common cause sends arrows to both ends, is blocked if we condition on the common cause. A collider, where two arrows meet head to head at a middle variable, is the reverse: it is blocked unless we condition on the collider or on something it causes.

The collider rule is the surprising one, and it explains a whole family of statistical illusions. Suppose talent and good looks are independent in the population, but both raise the chance of becoming a film actor. Among actors, talent and looks will appear negatively related, because an actor lacking one is more likely to have the other. Conditioning on the common effect, here becoming an actor, creates a dependence that does not exist in the population. Many puzzling patterns in hospital data, admissions data and published research come from this kind of selection.

Why diagrams rather than equations

Diagrams have rivals. Assumptions can also be written as statements about which potential outcomes are independent of which treatments. Pearl argues that such statements are hard for humans to judge, while diagrams match the way scientists actually store causal knowledge: as beliefs about what affects what. A domain expert can look at a diagram and say whether an arrow is plausible. Few experts can look at a conditional independence statement among hypothetical quantities and say the same. This argument for transparency runs through the whole book.

A common confusion is to think that a diagram is a model learned from data. In Pearl's method, the diagram usually comes first, from knowledge, and data are then used to estimate quantities that the diagram shows to be estimable. Some of the diagram's implications can be tested against data, since it implies particular independences. But many of its assumptions, such as the absence of a hidden common cause, cannot be tested from passive observation at all. The diagram makes this limitation plain instead of hiding it.

Finding causes in passive data

The discovery question

The third key idea concerns a bold question: can causal structure be learned from observational data at all? The traditional answer was no, since correlation is symmetric and causation is not. Pearl, with Thomas Verma, and in parallel Peter Spirtes, Clark Glymour and Richard Scheines at Carnegie Mellon, showed that the answer is a qualified yes. The key lies again in the collider. If two variables are independent of each other but each is dependent on a third, and they become dependent once we condition on the third, then the data have the signature of two causes sharing an effect. That pattern fixes the direction of two arrows.

From such signatures, together with the independences found in the data, an algorithm can work out the set of causal diagrams consistent with what is observed. Usually the set contains more than one diagram. Some arrows are determined, others are left undirected because the data cannot tell which way they point. Pearl calls the overall idea inductive causation and discusses the conditions under which the inference is valid.

The price of the inference

Two assumptions carry the weight. The first is that the causal structure produces the independences the graph implies, the causal Markov condition. The second, which Pearl calls stability and others call faithfulness, is that the data show no independences beyond those the structure implies. Stability rules out cases where two causal paths cancel exactly, for instance where a drug raises a risk directly and lowers it by the same amount indirectly. Such exact cancellation is possible but, the argument runs, unlikely by accident. Pearl links the preference for the simplest consistent structure to a form of Occam's razor.

These ideas are often misread in both directions. Enthusiasts take them to mean that causal truth can be mined from any large data set. Sceptics take the assumptions as proof that nothing has been shown. The fair reading lies between. Discovery methods narrow the space of possible structures, warn when a hypothesis contradicts the data, and sometimes reveal a direction that no one expected. They do not replace experiments or domain knowledge, and in the presence of hidden common causes their conclusions become weaker. Pearl treats this part of the book as foundational but not as the main tool. Most of the rest assumes the diagram is given by knowledge.

Adjusting for the right things

Confounding stated precisely

The fourth key idea is a precise rule for when, and for what, to adjust. Every applied researcher knows that confounding must be controlled. A study of coffee and heart disease must account for smoking, since coffee drinkers smoke more. But which variables should be included? Before Pearl, the common answer was any variable associated with both treatment and outcome, or any variable that changes the estimate when added. Pearl shows that both answers can be wrong. Adding the wrong variable can introduce bias where none existed.

His answer is the back-door criterion. A back-door path from treatment to outcome is any path that starts with an arrow pointing into the treatment. Such paths carry association that does not flow from treatment to outcome, the spurious part of the correlation. A set of variables is adequate for adjustment if it blocks every back-door path, by the rules of d-separation, and contains nothing caused by the treatment. If such a set is measured, the causal effect equals an average of the within-group associations, weighted by how common each group is in the population. This weighted average is the adjustment formula.

Bad controls

The criterion explains several traps. Adjusting for a variable that lies on the causal path from treatment to outcome removes part of the very effect we want to measure. Adjusting for a collider opens a path that was closed. A classic example, often called M-bias after the shape of its diagram, involves a pre-treatment variable that is a common effect of two hidden causes, one linked to treatment and one to outcome. The variable is associated with both treatment and outcome, and so looks like a confounder, yet adjusting for it creates bias. Only the diagram reveals this.

The front door

Pearl also gives a less familiar rule, the front-door criterion. Sometimes no set of measured variables blocks the back-door paths, because a hidden common cause links treatment and outcome directly. Even then, if the treatment affects the outcome only through a measured intermediate variable, and that intermediate is shielded from the hidden cause, the effect can still be computed. One estimates the effect of treatment on the intermediate, then the effect of the intermediate on the outcome while holding treatment fixed, and combines them. The standard illustration is smoking, tar deposits and cancer, with a hypothetical gene affecting both smoking and cancer. Real cases where the front-door conditions hold exactly are rare, but the result shows that the back door is not the only way in.

The lesson that leads onward is that the question of what to control for is not statistical but causal. No amount of data on the variables alone can answer it. One must know, or assume, how they are related. This finding was important for epidemiology and the social sciences, where the habit of adding every available covariate to a regression was widespread and is still common.

The do-calculus

Three rules

The fifth key idea generalises the adjustment criteria into a complete algebra. The do-calculus consists of three rules, each of which allows a step in transforming an expression containing do-operators. The first rule says when an observation can be added or removed. The second says when an action can be exchanged for an observation, that is, when doing x has the same effect as seeing x. The third says when an action can be removed altogether, because it has no effect on what we are asking about. Each rule applies when a particular independence holds in a modified version of the diagram, one with certain arrows deleted.

The aim is to start from a quantity involving do and, by applying the rules, reach an expression involving only ordinary conditional probabilities of observed variables. If that can be done, the causal effect is identifiable: it can be estimated from observational data alone, given the diagram. The back-door and front-door formulas are special cases of what the calculus produces. Its power lies in handling diagrams where neither criterion applies directly.

Completeness

Pearl introduced the calculus in the mid 1990s. A natural question was whether it was enough: if a causal effect is identifiable at all, can the three rules always find the formula? This was later proved true, in work by Ilya Shpitser with Pearl and independently by Yimin Huang and Marco Valtorta, published around 2006. The second edition reports this result. It means that the calculus is complete for this class of problems. When it fails to remove the do-operator, no method could succeed without further assumptions.

An analogy

A helpful comparison is with algebra in school. A student given an equation with an unknown applies a small set of allowed moves until the unknown stands alone or is shown to have no unique solution. The do-calculus works the same way, with the unknown being an interventional quantity and the allowed moves being licensed by the graph. Like algebra, it can be done by hand for small problems and by algorithm for large ones, and software packages now perform the search automatically.

The do-calculus is often confused with a method of estimation. It is not. It decides whether a quantity can be estimated and tells you what to estimate. The actual estimation, with finite samples, many variables and the risk of model misspecification, remains a statistical task. Much later work, including methods that combine machine learning with causal formulas, builds on this division of labour.

Simpson's paradox and the meaning of confounding

A reversal in the data

The sixth key idea is that Pearl's framework resolves a puzzle that had troubled statisticians for a century. Simpson's paradox names the case where an association holds in every subgroup of a population but reverses when the groups are combined. Imagine a treatment that does better than its alternative among men and among women, yet worse in the pooled data. This happens when the treatment was given mostly to the group with poorer prognosis. Arithmetically it is easy to produce. The puzzle is what to conclude: should a doctor use the subgroup comparison or the pooled one?

Pearl's answer is that the data cannot say, and that is why the paradox is a paradox. Two data sets with identical numbers can call for opposite conclusions depending on the causal story. If the grouping variable is a cause of both treatment choice and outcome, such as sex, one should compare within groups. If the grouping variable is an effect of the treatment, such as blood pressure measured after treatment, one should use the pooled figures, since splitting by it would remove part of the treatment's effect. The resolution lies not in statistics but in the diagram.

Confounding is causal

Pearl uses the same chapter to examine definitions of confounding. Many textbook definitions were statistical: a confounder is a variable associated with both exposure and outcome. Pearl shows that every such definition fails in some cases, and that confounding can only be defined in causal terms, as a discrepancy between the associational and the interventional quantity. He discusses the notion of stable unbiasedness, meaning absence of bias that holds by the structure of the model rather than by a numerical coincidence.

This chapter is often recommended as a test for a new reader. If one finishes it convinced that the right analysis depends on the causal story behind the numbers, one has understood the book's central claim. The idea leads naturally to a broader point about the history of statistics, which Pearl presses in several places: the discipline's reluctance to speak of causes left its practitioners without tools for one of their most common decisions.

Structural equations and the economists

An old language, misread

The seventh key idea is historical as well as technical. Long before Pearl, economists and social scientists wrote structural equation models: systems of equations in which each variable is a function of others plus a disturbance term. The geneticist Sewall Wright had used path diagrams for causal analysis in the 1920s, and the economist Trygve Haavelmo argued in the 1940s that the equations of an economic model describe autonomous mechanisms that could be changed one at a time. That is very close to Pearl's view. Yet by the late twentieth century, Pearl argues, many users of these models had lost the causal reading and treated the equations as compact descriptions of correlations.

Pearl's chapter on this subject reads structural equations through the lens of interventions. The coefficient on x in the equation for y means the change in y when x is set by intervention, holding the other direct causes fixed, not the change in y expected when we observe x to be different. Under this reading, questions that had produced endless dispute, such as whether a structural parameter can be interpreted causally, what an error term represents, and what exogeneity means, receive crisp answers. The graphical criteria then tell which parameters can be identified from data, including in models with correlated errors.

Direct and indirect effects

One question in this area is whether a variable affects another directly or through a mediator. Does a training programme raise wages directly, or only by raising the chance of getting a degree? In linear models the answer was taken to be a matter of multiplying coefficients along paths. Pearl argues that in non-linear settings this fails, and offers definitions of direct and indirect effects based on counterfactuals. This work, developed further after the first edition, is now central to mediation analysis in epidemiology and psychology.

The chapter has an edge. Pearl is openly critical of how econometrics textbooks treated causation, and this provoked replies, notably from economists who felt their discipline had long understood these matters. The debate is part of the book's legacy and is discussed under criticisms below. For the reader, the chapter is valuable because it shows that a framework from computer science was in part a recovery of ideas that economists and geneticists had held earlier.

Counterfactuals

The third rung

The eighth key idea is the formal treatment of counterfactuals, statements about what would have been true had something been different. Interventional questions concern populations and future actions: what fraction of patients will recover if we treat them? Counterfactual questions concern particular cases and alternative pasts: would this patient, who took the drug and died, have survived had she not taken it? Such questions underlie notions of blame, regret, credit, explanation and legal liability. They cannot be answered from interventional data alone, since in any given case we see only one of the two worlds.

In a structural model, every variable is fixed by its mechanism and by unobserved background factors. A counterfactual is computed in three steps. First, use the evidence about the actual case to update our beliefs about the background factors. Pearl calls this abduction. Second, modify the model by setting the variable of interest to its alternative value, the action step. Third, compute the outcome in the modified model using the updated background factors, the prediction step. The background factors carry the individuality of the case from the actual world into the imagined one.

A worked picture

Think of a firing squad of two soldiers, both ordered to shoot by a captain, and a prisoner who dies. Would the prisoner have died had the first soldier not fired? In the structural model, the court order caused the captain's signal, which caused both soldiers to fire, and either shot is fatal. Holding the order fixed by abduction, then setting the first soldier to not fire, the second still fires, and the prisoner still dies. The counterfactual answer is yes. Pearl uses examples of this kind to show that the procedure gives answers that agree with careful intuition.

The structural account has a rival in the philosophical tradition of David Lewis, which defines counterfactuals by similarity between possible worlds. Pearl's version replaces the vague notion of similarity with the explicit content of a model. It also connects to the potential outcomes framework used in statistics, where each unit has a hypothetical outcome under each treatment. Pearl shows that potential outcomes can be defined as counterfactuals in a structural model, so the two frameworks agree on what they compute. Where they differ, he argues, is in how easily assumptions can be stated and checked.

Bounds, necessity and actual causes

When the answer is a range

The ninth key idea is that when a causal quantity cannot be pinned down, it can often be bounded, and that bounds are a respectable answer. In a clinical trial, patients may not take the treatment they were assigned. The assignment is random, but actual treatment is not, since people who comply may differ from those who do not. Working with Alexander Balke, Pearl showed how to compute the tightest possible bounds on the treatment effect in such settings, using the random assignment as an instrument. The bounds are sometimes narrow enough to settle a practical question.

The same chapter shows that the assumptions behind instrumental variables, a staple tool of economics, have testable consequences. Certain patterns of data are impossible if the instrument truly affects the outcome only through the treatment. Pearl calls the constraints instrumental inequalities. This gives a partial check on an assumption usually treated as untestable.

Probability of causation

Pearl then defines quantities that courts and doctors need. The probability of necessity asks: given that the exposure and the outcome both occurred, how likely is it that the outcome would not have occurred without the exposure? This is the question a court asks when deciding whether an employer's chemical caused a worker's illness. The probability of sufficiency asks the converse: given that neither occurred, how likely is it that the exposure would have produced the outcome? These quantities are counterfactual. Pearl, with Jin Tian, shows when they can be computed or bounded from experimental and observational data combined.

Actual causation

Finally, the book addresses actual causation, also called token causation: what caused this particular event? Ordinary counterfactual dependence is not enough, because of cases of pre-emption. If two people throw stones at a bottle and one stone arrives first, the bottle would have broken anyway, yet the first thrower caused it. Pearl offers an account based on sustaining causal paths, sometimes called the causal beam, and later developed with Joseph Halpern a widely discussed definition. This part of the book is less settled than the rest, and the second edition notes that the topic continued to develop. It is best read as an opening rather than a final word.

Why causal knowledge is stable

Mechanisms outlast correlations

A tenth idea runs underneath the others and deserves its own chapter. Pearl argues that causal knowledge is not just a convenient way of organising probabilities but the more stable layer of what we know. Probabilities shift whenever circumstances change. The correlation between umbrellas and wet streets depends on how often it rains, how many people own umbrellas, and the season. The mechanism by which rain wets streets does not change with any of these. A model built from mechanisms can absorb a change in one place by updating one equation. A model built from correlations must be rebuilt from scratch.

This is why, Pearl suggests, people draw arrows from causes to effects even when only asked to represent beliefs. Such graphs are compact, they require fewer numbers to specify, and they remain valid when the world shifts in a localised way. A medical expert asked to build a diagnostic network from symptoms to diseases finds the task awkward. Asked to build it from diseases to symptoms, the expert works easily, because that is the direction in which knowledge is stored. The economy of causal representation is evidence that causal structure is real and not only a human habit.

Transfer and generalisation

The stability of mechanisms has a practical consequence that later work developed in depth. A result learned in one population, say a trial in one country, may or may not apply in another. If we know which mechanisms differ between the two populations, and which are shared, we can work out what can be carried across and how. This problem, later called transportability, grows naturally from the book's view of models as collections of separate mechanisms. It is now an active area, and it bears directly on the question of why machine learning models trained in one setting often fail in another.

The idea is often confused with a claim that causal relations never change. That is not the point. Mechanisms can change, and part of the art of modelling is knowing which ones are fragile. The claim is rather that change usually arrives in one mechanism at a time, and a causal model is organised so that local changes have local effects. A predictive model trained on correlations has no such structure, so a small change in the world can quietly break every part of it.

Notation as a working tool

Learning to write the question

Much of the book's force comes from notation, and a reader should treat learning it as a skill in its own right. Three kinds of expression appear again and again. The ordinary conditional probability of y given x describes observation. The probability of y given do of x describes intervention. The probability that y would have been some value had x been some other value, given what actually happened, describes a counterfactual. Writing a question in one of these three forms is often the hardest and most valuable step. Many arguments that go round in circles turn out to be two people asking questions at different levels.

A useful exercise is to take a newspaper report of a study and rewrite its headline claim in each of the three forms. A report that coffee drinkers live longer states an observational fact. A claim that drinking coffee extends life states an interventional one. A claim that a particular person would have died sooner without coffee states a counterfactual. The data in most such studies support only the first, and the gap between the first and the others is exactly where the book's methods apply.

Graphs and equations together

Pearl moves freely between diagrams and equations, and the reader should learn to do the same. A diagram shows which variables enter each equation, but not the form of the functions. Many results, including the back-door criterion and the do-calculus, depend only on the diagram and so hold for any functions at all. Others, such as reading a path coefficient as an effect, depend on linearity. Keeping track of which results are non-parametric, holding regardless of functional form, and which assume a particular form, is one of the habits the book teaches without always announcing it.

The tradition around it

What came before

Philosophical reflection on causation in the modern sense goes back at least to David Hume, who argued that we never perceive causal connection, only constant conjunction. Statistics, shaped by Karl Pearson in its early years, largely followed Hume's suspicion and treated correlation as the fundamental notion. Ronald Fisher's randomised experiment gave a practical way around the problem: randomise the treatment, and confounding is removed by design. But this left observational data without a principled method, and much of the world cannot be randomised.

Several earlier lines of thought anticipated parts of Pearl's framework. Sewall Wright's path analysis linked diagrams with equations. Haavelmo and the Cowles Commission economists developed structural models with autonomous equations. Jerzy Neyman in the 1920s and Donald Rubin from the 1970s developed the potential outcomes notation, which made causal effects precise for experiments and observational studies. In philosophy, Patrick Suppes gave a probabilistic theory of causation and David Lewis a counterfactual one. Spirtes, Glymour and Scheines, in Causation, Prediction, and Search in 1993, developed graphical discovery methods closely related to Pearl's.

What came after

After 2000, graphical causal methods spread steadily into epidemiology, where directed acyclic graphs became a standard teaching tool, and later into the social sciences, medicine and computer science. Work by James Robins on time-varying treatments, by Elias Bareinboim on transporting results across populations, and by many others on mediation and missing data extended the framework. Machine learning took up causal ideas through work on invariance, fairness and causal representation learning. The Book of Why in 2018 brought the ideas to general readers and introduced the image of a ladder with three rungs: association, intervention and counterfactuals.

Its neighbours on this shelf

Probabilistic Reasoning in Intelligent Systems is the direct predecessor and should be read alongside this volume. That book shows how to reason with uncertainty using graphs; this one shows how the same graphs, read causally, support reasoning about action. Artificial Intelligence: A Modern Approach by Stuart Russell and Peter Norvig covers Bayesian networks and gives a more compact introduction to the probabilistic side. The Elements of Statistical Learning and Pattern Recognition and Machine Learning represent the predictive tradition that Pearl contrasts with his own: they excel at learning associations and making forecasts, and they mostly do not ask what would happen under intervention.

Reinforcement Learning by Richard Sutton and Andrew Barto is an interesting partner, since an agent that learns by acting gathers interventional data directly and so sidesteps some of the identification problems Pearl solves. Human Compatible and The Alignment Problem raise questions about explanation, responsibility and fairness in machine decisions, all of which depend on counterfactual reasoning of the kind formalised here. The Sciences of the Artificial by Herbert Simon is a fitting older neighbour: Simon himself wrote on causal ordering in systems of equations, work Pearl acknowledges.

Questions and criticisms

Where do the diagrams come from

The most common objection is that the conclusions are only as good as the diagram, and the diagram rests on assumptions that often cannot be tested. This is true, and Pearl agrees. His reply is that every causal conclusion from observational data rests on such assumptions, and that the diagram's merit is to state them openly so that they can be argued about. Critics answer that in fields like economics or sociology, the plausible diagrams are so many and so tangled that the method gives a false sense of rigour. Both sides have a point. The framework clarifies reasoning, but it cannot create knowledge that the analyst does not have.

The potential outcomes debate

Many statisticians, especially those trained in the school of Rubin, prefer potential outcomes notation and have found Pearl's graphs unnecessary or misleading. Debates in journals during the 2000s were sometimes heated. One issue was whether conditioning on all pre-treatment variables is safe, which Pearl's M-bias examples dispute. Another was how naturally each notation handles practical study designs. The modern view in much of the field is that the two frameworks are logically compatible, that graphs are often better for stating and checking assumptions, and that potential outcomes are often more convenient for estimation and for designs like matching. Single World Intervention Graphs, proposed by Thomas Richardson and James Robins, are one attempt to unify them.

Other objections

Philip Dawid argued that counterfactuals about individual cases are metaphysically loaded and often unnecessary, and that decision-theoretic notions of intervention suffice for most purposes. Nancy Cartwright raised doubts about modularity, arguing that in many real systems one cannot change one mechanism without disturbing others. Economists including James Heckman disputed Pearl's account of what econometrics had and had not understood. The framework as presented here assumes acyclic graphs, and systems with feedback, such as supply and demand or physiological regulation, need further care. Defining manipulation for variables like race or sex, which cannot sensibly be set by intervention, is another live controversy.

Practical limits

A further criticism concerns practice rather than principle. Real data sets have dozens or hundreds of variables, measurement error, missing values and selection into the sample. Drawing a credible diagram for such a problem is hard, and two experts may draw different ones. The identification results say what can be estimated in principle, but estimation itself, with finite samples and imperfect models, is left largely to standard statistics. Some readers came away expecting a complete toolkit and found instead a theory of what questions are answerable. Later books and software filled part of this gap, including sensitivity analysis, which asks how strong an unmeasured confounder would need to be to overturn a conclusion.

There is also a question of style. The book is dense, its notation evolves across chapters, and some chapters were assembled from papers written for different audiences. Readers sometimes find the order of presentation harder than the ideas themselves. This is a fair complaint, and it is the main reason later primers exist. It does not affect the correctness of the results.

What has held up

Despite these debates, the core results have held up well. The back-door criterion, d-separation, the adjustment formula and the do-calculus are now standard and widely taught. The completeness results confirmed that the calculus was not an ad hoc collection of tricks. The habit of drawing a diagram before analysing observational data has spread far beyond Pearl's own field. What has aged is mostly tone and emphasis: some of the book's polemics now read as addressed to opponents who have since adopted much of what he argued for, and the rapid growth of causal machine learning has opened questions the book could not anticipate.

Why it is on this shelf

This book sits in the artificial intelligence bay because it marks the point where the field learned to separate prediction from understanding. A system can predict very well and still be unable to say what would happen if it acted. Most of the machine learning on the neighbouring shelves is about prediction. This book is the reminder that prediction is the first rung, not the top.

For a reader of economics, the book supplies the grammar behind every policy claim. Whether a subsidy raised output, whether a price change lost customers, whether a scheme reached the people it was meant for: each is a causal question disguised as a statistical one, and each depends on what was controlled for and why. For a reader of science, it gives a way to read observational studies with a clear eye and to see exactly which assumptions a conclusion needs.

For a reader of Vedanta and Jyotish, the book is useful in a different way. Both traditions make strong claims about causation: karma as a law of action and result, and the correlation of planetary positions with events. Pearl's framework does not judge such claims, but it asks the right questions of any claimed link. What is the mechanism, what are the common causes, what would count as an intervention, and what would have happened otherwise? A reader who carries those questions will think more carefully about every tradition he studies, including his own. Hume's doubt about whether causation can be perceived also has old cousins in Indian debates about cause and effect, between those who held the effect pre-exists in its cause and those who held it is new. This book is not about those debates, but it sharpens the tools for thinking about them.

For a reader of technology, the book matters now more than when it was written. Systems that recommend, rank, price and decide are trained on data that their own earlier decisions shaped. A model that learned from such data, without a causal view, can mistake the effect of its own past choices for a fact about the world. Questions of fairness in automated decisions are often counterfactual at root: would this applicant have been treated differently had one attribute been different and everything else the same? Pearl's framework is one of the few that can even state such a question precisely.

We keep it for its method more than its theorems. Before reaching a conclusion about cause, draw the picture of what you believe, and ask what the picture allows the data to say.

How to read it

First pass

Begin with the epilogue, the public lecture on the art and science of cause and effect. It is short, historical and free of heavy mathematics, and it gives the whole argument in miniature. Then read the first chapter on probabilities, graphs and causal models, which introduces the notation used everywhere else. If conditional independence is unfamiliar, slow down here and work small examples by hand: draw three-variable chains, forks and colliders, and check what becomes independent when you condition on the middle node.

Next, read the chapter on causal diagrams and the identification of causal effects. This is the core. Work through the back-door criterion with your own examples drawn from fields you know. Then read the chapter on Simpson's paradox and confounding, which tests whether the core idea has taken hold. These three chapters together, with the epilogue, give most of the book's practical value. Allow two or three weeks at a steady pace of an hour a day.

What to skip at first

On a first pass, skim the chapter on inferring causal structure from data, reading for the idea of colliders as signatures and the role of stability, but not working the algorithms in detail. Skim the proofs throughout. The chapter on actions and plans, which deals with sequential decisions, can wait. The material on actual causation is the least settled and can be left for a later reading.

Second pass with a pencil

On a second pass, work through the three rules of the do-calculus on small diagrams until each rule makes intuitive sense, and derive the front-door formula yourself. Then read the chapters on structural models in social science and on counterfactuals, computing at least one counterfactual by hand with the three steps of abduction, action and prediction. Finally read the chapter on imperfect experiments and the chapter on probability of causation. The reflections chapter added in the second edition is best read last, as a review that answers the questions you will by then have formed.

Exercises of your own

The book is best absorbed by applying it to problems you already care about. Choose three questions from your own reading or work, for example whether a training scheme raised farm incomes, whether a new feature increased use of a service, or whether a diet change lowered blood pressure. For each, draw the diagram you believe, mark the variables you could measure, and apply the back-door criterion. Note which arrows you would most like to test, and what experiment or natural variation could test them. Keep these diagrams and revise them as you read further. By the end you will have a small notebook of causal models that teach you more than any summary.

It also helps to collect examples of the three traps the book describes: adjusting for a mediator, adjusting for a collider, and pooling data that should be split or splitting data that should be pooled. Once you learn to notice them, you will find them in news reports, business dashboards and published papers. Spotting them is the clearest sign that the book has done its work.

Companions and what next

If the mathematics is a barrier, read The Book of Why first, and the short Primer by Pearl, Glymour and Jewell alongside. From this shelf, read Probabilistic Reasoning in Intelligent Systems for the background on graphs and belief propagation. Then read Reinforcement Learning by Sutton and Barto to see how agents gather interventional evidence by acting, and The Alignment Problem for the ways causal questions arise in machine fairness and explanation.

Questions to carry

  • What is the difference between learning that a variable has a value and setting it to that value, and which one does your current question require?
  • Which arrows in your diagram are you most unsure about, and how would the conclusion change if each were removed?
  • Is there a hidden common cause that could explain the association you are looking at?
  • Have you adjusted for any variable that is caused by the treatment, or that is a common effect of two other variables?
  • If no measured set blocks the back-door paths, is there a mediator that might open a front door?
  • In a case of Simpson's paradox you have met, was the grouping variable a cause or an effect of the treatment?
  • What would count as an intervention on the variable you call a cause, and is such an intervention even conceivable?
  • Which of your assumptions could be tested against data, and which can only be defended by knowledge of the domain?
  • When you ask whether something caused an outcome in a single case, are you asking about necessity, sufficiency, or both?
  • How does a model that predicts well differ from a model that would remain correct after you change the system?
  • Where in public debate do people treat a correlation as if it answered a question about policy?
  • When a causal effect cannot be identified, what bounds can still be placed on it, and are they narrow enough to act on?
  • How would you explain the collider bias to someone who has never studied statistics?

Words to know

  • Causal diagram: a directed graph whose arrows represent direct causal influence between variables, used to state assumptions.
  • Do-operator: notation for setting a variable by intervention, distinct from observing its value.
  • Intervention: an action that fixes a variable's value from outside, replacing the mechanism that normally determines it.
  • Graph surgery: the operation of deleting arrows into an intervened variable to represent an intervention.
  • Modularity: the assumption that each causal mechanism can be changed without disturbing the others; also called autonomy.
  • Structural causal model: a set of equations, each giving one variable as a function of its direct causes and background factors.
  • d-separation: a graphical rule for reading which conditional independences a causal diagram implies.
  • Collider: a variable on a path where two arrows meet head to head; conditioning on it opens the path.
  • Confounding: a gap between the observed association and the causal effect, caused by common influences on treatment and outcome.
  • Back-door criterion: a test for whether a set of variables suffices to remove confounding by adjustment.
  • Front-door criterion: a test allowing a causal effect to be computed through a measured mediator despite hidden confounding.
  • Adjustment formula: the weighted average of within-group associations that equals the causal effect when the back-door criterion holds.
  • Identifiability: the property of a causal quantity that can be computed uniquely from observed data given the diagram.
  • Do-calculus: three rules for transforming expressions with interventions into expressions with observations only.
  • Simpson's paradox: the reversal of an association when data are split into subgroups or pooled.
  • Counterfactual: a statement about what would have been the case in a specific situation had some condition been different.
  • Abduction: in counterfactual computation, the step of updating beliefs about background factors from the evidence of the actual case.
  • Potential outcomes: the outcomes a unit would have under each possible treatment, the basis of the Neyman and Rubin framework.
  • Instrumental variable: a variable that affects the treatment but influences the outcome only through the treatment.
  • Probability of necessity: the probability that the outcome would not have occurred without the exposure, given that both occurred.
  • Stability: the assumption, also called faithfulness, that observed independences arise from structure rather than exact cancellation.
  • Mediation: the analysis of how much of an effect passes through an intermediate variable rather than directly.
  • Actual cause: the cause of a particular event, as opposed to a general causal tendency.

A note on this edition

This is a study edition written for this shelf in our own words. It describes and explains Judea Pearl's Causality but does not reproduce it. The book itself is in copyright and is worth getting from a library or a bookshop, in its second edition if possible. Read it with a pencil and a sheet of paper for drawing diagrams; that is how its ideas become your own. Where this edition simplifies a technical point, the book gives the full statement and its proof.

More from “Artificial intelligence”

The whole section →