- Journal List
- Int J Biostat
- PMC3083137

# A Complete Graphical Criterion for the Adjustment Formula in Mediation Analysis

## Abstract

Various assumptions have been used in the literature to identify natural direct and indirect effects in mediation analysis. These effects are of interest because they allow for effect decomposition of a total effect into a direct and indirect effect even in the presence of interactions or non-linear models. In this paper, we consider the relation and interpretation of various identification assumptions in terms of causal diagrams interpreted as a set of non-parametric structural equations. We show that for such causal diagrams, two sets of assumptions for identification that have been described in the literature are in fact equivalent in the sense that if either set of assumptions holds for all models inducing a particular causal diagram, then the other set of assumptions will also hold for all models inducing that diagram. We moreover build on prior work concerning a complete graphical identification criterion for covariate adjustment for total effects to provide a complete graphical criterion for using covariate adjustment to identify natural direct and indirect effects. Finally, we show that this criterion is equivalent to the two sets of independence assumptions used previously for mediation analysis.

**Keywords:**adjustment, causal diagrams, confounding, covariate adjustment, mediation, natural direct and indirect effects

## 1. Introduction

A number recent papers have developed identification and partial identification results for natural direct and indirect effects (Robins and Greenland, 1992; Pearl, 2001; Robins, 2003; Petersen et al., 2006; Kaufman et al., 2009; Sjölander, 2009; Hafeman and VanderWeele, 2010; Imai et al., 2010ab; Robins et al. 2010; Robins and Richardson, 2010). Natural direct and indirect effects are of interest because they provide definitions of direct and indirect effects and allow for effect decomposition even in models with interaction or nonlinearities. The definition of these natural direct and indirect effects employ nested counterfactual quantities that cannot be completely identified even in a doubly randomized experiment (Robins, 2003; Imai et al., 2010b).

The identification of these natural direct and indirect effects thus comes at a price, namely fairly strong assumptions that cannot be empirically confirmed. One strategy for identification is to assume that there are no interactions between the effects of the exposure and the mediatior on the outcome at the individual level (Robins and Greenland, 1992; Robins, 2003; cf. Petersen et al., 2006). Two alternative sets of identification assumptions have been proposed in the literature that allow for non-parametric identification of direct and indirect effects even in the presence of interactions. One set of assumptions, introduced by Pearl (2001), required independence of two counterfactual quantities. An alternative set of identification assumptions described in Imai et al. (2010) used other assumptions which did not require independence between two counterfactual quantities. When either of these sets of assumptions hold conditional on a single set of covariates *C*, natural direct and indirect effects are identified by what is sometimes referred to as the “mediation formula” (Pearl, 2010). These various assumptions raise several questions. First, we may want to know whether the two sets of identification assumptions are equivalent for some class of causal models. Second, we may want to know whether complete graphical criterion can be developed for the use of the “mediation formula” (Pearl, 2010). In this paper we answer both of these questions. Specifically, we show that for causal diagrams defined by non-parametric structural equations, the two sets of assumptions are in fact equivalent in the sense that if either set of assumptions holds for all models inducing a particular causal diagram then the other set of assumptions will also hold for all models inducing that causal diagram. Second, we give a complete graphical criterion for the use of the mediation formula for natural direct and indirect effects.

The remainder of this paper is organized as follows. In section 2 we review material on graph theory and causal diagrams. In section 3 we discuss controlled direct effects and natural direct and indirect effects, and describe two sets of assumptions given in the literature for the identification of natural effects. In section 4, we review a complete graphical identification criterion for covariate adjustment for total effects called the “adjustment criterion” (Shpitser et al., 2010) which is a generalization of Pearl’s (1995) backdoor path criterion. Section 5 gives our two main results concerning the equivalence of the two sets of identification assumptions and concerning a complete graphical criterion for covariate adjustment in the identification of natural direct and indirect effects. Section 6 places the present work in the context of other forms of causal models and offers some concluding remarks. We defer the proofs and detailed technical background to the appendices.

## 2. Preliminaries on Graphs

We first introduce graph-theoretic terminology we need to discuss causal and probabilistic notions. A directed graph consists of a set of nodes and directed arrows connecting pairs of nodes. A path is a sequence of distinct nodes where any two adjacent nodes in the sequence are connected by an edge. A directed path from a node *X* to a node *Y* is a path where all arrows connecting nodes on the path point away from *X* and towards *Y*. If an arrow points from *X* to *Y* then *X* is called a parent of *Y* and *Y* a child of *X*. If *X* has a directed path to *Y* then *X* is an ancestor of *Y* and *Y* a descendant of *X*. By convention, *X* is both an ancestor and a descendant of *X*. A directed acyclic graph (DAG) is a directed graph where for any directed path from *X* to *Y*, *Y* is not a parent of *X*. A consecutive triple of nodes *W*_{i}, *W*_{j}, *W*_{k} on a path is called a collider if *W*_{i} and *W*_{k} are parents of *W*_{j}. Any other consecutive triple is called a non-collider. A path between two nodes *X* and *Y* is said to be blocked by a set *Z* if either for some non-collider on the path, the middle node is in *Z*, or for some collider on the path, no descendant of the middle node is in *Z*. For disjoint sets *X*, *Y*, *Z* we say *X* is d-separated from *Y* given *Z* if every path from a node in *X* to a node in *Y* is blocked by *Z*. If *X* is not d-separated from *Y* given *Z*, we say *X* is d-connected to *Y* given *Z*. See the graph in Fig. 1 for an illustration of these concepts. In this graph *X*_{1} → *X*_{2} → *X*_{3} ← *X*_{4} is a path from *X*_{1} to *X*_{4}; *X*_{1} → *X*_{2} → *X*_{3} is a directed path from *X*_{1} to *X*_{3}; *X*_{1} is a parent of *X*_{2}, and an ancestor of *X*_{3}; *X*_{2} → *X*_{3} ← *X*_{4} is a collider; *X*_{1} is d-separated from *X*_{4} given *X*_{5}; *X*_{1} is d-separated from *X*_{3} given *X*_{2} and *X*_{4}; *X*_{1} is d-connected to *X*_{5} given *X*_{3}.

Directed graphs play an important role in probabilistic reasoning because it is often possible to associate a graph *G* with a set of nodes *V* with a probability distribution *P* (*v*) over variables *V* such that for any disjoint *X*, *Y*, *Z* *V*, if *X* is d-separated from *Y* given *Z* in *G*, then *X* is independent from *Y* given *Z* in *P*(*v*). In this way, a graphical notion of path blocking represents a probabilistic notion of independence. Whenever we can associate *G* and *P*(*v*) in this way, we say that *P*(*v*) satisfies the global Markov property with respect to *G*.

We will represent causation using non-parameteric structural equation models (NPSEMs) (Pearl, 2009). These models consist of a set of observable variables *V*, and a background variable *U*_{i} for each *V*_{i} *V*. Each background variable *U*_{i} is assumed to vary according to some (unknown) probability distribution *P*(*u*_{i}), while each *V*_{i} *V* is given by a non-parameteric structural equation *V*_{i} = *f*_{i} (*pa*_{i}, *u*_{i}), where *f*_{i} is an arbitrary function, *pa*_{i} refers to value assignments to a subset of variables in *V*, and *u*_{i} is a value assignment to *U*_{i}. We assume the background variables *U* vary according to a joint distribution *P*(*u*), such that *P*(*u*) = _{i} *P*(*u*_{i}), in other words all background variables are jointly independent of each other. The assumption that the background variables are independent is essentially that all common causes of any two variables on the graph are also on the graph (Pearl, 2009). The distribution *P*(*u*) along with the set of functions *F* for each *V*_{i} *V* together inducing a probability distribution *P*(*v*) over observable variables *V* in the model.

An intervention setting a variable *X*_{i} to *x*_{i} is represented in NPSEMs by replacing the function *f*_{i} for *X*_{i} by a constant-valued function evaluating to *x*_{i}. The result is a modified NPSEM with a new distribution over observables which we call an interventional distribution, and denote by *P*(*v*|*do*(*x*_{i})).

