<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Constructing Separators and Adjustment Sets in Ancestral Graphs</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Benito van der Zander, Maciej Lis´kiewicz</string-name>
          <email>benito@tcs.uni-luebeck.de</email>
          <email>{benito,liskiewi}@tcs.uni-luebeck.de</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Johannes Textor</string-name>
          <email>johannes.textor@gmx.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Theoretical Biology &amp; Bioinformatics, Utrecht University</institution>
          ,
          <country country="NL">The Netherlands</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Theoretical Computer Science, University of Lübeck</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Ancestral graphs (AGs) are graphical causal models that can represent uncertainty about the presence of latent confounders, and can be inferred from data. Here, we present an algorithmic framework for efficiently testing, constructing, and enumerating m-separators in AGs. Moreover, we present a new constructive criterion for covariate adjustment in directed acyclic graphs (DAGs) and maximal ancestral graphs (MAGs) that characterizes adjustment sets as mseparators in a subgraph. Jointly, these results allow to find all adjustment sets that can identify a desired causal effect with multivariate exposures and outcomes in the presence of latent confounding. Our results generalize and improve upon several existing solutions for special cases of these problems.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>INTRODUCTION</title>
      <p>
        Graphical causal models endow researchers with a
language to codify assumptions about a data generating
process
        <xref ref-type="bibr" rid="ref5 ref9">(Pearl, 2009; Elwert, 2013)</xref>
        . Using graphical criteria,
one can asses whether the assumptions encoded in such a
model allow estimation of a causal effect from
observational data, which is a key issue in Epidemiology
        <xref ref-type="bibr" rid="ref11">(Rothman et al., 2008)</xref>
        , the Social Sciences
        <xref ref-type="bibr" rid="ref5">(Elwert, 2013)</xref>
        and
other fields where controlled experimentation is typically
impossible. Specifically, the famous back-door criterion by
Pearl (2009) can identify cases where causal effect
identification is possible by standard covariate adjustment, and
other methods like the front-door criterion or do-calculus
can even permit identification even if the back-door
criterion fails
        <xref ref-type="bibr" rid="ref9">(Pearl, 2009)</xref>
        . In current practice, however,
covariate adjustment is highly preferred to such alternatives
because its statistical properties are well understood,
giving access to useful methodology like robust estimators and
confidence intervals. In contrast, knowledge about the
statistical properties of e.g. front-door estimation is still
considerably lacking
        <xref ref-type="bibr" rid="ref18 ref6 ref8">(VanderWeele, 2009; Glynn and Kashin,
2013)</xref>
        1. Unfortunately, the back-door criterion is not
complete, i.e., it does not find all possible options for
covariate adjustment that are allowed by a given graphical causal
model.
      </p>
      <p>
        In this paper, we aim to efficiently find a definitive
answer for the following question: Given a causal graph G,
which covariates Z do we need to adjust for to estimate the
causal effect of the exposures X on the outcomes Y? To our
knowledge, no efficient algorithm has been shown to
answer this question, not even when G is a directed acyclic
graph (DAG), though constructive solutions do exist for
special cases like singleton X = fXg
        <xref ref-type="bibr" rid="ref9">(Pearl, 2009)</xref>
        , and a
subclass of DAGs
        <xref ref-type="bibr" rid="ref16">(Textor and Lis´kiewicz, 2011)</xref>
        . Here, we
provide algorithms for adjustment sets in DAGs as well as
in maximal ancestral graphs (MAGs), which extend DAGs
allowing to account for unspecified latent variables. Our
algorithms are guaranteed to find all valid adjustment sets
for a given DAG or MAG with polynomial delay, and we
also provide variants to list only those sets that minimize a
user-supplied cost function or to quickly construct a
simple adjustment set if one exists. Modelling multiple,
possibly interrelated exposures X is important e.g. in
casecontrol studies that screen several putative causes of a
disease
        <xref ref-type="bibr" rid="ref7">(Greenland, 1994)</xref>
        . Likewise, the presence of
unspecified latent variables often cannot be excluded in real-world
settings, and the causal structure between the observed
variables may not be completely known. We hope that
the ability to quickly deduce from a given DAG or MAG
whether and how covariate adjustment can render a causal
effect identifiable will benefit researchers in such areas.
We have two main contributions. First, in Section 3, we
present algorithms for verifying, constructing, and listing
m-separating sets in AGs. This subsumes a number of
earlier solutions for special cases of these problems, e.g.
      </p>
      <p>
        1Quoting VanderWeele (2009), “Time will perhaps tell
whether results like Pearl’s front-door path adjustment theorem
and its generalizations are actually useful for epidemiologic
research or whether the results are simply of theoretical interest.”
the Bayes-Ball algorithm for verification of d-separating
sets
        <xref ref-type="bibr" rid="ref12">(Shachter, 1998)</xref>
        , the use of network flow calculations
to find minimal d-separating sets in DAGs
        <xref ref-type="bibr" rid="ref17 ref2">(Tian et al.,
1998; Acid and de Campos, 2003)</xref>
        , and an algorithm to
list minimal adjustment sets for a certain subclass of DAGs
        <xref ref-type="bibr" rid="ref16">(Textor and Lis´kiewicz, 2011)</xref>
        . Our verification and
construction algorithms for single separators are
asymptotically runtime-optimal. Although we apply our algorithms
only to adjustment set construction, they are likely useful in
other settings as separating sets are involved in most
graphical criteria for causal effect identification. Moreover, the
separators themselves constitute statistically testable
implications of the causal assumptions encoded in the graph.
Second, we give a graphical criterion that characterizes
adjustment sets in terms of separating sets, and is sound
and complete for DAGs and MAGs without selection
variables. This generalizes the sound and complete criterion
for DAGs by Shpitser et al. (2010), and the sound but
incomplete adjustment criterion for MAGs without selection
variables by Maathuis and Colombo (2013). Our criterion
exhaustively addresses adjustment set construction in the
presence of latent covariates and with incomplete
knowledge of causal structure if at least a MAG can be specified.
We give the criterion separately for DAGs (Section 4) and
MAGs (Section 5) because the same graph usually admits
more adjustment options if viewed as a DAG than if viewed
as a MAG.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>PRELIMINARIES</title>
      <p>
        We denote sets by bold upper case letters (S), and
sometimes abbreviate singleton sets as fSg = S. Graphs are
written calligraphically (G), and variables in upper-case (X).
Mixed graphs and paths. We consider mixed graphs
G = (V; E) with nodes (vertices, variables) V and directed
(A ! B), undirected (A B), and bidirected (A $ B) edges
E. Nodes linked by an edge are adjacent. A walk of length
n is a node sequence V1; : : : ; Vn+1 such that there exists an
edge sequence E1; E2; : : : ; En for which every edge Ei
connects Vi; Vi+1. Then V1 is called the start node and Vn+1
the end node of the walk. A path is a walk in which no node
occurs more than once. Given a node set X and a node set
Y, a walk from X 2 X to Y 2 Y is called proper if only its
start node is in X. Given a graph G = (V; E) and a node
set V0, the induced subgraph GV0 = (V0; E0) contains the
edges E0 from G that are adjacent only to nodes in V0.
Ancestry. A walk of the form V1 ! : : : ! Vn is
directed, or causal. If there is a directed walk from U to V,
then U is called an ancestor of V and V a descendant of U.
A graph is acyclic if no directed walk from a node to itself
is longer than 0. All directed walks in an acyclic graph are
paths. A walk is anterior if it were directed after replacing
all edges U V by U ! V. If there is an anterior path
from U to V, then U is called an anterior of V. All
ancestors of V are anteriors of V. Every node is its own ancestor,
descendant, and anterior. For a node set X, the set of all of
its ancestors is written as An(X). The descendant and
anterior sets De(X); Ant(X) are analogously defined. Also, we
denote by Pa(X), (Ch(X)), the set of parents (children) of
X.
m-Separation. A node V on a walk w is called a collider
if two arrowheads of w meet at V, e.g. if w contains U $
V Q. There can be no collider if w is shorter than
2. Two nodes U; V are called collider connected if there
is a path between them on which all nodes except U and
V are colliders. Adjacent vertices are collider connected.
Two nodes U; V are called m-connected by a set Z if there
is a path between them on which every node that is a
collider is in An(Z) and every node that is not a collider
is not in Z. Then is called an m-connecting path. The
same definition can be stated simpler using walks: U; V are
called m-connected by Z if there is a walk between them
on which all colliders and only colliders are in Z. If U; V
are m-connected by the empty set, we simply say they are
m-connected. If U; V are not m-connected by Z, we say
that Z m-separates them or blocks all paths between them.
Two node sets X; Y are m-separated by Z if all their nodes
are pairwise m-separated by Z. In DAGs, m-separation is
equivalent to the well-known d-separation criterion
        <xref ref-type="bibr" rid="ref9">(Pearl,
2009)</xref>
        .
      </p>
      <p>
        Ancestral graphs and DAGs. A mixed graph G = (V; E)
