Confounder selection via iterative graph expansion
The project
Showcase
F. Richard Guo and Qingyuan Zhao
arXiv, 2023Methodology
- imsart
- longtable
- pdflscape
- centernot
- cancel
Compare with TeX's PDFOriginalSource
CC BY 4.0, published at arxiv.org. “Confounder selection via iterative graph expansion” by F. Richard Guo, Qingyuan Zhao, arXiv:2309.06053v3. Licensed under CC BY 4.0. Typeset here by reflowtex from the authors' source.
CONFOUNDER SELECTION VIA ITERATIVE GRAPH EXPANSION
BY F. RICHARD GUO 1,a AND QINGYUAN ZHAO2,b
1Department of Statistics, University of Michigan, aricguo@umich.edu
2Statistical Laboratory, University of Cambridge, bqyzhao@statslab.cam.ac.uk
Confounder selection, namely choosing a set of covariates to control for confounding between a treatment and an outcome, is arguably the most important step in the design of an observational study. Previous methods, such as Pearl’s back-door criterion, typically require pre-specifying a causal graph, which can often be difficult in practice. We propose an interactive procedure for confounder selection that does not require pre-specifying the graph or the set of observed variables. This procedure iteratively expands the causal graph by finding what we call “primary adjustment sets” for a pair of possibly confounded variables. This can be viewed as inverting a sequence of marginalizations of the underlying causal graph. Structural information in the form of primary adjustment sets is elicited from the user, bit by bit, until either a set of covariates is found to control for confounding or it can be determined that no such set exists. Other information, such as the causal relations between confounders, is not required by the procedure. We show that if the user correctly specifies the primary adjustment sets in every step, our procedure is both sound and complete.
1.Introduction. Consider an observational study where the causal effect of a treatment variable X on an outcome variable Y is of interest. Arguably, the single most widely used strategy for identifying the causal effect is through confounder adjustment, which employs a set of observed covariates that are carefully chosen to control for confounding. Let Y(x) be the potential outcome of Y had the treatment X been intervened on and set to level x. A set of covariates S controls for confounding if for every x in the support of X, X and Y(x) are independent within each stratum defined by S, a condition known as conditional ignorability or conditional exchangeability (Rosenbaum and Rubin, 1983b; Greenland and Robins, 2009; Hernán and Robins, 2020). The task of choosing such a set of covariates is called confounder selection.
While there exist a variety of approaches and criteria for confounder selection (see Guo, Lundborg and Zhao, 2022 for a recent survey), it is clear that this cannot be answered by data alone and hence is fundamentally different from statistical variable selection (e.g., stepwise algorithms in linear regression). That is, domain knowledge about the underlying causal mechanism or structure is indispensable. Causal graphical models provide an intuitive framework for formalizing such knowledge. Specifically, if we have available a causal directed acyclic graph (DAG) model for relevant variables in an observational study, the back-door criterion (Pearl, 1993) answers whether or not a set of covariates S controls for confounding, and this criterion is complete in a sense that will be described in Section 2.3. The set S is called a sufficient adjustment set if it satisfies the back-door criterion. When there is more than one sufficient adjustment set, one may wish to further choose a set based on its size or statistical efficiency (see, e.g., Henckel, Perković and Maathuis, 2022; Rotnitzky and Smucler, 2020; Smucler and Rotnitzky, 2022). Yet, these are secondary objectives that we will largely set aside for the rest of this paper (except for Section 5.3). As far as validity is concerned, confounder selection is sometimes considered a “solved problem” in light of the back-door criterion, provided that a causal DAG (or a latent projection of the DAG) can be pre-specified to represent our domain knowledge and assumptions.
However, the back-door criterion is often difficult to apply in practice. As the back-door criterion is a global condition about the candidate set of covariates S, the treatment X, the outcome Y and other variables in the system (see Section 2.3), a practitioner must be able to (1) conceive all the variables, observed or unobserved, that are relevant, (2) posit all causal relations among these variables, (3) understand how a DAG encodes causal assumptions, and (4) draw the DAG accordingly, or at least a large portion of it, to transcribe the posited relations graphically. While tools and protocols for drawing DAGs have been developed to some extent (Shrier and Platt, 2008; Haber et al., 2022), this is still a formidable process in practice. It is often difficult to conceive all the relevant variables, let alone posit all causal relations among them.
1.1.Overview of the iterative graph expansion procedure. In this paper, we take an interactive, bottom-up approach to confounder selection that does not require pre-specifying the causal graph. Our method, called iterative graph expansion, is based on a symmetric reformulation of Pearl’s back-door criterion and can be viewed as the inverse of graph marginalization or latent projection (Verma and Pearl, 1990). The knowledge about the underlying causal graph is elicited from the user, bit by bit, until one or more sets of covariates that meet the symmetric back-door criterion are found, or it is determined that no such set exists. For this procedure, a key new concept is a primary adjustment set: a candidate adjustment set for a pair of variables is called primary if for every common ancestor of the two variables, at least one of the two causal paths from the ancestor to these two variables is blocked by the adjustment set. Intuitively, a primary adjustment set removes all “immediate” confounding between the two variables.
More specifically, the process of graph expansion starts with a working graph consisting of two vertices — the treatment X and the outcome Y — and a dashed bidirected edge, representing possible uncontrolled confounding, between them. In each step, the user is asked to provide candidates of primary adjustment sets to expand a dashed bidirected edge selected from the current working graph; if no such set exists, the dashed bidirected edge is changed to a solid edge. If primary adjustment sets do exist, then every such set leads to an expanded graph: the selected dashed edge is removed and those vertices in the primary adjustment set are introduced to the graph, with a dashed bidirected edge drawn between every new vertex and every old vertex, as well as between every pair of new vertices. This process is repeated until the treatment and the outcome are no longer connected by solid or dashed bidirected edges. When this occurs, variables other than X and Y in the working graph form a sufficient adjustment set.
Fig 1: An illustration of the iterative graph expansion using the “butterfly bias” example (Ding and Miratrix, 2015). The edge chosen for expansion is highlighted in red.
Figure 1 illustrates the iterative graph expansion when the underlying causal graph (the leftmost graph) is a “butterfly” (Ding and Miratrix, 2015). In the first iteration, the algorithm expands the potential bidirected edge XY with primary adjustment set {B}. This removes XY, but at the same time creates two more potential bidirected edges, BX and BY. The second iteration of the algorithm expands BY by further adding {D} to the graph, which creates three more potential bidirected edges, DX, DY, and DB. The next iteration simply removes DY, as there is no confounding between D and Y. This leads to the rightmost graph, where X and Y are not connected by bidirected edges. Hence, the algorithm returns {B, D} as a sufficient adjustment set. Similarly, the set {B, C} can also be identified as a sufficient adjustment set through another sequence of expansions. In fact, {B, C} and {B, D} are the only two minimal sufficient adjustment sets in this example, and {B, D} is the so-called efficient adjustment set (Rotnitzky and Smucler, 2020; Henckel, Perković and Maathuis, 2022). More examples are given in Section 6 and Appendix D.
Compared to existing methods for confounder selection, such as directly applying the back-door criterion, the iterative graph expansion procedure has several advantages. First of all, it makes structural queries “economically” in the sense that only so much information needed for confounder selection is elicited from the user. All other information, including the presence or absence of directed edges among the confounders, is never requested. Second, familiarity with causal graphs (such as how to apply d-separation) is not required to deploy the procedure; the user is only expected to identify common causes and mediators. Finally, we show that this procedure is sound and complete in the following sense: if all the primary adjustment sets specified by the user are indeed primary, then every adjustment set identified by the procedure is sufficient; further, if the user correctly specifies all the minimal primary adjustment sets in each step, then every minimal sufficient adjustment set will be identified by the procedure. To facilitate the use of our procedure, we provide a Shiny web application accessible from https://ricguo.shinyapps.io/InteractiveConfSel/.
It is worth mentioning that there are other proposals in the literature for confounder selection that only require partial knowledge about the causal graph, including, notably, the disjunctive cause criterion due to VanderWeele and Shpitser (2011); see also VanderWeele (2019) for its variants. The disjunctive cause criterion selects all the observed pre-treatment covariates that are ancestors (i.e. direct or indirect causes) of the treatment, the outcome or both. VanderWeele and Shpitser (2011) showed that this adjustment set is sufficient whenever the set of observed pre-treatment covariates contains any sufficient adjustment set as a subset; see also Richardson, Robins and Wang (2018); Guo, Lundborg and Zhao (2022). While this criterion can be useful when data has already been collected and domain knowledge is scarce, verifying the assumption that the set of collected covariates contains a sufficient adjustment set can be as difficult as the task of confounder selection itself. Moreover, the disjunctive cause criterion and many other existing proposals require pre-specifying the set of observed covariates. As such, they are not best suited for designing an observational study, where the primary goal is to determine what data need to be collected. Finally, to the best of our knowledge, all the existing methods for confounder selection are “static” — they cannot learn from the user in an interactive way.
1.2.Other contributions and organization of this paper. The iterative graph expansion procedure is built on several conceptual and technical novelties, summarized as follows.
First, we provide a definition of confounding path, the symmetric structure that induces confounding between two variables. Specifically, a path between A to B is called confounding if it has two endpoint arrowheads. This allows us to symmetrize Pearl’s back-door criterion and reduce the task of confounder selection to blocking all confounding paths between the treatment and the outcome. The notion of a confounding path complements earlier efforts in the literature towards properly defining a confounder, or more precisely, a confounding variable. VanderWeele and Shpitser (2013) reviewed several popular notions of confounders and showed that none of them is satisfactory. They further provided an alternative definition: a confounder is a pre-exposure covariate C for which there exists a set of other covariates S such that (S, C) is a sufficient adjustment set but no proper subset of (S, C) is sufficient. However, this definition does not lead to a practical procedure for selecting confounders.
Second, we adopt the notion of confounding arcs from Pearl (2009, Section 3.5) and provide a concrete definition: a confounding arc is a confounding path with no colliders. It is easy to see that every confounding path can be decomposed into one or more confounding arcs. Importantly, when a set of covariates block a confounding arc, all of its supersets also block the same arc. Yet, the same property does not hold for confounding paths consisting of more than one confounding arc. Nevertheless, we show that, by iteratively blocking confounding arcs, we can eventually block all the confounding paths between the treatment and the outcome.
Third, we introduce a district criterion for confounder selection, which posits that a set S is an adjustment set if X and Y are in different “districts” in the marginal graph over S ∪ {X, Y}. This is equivalent to the symmetric back-door criterion but can be easier to check in practice.
Finally, to develop our procedure and prove its soundness and completeness, we introduce a set of refined m-connection/separation relations, along with a set of notation, to reason about confounding paths and arcs. As with the usual m-connection (Richardson, 2003), we show that these relations are preserved by marginalization.
The rest of this paper is organized as follows. In Section 2, we introduce some preliminaries on causal graphical models, including some basic graphical terms, m-separation and marginalization. In Section 3, we introduce confounding paths and confounding arcs, with which we formulate a symmetric version of the back-door criterion. We study the properties of some refined m-connections in Section 4. We show that marginalization preserves connections by confounding paths (Theorem 2), which then leads to the district criterion (Section 4.2). We present our iterative graph expansion procedure in Section 5. When the user acts like an oracle and answers all queries about primary adjustment sets correctly, our procedure is shown to be both sound and complete (Theorem 4). Practical considerations and subroutines needed for the procedure are studied in Sections 5.3 and 5.4. We conclude with some discussion in Section 7. A more complex example is provided in Section 6 to illustrate the iterative graph expansion procedure. Proofs and other supplementary materials can be found in the appendices.
2.Preliminaries of causal graphical models.
2.1.Basic graphical concepts. A directed mixed graph G = (V, D, B) is a graph over a finite vertex set V that consists of two types of edges, directed edges D ⊆ V × V and bidirected edges B ⊆ V × V. Each vertex in V represents a random variable. We write A B for a directed edge (A, B) ∈ D and A B for a bidirected edge (A, B) ∈ B (and hence also (B, A) ∈ B). A maximal set of vertices connected by bidirected edges is called a district. Between two vertices A, B ∈ V, we allow the existence of both a directed edge and a bidirected edge. A directed cycle is a sequence of directed edges v1 · · · vl v1 with l > 1. If G contains no directed cycle, we call G an acyclic directed mixed graph (ADMG). Further, if G contains no bidirected edge, we call it a directed acyclic graph (DAG).
A walk is a sequence of adjacent edges of any type or orientation. If all vertices on a walk are distinct, we say it is a path. For ADMGs, it is necessary to specify a walk or path as a sequence of edges instead of vertices, as there may exist both directed and bidirected edges between two vertices. A walk or path is directed if it is formed of directed edges pointing in the same direction.
For any walk π, a non-endpoint vertex A is said to be a collider on π if both the edges before and after A have an arrowhead pointing to A, or in other words, if π contains A , A , A or A . Note that a vertex can be a collider on one path and a non-collider on another path. We use a squiggly line () to signify that a given walk or path contains no collider and we call such a walk or path an arc; some authors use trek to describe the same concept (Spirtes, Glymour and Scheines, 1993; Sullivant, Talaska and Draisma, 2010). An arc can be further specified by the arrowhead or tail added to the squiggly line. A directed path from A to B is written as A B or B A. A path from A to B with no colliders and two endpoint arrowheads is called a confounding arc and written as A B. We use a half-arrowhead to indicate that the endpoint can be either an arrowhead or a tail. For example, A B means is the path is either A B or A B.
We adopt the common familial terminologies for graphical models. A vertex A is said to be a parent of another vertex B and B a child of A in the ADMG G if G contains A B; and A is said to be an ancestor of B and B a descendant of A if G contains A B. (This differs from the convention that A is considered both an ancestor and a descendant of itself used by many authors.) With these relations, we define sets paG(v), chG(v), anG(v), deG(v) for a vertex v ∈ V and extend these definitions to a vertex set A ⊆ V disjunctively, e.g., paG(A) := ∪v∈A paG(v), chG(A) := ∪v∈A chG(v), etc. Additionally, we let anG(A) := anG(A) ∪ A. The subscript G is often omitted when it is clear from the context.
2.2.m-separation. Introduced by Richardson (2003), m-separation extends the d-separation criterion for conditional independence in DAGs (Pearl, 1988) to ADMGs. To introduce this concept, we say a path in an ADMG G is (ancestrally) blocked by C ⊆ V if there exists a non-collider on the path that is in C or a collider on the path that is in C or has a descendant in C. This is the usual notion of blocking in the literature (Pearl, 1988). Later in the article, we will introduce a slightly different notion of blocking that does not depend on the ambient graph and will refer to this conventional notion as ancestral blocking.
For disjoint sets A, B, C ⊂ V, if there exists a path in G from any vertex in A to any vertex in B not (ancestrally) blocked given C, we say A and B are m-connected in G given C and denote it by A ∗ B | C in G; otherwise if all paths from A to B are (ancestrally) blocked by C, we say A and B are m-separated by C in G and denote it by not A ∗ B | C in G. While some authors use the independence symbol ‘⊥⊥ ’ to denote m-separation, our notation more clearly describes the type of the underlying path: (1) the half-arrowheads indicate that both endpoints are unrestricted in terms of arrowhead or tail; (2) the wildcard character ‘∗’ means the path can have zero, one or several colliders. As such, A ∗ B refers to all paths from A to B. The advantages of this notation will become clearer in Sections 3 and 4.
2.3.Graph marginalization. In many cases, a graph can contain variables that are not observed (or observable1) and it is convenient to contemplate the marginal graph that describes the marginal distribution of the observed variables; this process is often referred to as latent projection in the literature (Pearl and Verma, 1991). Let G = (V, D, B) be an ADMG and let V = V ∪ U be a partition (so V ∩ U = ∅). The marginalization of G onto V is the ADMG G(V) = (V, D, B) with directed and bidirected edges given by
1We say a variable is observed if the variable has been measured and recorded, and we say a variable is observable if the variable can be measured. Typically, the former notion is used when analyzing a study and the latter when designing a study. For convenience, we do not differentiate the two and use “observed” throughout.
• A B in G(V) if there exists a directed path in G on which all the non-endpoint vertices are in U (such paths are denoted as A via U B), and
• A B in G(V) if there exists a path from A to B such that the path has two endpoint arrowheads and no colliders and has all the non-endpoint vertices in U (such paths are denoted as A via U B).
Trivially, A B in G implies A B in G(V) and A B in G implies A B in G(V). Using the squiggly line notation, marginalization can be compactly defined as
A B in G(V) ⇐⇒ A via U via U via U B in G .
It follows from this definition that marginalization preserves acyclicity. It is well-known that m-separation is preserved by marginalization (Verma and Pearl, 1990; Evans, 2018): for disjoint A, B, C ⊂ V, we have
A ∗ B | C in G(V) ⇐⇒ A ∗ B | C in G .
In Section 4, we strengthen this result by showing that marginalization also preserves some refined forms of m-connections.
A central problem in causal inference is to identify the causal effect of a treatment variable X on an outcome variable Y under the causal model represented by an ADMG G. The most widely used approach is to adjust for a set of variables S that controls for confounding. Under a standard causal graphical model (see below), a set S ⊆ V \{X, Y} is guaranteed to control for confounding if it satisfies the back-door criterion (Pearl, 1993) on G:
1. S contains no descendant of X, and 2. there is no m-connected path from X to Y given S with an arrowhead into X. (1)
Further, Shpitser, VanderWeele and Robins (2010, Theorem 5) showed that this criterion is complete in the following sense: given any set S′ ⊆ V \{X, Y} that controls for confounding under the causal model represented by G, the set S′ \ de(X) must satisfy the back-door criterion. Because set S′ \ de(X) is no bigger than S′ and also controls for confounding, it suffices to only consider those S that do not contain descendants of X. We will stick to this convention for the rest of this paper.
2.4.Causal models. Heuristically, a directed edge A B signifies the presence of a direct causal effect of A on B that is not mediated by other variables in the graph. A bidirected edge A B signifies the presence of exogenous correlation — a basic form of unmeasured confounding — between A and B that cannot be explained away by other variables in the graph; this is closely related to the concept of endogeneity in the econometrics literature (Engle, Hendry and Richard, 1983). Formally, a causal model can be defined on ADMGs using the potential outcomes language and unconfoundedness is often defined as the following conditional independence (Rosenbaum and Rubin, 1983b):
(2)X ⊥⊥ Y(x) | S for all x,
where Y(x) is the potential outcome of Y when X is set to x. The single-world intervention graph provides an easy way to check conditional independence involving potential outcomes; in fact, the back-door criterion is equivalent to m-separation in the single-world intervention graph (Richardson and Robins, 2013). As our main contribution is graphical, we will refrain from further discussion and refer the reader to Shpitser, Richardson and Robins (2022) and Zhao (2025) for recent work on causal models associated with ADMGs.
3.Confounding paths, confounding arcs and sufficient adjustment sets. Despite the well-established notion of unconfoundedness as the conditional independence in (2), it may come as a surprise that giving a positive definition of a confounding variable is more difficult. This difficulty arises partly due to the lack of monotonicity of unconfoundedness — a set controls for confounding but its superset may not.
In this section, we reformulate Pearl’s back-door criterion symmetrically in terms of confounding paths, which are structures in the graph that induce confounding between the two endpoints. This allows us to shift the consideration of confounding from vertices to edges and paths in the graph.
DEFINITION 1. Consider an ADMG G over a vertex set V. For distinct A, B ∈ V, let P[A ∗ B in G] denote the set of all paths between A and B in G, and P[A B in G] denote the subset of all directed paths from A to B. Define the set of confounding paths between A and B in G as
P[A ∗ B in G] := {π ∈ P[A ∗ B in G] : π has two endpoint arrowheads}.
Those confounding paths without colliders are called confounding arcs:
P[A B in G] := {π ∈ P[A ∗ B in G] : π has no collider}.
A confounding arc immediately induces non-causal association between the endpoints when none of its non-endpoint vertices are conditioned on. A confounding arc between A and B is of the form
A U1 B or A U1 U2 B.
As our notation ‘ ∗ ’ suggests, a confounding path is either a confounding arc or a concatenation of multiple confounding arcs. In the latter case, the confounding path may induce non-causal association when all the colliders (or their descendants) on the path are conditioned on. See also Zhao (2024) for a systematic treatment of these graphical concepts using a matrix algebra on the set of walks in G.
To further distinguish different types of paths that are ancestrally unblocked given a set C (see Section 2.2), we adopt the following notation.
DEFINITION 2. For distinct A, B ∈ V and C ⊆ V \{A, B}, denote
P[A · · · B |a C in G] = {π ∈ PG[A · · · B in G] : π is ancestrally unblocked given C},
where ‘· · · ’ can be ‘’, ‘’, ‘ ∗ ’, ‘ ∗ ’, etc.
We often omit “in G” from our notation when the graph G is clear from the context. The subscript “a” in |a is used to emphasize that we are considering the conventional notion of (ancestral) blocking, where a vertex can unblock a path if the path contains a collider that is not the vertex but the vertex’s ancestor. We will consider a slightly different notion of blocking that does not permit this; see Definition 5 below.
REMARK 1. Note that conditioning on the empty set changes the meaning of our notation when the collection of paths may contain colliders. For a given ADMG G and A, B, C in Definition 2, we have
(3)P[A B |a C] ⊆ P[A ∗ B |a C].
When no variable is conditioned on, an unblocked (confounding) path must be a (confounding) arc:
P[A ∗ B |a ∅] = P[A B |a ∅] = P[A B] = P[A ∗ B],
In other words, conditioning on ∅ means that the unblocked paths cannot contain colliders.
Recall that in Section 2 we write the relation “A and B are m-connected given C” as
A ∗ B | C ⇐⇒ P[A ∗ B |a C] = ∅,
and the relation “A and B are m-separated given C” as
not A ∗ B | C ⇐⇒ P[A ∗ B |a C] = ∅.
Similarly, we define the following relations using other types of paths.
DEFINITION 3. Let G be an ADMG over vertex set V. For any distinct A, B ∈ V and C ⊆ V \{A, B}, we write
A ∗ B | C in G ⇐⇒ P A ∗ B |a C in G = ∅
and
not A ∗ B | C in G ⇐⇒ P A ∗ B |a C in G = ∅.
Note that the relations above pertaining to ‘’ and ‘ ∗ ’ are symmetric in A and B; these relations satisfy certain graphoid-like properties as discussed in Appendix C. The next result directly follows from definition.
LEMMA 1 (Monotonicity of unblocked arcs). Let G be an ADMG over vertex set V. For C ⊆ C ⊆ V \{A, B}, we have
A B | C in G =⇒ A B | C in G,
It is well known that such monotonicity is not true for blocking confounding paths; a famous counter-example is the M-bias graph (Greenland, Pearl and Robins, 1999).
Next, we offer our definition of a sufficient adjustment set that is symmetric in X and Y.
DEFINITION 4 (Adjustment set). Let G be an ADMG over vertex set V. For distinct X, Y ∈ V, we say S ⊆ V \{X, Y} is an adjustment set for X and Y if it contains no descendants of X or Y, namely,
not X S in G and not Y S in G .
We say an adjustment set S is sufficient if
not X ∗ Y | S in G .
Moreover, we say a sufficient adjustment set S is minimal if none of its proper subsets is also sufficient.
THEOREM 1 (Symmetric back-door criterion). Let G be an ADMG over vertex set V and consider distinct vertices X, Y ∈ V. If X Y in G, then S is a sufficient adjustment set for X and Y if and only if S satisfies the back-door criterion in (1).
Theorem 1 shows that our definition is equivalent to Pearl’s back-door criterion given a very mild assumption that imposes the causal direction. In view of this, confounder selection boils down to finding an adjustment set S that blocks all the confounding paths ‘ ∗ ’ between X and Y; thus S necessarily blocks all confounding arcs ‘X Y’. However, due to the monotonicity property (Lemma 1), blocking confounding arcs is considerably easier than blocking confounding paths — expanding S does not introduce new unblocked confounding arcs but can introduce new unblocked confounding paths due to colliders. This observation motivates our procedure in Section 5 that blocks confounding paths by iteratively blocking confounding arcs.
REMARK 2. Our notion of adjustment set and back-door criterion is symmetric in X and Y. This is made possible by excluding descendants of X or Y in adjustment sets. This requirement is essential in the graph expansion algorithm below to avoid inquiring the causal direction between variables in the adjustment set. In principle, there may exist a set of covariates that contain certain descendants of X (that do not lie on X Y) that can also control for confounding — such a set can be called a “generalized adjustment set” (see Shpitser, VanderWeele and Robins, 2010; Perković et al., 2015). Yet, descendants of X are unnecessary to adjust for (rarely seen in practice) and they are also prohibited in Pearl’s back-door criterion.
4.Properties of graph connections/separations. Our approach to confounder selection is based on iterative graph expansion, a process that inverts a sequence of graph marginalizations. Thus, it is important to understand how confounding paths behave under marginalization. In fact, similar to the ordinary m-connection/separation, the relations in Definition 2 (connections via directed paths, confounding arcs, and confounding paths) are also preserved by marginalization.
THEOREM 2. Let G be an ADMG over vertex set V. For any distinct A, B ∈ V, C ⊆ V \ {A, B}, and vertex set V such that {A, B} ∪ C ⊆ V ⊆ V, we have
A ∗ ∗ B | C in G ⇐⇒ A ∗ ∗ B | C in G(V).
This immediately implies the next result.
COROLLARY 1. Let G, G′ be two marginal graphs of the same ADMG onto different subsets of vertices. For distinct vertices A, B and vertex set C (C ∩ {A, B} = ∅) that exist on both graphs, we have
A ∗ ∗ B | C in G ⇐⇒ A ∗ ∗ B | C in G′ .
REMARK 3. Theorem 2 can be further strengthened as follows: connections by arcs (i.e., without colliders) are preserved in marginalization with matching endpoint arrowheads and tails; connections by general paths are also preserved by marginalization, but only endpoint arrowheads are preserved. This means that, for example, the following implication with only matching endpoint arrowheads is true (this can be seen from our proof of Theorem 2):
P[A ∗ B |a C in G] = ∅ =⇒ P[ ∗ B |a C in G(V)] = ∅,
but, in general,
P[A ∗ B |a C in G] = ∅ =⇒ P[A ∗ B |a C in G(V)] = ∅.
To illustrate the last point, consider Fig. 2, where G′, G′′ are successive marginals of G, and F′ is a marginal graph of F. We have the following observations:
(i) The statement
P[A ∗ B |a C] = ∅
holds in G (path A E F B) and G′ (path A C F B) but not in G′′.
(ii) The statement
P[A ∗ D |a C] = ∅
holds in G (path A E F B D) and G′ (path A C F B D), but not in G′′. Instead, P[A ∗ D |a C] = ∅ holds in G′′ (path A B D).
(iii) With wildcard ‘+’ denoting one or more colliders, the statement
P[A + B |a C] = ∅
holds in F (path A D E B) but not in F′.
Fig 2: G′ is a marginal of G and G′′ is a further marginalization of G′; F′ is a marginal of F.
4.1.Proof of Theorem 2. We prove Theorem 2 by re-characterizing these relations using unblocked simple walks with a slightly different notion of blocking, denoted as Ws(· | ·). In particular, the first equivalence in Theorem 2 follows from Lemmas 2 and 3 below via the following equivalence diagram (denote G := G(V)):
A B | C in G Def. 3 ⇐⇒ P[A B |a C in G] = ∅ Lem. 2 ⇐⇒ Ws[A B | C in G] = ∅ Lem. 3 A B | C in G Def. 3 ⇐⇒ P[A B |a C in G] = ∅ Lem. 2 ⇐⇒ Ws[A B | C in G] = ∅.
Here, Ws[A B | C in G] is the collection of all simple unblocked directed walks from A to B given C. Recall that a walk is a sequence of adjacent edges of any type or orientation; the notions of (non-ancestral) blocking and simple walks will be introduced shortly. All other equivalences in Theorem 2 can be proved in exactly the same way.
We briefly explain why reasoning with walks instead of paths simplifies the proof. Given a path with colliders, one may have to look beyond the path to determine whether it is ancestrally blocked. That is, the notion of ancestrally blocked paths is relative to the graph: the same path may be ancestrally blocked in one graph but not blocked in another. For example, in Figure 3, the path A D B is not ancestrally blocked given C in G1 but ancestrally blocked given C in G2. This issue can be avoided by using a slightly different notion of blocking that does not involve the descendants of any collider. This notion of blocking is used in the well-known Bayes ball algorithm (Shachter, 1998); see also van der Zander, Liśkiewicz and Textor (2019).
(a) G1 (b) G2
Fig 3: The difference between blocking and ancestral blocking.
DEFINITION 5 (Blocked walk). A walk is said to be blocked given a vertex set C if there exists a non-collider on the walk contained in C or a collider on the walk not contained in C.
Thus in Figure 3, the walk A D B is blocked given C in both G1 and G2. Yet, the walk A D C D B (present in G1 but not in G2) is not blocked given C, irrespective of the graph that the walk resides in.
Let W[A ∗ B | C in G] denote all unblocked walks from A to B given C in an ADMG G. Other types of unblocked walks are defined in a similar way. Specifically, we write
W[A ∗ B | C] := {π ∈ W[A ∗ B | C] : π has two endpoint arrowheads},
Note that P[A B |a C] ⊆ W[A B | C] is true because confounding arcs have no colliders, but P[A ∗ B |a C] ⊆ W[A ∗ B | C] due to the different notions of blocking being applied. Nevertheless, it is shown below that the existence of ancestrally unblocked paths, as one may expect, is equivalent to the existence of unblocked walks.
Since we are interested in the preservation of endpoint arrowheads by marginalization, we will focus on simple walks; see Remark 4 below.
DEFINITION 6. A walk is simple if its endpoints are visited only once by the walk.
An anonymous referee pointed out that the proof below would still go through if it is further required that a simple walk contains no repeated edge in the same direction (in which case the walk must have finite length).
We add a superscript ‘s’ to W[· · · ] to indicate that only simple walks are considered. For example, Ws[A ∗ B | C in G] denotes all unblocked confounding simple walks in G from A to B given C, i.e.,
Ws[A ∗ B | C in G] := {π ∈ W[A ∗ B | C in G] : π is simple} .
It is easy to see that there exists an unblocked walk between A and B given C if and only if there exists an unblocked simple walk between A and B given C, that is,
WG(A ∗ B | C) = ∅ ⇐⇒ WsG(A ∗ B | C) = ∅.
As mentioned earlier, we prove Theorem 2 by applying the next two key lemmas. Lemma 2 shows that the existence of certain types of paths that are not ancestrally blocked is equivalent to that of unblocked simple walks. Lemma 3 shows that certain types of unblocked simple walks are preserved by marginalization. The proofs of these lemmas are deferred to Appendix B.
LEMMA 2. Let G be an ADMG over vertex set V. For any distinct A, B ∈ V and C ⊆ V \{A, B}, we have
P A ∗ ∗ B |a C in G = ∅ ⇐⇒ Ws A ∗ ∗ B | C in G = ∅.
LEMMA 3. Let G be an ADMG over vertex set V. For any distinct A, B ∈ V, C ⊆ V \ {A, B} and vertex set V such that {A, B} ∪ C ⊆ V ⊆ V, we have,
Ws A ∗ ∗ B | C in G = ∅ ⇐⇒ Ws A ∗ ∗ B | C in G(V) = ∅.
REMARK 4. For an unblocked walk that is not simple, there may not exist a corresponding ancestrally unblocked path with matching endpoint arrowheads. Consider the graph C A B. Although the walk A C A B is not blocked given the empty set, there is no ancestrally unblocked path from A to B starting with ‘A ’.
4.2.District criterion. From Theorem 2, we derive the following simple but useful criterion for confounder selection. In what follows, we write ‘A ∗ B’ if there exists a path from A to B consisting of bidirected edges only. Similarly, we write ‘A ∗ B’ if there exists a path from A to B on which every non-endpoint vertex is a collider.
COROLLARY 2. For an ADMG G, consider two distinct vertices A, B and a vertex set C such that A, B / ∈ C. We have
A ∗ ∗ B | C in G ⇐⇒ A ∗ ∗ B in G({A, B} ∪ C).
PROOF. Apply Theorem 2 with V = {A, B} ∪ C. Because C contains all vertices other than A, B in G(V), an unblocked arc from A to B given C must be a single directed or bidirected edge. Further, any non-endpoint vertex on any unblocked path from A to B given C in G(V) must be a collider.
We make two remarks on this result. First, recall that in the literature of graphical models, a district in an ADMG is defined as a maximal set of vertices connected by bidirected edges (see, e.g., Evans and Richardson, 2014). That is, A and B are in the same district if and only if A ∗ B. By the third equivalence relation in Corollary 2, an adjustment set S is sufficient for A and B if and only if A and B are in different districts of G({A, B} ∪ S), the smallest marginal graph. We call this the district criterion for confounder selection. It provides a simple and useful way to check whether a set of selected confounders is indeed sufficient. Second, the last equivalence relation in Corollary 2 says that A and B are m-connected given C if and only if A and B are “collider-connected” in the smallest marginal graph. This concept naturally arises in considering the inverse covariance matrix for linear structural equation models; see Koster (1999) and Zhao (2024).
5.Iterative graph expansion.
5.1.Primary adjustment set. A primary adjustment set is any adjustment set that blocks all the confounding arcs ‘’ between two vertices. They are the building blocks when we try to find sufficient adjustment sets by iteratively expanding the graph, a procedure that is introduced in the next subsection.
DEFINITION 7 (Primary adjustment set). Let G be an ADMG with vertex set V. Given two distinct vertices A, B ∈ V and a set S ⊆ V \ {A, B}, an adjustment set C for A, B is called primary relative to S if
not A B | S ∪ C in G .
When S = ∅, we simply say that C is a primary adjustment set for A and B. Further, C is called minimal primary (relative to S) if none of its proper subsets is primary (relative to S).
By definition, if C is a (minimal) primary adjustment set for A and B, it is also a (minimal) primary adjustment set for B and A. Further, because any ancestrally unblocked confounding arc is an ancestrally unblocked path (see (3)), any sufficient adjustment set must be primary but the reverse may not be true. For example, in the graph A D B, the adjustment set {D} for A and B is primary but not sufficient.
LEMMA 4. Given an ADMG G, if C is a minimal primary adjustment set for A and B relative to S, then C ∩ S = ∅ and C ⊆ anG(A) ∪ anG(B).
PROOF. Suppose not A B | S ∪ C for some C. Let C = C ∩ (an(A) ∪ an(B)) \ S. It is easy to show that any confounding arc A B that is not blocked given S ∪ C remains not blocked given S ∪ C. That is, not A B | S ∪ C. The result then follows from the definition of minimal primary adjustment set.
THEOREM 3. Let G be an ADMG over vertex set V. Suppose S ⊂ V is a minimal sufficient adjustment set for distinct X, Y ∈ V. Then, for any S ⊂ S, there exist distinct Z1, Z2 ∈ S ∪ {X, Y} such that
(4)Z1 Z2 in G(S ∪ {X, Y}) and not Z1 Z2 in G(S ∪ {X, Y}).
Moreover, there exists a non-empty minimal primary adjustment set C ⊆ S \ S for Z1 and Z2 relative to S \ {Z1, Z2}.
Before we prove Theorem 3, note that by Corollary 2, Eq. (4) is equivalent to
Z1 Z2 | S ∪ {X, Y} \ {Z1, Z2} in G and not Z1 Z2 | S ∪ {X, Y} \ {Z1, Z2} in G .
Because Z1, Z2 ∈ S ∪ {X, Y} and S is an adjustment set, we know Z1 and Z2 are not descendants of X or Y. Therefore, we can safely remove {X, Y} from the conditioning sets and (4) is also equivalent to
(5)Z1 Z2 | S \ {Z1, Z2} in G and not Z1 Z2 | S \ {Z1, Z2} in G .
To interpret the conclusions of this theorem, imagine trying to find a minimal sufficient adjustment set S by iteratively adding vertices. Suppose S ⊆ S is our current estimate. As long as S is not yet sufficient, we can find Z1, Z2 ∈ S ∪ {X, Y} such that there is a confounding arc between them that is not blocked by S. To block it, we can try to find a primary adjustment set C for Z1, Z2 relative to S and add C to S and make S ∪ C our next estimate. This theorem states that for at least one choice of C, the new estimate S ∪ C will remain a subset of (and possibly the same as) S. If S ∪ C is still not sufficient, we may iterate the process until we eventually obtain the set S. In other words, Theorem 3 essentially shows that all minimal sufficient adjustment sets for (X, Y) can be found by recursively expanding a bidirected edge with its minimal primary adjustment sets; this is the basis of Algorithm 1 below.
PROOF OF THEOREM 3. Because S is a proper subset of a minimal sufficient adjustment set S, S is an adjustment set but is not sufficient. By Corollary 2, we have
X ∗ Y | S in G =⇒ X ∗ Y in G(S ∪ {X, Y}).
Therefore, there exists a bidirected path
X = D0 · · · Dk = Y in G(S ∪ {X, Y}), k ≥ 1.
We claim that there exists j ∈ {0, . . . , k − 1} such that Dj Dj+1 in G(S ∪ {X, Y}). Otherwise, the same bidirected path also appears in G(S ∪ {X, Y}) (because S ⊂ S), so by Corollary 2,
X ∗ Y in G(S ∪ {X, Y}) =⇒ X ∗ Y | S in G,
contradicting the assumption that S is sufficient. By our choice, we have Dj, Dj+1 ∈ S ∪ {X, Y} and Dj Dj+1 in G(S ∪ {X, Y}). Hence, we have shown the existence of (Dj, Dj+1), rewritten as (Z1, Z2), as desired.
For the second conclusion, observe that Eq. (5) holds, that is, S \ {Z1, Z2} is primary for (Z1, Z2) but S \ {Z1, Z2} is not. The existence of such a minimal primary adjustment set C then follows from the definition.
5.2.Iterative graph expansion algorithm. We now introduce our procedure CONFOUNDERSELECT that is based on two sub-routines: SELECTEDGE and FINDPRIMARY. See Algorithm 1 for the pseudo-code of an implementation using a priority queue Q that admits a POP and a PUSH operation; see also Appendix A for a recursive version of the algorithm that is shorter but less flexible. We leave the choices of the priority index and of the SELECTEDGE subroutine to the next subsection, as they do not affect the validity of the algorithm. In practice, it is through the FINDPRIMARY subroutine that the information about the underlying graph is elicited from the user; we discuss its implementation in Section 5.4.
In this algorithm, all the possible bidirected edges ¯S × ¯S in the current graph G(¯S), where ¯S := S ∪ {X, Y} and S is our working adjustment set, are partitioned into three groups:
1. the set Bn that contains all the bidirected edges that are absent or already blocked (that is, (A, B) ∈ Bn means that we are already certain that not A B | ¯S in the current graph and thus in all its expansions by Lemma 1);
2. the set By that contains all the bidirected edges that exist or assumed to exist (i.e., confounding that cannot be controlled for, which we draw as ), which the algorithm will not attempt to block; and
3. the set Bu := (¯S × ¯S) \ (Bn ∪ By) that contains all the uncertain bidirected edges (drawn as )that the algorithm will attempt to block.
In other words, the algorithm maintains Bu ∪ By as a superset of the bidirected edges in G(¯S). In each iteration, the subroutine SELECTEDGE(X, Y, S, By, Bn) selects an uncertain bidirected edge π from Bu. The subroutine FINDPRIMARY is then called to find the primary adjustment sets for the two end points of π relative to the current adjustment set. If π is already blocked by the current adjustment set (i.e., the empty set is returned as a primary adjustment set), then π is moved to Bn. Otherwise, the algorithm attempts to move π to Bn by expanding π with every primary adjustment set that is returned by the subroutine FINDPRIMARY. Finally, it attempts to make no expansion by moving π to By. Because the vertex set V is assumed to be finite, this algorithm will eventually terminate.
THEOREM 4 (Soundness and completeness of iterative graph expansion). Let G be an ADMG over vertex set V. The following two statements hold for any distinct X, Y ∈ V.
1. Suppose for any A, B ∈ V and S′ ⊆ V \{A, B}, when FINDPRIMARY(A, B; S′) = ∅, every C ∈ FINDPRIMARY(A, B; S′) is a primary adjustment set for A and B relative to S′ in G. Then every set in the output of CONFOUNDERSELECT(X, Y) is a sufficient adjustment set for X and Y.
2. Suppose further that FINDPRIMARY(A, B; S′) contains every minimal primary adjustment set for A and B relative to S′ in G. Then the output of CONFOUNDERSELECT(X, Y) contains all the minimal sufficient adjustment sets for X and Y.
PROOF. Statement 1 says that the graph expansion algorithm is sound. It follows from the district criterion (Corollary 2), as an adjustment set S is only added to the output R in lines 9-11 of Algorithm 1 when X and Y are not connected by bidirected edges in By ∪ Bu (and hence in G(¯S)). Statement 2 says that the graph expansion algorithm is complete for identifying minimal sufficient adjustment sets. It directly follows from Theorem 3.
Algorithm 1 Confounder selection via iterative graph expansion
1: procedure CONFOUNDERSELECT(X, Y)
2: R = {} ▷ Set of sufficient adjustment sets
3: Q = PRIORITYQUEUE((∅, ∅, ∅)) ▷ Initial graph has a possible edge XY
4: while Q = ∅ do
5: (S, By, Bn) = POP(Q) ▷ S: current adjustment set By: edges not to be expanded Bn: absent or blocked edges
6: ¯S = S ∪ {X, Y}
7: if X ∗ Y by edges in By then ▷ Fails the district criterion
8: continue
9: else if not X ∗ Y by edges in (¯S × ¯S) \ Bn then ▷ Satisfies the district criterion
10: R = R ∪ {S}
11: continue
12: end if
13: (A, B) = π = SELECTEDGE(X, Y, S, By, Bn) ▷ π is selected from (¯S × ¯S) \ (By ∪ Bn)
14: L = FINDPRIMARY((A, B); S \ {A, B})
15: if ∅ ∈ L then
16: PUSH(Q, (S, By, Bn ∪ {π})) ▷ π need not be expanded
17: else
18: for C ∈ L do
19: PUSH(Q, (S ∪ C, By, Bn ∪ {π})) ▷ Expand π by each primary adjustment set
20: end for
21: PUSH(Q, (S, By ∪ {π}, Bn)) ▷ Not to expand π
22: end if
23: end while
24: return R
25: end procedure
5.3.Practical considerations. Algorithm 1 provides a sound and complete template for confounder selection, which relies on specifying subroutines FINDPRIMARY and SELECTEDGE as well as a priority index specified for the queue Q. In practice, instead of finding all the (minimal) sufficient adjustment sets, often the goal is to find one such set quickly, i.e., with only a few attempts of graph expansion. Further, when there are multiple edges to choose from, we can pick one judiciously to improve the efficiency for estimating the causal effect with adjustment. In what follows, we discuss how to design the priority index and SELECTEDGE to optimize these aforementioned secondary objectives of confounder selection. We leave the implementation of FINDPRIMARY to the next subsection.
To find a (minimal) sufficient adjustment set quickly, we recommend the following min-cut strategy. Suppose the priority queue Q is implemented such that (1) POP(Q) returns an element with the lowest index, and (2) in case of a tie, returns the element that is last pushed to Q. We choose the priority index to be
min-cut(S, By, Bn) := minimal number of edges removed from
In case of X ∗ Y by edges in By, let min-cut(S, By, Bn) := ∞. Because min-cut = 0 whenever the district criterion is satisfied (line 9, Algorithm 1), this choice prioritizes those candidates needing the fewest number of expansions. Accordingly, we recommend a subroutine SELECTEDGE(X, Y, S, By, Bn) that returns an edge that lies on the min-cut. When there is more than one edge that lies on the min-cut, we further recommend choosing one that is closest to Y to improve the efficiency of the corresponding adjustment estimator for the effect of X on Y, with the intuition being that a covariate close to Y can help predict Y to reduce variance; see Henckel, Perković and Maathuis (2022) and Rotnitzky and Smucler (2020) for further discussion. This strategy is adopted by the examples in Section 6 and Appendix D, where the edge chosen from the popped graph is marked in red.
Algorithm 2 Finding primary adjustment sets for A and B relative to S
1: procedure FINDPRIMARY(A, B; S, minimal_only=False)
2: L = {} ▷ Set of primary adjustment sets relative to S
3: T = PRIORITYQUEUE(S) ▷ Initialize with the current adjustment set
4: while T = ∅ do
5: T = POP(T)
6: C = COMMONCAUSE(A, B; T) ▷ Find a common cause that is not blocked by T
7: if C is NULL then ▷ T is primary
8: L = T \ S
9: if minimal_only then ▷ Remove redundant vertices
10: for Z ∈ L do
11: if COMMONCAUSE(A, B; S ∪ L \ {Z}) is NULL then
12: L = L \ {Z}
13: end if
14: end for
15: end if
16: L = L ∪ {L}
17: else
18: if ISOBSERVED(C) then
19: PUSH(T, T ∪ {C}) ▷ Add the common cause to T
20: else
21: for Mi ∈ FINDMEDIATOR(A, B; C, S) do
22: PUSH(T, T ∪ Mi) ▷ Add mediators to T
23: end for
24: end if
25: end if
26: end while
27: return L
28: end procedure
5.4.Finding primary adjustment sets. Given two vertices A, B and a set S such that A, B / ∈ S, recall that an adjustment set S′ for A, B is primary relative to S if not A B | S ∪ S′. Suppose ¯G is the underlying causal ADMG over vertex set ¯V. By Theorem 2, not A B | S ∪ S′ holds if and only if the set of common causes of A and B not blocked by S ∪ S′ is empty, that is
C(A, B; S ∪ S′) := {C ∈ ¯V : C A | S, S′ and C B | S, S′ in ¯G} = ∅.
Consider Algorithm 2 for an iterative procedure that identifies primary adjustment sets. It uses three subroutines: COMMONCAUSE, FINDMEDIATOR, and ISOBSERVED. If C(A, B; S) = ∅, the subroutine COMMONCAUSE(A, B; S) returns a vertex from C(A, B; S), i.e., a common cause of A and B whose causal paths to A and B are not blocked by S; otherwise, COMMONCAUSE(A, B; S) returns NULL. For C ∈ C(A, B; S), the subroutine FINDMEDIATOR(A, B; C, S) then returns a collection of observed adjustment sets {Mi ⊆ V} of A, B such that
not C A | S, Mi in ¯G or not C B | S, Mi in ¯G.
These subroutines can be formulated in terms of questions in plain language, which we discuss in Section 7.
The procedure FINDPRIMARY calls COMMONCAUSE iteratively in a similar way that CONFOUNDERSELECT calls FINDPRIMARY. If COMMONCAUSE is NULL, then the current adjustment set is primary and one can further trim this set to obtain a minimal primary adjustment set when the option minimal_only is set to True (see line 9-17 in Algorithm 2). Otherwise, we need to block the confounding arc A C B by adding either C or mediators on the C A or C B paths (obtained by FINDMEDIATOR) to S, if these variables can be observed. When implementing this algorithm, it may be desirable to use a priority queue to store candidate sets to prioritize smaller adjustment sets.
Fig 4: A causal DAG in Shrier and Platt (2008).
6.Example. We use the DAG in Figure 4 taken from Shrier and Platt (2008) to illustrate the iterative graph expansion algorithm. In this example, the treatment X is warm-up prior to exercise and the outcome Y is injury, and this DAG was used by Shrier and Platt (2008) to select confounders using the back-door criterion. In Appendix D, we provide another example that involves unobserved variables.
When applying the graph expansion procedure, each iteration is indexed by a tuple (S, By, Bn) associated with a graph that consists of bidirected edges on vertices ¯S = S ∪ {X, Y}. Hereafter, we use to indicate bidirected edges in By that are not to be expanded, and to indicate bidirected edges in (¯S × ¯S) \ (By ∪ Bn) that can be further expanded. In addition, we highlight the edge π chosen by SELECTEDGE with and indicate the graph popped from the queue with a box. The superscript of each box indicates the min-cut of the popped graph and in each iteration a graph with the smallest min-cut is popped from the queue; see Section 5.3. For this example, we assume the subroutine FINDPRIMARY returns all minimal primary adjustment sets (i.e., option minimal_only=True), so by Theorem 4 the procedure is guaranteed to find all the minimal sufficient adjustment sets.
1. We start with
Q = 1 , R = {}.
2. We have
FINDPRIMARY(X, Y; ∅, True)
and
Q = 1
3. We have FINDPRIMARY((F, Y); ∅, True) = {{E}} and
Q = 1
4. In the boxed graph, we have not E Y | F (see Fig. 4) and hence
∅ ∈ FINDPRIMARY((E, Y); {F}, True).
We get
Q = 0
5. Because X and Y become disconnected in the boxed graph above, a sufficient adjustment set {E, F} is identified. The algorithm proceeds with
Q = 1
6. For the boxed graph above, we have FINDPRIMARY(X, F; ∅, True) = {{T}, {O}} and hence
Q = 1
7. Noting that not T X | F in Fig. 4, we immediately have
Q = 0
8. Given that not X ∗ Y in the boxed graph above, we find another sufficient adjustment set {T, F}. We now have
Q = 1
Besides {E, F} and {T, F}, the algorithm will proceed to find all the other minimal sufficient adjustment sets: {O, G}, {O, F}, {D, N}, {N, W} and {G, T}. For brevity, we omit the remaining steps, which follow analogously.
7.Discussion. We have shown that confounder selection, reformulated as blocking confounding paths X ∗ Y, can be reduced to iteratively finding primary adjustment sets that block confounding arcs A B, where (A, B) is either (X, Y) or any other pair of variables introduced in this process. Finding primary adjustment sets can be further reduced to finding common causes and finding mediators. The graph expansion procedure presented as Algorithm 1 provides a systematic approach to confounder selection. In practice, the user or domain expert interacts with the procedure by providing information to the subroutine in Algorithm 2. At least in principle, the information can be elicited by asking the following questions for various choices of variables A, B and set S.
(i) Is there a common cause C of A and B such that neither its effect on A nor its effect on B is fully mediated by S?
(ii) If the answer is “yes”, is C observed?
(iii) If the answer to the first question is “yes” but to the second question is “no”, then what are some of the observed variables that, when combined with those variables already in S, fully mediate the causal effect of C on A or the causal effect of C on B?
Clearly, answering these questions does not require one’s familiarity with the theory of causal graphical models beyond the basic concepts of causes and mediators.
We have focused on finding the sufficient adjustment set for a single treatment variable X and a single outcome variable Y. Shpitser, VanderWeele and Robins (2010) and Perković et al. (2015) provided generalized adjustment criteria for multiple X and Y variables when the graph is given. It would be useful to extend the iterative graph expansion algorithm to this more general problem.
We conclude our paper with several remarks. First, it is evident that this graph expansion procedure only requires partial knowledge about the underlying graph. In particular, the procedure never inquires about the directed edges between the variables in the working graph. Second, by construction our method guards against the so-called collider bias or M-bias (Greenland, Pearl and Robins, 1999). More broadly, the district criterion can be employed to identify such bias for any given adjustment set. Finally, we would like to stress again that confounder selection is crucial for both the design and the analysis of an observational study. As pointed out by Rubin (2008), “for objective causal inference, design trumps analysis”. Building on the success of causal graphs to represent structural assumptions, more work on using causal graphs to aid the design of observational studies is much needed.
REFERENCES
DING, P. and MIRATRIX, L. W. (2015). To adjust or not to adjust? Sensitivity analysis of M-bias and butterfly-bias. Journal of Causal Inference 3 41–57.
ENGLE, R. F., HENDRY, D. F. and RICHARD, J.-F. (1983). Exogeneity. Econometrica 51 277–304.
EVANS, R. J. (2018). Markov properties for mixed graphical models. In Handbook of Graphical Models 39–60. CRC Press.
EVANS, R. J. and RICHARDSON, T. S. (2014). Markovian acyclic directed mixed graphs for discrete data. The Annals of Statistics 42 1452 – 1482.
GREENLAND, S., PEARL, J. and ROBINS, J. M. (1999). Causal diagrams for epidemiologic research. Epidemiology 10 37–48.
GREENLAND, S. and ROBINS, J. M. (2009). Identifiability, exchangeability and confounding revisited. Epidemiologic Perspectives & Innovations 6 1–9.
GUO, F. R., LUNDBORG, A. R. and ZHAO, Q. (2022). Confounder Selection: Objectives and Approaches. arXiv preprint arXiv:2208.13871.
HABER, N. A., WOOD, M. E., WIETEN, S. and BRESKIN, A. (2022). DAG With Omitted Objects Displayed (DAGWOOD): a framework for revealing causal assumptions in DAGs. Annals of Epidemiology 68 64-71.
HENCKEL, L., PERKOVIĆ, E. and MAATHUIS, M. H. (2022). Graphical criteria for efficient total effect estimation via adjustment in causal linear models. Journal of the Royal Statistical Society: Series B (Statistical Methodology) 84 579-599.
HERNÁN, M. A. and ROBINS, J. M. (2020). Causal Inference: What If. Chapman & Hall/CRC, Boca Raton.
KOSTER, J. T. A. (1999). On the Validity of the Markov Interpretation of Path Diagrams of Gaussian Structural Equations Systems with Correlated Errors. Scandinavian Journal of Statistics 26 413–431.
PEARL, J. (1988). Probabilistic Reasoning in Intelligent Systems: Networks of Plausible Inference. Morgan Kaufmann Publishers Inc., San Francisco, CA, USA.
PEARL, J. (1993). Comment: graphical models, causality and intervention. Statistical Science 8 266–269.
PEARL, J. (2009). Causality: Models, Reasoning, and Inference, 2nd ed. Cambridge University Press.
PEARL, J. and VERMA, T. (1991). A Theory of Inferred Causation. In Proceedings of the Second International Conference on Principles of Knowledge Representation and Reasoning. KR’91 441–452. Morgan Kaufmann Publishers Inc., San Francisco, CA, USA.
PERKOVIĆ, E., TEXTOR, J., KALISCH, M. and MAATHUIS, M. H. (2015). A complete generalized adjustment criterion. In Proceedings of the Thirty-First Conference on Uncertainty in Artificial Intelligence. UAI’15 682–691. AUAI Press, Arlington, Virginia, USA.
RICHARDSON, T. S. (2003). Markov Properties for Acyclic Directed Mixed Graphs. Scandinavian Journal of Statistics 30 145–157.
RICHARDSON, T. S. and ROBINS, J. M. (2013). Single World Intervention Graphs (SWIGs): A Unification of the Counterfactual and Graphical Approaches to Causality Technical Report No. 128, Center for the Statistics and the Social Sciences, University of Washington Series.
RICHARDSON, T. S., ROBINS, J. M. and WANG, L. (2018). Discussion of “Data-driven confounder selection via Markov and Bayesian networks” by Häggström. Biometrics 74 403-406.
ROSENBAUM, P. R. and RUBIN, D. B. (1983b). The Central Role of the Propensity Score in Observational Studies for Causal Effects. Biometrika 70 41–55.
ROTNITZKY, A. and SMUCLER, E. (2020). Efficient adjustment sets for population average causal treatment effect estimation in graphical models. Journal of Machine Learning Research 21 1–86.
RUBIN, D. B. (2008). For objective causal inference, design trumps analysis. The Annals of Applied Statistics 2 808-840.
SADEGHI, K. and LAURITZEN, S. (2014). Markov properties for mixed graphs. Bernoulli 20 676 – 696.
SHACHTER, R. D. (1998). Bayes-Ball: Rational Pastime (for Determining Irrelevance and Requisite Information in Belief Networks and Influence Diagrams). In Proceedings of the Fourteenth Conference on Uncertainty in Artificial Intelligence. UAI’98 480–487. Morgan Kaufmann Publishers Inc., San Francisco, CA, USA.
SHPITSER, I., RICHARDSON, T. S. and ROBINS, J. M. (2022). Multivariate Counterfactual Systems and Causal Graphical Models In Probabilistic and Causal Inference: The Works of Judea Pearl 813–852. Association for Computing Machinery, New York, NY, USA.
SHPITSER, I., VANDERWEELE, T. J. and ROBINS, J. M. (2010). On the validity of covariate adjustment for estimating causal effects. In Proceedings of the Twenty-Sixth Conference on Uncertainty in Artificial Intelligence. UAI’10 527–536. AUAI Press, Arlington, Virginia, USA.
SHRIER, I. and PLATT, R. W. (2008). Reducing bias through directed acyclic graphs. BMC Medical Research Methodology 8 1–15.
SMUCLER, E. and ROTNITZKY, A. (2022). A note on efficient minimum cost adjustment sets in causal graphical models. Journal of Causal Inference 10 174–189.
SPIRTES, P., GLYMOUR, C. and SCHEINES, R. (1993). Causation, Prediction, and Search. Lecture Notes in Statistics 81. Springer, New York, NY.
SULLIVANT, S., TALASKA, K. and DRAISMA, J. (2010). Trek Separation for Gaussian Graphical Models. The Annals of Statistics 38 1665–1685.
VAN DER ZANDER, B., LIŚKIEWICZ, M. and TEXTOR, J. (2019). Separators and adjustment sets in causal graphs: Complete criteria and an algorithmic framework. Artificial Intelligence 270 1–40.
VANDERWEELE, T. J. (2019). Principles of confounder selection. European Journal of Epidemiology 34 211–219.
VANDERWEELE, T. J. and SHPITSER, I. (2011). A new criterion for confounder selection. Biometrics 67 1406–1413.
VANDERWEELE, T. J. and SHPITSER, I. (2013). On the Definition of a Confounder. The Annals of Statistics 41 196–220.
VERMA, T. S. and PEARL, J. (1990). Equivalence and synthesis of causal models. In Proceedings of the 6th Conference on Uncertainty in Artificial Intelligence (UAI-1990) 220-227.
ZHAO, Q. (2024). A Matrix Algebra for Graphical Statistical Models. arXiv preprint arXiv:2407.15744.
ZHAO, Q. (2025). On Statistical and Causal Models Associated with Acyclic Directed Mixed Graphs. arXiv preprint arXiv:2501.03048.
APPENDIX A:RECURSIVE VERSION OF THE GRAPH EXPANSION ALGORITHM
The recursive version is shorter but less flexible; see Algorithm 3 below.
Algorithm 3 Confounder selection via graph expansion (recursive version)
1: procedure CONFOUNDERSELECT(X, Y)
2: R = ∅
3: procedure GRAPHEXPAND(S, By, Bn)
4: ¯S = S ∪ X ∪ Y
5: if X ∗ Y by edges in By then
6: return
7: else if not X ∗ Y by edges in (¯S × ¯S) \ Bn then
8: R = R ∪ {S}
9: return
10: end if
11: (A, B) = π = SELECTEDGE(X, Y, S, By, Bn)
12: L = FINDPRIMARY((A, B); S \ {A, B})
13: for C in FINDPRIMARY(π, S \ {A, B}) do ▷ Primary adjustment sets for π given S
14: GRAPHEXPAND(S ∪ C, By, Bn ∪ {π})
15: end for
16: GRAPHEXPAND(S, By ∪ {π}, Bn)
17: end procedure
18: GRAPHEXPAND(∅, ∅, ∅) ▷ Initial graph has a possible edge X Y
19: return R
20: end procedure
APPENDIX B:PROOFS
B.1.Proof of Theorem 1.
PROOF. Pearl’s back-door criterion (1) can be stated as (i) S ∩ de(X) = ∅ and (ii) P[X ∗ Y |a S] = ∅. Given X Y in G, it follows that (i) ⇐⇒ S ∩ (de(X) ∪ de(Y)) = ∅. Because P[X ∗ Y |a S] ⊆ P[X ∗ Y |a S], we have (ii) =⇒ not X ∗ Y | S (see Definition 3). It remains to show that the reverse is also true. To prove by contradiction, suppose we have
P[X ∗ Y |a S] = ∅, P[X ∗ Y |a S] = ∅,
which then implies P[X ∗ Y |a S] = ∅. By X Y and acyclicity of the graph, any such path must have one or more colliders. Let C be the collider on the path that is closest to Y. Then, the m-connection implies C ∈ ¯an(S) and further Y ∈ an(S), contradicting (i).
B.2.Proof of Lemma 2.
PROOF. ‘⇒’ direction: By definition, P[A B |a C] ⊆ Ws[A B | C] and P[A B |a C] ⊆ Ws[A B | C] because there are no colliders. We are left to show the last implication, i.e. the existence of ancestrally unblocked confounding paths implies the existence of unblocked confounding simple walks.
Let τ ∈ P[A ∗ B |a C] and suppose, without loss of generality, τ contains a sequence of colliders C1, . . . , Ck with C1 closest to A (k ≥ 1). In other words, τ looks like
A C1 · · · Ck B.
We associate with each Ci a vertex Ci. Because τ is m-connected, we have Ci ∈ an(C) for i = 1, . . . , k. If Ci ∈ C, let Ci = Ci; otherwise, choose a vertex Ci ∈ C that is among the closest to Ci by directed edges and expand τ at Ci as:
(6)· · · Ci Ci Ci · · · .
By choosing the segments Ci Ci to be a shortest directed path from Ci to Ci (and Ci Ci to be its reverse), this introduces no new vertices in C other than Ci. Repeating this expansion for every i = 1, . . . , k, we obtain a confounding walk, denoted as π0, that looks like
A C1 · · · Ck B.
This walk is not blocked given C, i.e. π0 ∈ W[A ∗ B | C], because all of its colliders are in C and none of its non-colliders is in C.
However, π0 is not necessarily a simple walk because A or B may appear in an added segment in (6). Suppose A appears in the segment Ci Ci Ci; clearly A = Ci because Ci ∈ C but A ∈ C. Thus, the walk π0 looks like
A C1 · · · Ci A Ci A Ci · · · Ck B.
We may then “restart” the walk by considering the subwalk starting from the last A in the last display. Similarly, if B appears in this segment and π0 looks like
A C1 · · · Ci B Ci B Ci · · · Ck B,
we may consider the sub-walk ending at the first B. By repeating this operation, we arrive at a simple, m-connected walk π with both arrowheads at A and B preserved. In other words, π ∈ Ws[A ∗ B | C].
It is easy to see that, by the same expansion and deduplication operations, we can construct an unblocked simple walk π ∈ Ws[A ∗ B | C] from an ancestrally unblocked path τ ∈ P[A ∗ B |a C].
‘⇐’ direction: Consider π ∈ Ws[A B | C]. Because G is acyclic, π must contain no repeated vertices so π ∈ P[A B |a C] (π contains no collider). Consider π ∈ Ws[A B | C], so π looks like
A U1 B or A U1 U2 B.
If π contains repeated vertices, let D be the repeated vertex closest to A in π. Because G is acyclic, D must appear exactly once in the segment A U1 and exactly once in the segment U1 B or U2 B. In other words, π looks like
A D U1 D B, A D U2 D B,
In either case, we can obtain an unblocked walk τ that looks like A D B by concatenating the first and last segments of the walk. Because D is the closest repeated vertex to A in π, this new walk has no repeated vertices, i.e. τ ∈ P[A B | C].
Now consider π ∈ Ws[A ∗ B | C]. Suppose a vertex D appears more than once in π. Because π is simple, we know D ∈ {A, B}. Motivated by the above argument for confounding arcs, consider the following deduplication operation. For any simple walk λ from A to B with a repeated vertex D, let λ′ be the concatenation of the sub-walk from A to the first occurrence of D and the subwalk from the last occurrence of D to B. To visualize this, λ can always be represented as
A ∗ D ∗ D ∗ B.
The deduplicated walk λ′ then looks like
A ∗ D ∗ B.
Suppose that λ satisfies the following two properties:
(P1) all occurrences of the same vertex are of the same type, i.e., a collider or a non-collider,
Then, we claim that the map λ → λ′ preserves these properties. To show this, consider the following two cases.
(i) D is a collider on λ, so λ looks like
A ∗ D ∗ D ∗ B.
It is obvious that D is also a collider on λ′. Because λ satisfies (P1), we have D ∈ an(C). It is easy to see that λ′ satisfies (P1) and (P2).
(ii) D is not a collider on λ. If D is also a non-collider on λ′, clearly (P1) and (P2) hold for λ′. If D becomes a new collider on λ′, then λ looks like
A ∗ D ∗ D ∗ B.
Observe that on λ there exists one or more colliders between the first and last occurrence of D, and λ contains a directed path from D to a collider. This implies that D ∈ an(C). Thus, (P1) and (P2) continue to hold for λ′.
We now return to the simple, confounding walk π ∈ Ws[A ∗ B | C]. Let π′ denote the image of π under the deduplicating operation above. Because π is not blocked given C, it is obvious that π satisfies (P1) and (P2). Thus, π′ also satisfies (P1) and (P2). By iteratively applying the deduplication, we eventually eliminate all repeated vertices on π and arrive at a path τ from A to B that satisfies (P1) and (P2). It immediately follows from (P2) that τ is not blocked given C. Moreover, both endpoint arrowheads of π are preserved by the deduplication above. Thus, τ ∈ P[A ∗ B |a C].
It is easy to see that we can use the same deduplication process to construct an ancestrally unblocked path τ ∈ P[A ∗ B |a C] from an unblocked simple walk π ∈ Ws[A ∗ B | C]. This completes our proof.
B.3.Proof of Lemma 3.
PROOF. We first consider the preservation from G to G. Let π ∈ Ws[A ∗ B | C in G]. Its marginalization onto V is a walk π′ in G defined as follows. Let D0 = A, D1, . . . , Dk, Dk+1 = B (k ≥ 0) be all vertices on π that are contained in V. By denoting U = V \ V, π looks like
(7)A = D0 via U D1 via U · · · via U Dk via U Dk+1 = B,
where between every (Di, Di+1) there is an unblocked arc because U ∩ C = ∅. The marginalization of each arc Di via U Di+1 on V = V \ U is defined as
Di via U via U via U Di+1 → Di Di+1,
where the corresponding edge on the RHS must exist in G by the definition of marginal graph. Thus, the marginalization of π is a simple walk π′ in G that looks like
(8)A = D0 D1 · · · Dk Dk+1 = B.
Thus, we conclude that π′ ∈ Ws[A ∗ B | C in G]. Further, because the marginalization as defined above preserves endpoint arrowheads, Di is a collider on π′ if and only if Di is a collider on π. Consequently, we also have
π ∈ Ws A ∗ B | C in G =⇒ π′ ∈ Ws A ∗ B | C in G .
Now we prove the reverse direction. Given any π′ ∈ Ws[A ∗ B | C in G], we want to find a simple, m-connected walk π in G. Walk π′ can be written as (8) for some A = D0, D1, . . . , Dk, Dk+1 = B ∈ V. By inverting the marginalization, we obtain a walk π in G that looks like (7). It is easy to see that π is simple because A, B ∈ U and A, B ∈ {D1, . . . , Dk} since the π′ is simple. Further, because each segment between Di and Di+1 is an arc and contains no collider, π and π′ have the same set of colliders. Therefore, we conclude that π ∈ Ws[A ∗ B | C in G]. Further, by the fact that π and π have the same endpoint arrowheads/tails and the same set of colliders, we also have
π′ ∈ Ws A ∗ B | C in G =⇒ π ∈ Ws A ∗ B | C in G .
This completes our proof.
APPENDIX C:GRAPHOID-LIKE PROPERTIES
We consider extending the ternary relations in Definition 3 to disjoint sets A, B, C ⊂ V. For example, we write
A ∗ B | C in G ⇐⇒ a ∗ b | C in G for some a ∈ A, b ∈ B
and
not A ∗ B | C in G ⇐⇒ not a ∗ b | C in G for every a ∈ A, b ∈ B.
In addition, following the convention in the literature, we assume not A ∗ ∅ | C holds for every disjoint A and C. Extension for ‘’ is made similarly. To avoid clutter, we use comma in place of ‘∪’ in these relations, e.g., A ∗ B, C | D stands for A ∗ B ∪ C | D.
DEFINITION 8 (Graphoid). Let J be a collection of tuples ⟨A, B | C⟩ for A, B, C that are disjoint subsets of a ground set V. For disjoint A, B, C, D ⊂ V, consider the following properties:
(i) triviality: ⟨A, ∅ | C⟩ for every disjoint A, C ⊂ V;
(ii) symmetry: ⟨A, B | C⟩ =⇒ ⟨B, A | C⟩;
(iii) decomposition: ⟨A, B ∪ C | D⟩ =⇒ ⟨A, B | D⟩ and ⟨A, C | D⟩;
(iv) weak union: ⟨A, B ∪ C | D⟩ =⇒ ⟨A, B | C ∪ D⟩;
(v) contraction: ⟨A, C | D⟩ and ⟨A, B | C ∪ D⟩ =⇒ ⟨A, B ∪ C | D⟩;
(vi) intersection: ⟨A, B | C ∪ D⟩ and ⟨A, C | B ∪ D⟩ =⇒ ⟨A, B ∪ C | D⟩;
(vii) composition: ⟨A, B | D⟩ and ⟨A, C | D⟩ =⇒ ⟨A, B ∪ C | D⟩.
We say J is a semi-graphoid over V, if it satisfies (i)–(v); further, we say J is a graphoid over V, if it satisfies (i)–(vi), and finally, a compositional graphoid over V, if it satisfies (i)–(vii).
For any ADMG, it is known that m-separation (not · ∗ · | ·) is a compositional graphoid (Sadeghi and Lauritzen, 2014). However, separation relations in terms of ‘’ and ‘ ∗ ’ are weaker than semi-graphoids, as stated in the next result.
THEOREM 5. Relations J := {⟨A, B | C⟩ : not A B | C in G} and J∗ := {⟨A, B | C⟩ : not A ∗ B | C in G} satisfy properties (i)–(iv) and (vii) in Definition 8 for any ADMG G. However, there exist ADMGs in which (v) and (vi) fail for both relations.
PROOF. Properties (i)–(iii) and (vii) directly follow from definition.
We claim that J satisfies (iv) weak union. By (iii), not A B, C | D implies not A B | D, which leads to not A B | C, D by Lemma 1.
We claim that J∗ also satisfies (iv) weak union. We show its contraposition A ∗ B | C, D =⇒ A ∗ B, C | D. From A ∗ B | C, D, we have a b | C, D for some a ∈ A and some b ∈ B in G. Let G := G({a, b} ∪ C ∪ D). By Corollary 2, we have a ∗ b | C, D in G. Let π : a = v0 · · · vk+1 = b with k ≥ 0 be any ∗ path between a and b in G that is m-connected given C, D. If k = 0, we have a b | C, D in G, which by Corollary 2 implies a b | C, D in G. It further follows from Lemma 1 that a b | D in G and hence A ∗ B | D in G. Now we suppose k ≥ 1. By definition of G, we have v1, . . . , vk ∈ C ∪ D. If v1, . . . , vk ∈ D, then we have a ∗ b | D and hence a ∗ b | D in G. By Theorem 2, it follows that a ∗ b | D in G and hence A ∗ B | D in G. Otherwise, let 1 ≤ k′ ≤ k be the first vertex such that vk′ ∈ C. Observing that a · · · vk′ is m-connected given D, we have a ∗ vk′ | D in G and hence a ∗ vk′ | D in G. By Theorem 2, it follows that A ∗ C | D in G.
We show that J∗ does not satisfy (v) contraction or (vi) intersection on some ADMG. Consider the simple example A C B and let D = ∅. Given not A ∗ C | ∅ and not A ∗ B | C, (v) contraction would imply not A ∗ B, C | ∅, which fails here. Also, given not A ∗ B | C and not A ∗ C | B, (vi) intersection would imply not A ∗ B, C | ∅, which again fails. Similarly, because J∗ implies J, (v) contraction or (vi) intersection for J would imply not A B, C | ∅, which fails. Hence, relation J also fails to satisfy (v) and (vi).
APPENDIX D:AN EXAMPLE WITH UNOBSERVED VARIABLES
We illustrate Algorithm 1 with another DAG in Figure 5, where U1 and U2 are unobserved. For this case, {B, D} is the only minimal adjustment set. We use to draw those edges in By that are no longer expanded and use to draw those edges in (¯S × ¯S) \ (By ∪ Bn) that can be further expanded. The min-cut strategy in Section 5.3 is adopted. The graph popped from the queue is drawn with a box with its min-cut index marked in the upper right corner. To improve the efficiency of adjustment, subroutine SELECTEDGE chooses an edge on a min-cut that is closest to Y; the edge π chosen by SELECTEDGE is highlighted with . Suppose subroutine FINDPRIMARY returns all the minimal primary adjustment sets (i.e., with option minimal_only=True), so that the algorithm is guaranteed to find {B, D} by Theorem 4.
Fig 5: Variables U1, U2 are unobserved.
1. We start with
Q = 1 , R = {}.
2. We have FINDPRIMARY((X, Y); ∅, True) = {{B, C}, {B, D}} and hence
Q = 2 ,
3. Due to C U2 Y in Fig. 5, we have
Q = 2 ,
4. Note that FINDPRIMARY((C, X); {B}, True) = {{D}}. This generates two cases: (1) CX is expanded (and removed) by introducing D, and (2) CX is not expanded and turned into CX. With one graph popped and two pushed, we now have
Q = 2 ,
5. Observing that not X D | B, C, we remove DX and get
Q = 1 ,
6. Further, we have not B X | C, D and hence
Q = 0 ,
7. From the boxed graph above, we identify {B, C, D} as a sufficient adjustment set. We move to the next graph with the smallest min-cut in
Q = 2 ,
8. Because FINDPRIMARY((D, Y); {B}, True) = {{C}}, we get two graphs: (1) expanding DY by introducing C and (2) turning DY to DY. The above becomes
Q = 2 ,
9. Due to C U2 Y, we turn CY into CY and note that the selected graph’s min-cut becomes 3. We have
Q = 2 ,
10. Observing that not D X | B, the above becomes
Q = 1 ,
11. Further, due to not B X | D, we have
Q = 0 ,
12. From the graph selected above, the minimal sufficient adjustment set {B, D} is found:
Q = 3 ,
13. Due to not C X | B, D, we have
Q = 2 ,
14. Further, due to not B X | C, D, we have
Q = 1 ,
15. Observing that not D X | B, C, we get
Q = 0 ,
16. Hence, {B, C, D} is identified again as a sufficient adjustment set. This leaves R unchanged:
Q = ∞ ,
17.
Q = ∞ ,
18. Upon Q = [], the algorithm terminates and returns
R = {{B, C, D}, {B, D}},
which contains the only minimal sufficient adjustment set {B, D}.