NPSEMs are a particularly convenient formalism for reasoning about effects of interventions because the observable distribution *P*(*v*) of an NPSEM satisfies the global Markov property with respect to the DAG associated with the NPSEM called a causal diagram. This association between the causal diagram and the model allows probabilistic notions such as independence, and causal notions such as confounding to be expressed in an intuitive visual way with paths for any NPSEM represented by the corresponding graph.

## 3. Total, Direct, and Indirect Effects

If we are interested in the effect of *do*(*a*) on a subset *Y* of variables *V*, called the outcome variables, we are interested in marginal of *P*(*v*|*do*(*a*)), written as *P*(*y*|*do*(*a*)) or *P*(*Y*_{a} = *y*) where *Y*_{a} is the counterfactual value of *Y* that would be observed if *A* were set to *a*. This distribution represents the total effect of *A* on *Y*. The total effect may not always be the causal quantity of interest. Frequently, we may be interested in the effect of *A* on *Y* along a particular causal path. For instance, we may want to quantify the causal influence of *A* on *Y* not mediated by certain other variables in the model, i.e. the effect of *A* on *Y* if some other variables *M* were either held fixed, or were otherwise prevented from transmitting the influence of *A* on *Y*.

There are two formalizations of direct effects. We will need some additional notation. We let *Y*_{a,} _{m} denote the counterfactual value of *Y* that would be observed if *A* were set to *a* and *M* were set to *m*; we let *M*_{a} denote the counterfactual value of *M* that would be observed if *A* were set to *a*. So as to be a candidate for a mediator we restrict *M* to the non-ancestors of *A*. We also assume *A* is a singleton set.

**Definition 1** (Controlled direct effect) Given an outcome *Y*, treatment value of interest *a*, value settings *m* for some other observable variables, and value settings *u* to all background variables, the controlled direct effect of *A* on *Y* not via *M* is given by *Y*_{a,} _{m}(*u*) – *Y*_{a*}_{,} _{m}(*u*).

Note that the value of this effect depends on the settings of both the background variables *U* = *u* and the mediating variables *M* = *m*. One might concieve of *u* as indicating a particular individual. If we wish to summarize controlled direct effect over possible values of *U*, we would use the average controlled direct effect (with respect to a particular setting *m*) *E*[*Y*_{a,} _{m}] – *E*[*Y*_{a*}_{,} _{m}]. The average controlled direct effect is a function of interventional distributions.

One difficulty with the controlled direct effect formulation is that it is not possible to consider indirect effects of *A* on *Y*, say the effect only along paths which include mediating variables *M* unless there are a set of variables that intercepts all direct paths from *A* to *Y* (VanderWeele, 2010b). An alternative which avoids this difficulty is to consider the effect of setting *A* to *a* on *Y* in a hypothetical situation where all the mediating variables *M* behaved as if *a* were set to a reference value *a** instead (Robins and Greenland, 1992; Pearl, 2001). Such hypothetical situations still prevent *M* from transmitting the influence of *A* on *Y*, yet allow a definition of an indirect effect as well, as we now show.

**Definition 2** (Natural direct effect) Given an outcome *Y*, treatment value of interest *a*, a reference value *a**, and value settings *u* to all background variables, the natural direct effect of *A* on *Y* is given by *Y*_{a,} _{Ma* (u) – Ya*,Ma*} (*u*), where *M*_{a*} in the subscript denotes the value of *M*_{a*} (*u*). Note that we replaced *Y*_{a*,Ma*} by
${Y}_{a}^{*}$. These counterfactual quantities are in fact the same. The distribution *P*(*Y*_{a*},_{Ma*}) is a short-hand for writing ∑_{m} *P*(*Y*_{a*}_{,} _{m}, *M*_{a*} = *m*) which is equal to ∑_{m} *P*(*Y*_{a}, *M*_{a*} = *m*) = *P*(*Y*_{a*}) by the generalized consistency axiom, sometimes known as composition (Pearl, 2009). See the appendix for a precise definition of generalized consistency.

As before, if we wish to summarize natural direct effect over possible values of *U* we would obtain the average natural direct effect *E*[*Y*_{a, Ma*}] – *E*[*Y*_{a*}].

The natural indirect effect considers the behavior of the outcome *Y* in the situation where *A* is set to the reference value *a**, yet the mediating variables *M* vary as if *A* were set to *a*.

**Definition 3** (Natural indirect effect) Given an outcome *Y*, treatment value of interest *a*, a reference value *a**, and value settings *u* to all background variables, the natural indirect effect of *A* on *Y* is given by *Y*_{a,Ma} (*u*) − *Y*_{a,Ma*} (*u*).

The average natural indirect effect, as before, is defined to be *E*[*Y*_{a*,Ma}] − *E*[*Y*_{a*}]. For the remainder of this paper, we will consider average natural direct effects, with the understanding that our results generalize in a straightforward way to indirect effects. As a terminological shorthand, we will omit “average,” and simply discuss natural direct effects.

The total effect decomposes into the sum of the natural direct effect and the natural indirect effect, making these effects of particular interest in assessing the proportion of an effect mediated through an intermediate. Examples in which direct and indirect effects are of interest might include assessing the extent to which the effect of pre-eclampsia on cerebral palsy is mediated by preterm birth and whether there is a direct effect (VanderWeele and Hernández-Diaz, 2011) or assessing the extent to which certain genetic variants affect lung cancer through increased smoking or through other pathways (Chanock and Hunter, 2008).

If it is possible to implement interventions on *A* and *M* via a randomized experimental protocol, it is then possible to identify controlled direct effect, since the controlled direct effect is a function of interventional distributions. Unfortunately, in practice it is often not possible to randomize treatments of interest. Furthermore, in the case of natural direct effects, there is, in general, no experimental protocol which would identify the quantity of interest *E*[*Y*_{a,Ma*} ] since this quantity involves *A* being set to one value with respect to one variable, and to another value with respect to another variable. The next natural question is one of identification, in other words, what assumptions does one need to place on observable and counterfactual (e.g. post-intervention) variables in order to express controlled or natural effects in terms of *P*(*v*).

For controlled direct effects, a simple and complete graphical criterion is known in NPSEMs (Shpitser et al, 2006). For natural direct effects, which are a special case of counterfactual probability distributions, complete identification algorithms are also known in NPSEMs (Shpitser et al, 2008). There are three chief obstacles to applying these natural direct effect identification results in practice. First, counterfactual identification algorithms in general rely on untestable counterfactual independence assumptions. Second, they assume complete knowledge of the causal diagram, knowledge that is often unavailable in practice. Third, these algorithms may be difficult for an applied researcher to use in practice.

For the subsequent discussion, we will assume that causal knowledge, while incomplete, can be summarized as follows: there is a single treatment *A*, a single outcome *Y*, and a set of mediating variables *M* which lie along some causal pathways from *A* to *Y*, and a set of confounding factors *C*. Note that since *A* and *Y* are single variables, a singleton set containing *A* is denoted as {*A*}, and (for instance) a set containing *A* and all variables in *C* is denoted as {*A*} *C*. The exact causal relationships among variables in *M* and *C* are not known. In this situation, criteria for the identification of natural direct effects exist (Pearl, 2001; Imai et al. 2010). We will use *A* ᅭ *B*|*C* to denote *A* is independent of *B* conditional on *C*.

**Assumption set 1** (Pearl, 2001).

- P1:
*Y*_{a,m}ᅭ*A*|*C* - P2:
*Y*_{a,m}ᅭ*M*|{*A*}*C* - P3:
*M*_{a}ᅭ*A*|*C* - P4:
*Y*_{a,m}ᅭ*M*_{a*}|*C*

Assumptions P1,P2,P3 and P4 or slight variants of them have been employed by a number of other authors (Petersen et al., 2006; van der Laan and Petersen, 2008; VanderWeele, 2009, 2010; VanderWeele and Vansteelandt, 2009).

These assumptions can all be interpreted as conditional ignorability of some outcome *Y* and some treatment *A* given some covariate set *C*, which is a counterfactual independence statement written as (*Y*_{a} ᅭ *A*|*C*). Conditional ignorability is a well known assumption which justifies adjustment for covariates *C* when identifying the total causal effect of *A* on *Y* from observational data. It can be interpreted as stating that there is no confounding between *A* and *Y* after we adjust for *C*.