is called an ancestral graph (AG) if the following two
conditions hold: (1) For each edge A B or A $ B, A is
not an ancestor of B. (2) For each edge A B, there are no
edges A C, A $ C, B C or B $ C. There can be
at most one edge between two nodes in an AG
        <xref ref-type="bibr" rid="ref10">(Richardson and Spirtes, 2002)</xref>
        . Syntactically, all DAGs are AGs
and all AGs containing only directed edges are DAGs. An
AG G = (V; E) is a maximal ancestral graph (MAG) if
every non-adjacent pair of nodes U; V can be m-separated
by some Z V n fU; Vg. Every AG G can be turned into
a MAG M by adding bidirected edges between node pairs
that cannot be m-separated
        <xref ref-type="bibr" rid="ref10">(Richardson and Spirtes, 2002)</xref>
        .
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>ALGORITHMS FOR M-SEPARATION</title>
      <p>
        In this section, we compile an algorithmic framework for
solving a host of problems related to verification,
construction, and enumeration of m-separating sets in AGs.
The problems are defined in Fig. 1, which also shows
the asymptotic runtime of their solutions. Throughout, n
stands for the number of nodes and m for the number of
edges in a graph. All of these problems except LISTSEP
can be solved by rather straightforward modifications of
existing algorithms
        <xref ref-type="bibr" rid="ref1 ref12 ref16 ref17">(Acid and de Campos, 1996; Shachter,
1998; Tian et al., 1998; Textor and Lis´kiewicz, 2011)</xref>
        .
Pseudocodes of these algorithms are shown for reference
and implementation in the Appendix of this paper, as are
proof details omitted from the main text.
      </p>
      <p>
        An important tool for solving similar problems for
dseparation is moralization, by which d-separation can be
reduced to a vertex cut in an undirected graph. This
reduction allows to solve problems like FINDMINSEP using
standard network flow algorithms
        <xref ref-type="bibr" rid="ref1">(Acid and de Campos,
1996)</xref>
        . Moralization can be generalized to AGs in the
following manner.
      </p>
      <p>
        Definition 3.1 (Moralization of AGs
        <xref ref-type="bibr" rid="ref10">(Richardson and
Spirtes, 2002)</xref>
        ). Given an AG G, the augmented graph (G)a
is an undirected graph with the same node set as G such
that X Y is an edge in (G)a if and only if X and Y are
collider connected in G.
      </p>
      <p>
        Theorem 3.2 (Reduction of m-Separation to vertex cuts
        <xref ref-type="bibr" rid="ref10">(Richardson and Spirtes, 2002)</xref>
        ). Given an AG G and three
