9 Graphical Models--The Pearl's Framework
Bayesian Networks
We first introduce PGM (Probabilistic Graphical Models). It is combination of graph theory and probability theory. Formally speaking, graph encodes conditional independence assumptions and local functions at each node are factors in the joint probability distribution.
Markov network is PGM with undirected graph while Bayesian network is PGM based on directed acyclic graph (DAG).
Chain Rule for Bayesian Network
Given an ordered set of r.v.s . Their joint probability distribution is
The chain expansion just holds, with no other condition needed. Sometimes we might have conditions like , then the chain can be simplified. This introduces the following definition:
Definition (Markovian Parents)
Let be an ordered set of variables, and let be the joint probability distribution on these variables. A set of variables is said to be Markovian parents of if is a minimal set of predecessors of that renders independent of all its other predecessors. In other words, is any subset of satisfying
and such that no proper subset of satisfies this.
Probability and Graph
Here is an example:

Let be the set of all the independence conditions. In this example,
Note that the resulted graph is dependent to the order of the variables. That is saying,
and
don't necessarily produce the same graph. In fact these two do produce different graphs. The later graph doesn't represent the condition .
Given a DAG and a probability function defined on the same set of r.v.s, we may be interested in whether represents . Reversely we can read off the corresponding from . For example, we can read off from the following graph:

If actually can be decomposed as above, we say that represents . The formal definition is as follows.
Definition (Markov Compatibility)
If a probability function admits the factorization of
relative to DAG , we say that represents , that and are compatible, or that is Markov relative to
The product decomposition above is no longer order-specific since, given and , we can test whether decomposes into the product given by it without making any reference to variable ordering. (Textbook p16)
Note that can represent more than one . Continue the example above. If are mutually independent, then . This is relative to , too.
Then here comes the question: how can we find out all the probability functions that are compatible with a given ? We may notice that in essence gives some independency restrictions . Every satisfying these restrictions is compatible with .
are Markov compatible.
separation
A convenient way of characterizing the set of distributions compatible with a DAG is to list the set of (conditional) independencies that each such distribution must satisfy.
Then how to read off the DAG all the (conditional) independencies, i.e. ? These independencies can be read off the DAG by using a graphical criterion called separation (the denotes directional).
Definition (-Separation)
A path is said to be -separated (or blocked) by a set of nodes if and only if
- contains a chain or a fork such that the middle node is in , or
- contains an inverted fork (or collider) such that the middle node is not in and such that no descendant of is in .
A set is said to separate from ( and are sets of nodes) if and only if blocks every path from a node in to a node in .
Chain

Read off which is equivalent to .
Fork

Read off which is equivalent to . is called confounder. Note that it's the same as chain. So we cannot distinguish chain and fork by observed data.
Example: Simpson's paradox. Ignoring would cause confounding bias and wrong causal effects.
Inverted Fork

Read off which is equivalent to . is called collider.
Examples:
- Berkson's paradox. In hospital, broken leg and cough have negative correlation.
- Monty Hall problem. Audience's choice and prize commonly influence whether the door is opened.
From now on the note strategy is decided to be changed: I will only take notes about the skeleton of the course.
separation is useful because the theorem below follows:
Theorem (Probabilistic Implications of -Separation)
If sets and are -separated by in a DAG , then is independent of conditional on in every distribution compatible with .
Conversely, if and are not -separated by in a DAG , then and are dependent conditional on in at least one distribution compatible with .
There are two necessary and sufficient conditions for and to be Markov compatible.
- Ordered Markov condition
- Parental Markov condition
Here we define faithfulness
Definition (Faithful)
is faithful to iff .
If we believe and are Markov compatible and faithful, then . From data we can know about , and further we can recover from data.
Given independencies , not only one can generate (such as chain and fork). We define . Then items in are observational equivalent (一种等价类).
Theorem (Observational Equivalence)
Two DAGs are observationally equivalent if and only if
- they have the same skeletons and
- they have the same sets of -structures, that is, two converging arrows whose tails are not connected by an arrow.
Causal Bayesian Networks
Seeing and Doing

Here we inject causality into the network. Below we discuss why ordinary BN has no causal meaning.
after observing that the sprinkler is on, we wish to infer that the season is dry, that it probably did not rain, and so on; no such inferences should be drawn in evaluating the effects of a contemplated action “turning the sprinkler On.” (Textbook p23)
Mathematically, . When the sprinkler is on, it's more likely that the season is dry. But sprinkler doesn't make the season dry. We concern that if we make the sprinkler on, how the season will be affected, i.e. we concern . Even we know everything about , we cannot know .
Intro to CBN
Then we make some assumptions on BN to let it be able to answer what is like. The most important one is modularity, that is, if we make some interventions, the mechanisms of other unaffected modules are not changed.
we assume that the change is local, and does not spread over to mechanisms other than those specified. (Textbook p23)
The original distribution is

For example, if we make interventions that is , that is, anything which can affect has no say, i.e., the mechanism of is imposed as
but other mechanisms are not affected, i.e.
Thus, the distribution turns into
And we only concerns the condition where , so we consider
(This is obtained from deriving the marginal distribution without .)
Formal Definition
We can finally introduce the definition:
Definition (Causal Bayesian Network)
Let be a probability distribution on a set of variables, and let denote the distribution resulting from the intervention that sets a subset of variables to constants . Denote by the set of all interventional distributions , , including , which represents no intervention (i.e., ). A DAG is said to be a causal Bayesian network compatible with if and only if the following three conditions hold for every :
- is Markov relative to ;
- for all whenever is consistent with ;
- for all whenever is consistent with , i.e., each remains invariant to interventions not involving .
Given CBN, we can compute the distribution resulting from any intervention as a truncated factorization
We have two properties:
- For all
- For all and for every subset of variables disjoint of , .
The first is saying intervening parental nodes is equivalent to observing them. The second is saying after intervening parental nodes, intervening more is useless.