Assumptions P1 and P2 can be thought of as two parts of conditional ignorability of *Y*_{a,m} and {*A*} *M* given *C*, in other words (*Y*_{a,m} ᅭ {*A*} *M*|*C*). Assumptions P1 and P2 are logical consequences of this conditional ignorability assumption and moreover P1 and P2 together imply (*Y*_{a,m} ᅭ {*A*} *M*|*C*). The third assumption P3 is just conditional ignorability of *M*_{a} and *A* given *C*. Finally, the last assumption P4 is an independence of two counterfactual quantities. One way to interpret P4 is that it is a kind of conditional ignorability of *Y*_{m} and *M* given *C* that holds in a world where *A* was intervened on. However, the specific values to which *A* was intervened on differ between *Y* and *M* variables. It is this disagreement on values of *A* that makes Pearl’s last assumption problematic. It is untestable. We will show later that this issue is somewhat mitigated because the last assumption is a logical implication of the other three in NPSEMs.

An alternative set of assumptions exists which avoids the difficulty of making an assumption about the independence of counterfactual quantities.

**Assumption set 2** (Imai et al. 2010).

- I1: {
*Y*_{a,m},*M*_{a*}} ᅭ*A*|*C* - I2:
*Y*_{a,m}ᅭ*M*|{*A*}*C*

Assumption I2 is identical to P2, and both can be thought of as logical consequences of conditional ignorability of *Y*_{a,m} and {*A*} *M* given *C*. Assumption I1 combines Pearl’s first and third assumptions into a single joint statement of independence.

Hafeman and VanderWeele (2010) gave assumptions for the identification of natural direct and indirect effects that are implied by but somewhat weaker than assumption set 2; however, the results of Hafeman and VanderWeele (2010) required a binary mediator. See Robins et al. (2010), Imai et al. (2010) and Hafeman and VanderWeele (2010) for graphical and non-graphical examples in which assumption set 2 may hold without assumption set 1 holding.

Either assumption set 1 or assumption set 2 permit us to identify the natural direct effects via the following formula, which we call the adjustment formula for natural direct effects:

The derivation of the adjustment formula from I1 and I2 is straightforward, we reproduce it in the appendix.

In the absence of the confounder set *C* this formula reduces to Pearl’s mediation formula (Pearl, 2009):

Similarly, we can use the same assumptions to given the adjustment formula for natural indirect effects:

In the absence of the confounder set *C* this formula reduces to a version of the mediation formula for indirect effects:

Using covariate adjustment with mediation formula can give rise to a particularly simple approach to the estimation of direct and indirect effects. For example, VanderWeele and Vansteelandt (2009) showed that if assumption set 2 is satisfied and if *Y* and *M* are continuous and the following regression models for *Y* and *M* are correctly specified:

then the average natural direct and indirect effects are given by

These expressions generalize the approach to mediation analysis in the social sciences of Baron and Kenny (1986) so as to allow for interactions between the effects of the exposure and the mediator on the outcome. VanderWeele and Vansteelandt (2009) also gave expressions for the standard errors of these estimators.

## 4. The Adjustment Criterion for Total Effects

A problem related to identifying natural direct effects is estimating total effects, that is the effect of treatment *A* on outcome *Y* along all causal paths. Total effects are generally represented as *E*[*Y*_{a}] – *E*[*Y*_{a*}]. A very common method for estimating causal effects assumes a set of covariates *C* such that adjusting for *C* results in an unbiased estimate of the total effect, in other words:

This is known as the adjustment formula. Pearl gave the well known backdoor criterion which permits identification of total effects by the above formula. The back-door criterion holds for *C* with respect to (*A*, *Y*) if *C* consists of nondescendants of *A* and d-separates all paths from *A* to *Y* which start with an arrow pointing to *A* (i.e. all “back-door” paths).

Unfortunately, the back-door criterion is not complete for adjustment. In other words, there exist causal diagrams where *C* does not satisfy the backdoor criterion with respect to (*A*, *Y*), yet in all models inducing that diagram the adjustment formula above yields an unbiased estimate of the total effect.

Recently, a generalization of the back-door criterion was developed which was termed the adjustment criterion (Shpitser et al., 2010) for which we will give two further definitions.

**Definition 4** (Proper Causal Path) A directed path from a node in *X* *A* to a node in *Y* is called proper causal with respect to *A* if it does not intersect *A* except at *X*.

**Definition 5** (Adjustment Criterion) The adjustment criterion holds for *C* with respect to (*A*, *Y*) if *C* blocks all paths from *A* to *Y* which are not proper causal with respect to *A*, and if *C* is not a descendant of any node on a proper causal path from *A* to *Y* (except possibly nodes in *A* themselves) in the graph where all arcs pointing to *A* are cut.

Consider the graph shown in Fig. 2. In this graph, adjusting for {*C*_{1}, *C*_{2}} yields a valid estimate of the causal effect of *A* on *Y*, though the back-door criterion fails for {*C*_{1}, *C*_{2}} with respect to (*A*, *Y*). Note that the set {*C*_{1}, *C*_{2}} satisfies the adjustment criterion with respect to (*A*, *Y*) in this graph. The following results involving the adjustment criterion are known (Shpitser et al., 2010):

*C*

_{1},

*C*

_{2}} correctly estimates the causal effect of

*A*on

*Y*, yet the back-door criterion fails.

**Theorem A**. In any causal diagram *G*, *C* satisfies the adjustment criterion for (*A*, *Y*) if and only if in every NPSEMinducing *G*, *P*(*Y*_{a}) = ∑_{c} *P*(*Y*|*a*, *c*)*P*(*C* = *c*).

**Theorem B**. In any causal diagram *G*, *C* satisfies the adjustment criterion for (*A*, *Y*) if and only if in every NPSEM inducing *G*, *Y*_{a} ᅭ *A*|*C*.

In other words, the adjustment criterion characterizes both covariate adjustment and conditional ignorability in NPSEM models, which implies covariate adjustment and conditional ignorability are equivalent in NPSEMs. In fact, this equivalence holds in any causal model where conditional ignorability implies covariate adjustment, and which is a supermodel of NPSEMs. This includes almost any causal model in the literature where the generalized consistency assumption holds.

## 5. Adjustment Criterion for Natural Direct and Indirect Effects

Our first result is that the two sets of assumptions used for covariate adjustment for natural direct effects are in fact equivalent in NPSEMs, and are in turn equivalent to a graphical criterion which fully characterizes covariate adjustment in this setting.

**Theorem 1**. On any causal diagram *G*, assumption set 1 holds for all NPSEMs inducing *G* if and only if assumption set 2 holds for all NPSEMs inducing *G* if and only if the adjustment criterion holds for *C* with respect to ({*A*} *M*, *Y*) and for *C* with respect to (*A*, *M*).

A minor corollary of our result is that the set of assumptions used by Pearl is not logically minimal in NPSEMs, in the sense that one of the assumptions used is implied by the other three.

**Corollary 1**. (*Y*_{a,m} ᅭ *A*|*C*), (*Y*_{a,m} ᅭ *M*|{*A*} *C*), and (*M*_{a} ᅭ *A*|*C*) imply (*Y*_{a,m} ᅭ *M*_{a*}|*C*) in NPSEMs.

Completeness of the adjustment criterion allows us to derive a complete graphical condition for the identification of natural direct and indirect effects via the adjustment formula.

**Theorem 2**. The adjustment formula for natural direct and indirect effects holds if and only if *C* satisfies the adjustment criterion relative to ({*A*} *M*, *Y*) and *C* satisfies the adjustment criterion relative to (*A*, *M*).

Note that an immediate consequence of Theorem 2 is that if an investigator believes that adjustment for *C* suffices to identify the joint effects of *A* and *M* on *Y* because of the underlying causal structure relating the variables so that

and that adjustment for *C* suffices to identify the effect of *A* on *M* because of the underlying causal structure relating the variables so that