node sets X,Y and Z, Z m-separates X and Y if and only if
Z is an X-Y node cut in (GAnt(X[Y[Z)a.
      </p>
      <p>
        A direct implementation of Definition 3.1 would lead to a
suboptimal algorithm. Therefore, we first give an
asymptotically optimal (linear time in output size) moralization
algorithm for AGs. We then solve TESTMINSEP,
FINDMINSEP, FINDMINCOSTSEP and LISTMINSEP by
generalizing existing correctness proofs of the moralization
approach for d-separation
        <xref ref-type="bibr" rid="ref17">(Tian et al., 1998)</xref>
        .
      </p>
      <p>Not all our solutions are based on moralization, however.
Moralization takes time O(n2), and TESTSEP and
FINDSEP can be solved faster, i.e. in asymptotically optimal
time O(n + m).</p>
      <p>Lemma 3.3 (Efficient AG moralization). Given an AG G,
the augmented graph (G)a can be computed in time O(n2).
Proof. The algorithm proceeds in four steps. (1) Start by
setting (G)a to G replacing all edges by undirected ones.
(2) Identify all connected components in G with respect
to bidirected edges (two nodes are in the same such
component if they are connected by a path consisting only of
bidirected edges). Nodes without adjacent bidirected edges
form singleton components. (3) For each pair U; V of nodes
from the same component, add the edge U V to (G)a if it
did not exist already. (4) For each component, identify all
its parents (nodes U with an edge U ! V where U is in the
component) and link them all by undirected edges in (G)a.
Now two nodes are adjacent in (G)a if and only if they are
collider connected in G. All four steps can be performed in
time O(n2).</p>
      <p>Lemma 3.4. Let X; Y; I; R be sets of nodes with I R,
R \ (X [ Y) = ;. If there exists an m-separator Z0, with
I Z0 R then Z = Ant(X [ Y [ I) \ R is an m-separator.
Corollary 3.5 (Ancestry of minimal separators). Given an
AG G, and three sets X; Y; I, every minimal set Z over all
m-separators containing I is a subset of Ant(X [ Y [ I).
Proof. Assume there is a minimal separator Z with Z *
Ant(X [ Y [ I). According to Lemma 3.4 we have that
Z0 = Ant(X [ Y [ I) \ Z is a separator with I Z0. But
Z0 Ant(X [ Y [ I) and Z0 Z, so Z , Z0 and Z is not a
minimal separator.</p>
      <p>
        Corollary 3.5 applies to minimum-cost separators as well
because every minimum-cost separator must be minimal.
Now we can solve FINDMINCOSTSEP and
FINDMINSIZESEP by using weighted min-cut, which takes time
O(n3) using practical algorithms, and LISTMINSEP by
using Takata’s algorithm to enumerate minimal vertex cuts
with delay O(n3)
        <xref ref-type="bibr" rid="ref15">(Takata, 2010)</xref>
        .
      </p>
      <p>However, for FINDMINSEP and TESTMINSEP, we can do
better than using standard vertex cuts.</p>
      <p>Proposition 3.6. The task FINDMINSEP can be solved in
time O(n2).</p>
      <p>Proof. Two algorithms are given in the appendix, one with
runtime O(nm) (Algorithm 8) and one with runtime O(n2)
(Algorithm 9).</p>
      <p>Corollary 3.7. The task TESTMINSEP can be solved in
time O(n2).</p>
      <p>Proof. First verify whether Z is an m-separator using
moralization. If not, return “no”. Otherwise, set S = Z and
solve FINDMINSEP. Return “yes” if the output is Z and
“no”, otherwise.</p>
      <p>Moralization can in the worst case quadratically increase
the size of a graph. Therefore, in some cases, it may be
preferable to avoid moralization if the task at hand is rather
simple, as are the two tasks considered below.</p>
      <p>Proposition 3.8. The task FINDSEP can be solved in time
O(n + m).</p>
      <p>Proof. This follows directly from Lemma 3.4, and the fact
that the set Ant(X [ Y [ I) \ R can be found in linear
time from the MAG without moralization. Note that
unlike in DAGs, two non-adjacent nodes cannot always be
m-separated in ancestral graphs.</p>
      <p>
        By modifying the Bayes-Ball algorithm
        <xref ref-type="bibr" rid="ref12">(Shachter, 1998)</xref>
        appropriately, we get the following.
      </p>
      <p>Proposition 3.9. The task TESTSEP can be solved in time
O(n + m).</p>
      <p>Lastly, we consider the problem of listing all m-separators.
Here is an algorithm to solve that problem with polynomial
delay.</p>
      <p>Verification: For given X; Y and Z decide if : : :</p>
      <p>TESTSEP Z m-separates X; Y</p>
      <p>TESTMINSEP Z m-separates X; Y but no Z0 ( Z does
Construction: For given X; Y and auxiliary I; R, output : : :
FINDSEP an m-separator Z with I Z R
FINDMINSEP a minimal m-separator Z with I Z
FINDMINCOSTSEP a minimum-cost m-separator Z with I
Enumeration: For given X; Y; I; R enumerate all : : :
LISTSEP m-separators Z with I Z R
LISTMINSEP minimal m-separators Z with I Z
R</p>
      <p>Z
R</p>
      <p>R</p>
      <p>O(n + m)
O(n2)
O(n + m)
O(n2)
O(n3)
O(n(n + m)) delay
O(n3) delay</p>
      <p>
        Proof. Algorithm LISTSEP performs backtracking to
enumerate all Z with I Z R aborting branches that will not
find a valid separator. Since every leaf will output a
separator, the tree height is at most n and the existence check
needs O(n + m), the delay time is O(n(n + m)). The
algorithm generates every separator exactly once: if initially
I ( R, with V 2 R n I, then the first recursive call returns
all separators Z with V 2 Z and the second call returns all
Z0 with V &lt; Z0. Thus the generated separators are pairwise
disjoint. This is a modification of the enumeration
algorithm for minimal vertex separators
        <xref ref-type="bibr" rid="ref15">(Takata, 2010)</xref>
        .
4
      </p>
    </sec>
    <sec id="sec-4">
      <title>ADJUSTMENT IN DAGS</title>
      <p>In this section, we leverage the algorithmic framework of
the last section together with a new constructive, sound
and complete criterion for covariate adjustment in DAGs
to solve all problems listed in Table 1 for adjustment sets
instead of m-separators in the same asymptotic time. First,
however, we need to introduce some more notation
pertaining to the causal interpretation DAGs.
ables V = fX1; : : : ; Xng as p(v) = Qnj=1 p(xjjpaj), where
paj denotes a particular realization of the parent variables
of Xj in G. When interpreted causally, an edge Xi ! Xj
is taken to represent a direct causal effect of Xi on Xj. For
disjoint X; Y V, the (total) causal effect of X on Y is
p(yjdo(x)) where do(x) represents an intervention that sets
X = x. In a DAG, this intervention corresponds to
removing all edges into X, disconnecting X from its parents. We
denote the resulting graph as GX. Given DAG G and a joint
probability density p for V the post-intervention
distribution can be expressed in a truncated factorization formula:</p>
      <p>Y p(xjjpaj) for V consistent with x
8
&gt;
&gt;
p(vjdo(x)) = &lt;&gt;&gt; Xj2VnX
&gt;&gt;: 0
otherwise.</p>
      <p>
        Definition 4.1 (Adjustment
        <xref ref-type="bibr" rid="ref9">(Pearl, 2009)</xref>
        ). Given a DAG
G = (V; E) and pairwise disjoint X; Y; Z V, Z is called
covariate adjustment for estimating the causal effect of X
on Y, or simply adjustment, if for every distribution p
consistent with G we have p(y j do(x)) = Pz p(y j x; z)p(z).
Definition 4.2 (Adjustment criterion
        <xref ref-type="bibr" rid="ref13 ref14">(Shpitser et al., 2010;
Shpitser, 2012)</xref>
        ). Let G = (V; E) be a DAG, and X; Y; Z
V be pairwise disjoint subsets of variables. The set Z
satisfies the adjustment criterion relative to (X; Y) in G if
(a) no element in Z is a descendant in G of any W 2 V n X
which lies on a proper causal path from X to Y and
(b) all proper non-causal paths in G from X to Y are
blocked by Z.
      </p>
      <p>
        Remark 4.3. In
        <xref ref-type="bibr" rid="ref13 ref14">(Shpitser et al., 2010; Shpitser, 2012)</xref>
        the
criterion is stated in a slightly different way, namely using
in the condition (a) GX instead of G. However, the two
statements are equivalent.
      </p>
    </sec>
    <sec id="sec-5">
      <title>Do-operator and adjustment sets. A DAG G encodes</title>
      <p>
        the factorization of joint distribution p for the set of
variProof. First note that if Z satisfies the condition (a) then
Z satisfies (a) with GX instead of G, too. Since
conditions (b) in Definition 4.2 and in
        <xref ref-type="bibr" rid="ref13 ref14">(Shpitser et al., 2010;
Shpitser, 2012)</xref>
        are identical, the adjustment criterion above
implies the criterion of Shpitser et al.
      </p>
      <p>Now assume Z satisfies the condition (a) with GX instead of
G and the condition (b). We show that Z then satisfies the
condition (a), or there must exist some W 2 V n X, which
lies on a proper causal path from X to Y, and a causal path
from W to Z which intersects X.</p>
      <p>Let W ! : : : ! Y denote the suffix of the path from X to
Y starting in W. Note that this path can consist only of the
vertex W. Additionally, for the causal path from W to Z,
let W ! : : : ! X be its shortest prefix which intersects
X. Then, from the condition (a), with GX instead of G,
we know that no vertex of W ! : : : ! X belongs to Z.
This leads to a contradiction with the condition (b) since
X : : : W ! : : : ! Y is a proper non-causal path in
G from X to Y that is not blocked by Z.</p>
      <p>Analogously to GX, by GX we denote a DAG obtained from
G by removing all edges leaving X.
4.1</p>
      <sec id="sec-5-1">
        <title>CONSTRUCTIVE BACK-DOOR CRITERION</title>
        <p>Definition 4.4 (Proper back-door graph). Let G = (V; E)
be a DAG, and X; Y V be pairwise disjoint subsets of
variables. The proper back-door graph, denoted as GpXbYd, is
obtained from G by removing the first edge of every proper
causal path form X to Y.</p>
        <p>Note the difference between the back-door graph GX and
the proper back-door graph GpXbYd: in GX all edges leaving
X are removed while in GpXbYd only those that lie on a proper
causal path. However, to construct GpXbYd still only
elementary operations are sufficient. Indeed, we remove all edges
X ! D in E such that X 2 X and D is in the subset, which
we call PCP(X; Y), obtained as follows:</p>
        <p>PCP(X; Y) = (DeX(X) n X) \ AnX(Y)
(1)
where DeX(W) denotes descendants of W in GX. AnX(W)
is defined analogously for GX. Hence, the proper back-door
graph can be constructed from G in linear time O(m + n).
Now we propose the following adjustment criterion. For
short, we will denote the set De(PCP(X; Y)) as Dpcp(X; Y).
Definition 4.5 (Constructive back-door criterion (CBC)).
Let G = (V; E) be a DAG, and let X; Y; Z V be
pairwise disjoint subsets of variables. The set Z satisfies the
constructive back-door criterion relative to (X; Y) in G if
(a) Z</p>
        <p>V n Dpcp(X; Y) and
(b) Z d-separates X and Y in the proper back-door graph
GpXbYd.</p>
        <p>Theorem 4.6. The constructive back-door criterion is
equivalent to the adjustment criterion.</p>
        <p>Proof. First observe that the conditions (a) of both criteria
are identical. Assume conditions (a) and (b) of the
adjustment criterion hold. We show that (b) of the constructive
back-door criterion follows. Let be any proper path from
X to Y in GpXbYd. Because GpXbYd does not contain causal paths
from X to Y, is not causal and has to be blocked by Z in
G by the assumption. Since removing edges cannot open
paths, is blocked by Z in GpXbYd as well.</p>
        <p>Now we show that (a) and (b) of the constructive back-door
criterion together imply (b) of the adjustment criterion. If
that were not the case, then there could exist a proper
noncausal path</p>
        <p>from X to Y that is blocked in GpXbYd but open
in G. There can be two reasons why is blocked in GpXbYd:
(1) The path starts with an edge X ! D that does not exist
in GpXbYd. Then we have D 2 PCP(X; Y). For to be
noncausal, it would have to contain a collider C 2 An(Z) \
De(D) An(Z) \ Dpcp(X; Y). But because of (a), An(Z) \
Dpcp(X; Y) is empty. (2) A collider C on is an ancestor
pbd
of Z in G, but not in GXY . Then there must be a directed
path from C to Z via an edge X ! D with D 2 An(Z) \
PCP(X; Y), contradicting (a).
4.2</p>
      </sec>
      <sec id="sec-5-2">
        <title>ADJUSTING FOR MULTIPLE EXPOSURES</title>
        <p>
          For a singleton set X = fXg of exposures we know that if
a set of variables Y is disjoint from fXg [ Pa(X) then one
obtains easily an adjustment set with respect to X and Y
as Z = Pa(X)
          <xref ref-type="bibr" rid="ref9">(Pearl, 2009, Theorem 3.2.2)</xref>
          . The situation
changes drastically if the effect of multiple exposures is
estimated. Theorem 3.2.5 in Pearl (2009) claims that the
expression for P(y j do(x)) is obtained by adjusting for Pa(X)
if Y is disjoint from X [ Pa(X), but, as the DAG in Fig. 2
shows, this is not true: the set Z = Pa(X1; X2) = fZ2g
is not an adjustment set according to fX1; X2g and Y. In
this case one can identify the causal effect by adjusting for
Z = fZ1; Z2g only. Indeed, for more than one exposure, no
adjustment set may exist at all even without latent
covariates and even though Y \ (X [ Pa(X)) = ;, e.g. in the DAG
X1
        </p>
        <p>X2</p>
        <p>Z</p>
        <p>Y:
Using our criterion, we can construct a simple adjustment
set explicitly if one exists. For a DAG G = (V; E) we define
the set</p>
        <p>Adj(X; Y) = An(X [ Y) n (X [ Y [ Dpcp(X; Y)):
Theorem 4.7. Let G = (V; E) be a DAG and let X; Y V
be distinct node sets. Then the following statements are
equivalent:
1. There exists an adjustment in G w.r.t. X and Y.</p>
        <p>Z1
Z2</p>
        <p>Y1</p>
        <p>X1</p>
        <p>Y1</p>
        <p>X1</p>
        <p>Z1</p>
        <p>Z2
Y2</p>
        <p>X2</p>
        <p>Y2</p>
        <p>X2</p>
        <p>pbd
GXY</p>
        <p>Z1
Z2</p>
        <p>Y1
Y2</p>
        <sec id="sec-5-2-1">
          <title>2. Adj(X; Y) is an adjustment w.r.t. X and Y.</title>
          <p>3. Adj(X; Y) d-separates X and Y in the proper
backdoor graph GpXbYd.</p>
          <p>Proof. The implication (3) ) (2) follows directly from
the criterion Def. 4.5 and the definition of Adj(X; Y). Since
the implication (2) ) (1) is obvious, it remains to prove
(1) ) (3).</p>
          <p>Assume there exists an adjustment set Z0 w.r.t. X and Y.
From Theorem 4.6 we know that Z0 \ Dpcp(X; Y) = ; and
pbd
that Z0 d-separates X and Y in GXY . Our task is to show
pbd
that Adj(X; Y) d-separates X and Y in GXY . This follows
pbd
from Lemma 3.4 used for the proper back-door graph GXY
if we take I = ;, R = V n (X [ Y [ Dpcp(X; Y)).
From Equation 1 and the definition Dpcp(X; Y)
De(PCP(X; Y)) we then obtain immediately:
=</p>
        </sec>
        <sec id="sec-5-2-2">
          <title>Corollary 4.8. Given two distinct sets X; Y</title>
          <p>can be found in O(n + m) time.
V, Adj(X; Y)
4.3</p>
        </sec>
      </sec>
      <sec id="sec-5-3">
        <title>TESTING, COMPUTING, AND</title>
      </sec>
      <sec id="sec-5-4">
        <title>ENUMERATING ADJUSTMENT SETS</title>
        <p>Using our criterion, every algorithm for m-separating sets
Z between X and Y can be used for adjustment sets with
respect to X and Y, by requiring that Z not contain any
node in Dpcp(X; Y). This allows solving all problems
listed in Table 1 for adjustment sets in DAGs instead of
mseparators. Below, we name those problems analogously as
for m-separation, e.g. the problem to decide whether Z is
an adjustment set w.r.t. X; Y is named TESTADJ in analogy
to TESTSEP.</p>
        <p>TESTADJ can be solved by testing if Z \ Dpcp(X; Y) = ;
pbd
and Z is a d-separator in the proper back-door graph GXY .
Since GpXbYd can be constructed from G in linear time, the
total time complexity of this algorithm is O(n + m).
TESTMINADJ can be solved with an algorithm that
iteratively removes nodes from Z and tests if the resulting set
remains an adjustment set w.r.t. X and Y. This can be done
in time O(n(n + m)). Alternatively, one can construct the
proper back-door graph GpXbYd from G and test if Z is a
minimal d-separator, with Z V n Dpcp(X; Y) between X and
Y. This can be computed in time O(n2). The correctness of
these algorithms follows from the proposition below, which
is a generalization of the result in Tian et al. (1998).
Proposition 4.9. If no single node Z can be removed from
an adjustment set Z such that the resulting set Z0 = Z n Z
is no longer an adjustment set, then Z is minimal.
The remaining problems like FINDADJ, FINDMINADJ etc.
can be solved using corresponding algorithms for finding,
resp. listing m-separations applied for proper back-door
graphs. Since the proper back-door graph can be
constructed in linear time the time complexities to solve the
problems above are as listed in Table 1.
5</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>ADJUSTMENT IN MAGS</title>
      <p>
        We now generalize the results from the previous section
to MAGs. Two examples may illustrate why this
generalization is not trivial. First, take G = X ! Y. If G is
interpreted as a DAG, then the empty set is valid for
adjustment. If G is however taken as a MAG, then there exists
no adjustment set as G represents among others the DAG
U X Y where U is an unobserved confounder.
Second, take G = A ! X ! Y. In that case, the empty set
is an adjustment set regardless of whether G is interpreted
as a DAG or a MAG. The reasons will become clear as we
move on. First, let us recall the semantics of a MAG. The
following definition can easily be given for AGs in general,
but we do not need this generality for our purpose.
Definition 5.1 (DAG representation by MAGs
        <xref ref-type="bibr" rid="ref10">(Richardson
and Spirtes, 2002)</xref>
        ). Let G = (V; E) be a DAG, and let
S; L V. The MAG M = G[SL is a graph with nodes
V n (S [ L) and defined as follows. (1) Two nodes U and V
are adjacent in G[SL if they cannot be m-separated by any
Z with S Z V n L in G. (2) The edge between U and
V is
U
      </p>
      <p>V if U 2 An(S [ V) and V 2 An(S [ U);
U ! V if U 2 An(S [ V) and V &lt; An(S [ U);
U $ V if U &lt; An(S [ V) and V &lt; An(S [ U).
We call L latent variables and S selection variables. We
say there is selection bias if S , ;.</p>
      <p>
        Hence, every MAG represents an infinite set of underlying
DAGs that all share the same ancestral relationships. For a
given MAG M, we can construct a represented DAG G by
replacing every edge X Y by a path X ! S Y, and
every edge X $ Y by X L ! Y, where S and L are new
nodes; then M = G[SL where S and L are all new nodes. G
is called the canonical DAG of M
        <xref ref-type="bibr" rid="ref10">(Richardson and Spirtes,
2002)</xref>
        , which we write as C(M).
      </p>
      <p>
        Lemma 5.2 (Preservation of separating sets
        <xref ref-type="bibr" rid="ref10">(Richardson
and Spirtes, 2002)</xref>
        ). Z m-separates X; Y in G[SL if and only
if Z [ S m-separates X; Y in G.
      </p>
      <p>
        We now extend the concept of adjustment to MAGs in the
usual way
        <xref ref-type="bibr" rid="ref6 ref8">(Maathuis and Colombo, 2013)</xref>
        .
      </p>
      <p>Definition 5.3 (Adjustment in MAGs). Given a MAG M =
(V; E) and two variable sets X; Y V, Z V is an
adjustment set for X; Y in M if for every probability
distribution p(v0) consistent with a DAG G = (V0; E0) for which
G[SL= M for some S; L V0 n V, we have
p(y j do(x)) =</p>
      <p>
        X p(y j x; z; s)p(z j s) :
z
(2)
Selection bias (i.e., S , ;) substantially complicates
adjustment, and in fact nonparametric causal inference in
general
        <xref ref-type="bibr" rid="ref19">(Zhang, 2008)</xref>
        2. Due to these limitations, we restrict
ourselves to the case S = ; in the rest of this section.
Note however that recovery from selection bias is
sometimes possible with additional population data, and
graphical conditions exist to identify such cases
        <xref ref-type="bibr" rid="ref3">(Barenboim et al.,
2014)</xref>
        .
5.1
      </p>
      <sec id="sec-6-1">
        <title>ADJUSTMENT AMENABILITY</title>
        <p>In this section we first identify a class of MAGs in which
adjustment is impossible because of causal ambiguities –
e.g., the simple MAG X ! Y falls into this class, but the
larger MAG A ! X ! Y does not.</p>
        <p>
          Definition 5.4 (Visible edge
          <xref ref-type="bibr" rid="ref19">(Zhang, 2008)</xref>
          ). Given a MAG
M = (V; E), an edge X ! Y 2 E is called visible if in all
DAGs G = (V0; E0) with G[SL= M for some S; L V0, all
d-connected walks between X and Y in G that contain only
nodes of S [ L [ X [ Y are directed paths.
        </p>
        <p>Intuitively, an invisible directed edge X ! Y means that
there may still hidden confounding factors between X and
Y, which is guaranteed not to be the case if the edge is
visible.</p>
        <p>
          Lemma 5.5 (Graphical conditions for edge visibility
          <xref ref-type="bibr" rid="ref19">(Zhang, 2008)</xref>
          ). In a MAG M = (V; E), an edge X ! D
is visible if and only if there is a node A not adjacent
to D where (1) A ! X 2 E or A $ X 2 E, or (2)
2A counterexample is the graph A X ! Y, where we can
safely assume that A is the ancestor of a selection variable. A
sufficient and necessary condition for adjustment under selection
bias is Y y S j X
          <xref ref-type="bibr" rid="ref3">(Barenboim et al., 2014)</xref>
          , which is so restrictive
that most statisticians would probably not even speak of
“selection bias” anymore in such a case.
there is a collider path A $ V1 $ : : : $ Vn $ X or
A ! V1 $ : : : $ Vn $ X where all Vi are parents of D.
Definition 5.6. We call a MAG M = (V; E) adjustment
amenable w.r.t. X; Y V if all proper causal paths from X
to Y start with a visible directed edge.
        </p>
        <p>Lemma 5.7. If a MAG M = (V; E) is not adjustment
amenable w.r.t. X; Y V then there exists no adjustment
set W for X; Y in M.</p>
        <p>Proof. If the first edge X ! D on some causal path to
Y in M is not visible, then there exists a consistent DAG
G where there is a non-causal path between X and Y via
V that could only be blocked in M by conditioning on D
or some of its descendants. But such conditioning would
violate the adjustment criterion in G.
5.2</p>
      </sec>
      <sec id="sec-6-2">
        <title>ADJUSTMENT CRITERION FOR MAGS</title>
        <p>We now show that DAG adjustment criterion generalizes to
adjustment amenable MAGs. The adjustment criterion and
the constructive back-door criterion are defined like their
DAG counterparts (Definitions 4.2 and 4.4), replacing
dwith m-separation for the latter.</p>
        <p>Theorem 5.8. Given an adjustment amenable MAG M =
(V; E) and three disjoint node sets X; Y; Z V, the
following statements are equivalent:
(i) Z is an adjustment relative to X; Y in M.
(ii) Z fulfills the adjustment criterion (AC) w.r.t. (X; Y) in</p>
        <p>M.
(iii) Z fulfills the constructive backdoor criterion (CBC)
w.r.t. (X; Y) in M.</p>
        <p>Proof. The equivalence of (ii) and (iii) is established by
observing that the proof of Theorem 4.6 generalizes to
mseparation. Below we establish equivalence of (i) and (ii).
:(ii) ) :(i): If Z violates the adjustment criterion in M,
it does so in the canonical DAG C(M), and thus is not an
adjustment in M.
:(i) ) :(ii): Let G be a DAG with G[;L= M in which Z
violates the AC. We show that (a) if Z \ Dpcp(X; Y) , ; in
G then Z \ Dpcp(X; Y) , ; in M as well, or there exists
a proper non-causal path in M that cannot be m-separated;
and (b) if Z \ Dpcp(X; Y) = ; in G and Z d-connects a
proper non-causal path in G, then it m-connects a proper
non-causal path in M.
(a) Suppose that in G, Z contains a node Z in Dpcp(X; Y),
and let W = PCP(X; Y)\An(Z). If M still contains at least
one node W1 2 W, then W1 lies on a proper causal path
in M and Z is a descendant of W1 in M. Otherwise, M
X
Z</p>
        <p>DAG G</p>
        <p>W1</p>
        <p>Y
W2</p>
        <p>X
Z
MAG M = G[;W1</p>
        <p>Y
W2
must contain a node W2 2 PCPG(X; Y) n An(Z) (possibly
W2 2 Y) such that W2 $ A, X ! W2, and X ! A are
edges in M, where A 2 An(Z) (possibly A = Z; see Fig. 3).
Then M contains an m-connected proper non-causal path
X ! A $ W ! W2 ! : : : ! Y.
(b) Suppose that in G, Z \ Dpcp(X; Y) = ;, and there exists
an open proper non-causal path from X to Y. Then there
must then also be a proper non-causal walk wG from some
X 2 X to some Y 2 Y (Lemma A.1), which is d-connected
by Z in G. Let wM denote the subsequence of wG formed
by nodes in M, which includes all colliders on wG. The
sequence wM is a path in M, but is not necessarily
mconnected by Z; all colliders on wM are in Z because every
non-Z must be a parent of at least one of its neighbours, but
there can subsequences U; Z1; : : : ; Zk; V on wM where all
Zi 2 Z but some of the Zi are not colliders on wM.
However, then we can form from wM an m-connected walk by
bypassing some sequences of Z-nodes (Lemma A.9). Let
w0 be the resulting walk.</p>
        <p>M
If w0 is a proper non-causal walk, then there must also
exist aMproper non-causal path in M (Lemma A.1), violating
the AC. It therefore remains to show that w0 is not a proper
causal path. This must be the case if wG dMoes not contain
colliders, because then the first edge of wM = w0 cannot
be a visible directed edge out of X. Otherwise,Mthe only
way for w0 to be proper causal is if all Z-nodes in wM
have been Mbypassed in w0 by edges pointing away from
X. In that case, one can sMhow by several case distinctions
that the first edge X ! D of w0 , where D &lt; Z, cannot be
visible (see Figure 4 for an examMple of such a case).
For simplicity, assume that M contains a subpath A !
X ! D where A is not adjacent to D; the other cases
of edge visibility like A $ X ! D (Lemma 5.5). are
treated analogously. In G, there are inducing paths
(possibly several) AX from A to X and XD from X to D
w.r.t ;; L; AX must have an arrowhead at X. We
distinguish several cases on the shape of XD. (1) A path</p>
        <p>XD has an arrowhead at X as well. Then A; D are
adjacent (Lemma A.13), a contradiction. (2) No inducing path
XD has an arrowhead at X. Then wG must start with an
L1
X</p>
        <p>A
DAG G</p>
        <p>Z</p>
        <p>L2</p>
        <p>MAG M = G[f;L1;L2g</p>
        <p>Z
Y</p>
        <p>X</p>
        <p>Y
A
arrow out of X, and must contain a collider Z 2 De(X)
because wG is not causal. (a) Z 2 De(D). This
contradicts Z \ Dpcp(X; Y) = ;. So (b) Z &lt; De(D). Then
by construction of w0 (Lemma A.9), wM must start with</p>
        <p>M
an inducing Z-trail X ! Z; Z1; : : : ; Zn; D, which is also
an inducing path from X to D in G w.r.t. ;; L. Then
Z; Z1; : : : ; Zn; D must also be an inducing path in G w.r.t.
;; L because An(X) An(Z). Hence Z and D are adjacent.
We distinguish cases on the path X ! Z; D in M. (i) If
X ! Z ! D, then Z lies on a proper causal path,
contradicting Z \ Dpcp(X; Y) = ;. (ii) If X ! Z $ D, or
X ! Z D, then we get an m-connected proper
noncausal walk along Z and D.
In the previous section, we have already shown that the
CBC is equivalent to the AC for MAGs as well; hence,
adjustment sets for a given MAG M can be found by forming
the proper back-door graph MpXbYd and then applying the
algorithms from the previous section. In principle, care must
be taken when removing edges from MAGs as the result
might not be a MAG; however, this is not the case when
removing only directed edges.</p>
        <p>
          Lemma 5.9 (Closure of maximality under removal of
directed edges). Given a MAG M, every graph M0 formed
by removing only directed edges from M is also a MAG.
Proof. Suppose the converse, i.e. M is no longer a MAG
after removal of some edge X ! D. Then X and D cannot
be m-separated even after the edge is removed because X
and D are collider connected via a path whose nodes are all
ancestors of X or D
          <xref ref-type="bibr" rid="ref10">(Richardson and Spirtes, 2002)</xref>
          . The
last edge on this path must be C $ D or C D, hence C &lt;
An(D), and thus we must have C 2 An(X). But then we get
C 2 An(D) in M via the edge X ! V, a contradiction.
Corollary 5.10. For every MAG M, the proper back-door
graph MpXbYd is also a MAG.
        </p>
        <p>For MAGs that are not adjustment amenable, the CBC
might falsely indicate that an adjustment set exists even
though that set may not be valid for some represented
graph. Fortunately, adjustment amenability is easily tested
using the graphical criteria of Lemma 5.5. For each child
D of X in PCP(X; Y), we can test the visibility of all edges
X ! D simultaneously using depth first search. This
means that we can check all potentially problematic edges
in time O(n + m). If all tests pass, we are licensed to apply
the CBC, as shown above. Hence, we can solve all
algorithmic tasks in Table 1 for MAGs in the same way as for
DAGs after an O(k(n + m)) check of adjustment
amenability, where k jCh(X)j.
6</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>DISCUSSION</title>
      <p>We have compiled efficient algorithms for solving several
tasks related to m-separators in ancestral graphs, and
applied those together with a new, constructive adjustment
criterion to provide a complete and informative answer to
the question when, and how, a desired causal effect can be
estimated by covariate adjustment. Our results fully
generalize to MAGs in the absence of selection bias. One may
argue that the MAG result is more useful for exploratory
applications (inferring a graph from data) than confirmatory
ones (drawing a graph based on theory), as researchers will
prefer drawing DAGs instead of MAGs due to the easier
causal interpretation of the former. Nevertheless, in such
settings the results can provide a means to construct more
“robust” adjustment sets: If there are several options for
covariate adjustment in a DAG, then one can by interpreting
the same graph as a MAG possibly generate an adjustment
set that is provably valid for a much larger class of DAGs.
This might partially address the typical criticism that
complete knowledge of the causal structure is unrealistic.
Our adjustment criterion generalizes the work of Shpitser
et al. (2010) to MAGs and therefore now completely
characterizes when causal effects are estimable by covariate
adjustment in the presence of unmeasured confounders with
multivariate exposures and outcomes. This also
generalizes recent work by Maathuis and Colombo (2013) who
provide a criterion which, for DAGs and MAGs without
selection bias, is stronger than the back-door criterion but
weaker than ours. They moreover show their criterion to
hold also for CPDAGs and PAGs, which represent
equivalence classes of DAGs and MAGs as they are constructed
by causal discovery algorithms. It is possible that the
constructive back-door criterion could be generalized further
to those cases, which we leave for future work.
A
A.1</p>
    </sec>
    <sec id="sec-8">
      <title>APPENDIX</title>
      <sec id="sec-8-1">
        <title>AUXILIARY LEMMAS AND PROOFS</title>
        <p>In this section, we prove Lemma 3.4 and several auxiliary
Lemmas that are necessary for the proof of Theorem 5.8.
Proof of Lemma 3.4. Let us consider a proper walk w =
X; V1; : : : ; Vn; Y with X 2 X; Y 2 Y. If w does not
contain a collider, all nodes Vi are in Ant(X [ Y) and the walk
is blocked by Z, unless fV1; : : : ; Vng \ R = ; in which
case the walk is not blocked by Z0 either. If the walk
contains colliders C, it is blocked, unless C Z R.
Then all nodes Vi are in Ant(X [ Y [ I) and the walk is
blocked, unless fV1; : : : ; Vng \ R = C. Since C Z is a
set of anteriors, there exists a shortest (possible containing
0 edges) path j = Vj ! : : : ! Wj for each Vj 2 C with
Wj 2 X [ Y [ I (it cannot contain an undirected edge, since
there is an arrow pointing to Vj). Let 0j = Vj ! : : : ! W0
j
be the shortest subpath of j that is not blocked by Z0.
Let w0 be the walk w after replacing each Vj by the walk
Vj ! : : : ! W0j : : : Vj. If any of the Wj is in
X [ Y we truncate the walk, such that we get the shortest
walk between nodes of X and Y. Since 0j is not blocked,
w0 contains no colliders except w0j and all other nodes of w0
are not in R, w0 is not blocked and Z0 is not a separator.
Lemma A.1. Given a DAG G and sets X; Y; Z V
satisfying Z\Dpcp(X; Y) = ;, Z m-connects a proper non-causal
path between X and Y if and only if it m-connects a proper
non-causal walk between X and Y.</p>
        <p>Proof. (: Let w be the m-connected proper non-causal
walk. It can be transformed to an m-connected path by
removing loops of nodes that are visited multiple times.
Since no nodes have been added, remains proper, and
the first edges of and w are the same. So if w does not
start with a ! edge, is non-causal. If w starts with an
edge X ! D, there exists a collider with a descendant in Z
which is in De(D). So has to be non-causal, or it would
contradict Z \ Dpcp(X; Y) = ;.
): Let be an m-connected proper non-causal path. It can
be changed to an m-connected walk w by inserting Ci !
: : : ! Zi : : : Ci for every collider Ci on and a
corresponding Zi 2 Z. Since no edges are removed from
, w is non-causal, but not necessarily proper, since the
inserted walks might contain nodes of X. However, in that
case, w can be truncated to a proper walk w0 starting at
the last node of X on w. Then w0 is non-causal, since it
contains the subpath X : : : Ci.</p>
        <p>In all of the below, G = (V; E) is a DAG, Z; L</p>
        <p>L
disjoint, and M = G[; .</p>
        <p>
          Definition A.2 (Inducing path
          <xref ref-type="bibr" rid="ref10">(Richardson and Spirtes,
2002)</xref>
          ). A path = V1; : : : ; Vn+1 is called inducing with
respect to Z; L if all non-colliders on except V1 and Vn+1
are in L, and all colliders on are in An(fV1; Vn+1g [ Z).
V are
Every inducing path w.r.t. Z; L is m-connected by Z.
Lemma A.3 (Richardson and Spirtes (2002)). If there is
an inducing path w from U 2 V to V 2 V with respect to
Z; L, then there exists no set Z0 with Z Z0 (V n L) such
that Z0 d-separates U and V in G or m-separates U and V
        </p>
        <p>L
in G[; .</p>
        <p>Proof. This is Theorem 4.2, cases (v) and (vi), in
Richardson and Spirtes (2002).</p>
        <p>Lemma A.4. Two nodes U; V are adjacent in G[;L if and
only if G contains an inducing path between U and V
with respect to ;; L. Moreover, the edge between U; V in</p>
        <p>L can only have an arrowhead at U (V) if all such
hGa[v;e an arrowhead at U (V) in G.</p>
        <p>
          Proof. The first part on adjacency is proved in
          <xref ref-type="bibr" rid="ref10">(Richardson
and Spirtes, 2002)</xref>
          . For the second part on arrowheads,
suppose does not have an arrowhead at U, then starts with
an edge U ! D. Hence D &lt; An(U), so D 2 An(V)
because is an inducing path and therefore also U 2 An(V).
Hence, the edge between U and V in G[;L must be U ! V.
The argument for V is identical.
        </p>
        <p>ZL1e misma anoAn.-5c.olSluidpepro.sSeuZpp0o;Zse1;aZn2inisduacpinagthpianthG[;L on which
01 from Z0
to Z1 w.r.t. ;; L in G has an arrowhead at Z1, and an
inducing path 12 from Z1 to Z2 w.r.t. ;; L has an arrowhead
at Z1. Then the walk w012 = 01 12 can be truncated to an
inducing path from Z0 to Z2 w.r.t. ;; L in G.</p>
        <p>Proof. The walk w012 does not contain more non-colliders
than those on 01 or 12, so they must all be in L. It
remains to show that the colliders on w012 are in An(Z0 [ Z2).
Because Z1 is not a collider on Z0; Z1; Z2, at least one of
the edges Z0; Z1 and Z1; Z2 must be a directed edge
pointing away from Z1. Assume without loss of generality that
Z0 Z1 is that edge. Then all colliders on 01 are in
An(Z0 [ Z1) = An(Z0) An(Z0 [ Z2), and all colliders on
12 are in An(Z1 [ Z2) An(Z0 [ Z2). Z1 itself is a
collider on w012 and is also in An(Z0). Hence, the walk w012
is d-connected, and can be truncated to an inducing path
that starts with the first arrow of 01 and ends with the last
arrow of 12.</p>
        <p>Definition A.6 (Inducing Z-trail). Let
= V1; : : : ; Vn+1
abendafpoartehaicnh Gi[2;L fs1u;c:h: :th;nagt,Vth2e;r:e: :i;sVann 2indZu,cVin1g; Vpan+th1 w&lt;.rZ.t,.
;; L linking Vi; Vi+1 that has an arrowhead at Vi (Vi+1) if
Vi 2 Z (Vi+1 2 Z). Then is called an inducing Z-trail.
Lemma A.7. Let = V1; : : : ; Vn+1 be an inducing Z-trail,
and let 0 be a subsequence of formed by removing one
node Vi of such that Vi 2 Z is a non-collider on . Then
0 is an inducing Z-trail.</p>
        <p>Proof. According to Lemma A.5, if Vi is a non-collider on
, then Vi 1 and Vi+1 are linked by an inducing path that
contains an arrowhead at Vi 1 (Vi+1) if Vi 1 2 Z (Vi+1 2
Z). Therefore, Vi 1 and Vi+1 are themselves adjacent, 0 is
a path, and is a Z-trail.</p>
        <sec id="sec-8-1-1">
          <title>Corollary A.8. Every inducing Z-trail</title>
          <p>has a subpath 0 that is m-connected by Z.
= V1; : : : ; Vn+1
Proof. Transform into 0 by replacing non-collider
nodes in Z by the direct edge linking their neighbours
until no such node exists anymore. By inductively applying
Lemma A.7, we see that 0 is also an inducing Z-trail, and
every node in Z is a collider because otherwise we would
have continued transforming. So 0 must be m-connected
by Z.
in Z (possibly wM0 = wM).</p>
          <p>M
Lemma A.9. Let wG be a walk from X to Y in G, X; Y &lt; L,
that is d-connected by Z. Let wM = V1; : : : ; Vn+1 be the
subsequence of wG consisting only of the nodes in M =
sGu[b;Ls.eTqhueenncZe wm0-cofonrnmecetds fXroamnwdMY ibny Mremvoiaviangpsaothmaelnoondgeas
Proof. First, truncate from wM all subwalks between
nodes in Z that occur more than once. Now consider
all subsequences V1; : : : ; Vn+1, n &gt; 1, of wM where
V2; : : : ; Vn 2 Z, V1; Vn+1 &lt; Z, which now are all paths
in wM. On those subsequences, every Vi must be adjacent
in G to Vi+1 via a path containing no colliders, and all
nonendpoints on that path must be in L. So there are inducing
paths w.r.t. ;; L between all Vi; Vi+1, which have
arrowheads at Vi (Vi+1) if Vi 2 Z (Vi+1 2 Z). So V1; : : : ; Vn+1
is an inducing Z-trail, and has a subpath which m-connects
V1, Vn+1 given Z. Transform wM to w0 by replacing all
inducing Z-trails by their m-connected sMubpaths.
According to Lemma A.4, non-colliders on wM cannot be
colliders on w0 , as bypassing inducing paths can remove but
not createMarrowheads. Moreover, all nodes in Z on w0 are
colliders. Hence w0 is m-connected by Z. M
M
Corollary A.10. Each edge on w0 as defined above
corM
responds to an inducing path w.r.t ;; L in G along nodes on
wG.</p>
          <p>Lemma A.11. Suppose there exists an inducing path 01
from Z0 to Z1 w.r.t. S; L with an arrowhead at Z1 and an
inducing path from Z1 to Z2 w.r.t. S0; L with an arrowhead
at Z1. Then the walk w012 = 01 12 can be truncated to an
inducing path from Z0 to Z2 w.r.t. S [ S0 [ fZ1g; L in G.
Proof. The walk w012 does not contain more non-colliders
than those on 01 or 12, so they must all be in L.
All colliders on 0;1 and 1;2 as well as Z1 are in
An(Z0; Z1; Z2; S; S0), and therefore also all colliders of
w012.</p>
          <p>Hence, the walk w012 is d-connected, and can be truncated
to an inducing path that starts with the first arrow of 01
and ends with the last arrow of 12.</p>
          <p>L
Lemma A.12. Suppose Z0; Z1; : : : ; Zk+1 is a path in G[;
with an arrowhead at Zk+1 on which all Z1; : : : ; Zk are
colliders. Then there exists an inducing path from Z0 to Zk+1
w.r.t. fZ1; : : : ; Zkg; L with an arrowhead at Zk+1.
Proof. Because all Zi; Zi+1 are adjacent and all Z1; : : : ; Zk
are colliders there exist inducing paths i;i+1 w.r.t. ;; L from
Zi to Zi+1 that have arrowheads at Z1; : : : ; Zk (Lemma A.4).
The claim follows by repeatedly applying Lemma A.11 to
the i;i+1’s.</p>
          <p>Lemma A.13. Suppose A ! V1 $ : : : $ Vk $ X !
D or A $ V1 $ : : : $ Vk $ X ! D is a path in
eGx[i;Lsts(paonssinibdluyckin=g p0a)t,heach Vi is a parent of D and there</p>
          <p>XD from X to D w.r.t ;; L that has
arrowheads on both ends. Then A and D cannot be
m</p>
          <p>L
separated in G[; .</p>
          <p>Proof. Assume the path is A ! V1 $ : : : $ Vk $ X !
D. The case where the path starts with A $ V1 can be
handled identically, since the first arrowhead does not
affect m-separation.
bAesssuumche aAseapnadraDtorc.aInf bVe1 mis-sneoptairnatZedthinenGth[;Le, paanthd Alet!Z
V1 ! D is not blocked, so V1 2 Z. Inductively it follows,
if Vi is not in Z, but all 8 j &lt; i : Vj 2 Z then the path
A ! V1 $ : : : $ Vi 1 $ Vi ! D is not blocked, so
Vi 2 Z for all i.</p>
          <p>There exist an inducing path AX from A to X with an
arrowhead at X w.r.t. to fV1; : : : ; Vkg; L (Lemma A.12) which
can be combined with XD to an inducing path from A to
D w.r.t. to fV1; : : : ; Vk; Xg; L (Lemma A.11).</p>
          <p>Hence no m-separator of A; D can contain fX; V1; : : : ; Vkg
(Lemma A.3). Then there cannot exist an m-separator,
because every separator must include V1; : : : ; Vk and the path
A ! V1 $ V2 $ : : : $ Vk $ X ! D is open without
X 2 Z.</p>
          <p>A.2</p>
        </sec>
      </sec>
      <sec id="sec-8-2">
        <title>ALGORITHMS</title>
        <p>This section contains algorithm pseudocodes and parts of
their correctness proofs that were omitted from the main
text for space reasons.</p>
        <p>A.2.1</p>
      </sec>
      <sec id="sec-8-3">
        <title>TESTING</title>
        <p>For a given ancestral graph G the problem TESTSEP can
be solved with a modified Bayes-Ball algorithm in time
O(n+m). In the algorithm every bi-directed edge A $ B is
considered as a pair of edges A ! B and an undirected
edge A B as a directed edge pointing to the currently
visited node.</p>
        <p>function TESTSEP(G; X; Y; Z)</p>
        <p>
          Run Bayes-Ball from X
return (Y not reachable)
The problem TESTMINSEP can be solved using Algorithm
6 TESTMINSEP in O(jEAmnj) = O(n2) time. Alternatively,
the problem can be solved with an algorithm that iteratively
removes from Z nodes and tests if the resulting set remains
an m-separator. This can be done in time O(n(n + m)).
The correctness of the algorithms for TESTMINSEP can
be shown by generalizing the results presented in
          <xref ref-type="bibr" rid="ref17">(Tian
et al., 1998)</xref>
          for m-separation. 6 TESTMINSEP, runs in
O(jEAmnj) because Rx and Ry can be computed with an
ordinary search that aborts when a node in Z is reached.
function TESTMINSEP(G; X; Y; Z)
if Z n Ant(X [ Y) , ; then return false
if not TESTSEP(G; X; Y; Z) then
        </p>
        <p>return false
RGx0a fGZaA2ntZ(X[jY9) path X Z in G0a</p>
        <p>not intersecting Z n fZgg
if Z * Rx then return false
Ry fZ 2 Z j 9 path Y Z in G0a</p>
        <p>not intersecting Z n fZgg
if Z * Ry then return false
return true
The problem can be solved using Algorithm 7 FINDSEP
in O(n + m) time. The correctness follows directly from
Lemma 3.4.
Algorithm 8 FINDMINSEPNAIVE depends on an implicit
moral graph and the fact that in an undirected graph every
node that cannot be removed from a separating set has to
be in separating subsets, and runs in O(jAnt(X [ Y)jjEAnj).
function FINDMINSEPMORAL(G; X; Y; I; R)</p>
        <p>G0 GAnt(X[Y[I)
G0a GaAnt(X[Y[I)
Z0 R \ Ant(X [ Y)
Remove from G0a all nodes of I
if not TESTSEP(G0; X; Y; Z) then</p>
        <p>return ?</p>
        <p>Run BFS from X. Whenever a node in Z0 is met,
mark it, if it is not already marked and do not continue
along the path. When BFS stops, let Z00 be the set of all
marked nodes. Remove all markings</p>
        <p>Run BFS from Y. Whenever a node in Z00 is met,
mark it, if it is not already marked and do not continue
along the path. When BFS stops, let Z be the set of all
marked nodes.</p>
        <p>return Z [ I</p>
        <p>Figure 9: FindMinSepMoral
Algorithm 9 FINDMINSEPMORAL begins with the
separating set R \ Ant(X [ Y) and finds a subset
satisfying the conditions tested by algorithm 6 TESTMINSEP, in
O(jEAmnj).</p>
      </sec>
      <sec id="sec-8-4">
        <title>FINDING A MINIMUM COST</title>
      </sec>
      <sec id="sec-8-5">
        <title>M-SEPARATOR</title>
        <p>The problem MINCOSTSEP can be solved with algorithm
10 FINDMINCOSTSEP in O(n3).</p>
        <p>function FINDMINCOSTSEP(G; X; Y; I; R; w)</p>
        <p>G0 GAnt(X[Y[I)
G0a GaAnt(X[Y[I)
Add a node Xm connected to all nodes in
X, and a node Ym connected to all nodes
in Y.</p>
        <p>Assign infinite cost to all nodes in
X [ Y [ (V n R) and cost w(Z) to every
other node Z.</p>
        <p>Remove all nodes of I from G0a.</p>
        <p>Change the graph to a flow network as
described in Cormen et al. (2001) and return a
minimum cutset Z.
The correctness without I follows from the fact that a
minimum set is a minimal set and the minimal cut found in the
ancestor moral graph is therefore the minimal separating
set. The handling of I is shown in Acid and de Campos
(1996).</p>
        <p>A.2.5</p>
      </sec>
      <sec id="sec-8-6">
        <title>ENUMERATING ALL MINIMAL</title>
      </sec>
      <sec id="sec-8-7">
        <title>M-SEPARATORS</title>
        <p>The problem LISTMINSEP can be solved with algorithm
11 LISTMINSEP with O(n3) delay between every
outputted Z.</p>
        <p>function LISTMINSEP(G; X; Y; I; R)</p>
        <p>G0 GAnt(X[Y[I)
G0a GaAnt(X[Y[I)
Add a node Xm connected to all X nodes.</p>
        <p>Add a node Ym connected to all Y nodes.</p>
        <p>Remove all nodes of I.</p>
        <p>Remove all nodes of V n R, but insert
additional edges connecting the neighbours.
of all removed nodes.</p>
        <p>Use the algorithm in Takata (2010) to list all sets
separating Xm and Ym.
The correctness is shown by Textor and Lis´kiewicz
(2011) for adjustment sets and generalizes directly to
mseparators, because after moralization, both problems are
equivalent to enumerating vertex cuts of an undirected
graph. The handling of I is shown by Acid and de
Campos (1996).</p>
      </sec>
      <sec id="sec-8-8">
        <title>TESTING FOR ADJUSTMENT</title>
      </sec>
      <sec id="sec-8-9">
        <title>AMENABILITY</title>
        <p>Let N(V) denote all nodes adjacent to V, and Sp(V) denote
all spouses of V, i.e., nodes W such that W $ V 2 E. The
adjustment amenability of a graph G w.r.t sets X; Y can be
tested with the following algorithm:
function TESTADJUSTMENTAMENABILITY(G; X; Y)
for all D in Ch(X) \ PCP(X; Y) do</p>
        <p>C ;
A ;
function CHECK(V)
if C[V] then return A[V]
C[V] true
A[V] ((Pa(V) [ Sp(V)) n N(D) , ;)
for all W 2 Sp(V) \ Pa(D) do</p>
        <p>if CHECK(W) then A[V] true
return A[V]
for all X in X \ Pa(D) do
if :CHECK(X) then</p>
        <p>return false
The algorithm checks for every edge X ! D on a proper
causal path to Y whether it satisfies the amenability
conditions of Lemma 5.5 by searching a collider path through the
parents of D to a node Z not connected to D; note that
condition (1) of Lemma 5.5 is identical to condition (2) with an
empty collider path. Since CHECK performs a
depth-firstsearch by checking every node only once and then
continuing to its neighbors, each iteration of the outer for-loop in
the algorithm runs in linear time O(n + m). Therefore, the
entire algorithm runs in O(k(n + m)) where k jCh(X)j.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <given-names>Silvia</given-names>
            <surname>Acid and Luis M. de Campos</surname>
          </string-name>
          .
          <article-title>An algorithm for finding minimum d-separating sets in belief networks</article-title>
          .
          <source>In Proceedings of UAI 1996</source>
          , pages
          <fpage>3</fpage>
          -
          <lpage>10</lpage>
          ,
          <year>1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <given-names>Silvia</given-names>
            <surname>Acid and Luis M. de Campos</surname>
          </string-name>
          .
          <article-title>Searching for bayesian network structures in the space of restricted acyclic partially directed graphs</article-title>
          .
          <source>Journal of Artificial Intelligence Research (JAIR)</source>
          ,
          <volume>18</volume>
          :
          <fpage>445</fpage>
          -
          <lpage>490</lpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <given-names>Elias</given-names>
            <surname>Barenboim</surname>
          </string-name>
          , Jin Tian, and
          <string-name>
            <given-names>Judea</given-names>
            <surname>Pearl</surname>
          </string-name>
          .
          <article-title>Recovering from selection bias in causal and statistical inference</article-title>
          .
          <source>In Proceedings of AAAI-14</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <given-names>Thomas H.</given-names>
            <surname>Cormen</surname>
          </string-name>
          , Charles E. Leiserson, Ronald L.
          <string-name>
            <surname>Rivest</surname>
            , and
            <given-names>Clifford</given-names>
          </string-name>
          <string-name>
            <surname>Stein</surname>
          </string-name>
          . Introduction to Algorithms, Second Edition. The MIT Press,
          <article-title>2nd edition</article-title>
          ,
          <year>September 2001</year>
          . ISBN 0262032937.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <given-names>Felix</given-names>
            <surname>Elwert</surname>
          </string-name>
          .
          <source>Graphical Causal Models</source>
          , pages
          <fpage>245</fpage>
          -
          <lpage>273</lpage>
          . Handbooks of Sociology and Social Research. Springer,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <given-names>Adam</given-names>
            <surname>Glynn</surname>
          </string-name>
          and
          <string-name>
            <given-names>Konstantin</given-names>
            <surname>Kashin</surname>
          </string-name>
          .
          <article-title>Front-door versus back-door adjustment with unmeasured confounding: Bias formulas for front-door and hybrid adjustments</article-title>
          .
          <source>Technical report</source>
          , Harvard University,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <given-names>Sander</given-names>
            <surname>Greenland</surname>
          </string-name>
          .
          <article-title>Hierarchical regression for epidemiologic analyses of multiple exposures</article-title>
          .
          <source>Environmental Health Perspectives</source>
          ,
          <volume>102</volume>
          <issue>Suppl 8</issue>
          :
          <fpage>33</fpage>
          -
          <lpage>39</lpage>
          ,
          <year>Nov 1994</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <given-names>Marloes H.</given-names>
            <surname>Maathuis</surname>
          </string-name>
          and
          <string-name>
            <given-names>Diego</given-names>
            <surname>Colombo</surname>
          </string-name>
          .
          <article-title>A generalized backdoor criterion</article-title>
          .
          <source>arXiv:1307.5636</source>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <given-names>Judea</given-names>
            <surname>Pearl</surname>
          </string-name>
          . Causality. Cambridge University Press,
          <year>2009</year>
          . ISBN 0-521-77362-8.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <given-names>Thomas</given-names>
            <surname>Richardson</surname>
          </string-name>
          and
          <string-name>
            <given-names>Peter</given-names>
            <surname>Spirtes</surname>
          </string-name>
          .
          <article-title>Ancestral graph markov models</article-title>
          .
          <source>Annals of Statistics</source>
          ,
          <volume>30</volume>
          :
          <fpage>927</fpage>
          -
          <lpage>1223</lpage>
          ,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <string-name>
            <surname>Kenneth J. Rothman</surname>
            , Sander Greenland,
            <given-names>and Timothy L. Lash. Modern</given-names>
          </string-name>
          <string-name>
            <surname>Epidemiology</surname>
          </string-name>
          . Wolters Kluwer,
          <year>2008</year>
          . ISBN 0781755646.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <string-name>
            <surname>Ross D. Shachter</surname>
          </string-name>
          .
          <article-title>Bayes-ball: The rational pastime</article-title>
          .
          <source>In Proceedings of UAI 1998</source>
          , pages
          <fpage>480</fpage>
          -
          <lpage>487</lpage>
          ,
          <year>1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <string-name>
            <given-names>Ilya</given-names>
            <surname>Shpitser</surname>
          </string-name>
          .
          <article-title>Appendum to on the validity of covariate adjustment for estimating causal effects</article-title>
          ,
          <year>2012</year>
          . unpublished manuscript.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          <string-name>
            <given-names>Ilya</given-names>
            <surname>Shpitser</surname>
          </string-name>
          , Tyler VanderWeele, and James Robins.
          <article-title>On the validity of covariate adjustment for estimating causal effects</article-title>
          .
          <source>In Proceedings of UAI 2010</source>
          , pages
          <fpage>527</fpage>
          -
          <lpage>536</lpage>
          . AUAI Press,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          <string-name>
            <given-names>Ken</given-names>
            <surname>Takata</surname>
          </string-name>
          .
          <article-title>Space-optimal, backtracking algorithms to list the minimal vertex separators of a graph</article-title>
          .
          <source>Discrete Applied Mathematics</source>
          ,
          <volume>158</volume>
          :
          <fpage>1660</fpage>
          -
          <lpage>1667</lpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          <string-name>
            <given-names>Johannes</given-names>
            <surname>Textor</surname>
          </string-name>
          and
          <article-title>Maciej Lis´kiewicz. Adjustment criteria in causal diagrams: An algorithmic perspective</article-title>
          .
          <source>In Proceedings of UAI</source>
          , pages
          <fpage>681</fpage>
          -
          <lpage>688</lpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          <string-name>
            <given-names>Jin</given-names>
            <surname>Tian</surname>
          </string-name>
          , Azaria Paz, and
          <string-name>
            <given-names>Judea</given-names>
            <surname>Pearl</surname>
          </string-name>
          .
          <article-title>Finding minimal d-separators</article-title>
          .
          <source>Technical Report R-254</source>
          , University of California, Los Angeles,
          <year>1998</year>
          . URL ftp.cs.ucla.edu/pub/stat_ser/r254.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          <string-name>
            <surname>Tyler J. VanderWeele</surname>
          </string-name>
          .
          <article-title>On the relative nature of overadjustment and unnecessary adjustment</article-title>
          .
          <source>Epidemiology</source>
          ,
          <volume>20</volume>
          (
          <issue>4</issue>
          ):
          <fpage>496</fpage>
          -
          <lpage>499</lpage>
          ,
          <year>Jul 2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          <string-name>
            <given-names>Jiji</given-names>
            <surname>Zhang</surname>
          </string-name>
          .
          <article-title>Causal reasoning with ancestral graphs</article-title>
          .
          <source>Journal of Machine Learning Research</source>
          ,
          <volume>9</volume>
          :
          <fpage>1437</fpage>
          -
          <lpage>1474</lpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>