then the mediation formulas adjusting for *C* suffice to identify natural direct and indirect effects. We note here that these results identify the counterfactual distribution *P*(*Y*_{a,Ma*}), rather than the expectation of *Y* with respect to this distribution. This means that our results apply not only to average natural direct and indirect effects, expressed in terms of expectations, but also to any function of the identified counterfactual distribution.

We now give a few positive and negative examples to illustrate our criterion. In the graph shown in Fig. 3 (a), the set {*C*_{1}, *C*_{2}} satisfies the adjustment criterion (and the back-door criterion) with respect to (*A*, *M*), and with respect to ({*A*, *M*}, *Y*). By Theorem 2, this implies that *P*(*Y*_{a,Ma*} = *y*) is identifiable in this graph, and equal to

*C*

_{1},

*C*

_{2}}, with respect to (

*A*,

*Y*), but do not hold for the adjustment set {

*C*

_{1}}. (b) Conditions of Theorem 2 hold for the adjustment set {

*C*

_{1},

*C*

_{2},

*C*

_{3},

*C*

_{4},

*C*

_{5}} with respect to (

*A*,

*Y*), but do not hold

**...**

At the same time, while the set {*C*_{1}} satisfies the adjustment criterion (and the back-door criterion) with respect to (*A*, *M*), it does not satisfy either the adjustment or the back-door criterion with respect to ({*A*, *M*}, *Y*). By Theorem 2, this implies *P*(*Y*_{a,Ma*} = *y*) is not identifiable by the formula

Similarly, the set {*C*_{1}, *C*_{2}, *C*_{3}, *C*_{4}, *C*_{5}} satisfies the adjustment criterion (but not the back-door criterion) with respect to (*A*, *M*), and with respect to ({*A*, *M*}, *Y*). This implies by Theorem 2 that *P*(*Y*_{a,Ma*} = *y*) is identified by the formula

On the other hand, the set {*C*_{1}, *C*_{2}, *C*_{3}} fails to satisfy either the adjustment criterion or the back-door criterion with respect to both (*A*, *M*) and ({*A*, *M*}, *Y*). Thus, the effect *P*(*Y*_{a,Ma*} = *y*) is not identified by the formula

## 6. Discussion

In this paper we have shown that two sets of identification assumptions for natural direct and indirect effects (Pearl, 2001; Imai et al., 2010) are in fact equivalent for NPSEMs and that, for NPSEMs, they are moreover equivalent to a simple graphical criterion that we have called “the adjustment criterion for the mediation formula.” We have moreover shown that in the context of NPSEMs this graphical criterion is in fact complete for the use of the mediation formula; that is, if the graphical criterion is not satisfied for a particular causal directed acyclic graph then there is some model consistent with the diagram for which the mediation formula does not equal the natural direct and indirect effects.

We have derived our results within the context of causal diagrams that correspond to NPSEMs. We close by making a few remarks concerning our results when one steps out of the NPSEM framework. First, outside this context, the various identification assumptions need not be equivalent. Indeed, Imai, Kelle and Yamamoto point out that while assumptions I1, and I2 imply assumptions P1,P2,P3, and P4, the converse is not necessarily true. There are a number of examples in the literature showing this (Imai et al., 2010; Hafeman and VanderWeele, 2010; Robins et al., 2010). Nevertheless, we believe that NPSEMs constitute a very broad and general class of data generating mechanisms and that most of the examples in which one set of assumptions holds and the other fails are typically quite contrived. A second point is that even outside of the NPSEM framework, the completeness of our criterion will still be applicable to any alternative graphical model (Robins and Richardson, 2010) that is a supermodel of NPSEMs such as the “minimal counterfactual models” considered by Robins and Richardson (2010). Finally, we note that although our adjustment criterion is sound and complete for the use of the mediation formula on NPSEMs, it does not entail a complete identification criterion on NPSEMs more generally for natural direct and indirect effects. It is complete only for the use of covariate adjustment in the identification of natural direct and indirect effects. Although there are examples in which the adjustment criterion fails but natural direct and indirect effects are still identified, they are not identified by covariate adjustment and the use of the mediation formula. We believe that in practice there will be few, if any, settings in which a researcher will have sufficient structural knowledge to determine that the adjustment criterion for the mediation formula fails and also has sufficient structural knowledge to determine that natural direct and indirect effects are otherwise identified.

## Appendix A. (Technical Preliminaries)

We give background material and definitions needed for a formal proof of our results.

For a given NPSEM, its causal disagram is a directed acyclic graph with a vertex for every variable in *V*, and a directed arrow from *V*_{i} to *V*_{j} if *V*_{i} *Pa*_{j}. It is known that for any NPSEM with distribution *P*(*v*) over observables and a causal diagram *G*, *P*(*v*) satisfies the global Markov property with respect to *G* (Verma and Pearl, 1988; Geiger et al., 1990; Lauritzen et al., 1990; Pearl, 2009). Effects of an intervention *do*(
${v}_{i}^{*}$) in an NPSEM with a causal diagram *G* can be represented graphically by removing all incoming arrows to *V*_{i}, to obtain a mutilated graph
${G}_{\overline{{v}_{i}}}$. For any value assignment *x* to a set of variables *X* *V*, it is known that *P*(*v*|*do*(*x*)) satisfies the global Markov property with respect to *G*_{}.

Assuming an NPSEM with a causal diagram that is a DAG amounts to assuming whenever two variables are on the graph, all their common causes are also on the graph. For this to be satisfied the causal diagram may include nodes which are unmeasured common causes. To facilitate arguments in the appendix, we assume there is an underlying causal diagram that is a DAG, that corresponds to some distribution *P*, but we only observe a marginal of this distribution over *V*, the observable variables. Such marginals may not satisfy the global Markov property with respect to any DAG. However, they may satisfy the global Markov property with respect to a mixed graph. To make our proofs as general as possible, we consider mixed graphs containing two kinds of edges, directed and bidirected. For a given DAG *G* containing nodes *V* partitioned into sets *O* of observed nodes and *L* of latent nodes, we construct the latent projection *G*(*O*) of *G* as follows. *G*(*O*) contains a vertex for every nodes in *O*. Furthermore, if there is a d-connected path from *X* to *Y* (given the empty set) in *G* where all intermediate nodes are in *L*, with the first arrow pointing away from *X* and the last arrow pointing towards *Y*, we add a directed arrow from *X* to *Y* in *G*(*O*). If the first arrow points towards *X* and the last arrow points towards *Y*, we add a bidirected arrow from *X* to *Y* in *G*(*O*). The notion of d-separation generalizes in a natural way to latent projections as m-separation (Richardson et al, 2002). A distribution *P* satisfies the global Markov property with respect to a mixed graph *G* if for any disjoint sets *X*, *Y*, *Z* if *X* is m-separated from *Y* given *Z* in *G*, then *X* is independent of *Y* given *Z*. For an NPSEM with a graph *G* if only a subset *O* *V* is observed, then *P*(*O*) satisfies the global Markov property with respect to a latent projection *G*(*O*). Representing an intervention *do*(*x*) by cutting incoming arrows to *X* generalizes in a straightforward way to latent projections, where incoming bidirected arcs to *X* are cut as well. In subsequent proofs we will assume NPSEMs with a subset *O* of observable nodes, represented by a latent projection *G*(*O*).

To derive Theorems 1 and 2, we also need to consider properties of counterfactual independence. A widely known set of properties of conditional independence are the so called graphoid axioms (Dawid 1979; Pearl 1988).

- (
*X*ᅭ*Y*|*Z*) (*Y*ᅭ*X*|*Z*) - (
*X*ᅭ*Y**W*|*Z*) (*X*ᅭ*Y*|*Z*) - (
*X*ᅭ*Y**W*|*Z*) (*X*ᅭ*Y*|*W**Z*) - (
*X*ᅭ*Y*|*Z*) ∧ (*X*ᅭ*W*|*Y**Z*) (*X*ᅭ*Y**W*|*Z*)

These axioms hold in arbitrary probability distributions, and in particular in counterfactual distributions.

The next axiom we will need is the axiom of generalized consistency, sometimes referred to as composition (Pearl, 2010). In NPSEMs, this axiom states that if we observe *W*_{x}(*u*) = *w*, then for any *Y*, *Y*_{x}(*u*) = *Y*_{x,w}(*u*).

Finally, we will need to use the axiom of compositionality, which states that if (*X* ᅭ *Y*|*Z*) and (*W* ᅭ *Y*|*Z*), then (*X**W* ᅭ *Y*|*Z*). Compositionality does not hold in arbitrary probability distributions. Nevertheless, compositionality does hold in distributions which satisfy a path-wise global Markov property (such as d-separation) with respect to some graph for those independences which are implied by that Markov property. This is because such Markov properties are based on paths, and statements about paths between sets decompose into statements about paths between elements of these sets. For our purposes we are interested in applying compositionality to independence statements in counterfactual distributions, and in NPSEMs there exists a graph which displays counterfactual independences via d-separation. This graph is known as a counterfactual graph (Shpitser et al, 2007).

For a given counterfactual distribution
$P(\gamma )=P({Y}_{{a}^{1}}^{1},\hspace{0.17em}\dots ,\hspace{0.17em}{Y}_{{a}^{k}}^{k})$ derived from an NPSEM inducing a causal diagram *G*, the counterfactual graph *G*_{γ} is obtained by considering a mutilated graph
${G}_{\overline{{a}^{i}}}$ for each
${Y}_{{a}^{i}}^{i}$ in *γ*, and having these graphs share the background variables, representing the generalized consistency axiom. For a detailed construction, see (Shpitser et al, 2008). The distribution
$P(\mathit{\text{An}}{({Y}_{{a}^{1}}^{1})}_{{G}_{\gamma}},\hspace{0.17em}\dots ,\mathit{\text{An}}{({Y}_{{a}^{k}}^{k})}_{{G}_{\gamma}})$ satisfies the global Markov property with respect to *G*_{γ}, and thus any conditional independences due to d-separation in *G*_{γ} will satisfy the compositionality axiom.

## Appendix B. (Proofs)

We first show that assumptions I1 and I2 imply the adjustment formula for natural direct effects.

The first equality is by definition, and the second is by case analysis. The third is implied by the generalized consistency axiom, the fourth is implied by I1, the fifth is implied by I2, the sixth is implied by I1 and the graphoid axioms, the seventh by I2, and finally, the eighth by the generalized consistency axiom.

**Theorem 1**. On any causal diagram *G*, Assumption 1 holds for all NPSEMs inducing *G* if and only if Assumption 2 holds for all NPSEMs inducing *G* if and only if the adjustment criterion holds for *C* with respect to (*A* *M*, *Y*) and for *C* with respect to (*A*, *M*).

**Proof.** We first show Assumption 1 implies Assumption 2. Note that (*Y*_{a,}_{m} ᅭ *M*|{*A*} *C*) is both I2 and P2. Assumptions P1 and P3 imply I1 by compositionality. Thus P1, P2, P3 imply I1, I2. We now show the converse: again I2 and P2 are equivalent; also I1 implies P1 and P3. It remains to show I1 and I2 imply P4. In fact, I2 implies (*Y*_{a,}_{m} ᅭ *M*_{a*} |*A* = *a**, *C*) by the generalized consistency axiom. But together with I1 and the graphoid axioms, this implies (*Y*_{a,}_{m} ᅭ {*M*_{a*}, *A* = *a**}|*C*). But this implies (*Y*_{a,}_{m} ᅭ *M*_{a ᅭ*} |*C*) which is P4.

Note from this argument it thus follow that P1, P2, P3 imply P4 for NPSEMs. Thus P1, P2, P3 and I1,I2 are equivalent.

By results in Shpitser et al. (2010), the adjustment criterion holds for *Z* with respect to (*X*, *Y*) in a NPSEM if and only if (*Y*_{x} ᅭ *X*|*Z*) holds. This means we must show the equivalence of the two assumptions and the following two independences: (*Y*_{a,}_{m} ᅭ *A*, *M*|*C*) and (*M*_{a} ᅭ *A*|*C*). Note that (*M*_{a} ᅭ *A*|*C*) is P3, while P1 and P2 are equivalent to (*Y*_{a,}_{m} ᅭ *A*, *M*|*C*) by the graphoid axioms. We saw above that P1, P2, P3 and I1, I2 and P1, P2, P3, P4 are all equivalent for NPSEMs and this completes the proof.

**Corollary 1** (*Y*_{a,m} ᅭ *A*|*C*), (*Y*_{a,m} ᅭ *M*|*A*, *C*), and (*M*_{a} ᅭ *A*|*C*) imply (*Y*_{a,m} ᅭ *M*_{a*} |*C*) in NPSEMs.

**Proof.** This is immediate from the previous argument.

To prove completeness for Theorem 2, we will need some utility lemmas.

**Lemma A**. Let *M* be partitioned into *M*^{1} and *M*^{2} where *M*^{1} is a subset of non-descendants of *A*. Then
$P({Y}_{a,{M}_{a*}})=P({Y}_{a,{M}_{a*}^{2}})$.

**Proof.** We have
$P({Y}_{a,{M}_{a*}})={\sum}_{m}P({Y}_{a,m},\hspace{0.17em}{M}_{a*}=m)={\sum}_{m}P({Y}_{a,m},\hspace{0.17em}{M}_{a*}^{2}={m}^{2},\hspace{0.17em}{M}_{a}^{1}=m)={\sum}_{m}P({Y}_{a,{m}^{2}},\hspace{0.17em}{M}_{a*}^{2}={m}^{2},\hspace{0.17em}{M}_{a}^{1}=m)={\sum}_{{m}^{2}}P({Y}_{a,{m}^{2}},\hspace{0.17em}{M}_{a*}^{2}={m}^{2})=P({Y}_{a,{M}_{a*}^{2}})$. Here the first identity is by rules of probability, the second is by assumption on *M*^{1}, and the third is by generalized consistency. The last identity is by definition.

**Lemma B**. Let *M* be partitioned into *M*^{1} and *M*^{2} where *M*^{1} is a subset of non-ancestors of *Y*. Then
$P({Y}_{a,{M}_{a*}})=P({Y}_{a,{M}_{a*}^{2}})$.

**Proof.** We have
$P({Y}_{a,{M}_{a*}})={\sum}_{m}P({Y}_{a,m},\hspace{0.17em}{M}_{a*}=m)={\sum}_{m}P({Y}_{a,{m}^{1},{m}^{2}},\hspace{0.17em}{M}_{a*}^{2}={m}^{2},\hspace{0.17em}{M}_{a}^{1}=m)={\sum}_{m}P({Y}_{a,{m}^{2}},\hspace{0.17em}{M}_{a*}^{2}={m}^{2},\hspace{0.17em}{M}_{a}^{1}=m)={\sum}_{m}P({Y}_{a,{m}^{2}},\hspace{0.17em}{M}_{a*}^{2}={m}^{2})=P({Y}_{a,{M}_{a*}^{2}})$. Here the first two identities are by rules of probability, the third is by assumption on *M*^{1}, and the last by definition.

**Lemma C** Assume *A*, *Y*, *M* are such that *P*(*Y*_{a,m}) = *P*(*Y*_{m}) in every model inducing *G*. Then *P*(*Y*_{a,Ma*}) = *P*(*Y*).

**Proof.** We have *P*(*Y*_{a,Ma*}) = ∑_{m} *P*(*Y*_{a,m}, *M*_{a*} = *m*) = ∑_{m} *P*(*Y*_{m}, *M*_{a*} = *m*) = ∑_{m} *P*(*Y*, *M*_{a*} = *m*) = *P*(*Y*).

The first identity is by definition, the second by assumption, the third by generalized consistency, and the last by rules of probability.

Lemmas A and B together imply that we may restrict ourselves to a mediator set *M* which lies in *An*(*Y*) ∩ *De*(*A*) without loss of generality. Lemma C implies that we can restrict ourselves to the (non-trivial) case of mediators which leave some causal paths from *A* to *Y* open. In all subsequent results, we will assume *M* which lies in *An*(*Y*) ∩ *De*(*A*) and leaves some causal paths from *A* to *Y* open. We call such sets *M* standard mediating sets for (*A*, *Y*).

**Lemma 1**. Let *M* be a standard mediating set with respect to (*A*, *Y*). Then if the adjustment criterion holds for *C* with respect to (*A*, *Y*), then the adjustment criterion holds for *C* with respect to (*A*, *M*).

**Proof.** If there exists *W* on a proper causal path from *A* to *M* such that *C* ∩ *De*(*W*) ≠ ︀, then *W* must also lie on a proper causal path from *A* to *Y*. If *C* opens a non-causal path *π* from *A* to *M*, then adjoining a directed path from *M* to *Y* to *π* results in a non-causal path *π** from *A* to *Y*. Note that *M* must have a directed path to *Y* by assumption, and *C* cannot intersect this directed path since that would violate the adjustment criterion for *C* with respect to (*A*, *Y*). This implies *C* opens *π**, which leads to a contradiction.

**Lemma 2**. Let *M* be a standard mediating set with respect to (*A*, *Y*). If the adjustment criterion holds for *C* with respect to (*A*, *Y*), then *C* blocks all non-causal paths from *A* to *Y*, and *C* does not contain descendants of nodes *W* *A* *M* which lie on a proper causal path from *A* *M* to *Y*.

**Proof.** The first claim follows by definition of the adjustment criterion. If the second claim is false, then *C* cannot satisfy the adjustment criterion with respect to (*A*, *Y*), since *M* must lie in *De*(*A*) ∩ *An*(*Y*).

**Lemma 3**. Let *M* be a standard mediating set with respect to (*A*, *Y*). Assume the adjustment criterion does not hold for *C* with respect to (*A*, *Y*). Then either the adjustment criterion does not hold for *C* with respect to (*A*, *M*) or the adjustment criterion does not hold for *C* with respect to ({*A*} *M*, *Y*).

**Proof.** If *C* opens a non-causal path from *A* to *Y*, then the adjustment criterion does not hold for *C* with respect to ({*A*} *M*, *Y*). If *C* is a descendant of a node *W* ≠ *A* on a proper causal path *π* from *A* to *Y*, then either *π* intersects *M* or not. If it does not, then the adjustment criterion does not hold for *C* with respect to ({*A*} *M*, *Y*). If it does, then there is either a node *M′* in *M* between *A* and *W* on *π* or not. If so, then *C* is a descendant of *M′* and thus *C* violates the adjustment criterion for (*A*, *M*). If not, then *W* is on a path from *A* to *M* which again violates the adjustment criterion for *C* with respect to (*A*, *M*).

**Lemma 4**. Fix a causal diagram *G*. Let *γ*[*x*_{1}, ..., *x*_{k}] be a counterfactual probability which is a function of *x*_{1}, ..., *x*_{k} which are subscripted values of variables *X*_{1}, ..., *X*_{k} in a class of NPSEMs inducing *G*. Let *x*′_{1}, ..., *x*′_{k} be value assignments to *X*_{1}, ..., *X*_{k} different from *x*_{1}, ..., *x*_{k}. Assume *γ*[*x*_{1}, ..., *x*_{k}] is not identifiable (in a class of NPSEMs inducing *G*) by a functional [*x*_{1}, ..., *x*_{k}] (derived from the appropriate joint distribution *P* of the models in the NPSEM class). In other words, there exists an NPSEM inducing *G* where *γ*[*x*_{1}, ..., *x*_{k}] ≠ [*x*_{1}, ..., *x*_{k}].

Then *γ*[*x*′_{1}, ..., *x*′_{k}] is not identifiable by [*x*′_{1}, ..., *x*′_{k}] in the same class of NPSEMs.

**Proof.** If *γ*[*x*′_{1}, ..., *x*′_{k}] is identifiable by [*x*′_{1}, ..., *x*′_{k}], then variable replacement yields a contradiction.

**Lemma 5**. Let *M* be an NPSEM inducing a graph *G* where some nodes are deterministic functions of their parents. If there are probability distributions *P*_{M}, *Q*_{M} over observable counterfactual variables in *M* such that *P*_{M} ≠ *Q*_{M}, then there exists an NPSEM *M** inducing *G* where no observable node is a deterministic function of its parents, such that *P*_{M*} ≠ *Q*_{M*}.

**Proof.** Let *D* be the set of deterministic nodes in *M*. Fix an arbitrarily small > 0. To construct *M**, we copy all functions in *M*, except for every node *X*_{i} *D*, we associate a new binary unobserved parent *U*_{i} independent of other unobserved variables with the function
${F}_{i}^{M*}$ determining
${X}_{i}^{M*}$ behaving as *F*_{i} in *M* with respect to arguments other than
${U}_{i}^{M*}$ if
${U}_{i}^{M*}=1$, and as some function other than *F*_{i} with respect to arguments other than
${U}_{i}^{M}$ if
${U}_{i}^{M*}=0$. For each
${U}_{i}^{M*}$, we let
$P({U}_{i}^{M*}=1)$ be large enough so the probability of *M** behaving as *M* is greater than 1 − .

Thus, since models *M* and *M** have identical behavior with probability greater than 1 − , for all values *v* of the distributions *P*_{M}, *P*_{M*}, |*P*_{M}(*v*) − *P*_{M*}(*v*)| ≤ . Similarly, for *Q*_{M*} and *Q*_{M}. It suffices to set epsilon to be less than |*P*_{M}(*v*) − *Q*_{M}(*v*)|/2 for some set of values *v* of *P*_{M} to get our conclusion.

We are now ready to prove Theorem 2.

**Theorem 2**. Let *M* be a standard mediating set with respect to (*A*, *Y*). The adjustment formula for natural direct and indirect effects holds if and only if *C* satisfies the adjustment criterion relative to ({*A*, *M*}, *Y*) and *C* satisfies the adjustment criterion relative to (*A*, *M*).

**Proof.** We first prove soundness. If *C* satisfies the adjustment criterion relative to to ({*A*, *M*}, *Y*) and *C* satisfies the adjustment criterion relative to (*A*, *M*), then the adjustment formula natural effects holds by Theorem 1 and results of Imai and Pearl.

We now prove completeness. Assume *C* does not satisfy the adjustment criterion for (*A*, *Y*). Then by Lemma 3, either *C* does not satisfy the adjustment criterion for ({*A*} *M*, *Y*), or *C* does not satisfy the adjustment criterion for (*A*, *M*).

Let *γ*[*a*, *a**] = *P*(*Y*_{a,Ma*} = *y*) = ∑_{m} *P*(*Y*_{a,m} = *y*, *M*_{a*} = *m*), and [*a*, *a**] = ∑_{m,c} *P*(*Y* = *y*|*c*, *m*, *a*)*P*(*m*|*c*, *a**)*P*(*c*). Now by Theorem A, *γ*[*a*, *a*] is not identifiable by [*a*, *a*], which implies our conclusion by Lemma 4.

Assume *C* satisfies the adjustment criterion for (*A*, *Y*). By Lemmas 1 and 2, the only way *C* can fail to satisfy the adjustment criterion for either (*A* *M*, *Y*) or (*A*, *M*) is if *C* opens a non-causal path *π* from *M′* *M* to *Y*. Furthermore, *π* must be back-door for *M* and the arrow in *π* adjancent to *Y* must point to *Y*. If the former condition is not true, then a directed path from *A* to *M′* joined with *π* would result in a non-causal path from *A* to *Y* open by *C*. If the latter condition is not true, then there is an element in *C* which is a descendant of *Y*, which would mean the adjustment criterion does not hold for *C* with respect to (*A*, *Y*).

To prove our result, it suffices to give a counterexample model for this case such that the natural effect is not equal to the adjustment formula. We are free to choose among models not faithful to *G*, in other words models which contain independence restrictions not encoded by *G* via a path-separation criterion. Without loss of generality, we restrict ourselves to DAGs. In cases where the model is a latent projection of a DAG, we can always recover a DAG by replacing each bidirected arc connecting a node pair with a new node parent of that node pair.

Fix a single *M′* *M* with a path *π*_{1} from *M′* to *Y*, with the arrow in *π*_{1} adjacent to *M′* pointing to *M′*, and the arrow in *π*_{1} adjacent to *Y* pointing to *Y*. Path *π*_{1} is d-connected given some minimal subset *C′* of *C*. By assumption, there is a directed path *π*_{2} from *A* to *M′*. Since *M* is a standard mediating set for (*A*, *Y*) by assumption, we may assume there is a directed path *π*_{3} from *A* to *Y*.

See Fig. 4 for a schematic representation of this case. Note that our proof will work for an arbitrary graph embedding a subgraph with *A*, *M′*, *C′*, *Y* corresponding to this schematic representation (e.g. *A* has a directed path to *Y* and to *M′*, and there is a path from *M′* to *Y* open by *C* with arrows adjacent to *M′* and *Y* pointing to *M′* and *Y*). This is because we can always consider a non-faithful model where all nodes not equal to *A*, *M′*, *Y* and not on the paths *π*_{1}, *π*_{2}, *π*_{3} are jointly independent of all other nodes in the model (for instance, each node could correspond to a Bernoulli random trial).

By properties of d-separation it follows that the path *π*_{1} decomposes into a set of segments *τ*_{1}, ..., *τ*_{n} where each segment *τ*_{i} is a directed path, the first such segment points to *M′*, the last such segment points to *Y*, and if there are two intermediate segments, they point to a node ancestral of an element in *C* (since *π*_{1} is d-connected given *C′*). Note that for odd *i*, *τ*_{i} and *τ*_{i+1} share the topmost node, we will denote it as *E*_{(i+1)/2}. Note that by definition of *π*_{1}, the topmost node, we will denote it as *E*_{(i+1)/2}. Note that by definition of *π*_{1}, *n* ≥ 2 and is even, and so there are *n*/2 such topmost nodes.

We now give a partially deterministic parameterization of the family of models shown in Fig. 4. We will show this parameterization gives a counterexample showing our claim. A fully stochastic parameterization will then follow by Lemma 5.

All variables will be binary. Variables *A*, *E*_{1}, ..., *E*_{n/2−1} are Bernoulli with *p* = 0.5. *E*_{n/2} is Bernoulli with *p* = . All other variables *X*_{i} are set to (∑ *Pa*(*X*)) (mod 2), in other words their values are equal to the sum of values of their parents modulo 2. We now give a series of lemmas about this parameterization culminating in showing *P*(*Y*_{a,Ma*} = *y*) ≠ ∑_{c,m} *P*(*Y* = *y*|*m*, *c*, *a*)*P*(*m*|*c*, *a**)*P*(*c*).

**Lemma 6**. In our model family, *C* ᅭ *A*, and *P*(*Y*_{a,Ma*} = *y*) = *P*(*Y*_{a} = *y*) = *P*(*y*|*a*).

**Proof.** The first claim is a consequence of d-separation in our family of graphs. To see that the second identity is true, note that *P*(*Y*_{a,Ma*} = *y*) = ∑_{m} *P*(*Y*_{a,m} = *y*, *M*_{a*} = *m*) = ∑_{m} *P*(*Y*_{a} = *y*, *M*_{a*} = *m*) = *P*(*Y*_{a} = *y*) follows because *M* has no directed paths to *Y. P*(*Y*_{a} = *y*) = *P*(*y*|*a*) follows because *A* and *Y* are not confounding in our family of graphs.

**Lemma 7**. Assume that *C′* = {*C*_{1}, ..., *C*_{k}} (a possibly empty set) in our model family. Then the following identities hold:

- $P(a,\hspace{0.17em}{c}^{\prime},\hspace{0.17em}{m}^{\prime})=\frac{1}{{2}^{k+1}}(1-\epsilon )\hspace{0.17em}\text{if}\hspace{0.17em}({m}^{\prime}+{\sum}_{{c}_{i}\in {c}^{\prime}}{c}_{i})\hspace{0.17em}\hspace{0.17em}\hspace{0.17em}\hspace{0.17em}\hspace{0.17em}(\text{mod}\hspace{0.17em}2)=a$
- $P(a,\hspace{0.17em}{c}^{\prime},\hspace{0.17em}{m}^{\prime})=\frac{1}{{2}^{k+1}}\epsilon \hspace{0.17em}\text{if}\hspace{0.17em}({m}^{\prime}+{\sum}_{{c}_{i}\in {c}^{\prime}}{c}_{i})\hspace{0.17em}\hspace{0.17em}\hspace{0.17em}\hspace{0.17em}\hspace{0.17em}(\text{mod}\hspace{0.17em}2)\ne a$
*P*(*Y*= 0|*c′*,*m′*,*A*= 0) = 1 if (*m′*+*y*+ ∑_{cic′}*c*_{i}) (mod 2) =*a**P*(*Y*= 0|*c′*,*m′*,*A*= 0) = 0 if (*m′*+*y*+ ∑_{cic′}*c*_{i}) (mod 2) ≠*a*

**Proof.**

First, we note that *n/*2 ≥ *k* + 1. This is because every path segment *τ*_{i} must have a unique descendant in *C′* {*M′*}, and every element in *C′* is a descendant of at least two path segments *τ*_{i}, *τ*_{i+1} in *π*_{1}.

Next, we note that (*m′* + ∑_{cic} *c*_{i}) (mod 2) = (*a* + *e*_{k}) (mod 2). This is because {*M′*} *C′* can be viewed of taking the sum (mod 2) of *A*, *E*_{1}, ..., *E*_{n/2}, except the values of *E*_{1}, ..., *E*_{n/2−1} are counted twice.

Note that *P*(*a*, *c′*, *m′*) = ∑_{en/2} *P*(*c′*, *m′*|*e*_{n/2}, *a*)*P*(*a*)*P*(*e*_{n/2}). If *A* = 0 and *E*_{n/2} = 0, *P*(*c′*, *m′*|*e*_{n/2}, *a*) *>* 0 only if (*m* + ∑_{cic′} *c*_{i}) = 0. Since *n/*2 ≥ *k* + 1, and since *E*_{1}, ..., *E*_{n/2−1} are Bernoulli with *p* = 0.5, *P*(*c′*, *m′*|*e*_{n/2}, *a*) is uniform with respect to *c′*, *m′* for values of *c′*, *m′* which have positive probability, in other words: *P*(*c′*, *m′*|*e*_{n/2}, *a*) = 1/2* ^{k}* if above constraint on

*c′*,

*m′*holds.

*P*(

*a*) = 0.5 and

*P*(

*E*

_{n/2}= 0) = 1 − , which implies (1) and (2).

Similarly, (*y* + *m′* + ∑_{cic′} *c*_{i}) = 0 (mod 2) in our model. This is because {*Y*, *M′*} *C′* can be viewed as taking the sum (mod 2) of *A*, *E*_{1}, ..., *E*_{n/2}, and every value is counted twice. This implies that *P*(*y* = 0|*m′*, *c′*) = 1 if and only if (*m′* + ∑_{cic′} *c*_{i}) = 0. This implies (3). and (4).

**Lemma 8**. In our model family, *P*(*Y* = 0|*A* = 0) = 1 − , while ∑_{c,m′} *P*(*y* = 0|*c*, *m′*, *a* = 0)*P*(*m′*|*c*, *a* = 1)*P*(*c*) = .

**Proof.** *Y* is a function of *A* and *E*_{n/2} in our model family. If *A* is known to equal 0, *Y* will equal *A* if and only if *E*_{n/2} assumes value 0 which happens with probability 1 − .

Next, note that *P*(*Y* = 0|*c′*, *m′*, *A* = 0) is only defined if (*m′* + ∑_{cic′} *c*_{i}) (mod 2) = 0, and is then equal to 1 by Lemma 7. Finally, also by Lemma 7,
$P({c}^{\prime},\hspace{0.17em}{m}^{\prime}|A=1)=\frac{1}{{2}^{k}}\epsilon $ if (*m′* + ∑_{cic′} *c*_{i}) (mod 2) = 0.

Since there are *k* elements in *C′*, there are 2^{k}^{+1} terms in the sum ∑_{c′,m′} *P*(*Y* = 0|*c′*, *m′*, *A* = 0)*P*(*c′*, *m′*|*A* = 1). In our model, only 2* ^{k}* terms do not go to 0. This implies the sum evaluates to , which is our conclusion.

## Footnotes

**Author Notes:** Tyler J. VanderWeele was supported by NIH Grant HD060696.

## Contributor Information

Ilya Shpitser, Harvard University.

Tyler J VanderWeele, Harvard University.

## References

- Avin C, Shpitser I, Pearl J. Identifiability of path-specific effects. Proceedings of the International Joint Conferences on Artificial Intelligence. 2005:357–363.
- Baron RM, Kenny DA. The moderator-mediator variable distinction in social psychological research: conceptual, strategic, and statistical considerations. Journal of Personality and Social Psychology. 1986;51:1173–1182. doi: 10.1037/0022-3514.51.6.1173. [PubMed] [Cross Ref]
- Chanock SJ, Hunter DJ. When the smoke clears. Nature. 2008;452(3):537–538. doi: 10.1038/452537a. [PubMed] [Cross Ref]
- Dawid AP. Conditional independence in statistical theory. Journal of the Royal Statistical Society, B. 1979;41:1–31.
- Hafeman DM, VanderWeele TJ. Alternative assumptions for the identification of direct and indirect effects. Epidemiology. in press. [PubMed]
- Imai K, Keele L, Yamamoto T. Identification, inference, and sensitivity analysis for causal mediation effects. Statistical Science. 2010. in press. Web address: http://imai.princeton.edu/research/files/mediation.pdf. [Cross Ref]
- Kaufman S, Kaufman JS, MacLehose RF. Analytic bounds on causal risk differences in directed acyclic graphs involving three observed binary variables. Journal of Statistical Planning and Inference. 2009 doi: 10.1016/j.jspi.2009.03.024. in press. [PMC free article] [PubMed] [Cross Ref]
- Pearl J. Casual diagrams for empirical research (with discussion) Biometrika. 1995;82:669–710. doi: 10.1093/biomet/82.4.669. [Cross Ref]
- Pearl J. Proceedings of the Seventeenth Conference on Uncertainty and Artificial Intelligence. San Francisco: Morgan Kaufmann; 2001. Direct and indirect effects; pp. 411–420.
- Pearl J. Causality: Models, Reasoning, and Inference. Cambridge University Press; Cambridge: 2009.
- Pearl J. The mediation formula. 2010. UCLA Technical Report.
- Petersen ML, Sinisi SE, van der Laan MJ. Estimation of direct causal effects. Epidemiology. 2006;17:276–84. doi: 10.1097/01.ede.0000208475.99429.2d. [PubMed] [Cross Ref]
- Robins JM. Semantics of causal DAG models and the identification of direct and indirect effects. In: Green P, Hjort NL, Richardson S, editors. Highly Structured Stochastic Systems. Oxford University Press; New York: 2003. pp. 70–81.
- Robins JM, Greenland S. Identifiability and exchangeability for direct and indirect effects. Epidemiology. 1992;3:143–155. doi: 10.1097/00001648-199203000-00013. [PubMed] [Cross Ref]
- Robins JM, Richardson TS, Spirtes P. On identification and inference for direct effects. Epidemiology. 2010 in press.
- Robins JM, Ricahrdson TS. Alternative causal graphsical models and the identification of direct effects. 2010. Working paper.
- Shpitser I, Pearl J. Identification of conditional interventional distributions. 2006. In Uncertainty in Artificial Intelligence, volume 22.
- Shpitser I, Pearl J. What counterfactuals can be tested. 2007. pp. 352–359. In Proceedings of the Twenty-Third Conference on Uncertainty in Artificial Intelligence.
- Shpitser I, Pearl J. Complete Identification Methods for the Causal Hierarchy. Journal of Machine Learning Research. 2008;9:1941–1979.
- Shpitser I, VanderWeele TJ, Robins JM. On the validity of covariate adjustment for estimating causal effects. 2010 Uncertainty and Artificial Intelligence, in press.
- Sjölander A. Bounds on natural direct effects in the presence of confounded intermediate variables. Statistics in Medicine. 2009;28:558–571. doi: 10.1002/sim.3493. [PubMed] [Cross Ref]
- van der Laan MJ, Petersen ML. Direct effect models. International Journal of Biostatistics. 2008;4 Article 23. [PubMed]
- VanderWeele TJ. Marginal structural models for the estimation of direct and indirect effects. Epidemiology. 2009;20:18–26. doi: 10.1097/EDE.0b013e31818f69ce. [PubMed] [Cross Ref]
- VanderWeele TJ, Vansteelandt S. Conceptual issues concerning mediation, interventions and composition. Statistics and Its Interface - Special Issue on Mental Health and Social Behavioral Science. 2009;2:457–468.
- VanderWeele TJ. Bias formulas for sensitivity analysis for direct and indirect effects. Epidemiology. 2010;21:540–551. doi: 10.1097/EDE.0b013e3181df191c. [PMC free article] [PubMed] [Cross Ref]
- VanderWeele TJ. Controlled direct and mediated effects: definition, identification and bounds. Scandinavian Journal of Statistics. 2010b doi: 10.1111/j.1467-9469.2010.00722.x. in press. [Cross Ref]
- VanderWeele TJ, Hernández-Diaz S. Is there a direct effect of pre-eclampsia on cerebral palsy not through preterm birth? Paediatric and Perinatal Epidemiology. 2011 doi: 10.1111/j.1365-3016.2010.01175.x. in press. [PubMed] [Cross Ref]

**Berkeley Electronic Press**

## Formats:

- Article |
- PubReader |
- ePub (beta) |
- PDF (306K) |
- Citation

- A three-way decomposition of a total effect into direct, indirect, and interactive effects.[Epidemiology. 2013]
*VanderWeele TJ.**Epidemiology. 2013 Mar; 24(2):224-32.* - Distribution-free mediation analysis for nonlinear models with confounding.[Epidemiology. 2012]
*Albert JM.**Epidemiology. 2012 Nov; 23(6):879-88.* - Alternative assumptions for the identification of direct and indirect effects.[Epidemiology. 2011]
*Hafeman DM, VanderWeele TJ.**Epidemiology. 2011 Nov; 22(6):753-64.* - An introduction to causal inference.[Int J Biostat. 2010]
*Pearl J.**Int J Biostat. 2010 Feb 26; 6(2):Article 7. Epub 2010 Feb 26.* - A review of causal estimation of effects in mediation analyses.[Stat Methods Med Res. 2012]
*Ten Have TR, Joffe MM.**Stat Methods Med Res. 2012 Feb; 21(1):77-107. Epub 2010 Dec 16.*

- Sensitivity analysis for direct and indirect effects in the presence of exposure-induced mediator-outcome confounders[Epidemiology, biostatistics, and public hea...]
*VanderWeele TJ, Chiba Y.**Epidemiology, biostatistics, and public health. 2014; 11(2)e9027* - Mediation analysis allowing for exposure-mediator interactions and causal interpretation: theoretical assumptions and implementation with SAS and SPSS macros[Psychological methods. 2013]
*Valeri L, VanderWeele TJ.**Psychological methods. 2013 Jun; 18(2)137-150* - Combining directed acyclic graphs and the change-in-estimate procedure as a novel approach to adjustment-variable selection in epidemiology[BMC Medical Research Methodology. ]
*Evans D, Chaix B, Lobbedez T, Verger C, Flahault A.**BMC Medical Research Methodology. 12156* - Estimation of Mediation Effects for Zero-inflated Regression Models[Statistics in medicine. 2012]
*Wang W, Albert JM.**Statistics in medicine. 2012 Nov 20; 31(26)3118-3132*

- Cited in BooksCited in BooksPubMed Central articles cited in books
- PubMedPubMedPubMed citations for these articles

- A Complete Graphical Criterion for the Adjustment Formula in Mediation AnalysisA Complete Graphical Criterion for the Adjustment Formula in Mediation AnalysisThe International Journal of Biostatistics. Jan 1, 2011; 7(1)

Your browsing activity is empty.

Activity recording is turned off.

See more...