Buckets:

|
download
raw
116 kB

Title: On Heterogeneous Treatment Effects in Heterogeneous Causal Graphs

URL Source: https://arxiv.org/html/2301.12383

Markdown Content: On Heterogeneous Treatment Effects in Heterogeneous Causal Graphs Richard Watson    Hengrui Cai    Xinming An    Samuel Mclean    Rui Song Abstract

Heterogeneity and comorbidity are two interwoven challenges associated with various healthcare problems that greatly hampered research on developing effective treatment and understanding of the underlying neurobiological mechanism. Very few studies have been conducted to investigate heterogeneous causal effects (HCEs) in graphical contexts due to the lack of statistical methods. To characterize this heterogeneity, we first conceptualize heterogeneous causal graphs (HCGs) by generalizing the causal graphical model with confounder-based interactions and multiple mediators. Such confounders with an interaction with the treatment are known as moderators. This allows us to flexibly produce HCGs given different moderators and explicitly characterize HCEs from the treatment or potential mediators on the outcome. We establish the theoretical forms of HCEs and derive their properties at the individual level in both linear and nonlinear models. An interactive structural learning is developed to estimate the complex HCGs and HCEs with confidence intervals provided. Our method is empirically justified by extensive simulations and its practical usefulness is illustrated by exploring causality among psychiatric disorders for trauma survivors. Code implementing the proposed algorithm is open-source and publicly available at: https://github.com/richard-watson/ISL.

Causal Inference, Causal Graphs, Causal Discovery, Heterogeneous Casual Effects, Machine Learning, ICML \doparttoc\faketableofcontents

1 Introduction

During the last several decades, little progress has been made in the understanding of the underlying neurobiological mechanism and in developing effective treatments for psychiatric disorders due to several unique challenges [18]. Accumulating evidence from existing research suggests that Heterogeneity is a common issue for psychiatric disorders based on traditional classification and diagnoses. Most of the existing studies that address heterogeneity based on symptom severity levels [8] are less likely to provide new insights about underlying neurobiological mechanisms. On the other hand, studying heterogeneous causal relationships of different psychiatric disorders has the potential to improve understanding, risk prediction, and treatment selection. However, to date, no such studies have been conducted due to the lack of appropriate analysis techniques. To fill in this gap and advance research for psychiatric disorders, we developed an innovative analysis approach to investigate and test heterogeneous causal relationships and applied it to study psychiatric disorders after trauma exposure using data from a large cohort study.

Causal discovery, the task of discovering the causal relations between variables in a dataset, has interesting and important applications in many areas, such as epidemiology [9], medicine [10], economics [24], etc. Under a general causal graph, an event or a treatment may have a direct effect on the outcome of interest as well as an indirect effect regulated by a set of mediators (which are variables that are affected by the treatment and in turn affect the outcome as 𝑀 does in Figure 1) [see an overview in 26]. Yet, due to the heterogeneity of individuals in response to different events/treatments, there may not exist a uniform causal graph for everyone. This implies the existence of heterogeneous causal graphs under different moderators which are pre-treatment confounders that also have an interaction term with the treatment as 𝑿 does in Figure 1). Learning such heterogeneity is one of the most crucial obstacles that continue to hamper advances in many fields such as psychiatric disorders [17]. With the launch of the Advancing Understanding of RecOvery afteR traumA (AURORA) study [18], where thousands of trauma survivors were recruited after traumatic experiences and followed to collect a broad range of bio-behavioral data, discovering heterogeneous causal patterns thus becomes a timely issue.

Figure 1: The middle panel is the whole causal graph, and the left and right graphs are heterogeneous causal graphs for different values of 𝑿 . Here 𝑿 confounds the relationship between 𝐴 (the treatment or event) and 𝑌 (the outcome of interest), and modifies the direct effect of 𝐴 on 𝑌 dependent on the value of 𝑿 . 𝑀 1 and 𝑀 2 are two different mediators that mediate the indirect effect of 𝐴 onto 𝑌 . The red and blue arrows represent whether the causal relation is positive or negative, respectively.

Despite the popularity of causal discovery methods [e.g., 36; 35; 13; 3; 30; 45; 43; 47], none of these works considers heterogeneous causal graphs to account for the heterogeneity among different subjects. On the other hand, all existing works of learning heterogeneity in causal inference literature [e.g., 42; 15; 22] either assume a known homogeneous causal graph or completely ignore the graphical structure, and thus fail to capture the heterogeneous causal pathways. In this paper, we focus on learning heterogeneous causal graphs and effects with multiple (possibly sequentially ordered) mediators. Our contributions are three-fold.

∙    To our knowledge, this is the first work that considers heterogeneity in terms of causal graphs. We first conceptualize heterogeneous causal graphs (HCGs), by incorporating the information of moderators and their interactions into the causal graphical model. This introduces several unique challenges in presenting the interacted nodes in the graphical model and handling such interactions in a consistent self-generated system. We address these difficulties by proposing a novel structural equation model with interactions to flexibly produce HCGs from a hybrid causal graph.

∙    We propose heterogeneous causal effects (HCEs) to systematically quantify the impact of treatments and mediators on the outcome of interest given different values of moderators. Based on the proposed graphical model with interactions, we establish the explicit forms of the defined HCEs and derive their theoretical properties at the individual level, in either linear or non-linear structural equation model.

∙    We develop a comprehensive procedure for extracting heterogeneous causal reasoning. Specifically, we propose an interactive structural learning algorithm to learn the complex HCGs, estimate HCEs, and compute bootstrap confidence intervals for these estimates via a debiasing process. Our method is general enough to address most causal structures.

1.1 Related Works

Conditional average treatment effect. A vast number of approaches have been proposed for estimating the heterogeneity via the conditional average treatment effect (CATE) that quantifies the effect size of treatment on the outcome of interest given different confounders [see recent advances in 1; 33; 42; 15; 22; 7]. Here, confounders used in CATE usually play the role of the moderators [14] which modify the impact of the treatment on the outcome as a presence of confounder-treatment interaction in modeling the outcome. All these works neglect the underlying causal structure among potential mediators in regulating the treatment effects and thus lead to a less interpretable causal mechanism.

Traditional mediation analysis. There is an abundance of literature for traditional mediation analysis [see a review in 39, and the reference therein] quantifying treatment effects in the presence of multiple mediators. Due to multiple causally dependent mediators, Robins [31] found that causal effects are not identifiable unless no treatment-mediator interaction is imposed, with more discussions on the identification of causal effects later on [11; 38; 41]. Yet, all of these works primarily assumed a known causal graph with only a few mediators included for analysis. In addition, the moderators in traditional mediation analysis [19] interact with the treatment but are independent of the treatment. In this work, we do not enforce such an independence requirement.

Causal structural learning. Plentiful causal structural learning (CSL) methods have been proposed to learn the unknown causal structure within a class of directed acyclic graphs from observed data. The large literature can be categorized into three types. The testing-based methods [e.g., 36, for the well-known PC algorithm] rely on the conditional independence tests to find the causal skeleton and edge orientations under the linear structural equation model (SEM). Based on additional and proper assumptions on noises and models, the functional-based methods handle both linear SEM [e.g., 35] and non-linear SEM [e.g., 3]. Recently, the score-based methods formulate the CSL problem into optimization by certain score functions, for both linear SEM [e.g., 30; 45] and non-linear SEM [e.g., 43; 47; 46; 32]. Yet, all these works neglect causal contexts (i.e., treatments, mediators, and outcomes) and thus cannot develop HCGs.

Causal mediation analysis with CSL. To visualize causes and counterfactuals, Pearl et al. [26] proposed to use the causal graphical model and the ‘do-operator’ to quantify the causal effects. A number of follow-up works [e.g., 16; 20; 5] have been developed recently to estimate direct and indirect causal effects that are regulated by mediators in the linear SEM. These studies relied on the PC algorithm [36] which requires strong assumptions of graph sparsity and noise normality due to computational limits. To overcome these difficulties, Cai et al. [4] proposed to leverage score-based CSL methods [e.g., 30; 45; 43; 47] with background causal knowledge to estimate mediation effects. These works assumed no moderator in their linear SEMs, such that the causal graph or effect learned is on the population level, and thus cannot access the heterogeneity.

2 Framework

Causal graph terminology. A directed acyclic graph (DAG) is defined as a directed graph that does not contain directed cycles. Specifically, let a DAG 𝔾

( 𝒁 , 𝑬 ) characterize the causal relationship among a set of random variables 𝒁 and an edge set 𝑬 . Here, 𝒁

{ 𝑍 1 , … , 𝑍 𝑤 } represents a random vector of 𝑤

| 𝒁 | nodes and an edge 𝑍 𝑖 → 𝑍 𝑗 ∈ 𝑬 means that 𝑍 𝑖 is a direct cause of 𝑍 𝑗 . A variable node 𝑍 𝑖 is said to be a parent of 𝑍 𝑗 if there is a directed edge from 𝑍 𝑖 to 𝑍 𝑗 . The set of all parents of node 𝑍 𝑗 in 𝔾 is denoted as 𝑃 ⁢ 𝐴 𝔾 ⁢ ( 𝑍 𝑗 ) . Let 𝑩

{ 𝑏 𝑖 , 𝑗 } 1 ≤ 𝑖 ≤ 𝑤 , 1 ≤ 𝑗 ≤ 𝑤 be a 𝑤 × 𝑤 matrix, where 𝑏 𝑖 , 𝑗 is the weight of the edge 𝑍 𝑖 → 𝑍 𝑗 ∈ 𝑬 , and 𝑏 𝑖 , 𝑗

0 otherwise. Then, we say that 𝔾

( 𝒁 , 𝑩 ) is a weighted DAG with the variable/node set 𝒁 and the weighted adjacency matrix 𝑩 .

Notations and assumptions. Let 𝑿

[ 𝑋 1 , 𝑋 2 , … , 𝑋 𝑝 ] ⊤ be a 𝑝 -dimensional vector of baseline information prior to the event or the treatment 𝐴 , 𝑴

[ 𝑀 1 , 𝑀 2 , … , 𝑀 𝑠 ] ⊤ be a 𝑠 -dimensional vector of post-treatment possible mediators, and 𝑌 be the final outcome of interest. We define 𝑿 generally as a vector of possible moderators that precede the treatment with no independence restriction. There may be no interaction between 𝑋 1 and 𝐴 , in which case it is not a moderator, but a confounder. Further 𝑋 2 may only affect 𝑌 , in which case it is a covariate. We allow 𝑿 to be any combination of covariates, confounders, and moderators. As commonly imposed in CSL works [e.g., 37; 28], we assume the Markov and faithfulness assumptions (see explicit definitions and further discussion in Appendix A.1). Let 𝑌 * ≡ 𝑌 * ⁢ ( 𝐴

𝑎 , 𝑴

𝒎 ) when 𝐴

𝑎 and 𝑴

𝒎 as the potential outcome and 𝑀 𝑖 * ≡ 𝑀 𝑖 * ⁢ ( 𝐴

𝑎 , 𝑀 𝑗

𝑚 𝑗 ) when 𝐴

𝑎 and 𝑀 𝑗

𝑚 𝑗 as the potential mediator. For any mediator 𝑀 𝑖 and any of its parent 𝑀 𝑗 ∈ 𝑃 ⁢ 𝐴 𝔾 ⁢ ( 𝑀 𝑖 )
{ 𝑿 , 𝐴 } , we assume no unmeasured confounders for: (A1). the treatment on the outcome and mediators:

𝑌 * ⟂ ⟂ 𝐴 | 𝑿 ; 𝑀 𝑖 * ⟂ ⟂ 𝐴 | 𝑿 ;

(A2). the mediators on the outcome:

𝑌 * ⟂ ⟂ 𝑀 𝑗 | { 𝐴 , 𝑿 } ; 𝑌 * ⟂ ⟂ 𝑀 𝑖 | { 𝐴 , 𝑿 , 𝑀 𝑗 } ;

(A3). the potential mediators:

𝑌 * ⟂ ⟂ 𝑀 𝑗 * | 𝑿 ; 𝑀 𝑖 * ⟂ ⟂ 𝑀 𝑗 * | 𝑿 ; 𝑌 * ⟂ ⟂ 𝑀 𝑖 * | { 𝑀 𝑗 * , 𝑿 } .

Assumptions (A1-A3) are concerned with the completeness of the data as common in causal inference [e.g., 26; 20], where we assume that all variables causally related to any variable in the data are included in data. Also note that we make no assumptions on the structure of the mediators which allows our method to take into account the fact that not all potential mediators are true mediators. Finally, the causal graph, in general, is only identifiable to its Markov Equivalence Class (MEC), however if, for example, the data is assumed to be Gaussian with equal variance, it can be identified from its MEC [27] (see details in Appendix A.2).

3 Heterogeneous Causal Graphs

We conceptualize the heterogeneous causal graph (HCG), by generalizing the causal graphical model with moderation.

3.1 Structural Equation Model with Interactions

Considering interactions among variables introduces several unique challenges in the causal graphical model, for example, presenting the interacted nodes in the graph and modeling heterogeneous interactions in a consistent self-generated system. To address these issues, we first generalize the linear SEM for the causal graphical model with interactions, which yields good interpretation to easily link the parameters with causal effects to be specified (see the functional SEM version of our method to handle complex relationships in Section 6). For simplicity of exposition, we use the product of 𝑿 and 𝐴 , 𝑿 ⁢ 𝐴 , as the interaction term (see discussions on the importance of such an interaction term in Remark 3.1). 𝑫

[ 𝑿 , 𝐴 , 𝑿 ⁢ 𝐴 , 𝑴 , 𝑌 ] ⊤ is a ( 2 ⁢ 𝑝 + 𝑠 + 2 ) -dimensional data vector for an individual. Suppose there exists a weighted adjacency matrix 𝑩 such that 𝑫 and 𝑩 together form a DAG, denoted as 𝔾

( 𝑫 , 𝑩 ) . This DAG presents the causality among interested 𝑤

( 2 ⁢ 𝑝 + 𝑠 + 2 ) variables, where the node set 𝑫 can be described using a linear SEM with an unknown 𝑩 and some noise vector 𝜖 as

𝑫

𝑩 ⊤ 𝑫 + 𝜖 : 𝑝

1

𝑝

𝑠

1 [ 𝑿

𝐴

𝑿 ⁢ 𝐴

𝑴

𝑌 ]

𝑩 ⊤ [ 𝑿

𝐴

𝑿 ⁢ 𝐴

𝑴

𝑌 ] + [ 𝜖 𝑿

𝜖 𝐴

𝜖 𝑿 ⁢ 𝐴

𝜖 𝑴

𝜖 𝑌 ] ,

    (1)

where 𝜖 𝑿 , 𝜖 𝐴 , 𝜖 𝑴 , 𝜖 𝑌 are random error variables associated with 𝑿 , 𝐴 , 𝑴 , and 𝑌 , respectively, and are jointly independent with mean zero. Note that the noise is distribution-free, so our method can handle any arbitrary distribution without breaking the linear SEM. In addition, since 𝑿 ⁢ 𝐴 is determined given 𝑿 and 𝐴 , in order to accommodate the interaction setting for the linear SEM, we define 𝜖 𝑿 ⁢ 𝐴 ≡ 𝑿 ⁢ 𝐴 with a constraint that 𝑩 ⊤ ⁢ 𝑫 produces a zero vector for elements corresponding to 𝑿 ⁢ 𝐴 . Alternatively, one can let 𝜖 𝑿 ⁢ 𝐴 be a zero vector, with a constraint that 𝑩 ⊤ ⁢ 𝑫 produces exact 𝑿 ⁢ 𝐴 . For simplicity, we use the first formulation. We next explicitly characterize the weighted adjacency matrix 𝑩 that satisfies Model (1) based on causal knowledge among 𝑿 , 𝐴 , 𝑴 , and 𝑌 , as well as the interaction term 𝑿 ⁢ 𝐴 . Specifically, according to HCGs as illustrated in Figure 1 and assumptions in Section 2, we have:

𝑿 has no parents, i.e.,

𝑔 1 ⁢ ( 𝑩 )

∑ 𝑗

1 𝑝 ∑ 𝑖

1 2 ⁢ 𝑝 + 𝑠 + 2 | 𝑏 𝑖 , 𝑗 |

0 ;

the only parents of 𝐴 are 𝑿 , i.e.,

𝑔 2 ⁢ ( 𝑩 )

∑ 𝑖

𝑝 + 1 2 ⁢ 𝑝 + 𝑠 + 2 | 𝑏 𝑖 , 𝑝 + 1 |

0 ;

𝑌 has no descendants, i.e.,

𝑔 3 ⁢ ( 𝑩 )

∑ 𝑖

1 2 ⁢ 𝑝 + 𝑠 + 2 | 𝑏 2 ⁢ 𝑝 + 𝑠 + 2 , 𝑖 |

0 ; and

the interaction 𝑿 ⁢ 𝐴 also does not have parents, i.e.,

𝑔 4 ⁢ ( 𝑩 )

∑ 𝑗

𝑝 + 2 2 ⁢ 𝑝 + 1 ∑ 𝑖

1 2 ⁢ 𝑝 + 𝑠 + 2 | 𝑏 𝑖 , 𝑗 |

0 .

The conditions in 𝑔 1 ⁢ ( 𝑩 ) to 𝑔 4 ⁢ ( 𝑩 ) yield the following matrix 𝑩 ⊤ consisting of unknown parameters whose sparsity is due to prior causal information:

𝑩 ⊤

[ 𝟎 𝑝 × 𝑝

𝟎 𝑝 × 1

𝟎 𝑝 × 𝑝

𝟎 𝑝 × 𝑠

𝟎 𝑝 × 1

𝜹 𝑿

0

𝟎 1 × 𝑝

𝟎 1 × 𝑠

0

𝟎 𝑝 × 𝑝

𝟎 𝑝 × 1

𝟎 𝑝 × 𝑝

𝟎 𝑝 × 𝑠

𝟎 𝑝 × 1

𝑩 𝑿 ⊤

𝜷 𝐴

𝑩 𝑿 ⁢ 𝐴 ⊤

𝑩 𝑴 ⊤

𝟎 𝑠 × 1

𝜸 𝑿

𝛾 𝐴

𝜸 𝑿 ⁢ 𝐴

𝜸 𝑴

0 ] ,

where 𝟎 𝑎 × 𝑏 is a 𝑎 × 𝑏 zero matrix/vector, and the parameters 𝜹 𝑿 , 𝑩 𝑿 ⊤ , and 𝜸 𝑿 represent the influence of 𝑿 , on the treatment 𝐴 , the mediators 𝑴 , and the outcome 𝑌 , respectively. Likewise, 𝜷 𝐴 and 𝛾 𝐴 represent the influence of 𝐴 on 𝑴 and 𝑌 , respectively, and 𝜸 𝑴 represent the influence of 𝑴 on 𝑌 . 𝑩 𝑴 ⊤ represents the influence of the mediators on other mediators. If 𝑩 𝑴 ⊤

𝟎 𝑠 × 𝑠 then we say that mediators are parallel, otherwise they are sequentially ordered. Finally, 𝑩 𝑿 ⁢ 𝐴 ⊤ and 𝜸 𝑿 ⁢ 𝐴 represent the influences of the interaction between the possible moderators and the treatment, 𝑿 ⁢ 𝐴 , on 𝑴 and 𝑌 . This gives the proposed model the capability to characterize moderation to allow heterogeneity and multiple sequentially ordered mediators to allow complexity.

Remark 3.1.

We extend the linear SEM by directly integrating moderation into the casual graph. This is done for computational purposes and easier interpretation. Moderation is essential in learning HCGs and quantifying heterogeneity in causal effects. Specifically, the interaction 𝐗 ⁢ 𝐴 in Model (1) allows causal effects to depend on the value of 𝐗 . As will be seen in Theorem 4.1, without interactions in the model, causal effects would be the same for all subjects within a population. Our model is thus flexible enough to handle heterogeneity and is general enough to cover other frameworks such as moderated mediation and mediated moderation as detailed in Appendix A.3. We also allow a fully heterogeneous causal relationship among mediators, including changes in causal direction, by adding 𝐗 ⁢ 𝐌 interactions to the model such that 𝐗 would moderate the way mediators affect each other (see Section A.5). Also see further discussion on HCGs in Appendix A.4.

Remark 3.2.

The structural constraints in 𝑔 1 to 𝑔 4 can be modified or more can be added to account for prior knowledge. The more information is known about the variables, the more structural constraints can be added to improve the estimation of the unknown causal graph [4].

3.2 Generating Heterogeneous Causal Graphs

We next show how to produce an HCG given matrix 𝑩 ⊤ and the value of moderators based on Model (1). To this end, we utilize the 𝑑 ⁢ 𝑜 ⁢ ( ⋅ ) operator studied in Pearl [25], which simulates an intervention such that a variable can take a specific value irrespective of parent variable effects. Suppose we are interested in a group of subjects with 𝑿

𝒙 . By setting the value of 𝑿 as 𝒙 via 𝑑 ⁢ 𝑜 ⁢ ( ⋅ ) operator, all the edges that go to 𝑿 will be eliminated, which yields a new linear SEM:

𝑫 𝑑 ⁢ 𝑜 ⁢ ( 𝑿

𝒙 )

𝑩 𝑑 ⁢ 𝑜 ⁢ ( 𝑿

𝒙 ) ⊤ ⁢ 𝑫 𝑑 ⁢ 𝑜 ⁢ ( 𝑿

𝒙 ) + 𝜖 ′ → (2)

[ 𝐴

𝑴

𝑌 ]

[ 𝜹 𝑿 ⁢ 𝒙

𝑩 𝑿 ⊤ ⁢ 𝒙

𝜸 𝑿 ⁢ 𝒙 ] + 𝑩 𝑑 ⁢ 𝑜 ⁢ ( 𝑿

𝒙 ) ⊤ ⁢ [ 𝐴

𝑴

𝑌 ] + [ 𝜖 𝐴

𝜖 𝑴

𝜖 𝑌 ] , (14)
where  ⁢ 𝑩 𝑑 ⁢ 𝑜 ⁢ ( 𝑿

𝒙 ) ⊤

[ 0

𝟎 1 × 𝑠

0

𝜷 𝐴 + 𝒙 ⁢ 𝜷 𝑿 ⁢ 𝐴

𝑩 𝑴 ⊤

𝟎 𝑠 × 1

𝛾 𝐴 + 𝒙 ⁢ 𝛾 𝑿 ⁢ 𝐴

𝜸 𝑴

0 ] ,

characterizes the heterogeneous causal graph with respect to 𝑿

𝒙 , and the additional intercept is a constant effect due to the fixed baseline. Thus, any HCG given estimated parameters for 𝑩 ⊤ and 𝑿

𝒙 can be obtained without extra model training, as illustrated in Figure 1.

Our proposed method first estimates a causal graph on the population level by including the treatment-and-moderator interaction in modeling to reflect heterogeneity, which allows us to project the estimated causal graph on the subgroup level to a certain value of moderator 𝑿 through the do-operator as in equation 2. Under different values of 𝑿

𝒙 , the corresponding projected causal graphs are thus produced as the HCGs. Mathematically, it can be understood as 𝐸 ( 𝒢 ^ )

𝐸 𝑿 { 𝐸 ( 𝒢 ^ | 𝑿

𝒙 ) }

𝐸 𝑿 { 𝐸 ( 𝒢 ^ | 𝑑 𝑜 ( 𝑿

𝒙 ) } , where 𝒢 ^ is the estimated causal graph on the population level, the first equation is due to the formula of iterative expectation, and the second equation is owing to the no unmeasured confounder assumption. Thus, the entire causal graph at the population level can be viewed as the weighted average of HCGs and the weights are the density of 𝑿 . In the case that the subgroup of interest is characterized only by a subset of variables, we can set the values of those variables as appropriate and average across the rest as done in the population-level case.

4 Heterogeneous Causal Effects

In this section, we officially define heterogeneous causal effects (HCEs) and derive their theoretical properties.

4.1 Heterogeneous Causal Effects of Treatment

We focus on HCEs of treatment first. Following Pearl [25], we have the heterogeneous total effect (HTE) to be the total effect of the treatment on the outcome, the natural heterogeneous direct effect (HDE) to be the effect of the treatment on the outcome that is not mediated by mediators, and the natural heterogeneous indirect effect (HIE) to be the effect of the treatment on the outcome that is regulated by mediators, given the baseline information.

Definition 1.

Heterogeneous Causal Effects of Treatment:

𝐻 ⁢ 𝑇 ⁢ 𝐸 ⁢ ( 𝒙 )

∂ 𝐸 ⁢ { 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 } / ∂ 𝑎 ,

𝐻 ⁢ 𝐷 ⁢ 𝐸 ⁢ ( 𝒙 )

∂ 𝐸 ⁢ { 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑴

𝒎 ( 𝑎 ′ ) ) , 𝑿

𝒙 } / ∂ 𝑎 ,

𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝒙 )

∂ 𝐸 ⁢ { 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ′ , 𝑴

𝒎 ( 𝑎 ) ) , 𝑿

𝒙 } / ∂ 𝑎 .

Here, 𝐦 ( 𝑎 ) is the value of 𝐌 by setting 𝐴

𝑎 , and 𝑎 ′ is some fixed value.

In Definition 1, the effects are functions of 𝒙 as they depend on the particular individual’s baseline information. Specifically, 𝐻 ⁢ 𝑇 ⁢ 𝐸 ⁢ ( 𝒙 ) is the change in the outcome of interest if we could have increased the treatment by one unit. Similarly, 𝐻 ⁢ 𝐷 ⁢ 𝐸 ⁢ ( 𝒙 ) can be interpreted as the change of the outcome due to one unit increase of the treatment when holding all mediators fixed, as the direct edge between 𝐴 and 𝑌 in Figure 1 given different 𝒙 . In contrast, 𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝒙 ) captures the indirect effect of the treatment on the outcome regulated by mediators as two indirect paths (i.e., 𝐴 → 𝑀 1 → 𝑌 and 𝐴 → 𝑀 1 → 𝑀 2 → 𝑌 ) in Figure 1, under different 𝒙 . Similar causal effects, dubbed interventional effects, were proposed by Vansteelandt & Daniel [40], yet, under a very specific causal graph with only two mediators, without considering 𝑿 as possible moderators. In contrast, the above HCEs are defined for a much more general scenario with multiple mediators. We develop the explicit form of the proposed HCTs under Model (1) in the following theorem.

Theorem 4.1.

Under assumptions (A1-A3) and the model described in Equation (1), we have: 1). 𝐻 ⁢ 𝐷 ⁢ 𝐸 ⁢ ( 𝐱 )

𝛾 𝐴 + 𝛄 𝐗 ⁢ 𝐴 ⁢ 𝐱 ; 2). 𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝐱 )

𝛄 𝐌 ⁢ ( 𝐈 𝑠 − 𝐁 𝐌 ⊤ ) − 1 ⁢ ( 𝛃 𝐴 + 𝐁 𝐗 ⁢ 𝐴 ⊤ ⁢ 𝐱 ) ;

3). 𝐻 ⁢ 𝑇 ⁢ 𝐸 ⁢ ( 𝐱 )

𝐻 ⁢ 𝐷 ⁢ 𝐸 ⁢ ( 𝐱 ) + 𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝐱 ) ,   where 𝐈 𝑠 is a 𝑠 × 𝑠 identity matrix and 𝐱 is the value of 𝐗 .

The proof of Theorem 4.1 is provided in Section F in Appendix. We make a few remarks. First, results in 1) and 2) provide the exact form of HCEs as functions of a given 𝒙 , where the functions are determined by the unknown parameters in the weighted adjacency matrix 𝑩 in Model (1). Therefore, learning 𝑩 is not only the key to recovering the underlying causal structure but also the essential middle step of estimating the HCEs of interest. Second, results in 3) produce an exact decomposition of the heterogeneous total causal effect as the summation of the natural heterogeneous direct and indirect effects. This result thus generalizes Section 5.1.3 in Pearl et al. [26] by considering extra baseline information. This can be seen more clearly by setting 𝑿

0 , in which case Pearl’s equations will be generated. Third, it can be shown based on results in 1) to 3) that when 𝜸 𝑿 ⁢ 𝐴 and 𝑩 𝑿 ⁢ 𝐴 ⊤ are all zeros, the HCTs do not depend on 𝒙 anymore. In other words, without the interaction terms, the causal impacts for different sub-populations are homogeneous. This supports the statements in Remark 3.1.

4.2 Heterogeneous Causal Effects of Mediators

We next define the HCEs of a particular mediator on the outcome. To this end, we define some intermediate quantities that deliver the partial causal impact of potential mediators on the outcome. Specifically, denote the effect of the treatment on mediator 𝑀 𝑖 given 𝑿

𝒙 as

Δ 𝑖 ⁢ ( 𝒙 ) ≡ ∂ 𝐸 ⁢ { 𝑀 𝑖 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 } / ∂ 𝑎 ,

which quantifies how the treatment causally influences a single mediator given 𝑿

𝒙 . Next, we conceptualize the conditional mean outcome when increasing mediator 𝑀 𝑖 by 1 while fixing all other mediators as

where 𝛀 𝑖 is a vector of mediators that do not include mediator 𝑀 𝑖 and 𝒐 𝑖 ( 𝑎 ) is the value of 𝛀 𝑖 by setting 𝐴

𝑎 . With these intermediate definitions, we define the natural heterogeneous direct mediation effect (HDM), the natural heterogeneous indirect mediation effect (HIM), and the natural heterogeneous total mediation effect (HTM) as follows for each mediator on the outcome of interest, given the baseline.

Definition 2.

Heterogeneous Causal Effects of Mediator 𝑀 𝑖 :

𝐻 𝐷 𝑀 𝑖 ( 𝒙 )

[
Φ 𝑖 ( 𝑎 , 𝒙 ) − 𝐸 { 𝑌 | 𝑑 𝑜 ( 𝐴

𝑎 ) , 𝑿

𝒙 } ] × Δ 𝑖 ( 𝒙 ) ,

𝐻 𝐼 𝑀 𝑖 ( 𝒙 )

[
𝐸 ⁢ { 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑀 𝑖

𝑚 𝑖 ( 𝑎 ) + 1 ) , 𝑿

𝒙 }

− Φ 𝑖 ( 𝑎 , 𝒙 ) ] × Δ 𝑖 ( 𝒙 ) ,

𝐻 𝑇 𝑀 𝑖 ( 𝒙 )

[
𝐸 ⁢ { 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝑀 𝑖

𝑚 𝑖 + 1 ) , 𝑿

𝒙 }

− 𝐸 { 𝑌 | 𝑑 𝑜 ( 𝑀 𝑖

𝑚 𝑖 ) , 𝑿

𝒙 } ] × Δ 𝑖 ( 𝒙 ) .

Similar to Definition 1, the mediation effects are functions of 𝒙 . The product inside Definition 2 is used to combine the causal effects of mediator 𝑀 𝑖 on the outcome with the total effect of the treatment on this mediator 𝑀 𝑖 , i.e., Δ 𝑖 . Here, 𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 ) indicates the direct change of the outcome of interest if we could have increased a particular mediator by one unit while holding all its descendent/children mediators fixed. Likewise, 𝐻 ⁢ 𝐼 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 ) corresponds to the indirect effect of a particular mediator on the outcome regulated by its descendent/children mediators. Finally, 𝐻 ⁢ 𝑇 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 ) characterizes the total influence of a particular mediator regardless of the format. Take mediator 𝑀 1 in Figure 1 as an instance. The effect associated with the direct path 𝐴 → 𝑀 1 → 𝑌 is 𝐻 ⁢ 𝐷 ⁢ 𝑀 1 ⁢ ( 𝒙 ) and with the indirect path 𝐴 → 𝑀 1 → 𝑀 2 → 𝑌 is 𝐻 ⁢ 𝐼 ⁢ 𝑀 1 ⁢ ( 𝒙 ) , where the summation of these two paths representing 𝐻 ⁢ 𝑇 ⁢ 𝑀 1 ⁢ ( 𝒙 ) . Our definition also generalizes the natural causal effects for an individual mediator proposed by Cai et al. [4] and Chakrabortty et al. [5] by incorporating baseline information and handling heterogeneity. Based on these definitions, we establish the theoretical forms of the mediation effects below proved in Appendix F.

  Input: data 𝑫 , baseline dimension 𝑝 , dimension of mediators 𝑠 , tolerance for estimating causal skeleton 𝛿 𝑏 .   Initialize: 𝑩 ^ 0 ← 𝟎 ; 𝑩 ^ ← 𝟎   Estimate 𝑩 ^ 0 using a causal discovery method of choice by incorporating ℎ 2 into the loss function.   Compute 𝑩 ^ 𝑏 , where 𝑩 ^ 𝑖 , 𝑗 𝑏

𝑩 ^ 𝑖 , 𝑗 0 > 𝛿 𝑏   for  𝑖

1 to 2 ⁢ 𝑝 + 𝑠 + 2  do      Estimate direct children of 𝑖 th node, denoted 𝐷 𝑖 , by { 𝐷 𝑗 | 𝑩 ^ 𝑖 , 𝑗 𝑏 ≠ 0 }      Update 𝑖 th row of 𝑩 ^ using coefficients of fitted LASSO model using { 𝐷 𝑗 | 𝑩 ^ 𝑖 , 𝑗 𝑏 ≠ 0 } as the predictors and 𝐷 𝑖 as the response   end for   Compute the HCEs and desired CIs using 𝑩 ^   Return 𝑩 ^ , HCEs, and CIs Algorithm 1 Interactive Structural Learning Theorem 4.2.

Under assumptions (A1-A3) and Model (1), 1a). 𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 ⁢ ( 𝐱 )

{ 𝛄 𝐌 } 𝑖 ⁢ { ( 𝐈 𝑠 − 𝐁 𝐌 ⊤ ) − 1 ⁢ ( 𝛃 𝐴 + 𝐁 𝐗 ⁢ 𝐴 ⊤ ⁢ 𝐱 ) } 𝑖 ;

1b). ∑ 𝑖

1 𝑠 𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 ⁢ ( 𝐱 )

𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝐱 ) ;

2). 𝐻 ⁢ 𝐼 ⁢ 𝑀 𝑖 ⁢ ( 𝐱 )

𝐻 ⁢ 𝑇 ⁢ 𝑀 𝑖 ⁢ ( 𝐱 ) − 𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 ⁢ ( 𝐱 ) ;

3). 𝐻 ⁢ 𝑇 ⁢ 𝑀 𝑖 ⁢ ( 𝐱 )

𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝐱 ) − 𝐻 ⁢ 𝐼 ⁢ 𝐸 𝔾 ⁢ ( − 𝑖 ) ⁢ ( 𝐱 ) ,

where { ⋅ } 𝑖 is the 𝑖 th element of a vector and 𝐻 ⁢ 𝐼 ⁢ 𝐸 𝔾 ⁢ ( − 𝑖 ) is the HIE under the causal graph 𝔾 ⁢ ( − 𝑖 ) in which the 𝑖 th mediator is removed from the original causal graph 𝔾 .

We make a few remarks for Theorem 4.2. First, results in 1a) give the explicit form of the proposed HDM, where each multiplier corresponds to the 𝑖 th element of the vector multiplier in results 2) of Theorem 4.1 for HIE. This immediately reveals the relationship between HIE and HDMs, i.e., the summation of all heterogeneous direct mediation effects equals to the heterogeneous indirect effect of the treatment, shown by results 1b) in Theorem 4.2. Second, the total mediation effect for a mediator 𝑀 𝑖 , 𝐻 ⁢ 𝑇 ⁢ 𝑀 𝑖 , can be interpreted as the effect of the treatment 𝐴 on the outcome 𝑌 regulated by mediator 𝑀 𝑖 , or inversely as the change in total treatment effect that is due to 𝑀 𝑖 being removed from the causal graph. This provides a feasible way to obtain 𝐻 ⁢ 𝑇 ⁢ 𝑀 s as indicated in results 3). Third, according to Definition 2, 𝐻 ⁢ 𝑇 ⁢ 𝑀 𝑖 can be further decomposed into direct effect that goes directly to the outcome through mediator 𝑀 𝑖 from the treatment (i.e., 𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 ) and indirect effect that is regulated by other descendant mediators of 𝑀 𝑖 as 𝐻 ⁢ 𝐼 ⁢ 𝑀 𝑖 . Such decomposition gives an alternative method to calculate 𝐻 ⁢ 𝐼 ⁢ 𝑀 𝑖 , as implied in results 2).

5 Main Algorithm

In this section, we detail the procedure used to estimate HCGs and HCEs with three components.

  1. Causal discovery with structural constraints. In order to estimate the weighted adjacency matrix 𝑩 , we follow the approach taken by Cai et al. [4] and combine the background structural knowledge with the score-based CSL [e.g., 30; 45; 43; 47]. This requires finding the best 𝑩 given that it must be a DAG and satisfy the structural constraints posed in Section 3.1. In order for 𝑩 to be a DAG, it can be shown that it must satisfy the following continuous acyclicity constraint typical of score-based CSL [e.g., 43; 47]:

ℎ 1 ⁢ ( 𝑩 )

tr ⁢ [ ( 𝑰 2 ⁢ 𝑝 + 𝑠 + 2 + 𝑡 ⁢ 𝑩 ⊙ 𝑩 ) 2 ⁢ 𝑝 + 𝑠 + 2 ] − ( 2 ⁢ 𝑝 + 𝑠 + 2 )

0 ,

where tr is the trace of a matrix, 𝑡 is a hyper-parameter that depends on an estimation of the largest eigenvalue of the matrix 𝑩 , and ⊙ denotes the element-wise square. In order for 𝑩 to satisfy structural constraints, 𝑔 1 ⁢ ( 𝑩 ) to 𝑔 4 ⁢ ( 𝑩 ) (see Section 3.1), it must satisfy: ℎ 2 ⁢ ( 𝑩 )

∑ 𝑖

1 4 𝑔 𝑖 ⁢ ( 𝑩 )

0 .

As remarked earlier, more structural constraints can be added and any added would be included in ℎ 2 ⁢ ( 𝑩 ) . Combining the two constraints above ( ℎ 1 and ℎ 2 ) yields the following objective loss by an augmented Lagrangian [4],

𝐿 ⁢ ( 𝑩 , 𝜃 )

𝑓 ⁢ ( 𝑩 , 𝜃 ) + 𝜆 1 ⁢ ℎ 1 ⁢ ( 𝑩 )

  • 𝜆 2 ⁢ ℎ 2 ⁢ ( 𝑩 )
  • 𝑐 ⁢ | ℎ 1 ⁢ ( 𝑩 ) | 2
  • 𝑑 ⁢ | ℎ 2 ⁢ ( 𝑩 ) | 2 ,

where 𝑓 ⁢ ( 𝑩 , 𝜃 ) is some loss function such as the Kullback-Leibler (KL) divergence in DAG-GNN by Yu et al. [43] (see details and choices of the base learner in Appendix B.1), where model parameter 𝜃 , 𝜆 1 and 𝜆 2 are Lagrange multipliers, and 𝑐 and 𝑑 are tuning parameters to ensure a hard constraint on ℎ 1 and ℎ 2 . With these methods we can generate an estimate for 𝑩 , denoted 𝑩 ^ 0 .

  1. Debiasing with regularized regression. To reduce the bias in 𝑩 ^ 0 introduced during causal discovery, we apply a refitting procedure [34] in accommodating Model (1). First, we extract the estimated causal skeleton from 𝑩 ^ 0 by the binary matrix 𝑩 ^ 𝑏 where 𝑩 ^ 𝑖 , 𝑗 𝑏

    𝕀 ⁢ { | 𝑩 ^ 𝑖 , 𝑗 0 | > 𝛿 } . Here, 𝛿 is a pre-determined threshold to prune edges in the estimated causal graph with weak signals. Applying a tolerance level is a standard technique used in the causal discovery literature [see more details in 45; 43; 47]. In practice, we choose the best 𝛿 to minimize the loss (such as the mean squared error) between the original data and the data generated by 𝑩 ^ 0 ⊙ 𝕀 ⁢ { | 𝑩 ^ 0 | > 𝛿 } . For each node 𝐷 𝑖 , we obtain its parent set as 𝑃 ⁢ 𝐴 𝔾 ^ ⁢ ( 𝐷 𝑖 ) , where 𝔾 ^ is the estimated causal graph based on 𝑩 ^ 𝑏 , and regress, using LASSO, 𝐷 𝑖 on 𝑃 ⁢ 𝐴 𝔾 ^ ⁢ ( 𝐷 𝑖 ) to obtain the refitted coefficients 𝑏 ^ 𝑖 , 𝑗 if 𝐷 𝑗 ∈ 𝑃 ⁢ 𝐴 𝔾 ^ ⁢ ( 𝐷 𝑖 ) and 𝑏 ^ 𝑖 , 𝑗

    0 otherwise. Denote the refitted matrix as 𝑩 ^ , which is used to estimate causal effects based on Theorems 4.1 and 4.2. While we agree that the regularized regression is biased, yet, with sufficient sample size, the bias term is negligible. Such a debiasing idea is commonly used for statistical inference in high-dimensional settings [12; 44; 23].

  2. Construction of confidence intervals (CIs). We construct CIs of the estimated effects based on bootstrap [6] and false discovery control [2]. Specifically, we resample 𝑛 data points with replacements for independent 𝐾 times. In each bootstrap sample, we estimate the causal graph and compute the desired effect. For distribution-free noises, one can apply quantile-based CI by using 𝛼 / 2 -quantile of the bootstrap estimates as the lower bound and the ( 1 − 𝛼 / 2 ) -quantile as the upper bound, where 𝛼 is the significance level. In the case that the data is Gaussian in nature, the Gaussian bootstrap CI can be applied. We name the combined procedure Interactive Structural Learning (ISL). The full algorithm is included in Appendix B.1, however, an abbreviated version can be found in Algorithm 1, with the time complexity provided in Appendix B.2.

6 Extension to Functional SEM

We can extend our methodology to the nonlinear setting by generalizing the nature of the relationship between the nodes and their parents. Specifically, for each node 𝑍 𝑖 ∈ 𝒁 , we model the relationship between this node and one or more of its parents as 𝛼 ⁢ 𝑓 𝑖 ⁢ 𝑗 ⁢ { 𝑃 ⁢ 𝐴 𝔾 𝑗 ⁢ ( 𝑍 𝑖 ) } where 𝑃 ⁢ 𝐴 𝔾 𝑗 ⁢ ( 𝑍 𝑖 ) is the 𝑗 th parent of 𝑍 𝑖 and 𝛼 is a scalar, vector, or matrix coefficient that is appropriately shaped serving the same purpose as the coefficients in 𝑩 ⊤ from Model (1). Keep in mind, that the “combined” variable of 𝑿 and A is considered a single distinct from 𝑿 and 𝐴 such that the heterogeneity of the data can be fully captured and interpreted. For example, the relationship between 𝑌 and 𝐴 is modeled by 𝛾 𝐴 ⁢ 𝑓 𝑌 , 𝑎 ⁢ ( 𝐴 ) and the modification of 𝐴 ’s relationship with 𝑴 is modeled by 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒇 𝑴 , 𝒙 ⁢ 𝒂 ⁢ ( 𝑿 , 𝐴 ) . Putting these all together, we have the following functional SEM:

{ 𝑿

𝜖 𝑿 ,

𝐴

𝜹 𝑿 ⁢ 𝒇 𝑨 , 𝒙 ⁢ ( 𝑿 ) + 𝜖 𝐴 ,

𝑴

𝑩 𝑿 ⊤ ⁢ 𝒇 𝑴 , 𝒙 ⁢ ( 𝑿 ) + 𝜷 𝐴 ⊤ ⁢ 𝒇 𝑴 , 𝒂 ⁢ ( 𝐴 )

  • 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒇 𝑴 , 𝒙 ⁢ 𝒂 ⁢ ( 𝑿 , 𝐴 )
  • 𝑩 𝑴 ⊤ ⁢ 𝑴
  • 𝜖 𝑴 ,

𝑌

𝜸 𝑿 ⁢ 𝒇 𝒀 , 𝒙 ⁢ ( 𝑿 ) + 𝛾 𝐴 ⁢ 𝑓 𝑌 , 𝑎 ⁢ ( 𝐴 )

  • 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝑓 𝑌 , 𝑥 ⁢ 𝑎 ⁢ ( 𝑿 , 𝐴 )

  • 𝜸 𝑴 ⁢ 𝒇 𝒀 , 𝒎 ⁢ ( 𝑴 )

  • 𝜖 𝑌 .

       (15)
    

We take a functional approach here, rather than a fully nonlinear approach, in order to have a closed form for the causal effects and allow for the model to be interpreted in a similar manner to the linear Model (1). This also allows us to directly extend the ISL algorithm in Section 5 to the functional case, by replacing the base learner with a learner proven to work efficiently in the nonlinear setting and generalizing the regression step to be appropriate for any functional model. The base learner we have chosen to use is the one recently introduced by Rolland et al. [32] which uses the data distribution’s score function to prune the full DAG to estimate the causal graph. For more information see Appendix B.4. After the causal graph has been estimated, we can use it to estimate the coefficients in Model (15) by first positing a functional model and fitting it, given the estimated parents for each of the nodes. Here is where background information, like structural constraints, can be incorporated. While structural constraints can also be applied in the above ordering process, we have found that in practice it is more efficient to do so afterwards during the fitting process. Background information can also be incorporated in the form of the chosen functional models used for each relationship. Without background information, misspecification can occur, leading to inaccurate causal effect estimation.

  Input: data 𝑫 , baseline dimension 𝑝 , dimension of mediators 𝑠 , tolerance for estimating causal skeleton 𝛿 𝑏 .   Initialize: 𝑩 ^ 0 ← 𝟎 ; 𝑩 ^ ← 𝟎   Estimate the skeleton of 𝑩 ^ 0 using Rolland et al. [32]’s SCORE method.   Fit chosen functional model using estimated skeleton while incorporating structural constraints to estimate 𝑩 ^ 0   Compute 𝑩 ^ 𝑏 , where 𝑩 ^ 𝑖 , 𝑗 𝑏

𝑩 ^ 𝑖 , 𝑗 0 > 𝛿 𝑏   for  𝑖

1 to 2 ⁢ 𝑝 + 𝑠 + 2  do      Estimate direct children of 𝑖 th node, denoted 𝐷 𝑖 , by { 𝐷 𝑗 | 𝑩 ^ 𝑖 , 𝑗 𝑏 ≠ 0 }      Update 𝑖 th row of 𝑩 ^ using coefficients of fitted LASSO model using { 𝐷 𝑗 | 𝑩 ^ 𝑖 , 𝑗 𝑏 ≠ 0 } as the predictors and 𝐷 𝑖 as the response   end for   Compute the HCEs and desired CIs using 𝑩 ^   Return 𝑩 ^ , HCEs, and CIs Algorithm 2 Interactive Structural Learning Extended

Once the functional model has been fitted, analogous theorems to those posed in Section 4 can be used to calculate the causal effects. We emphasize here that the quantities defined in Definitions 1 and 2 in Section 4 are still applicable in the functional case, though the explicit form of heterogeneous causal effects derived in Theorems 4.1 and 4.2 are somewhat different in the functional model setting. According to Definition 1, we can develop the explicit form of the proposed HCEs for the treatment under Model (15) as follows.

Theorem 6.1.

Under assumptions (A1-A3) and Model (15), 1). 𝐻 ⁢ 𝐷 ⁢ 𝐸 ⁢ ( 𝐱 , 𝑎 )

𝛾 𝐴 ⁢ 𝛿 ⁢ 𝑓 𝑌 ⁢ 𝑎 ⁢ ( 𝑎 ) 𝛿 ⁢ 𝑎 + 𝛄 𝐗 ⁢ 𝐴 ⁢ 𝛿 ⁢ 𝑓 𝑌 ⁢ 𝑥 ⁢ 𝑎 ⁢ ( 𝐱 , 𝑎 ) 𝛿 ⁢ 𝑎 ;

2). 𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝐱 , 𝑎 )

𝛄 𝐌 ⁢ 𝛿 ⁢ 𝐟 𝐘 ⁢ 𝐦 ⁢ ( 𝑚 ( 𝑎 ) ) 𝛿 ⁢ 𝐦 ( 𝑎 ) ⁢ 𝛿 ⁢ 𝐦 ( 𝑎 ) 𝛿 ⁢ 𝑎 ;

3). 𝐻 ⁢ 𝑇 ⁢ 𝐸 ⁢ ( 𝐱 , 𝑎 )

𝐻 ⁢ 𝐷 ⁢ 𝐸 ⁢ ( 𝐱 , 𝑎 ) + 𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝐱 , 𝑎 ) ;

where 𝐦 ( 𝑎 )

𝐸 ⁢ [ 𝐌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝐗

𝐱 ] .

Similarly, the form of HCEs for mediators can be developed.

Theorem 6.2.

Under assumptions (A1-A3) and Model (15), 1a). 𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 ⁢ ( 𝐱 , 𝑎 )

{ 𝛄 𝐌 } 𝑖 ⁢ 𝛿 ⁢ 𝐟 𝐘 ⁢ 𝐦 ⁢ ( 𝐦 ( 𝐚 ) ) 𝛿 ⁢ 𝑚 𝑖 ( 𝑎 ) ⁢ 𝛿 ⁢ 𝐦 𝐢 ( 𝑎 ) 𝛿 ⁢ 𝑎 ;

1b). ∑ 𝑖

1 𝑠 𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 ⁢ ( 𝐱 , 𝑎 )

𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝐱 , 𝑎 ) ;

2). 𝐻 ⁢ 𝐼 ⁢ 𝑀 𝑖 ⁢ ( 𝐱 , 𝑎 )

𝐻 ⁢ 𝑇 ⁢ 𝑀 𝑖 ⁢ ( 𝐱 , 𝑎 ) − 𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 ⁢ ( 𝐱 , 𝑎 ) ;

3). 𝐻 ⁢ 𝑇 ⁢ 𝑀 𝑖 ⁢ ( 𝐱 , 𝑎 )

𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝐱 , 𝑎 ) − 𝐻 ⁢ 𝐼 ⁢ 𝐸 𝔾 ⁢ ( − 𝑖 ) ⁢ ( 𝐱 , 𝑎 ) .

Proofs are presented for both theorems in the appendix. The main results under Theorems 6.1 and 6.2 can be interpreted analogously as in Theorems 4.1 and 4.2. The extended functional ISL is given in Algorithm 2.

7 Simulation Studies

We test the ability of our method on estimating HCGs and HCEs in a variety of situations. The computing infrastructure used is a virtual machine at Google Colab with the Pro tier for the majority of the computations, and a cluster server with 30 processor cores with 15GB of random access memory for computing bootstrap estimates in parallel.

Scenario generation. We generate 8 scenarios. Scenario 1 (S1) is the simple case in which only 𝑿 , 𝐴 , and 𝑌 have non-zero weights; Scenario 2 (S2) has parallel mediators ( 𝑩 𝑴 ⊤

𝟎 𝑠 × 𝑠 ); and Scenario 3 (S3) has sequentially ordered mediators ( 𝑩 𝑴 ⊤ ≠ 𝟎 𝑠 × 𝑠 ). The true causal graphs for S1 and S2 are randomly generated given structural constraints, while the causal graph for S3 is generated using the Erdős-Reńyi (ER) model with a degree of 2. The weights in graphs are randomly chosen from { − 1 , 0 , 1 } . Each of these scenarios sets 𝑝

2 and 𝑠

6 for a total of 12 nodes in the graph (including treatment, interaction, and outcome). In addition, we require that there is at least one non-zero interaction term to ensure that causal graphs are heterogeneous as discussed in Remark 3.1. However, we also study two alternative cases: (1) a variant of S3 in which there is no interaction term (S3nx) and (2) a variant of S3 in which 𝑿 is a moderator as defined by Kraemer et al. [14] (S3mod), that is, 𝑿 is independent of 𝐴 and there is an interaction term. Scenario 4 (S4), 5 (S5), and 6 (S6) are higher-dimensional versions of S3, with 𝑠

38 in S4, 𝑝

18 in S5, and 𝑠

10 plus 𝑝

22 in S6, where the underlying graphs are generated by the ER model with a degree of 4. The rest settings are the same as in S3. The sample size, 𝑛 , is chosen from { 500 , 1000 } . For S4-S6, the sample size is fixed at 𝑛

1000 . We also set the noise to be standard gaussian for 𝑿 , 𝐴 , 𝑴 , and 𝑌 . Given the noise and the edge weights, Model 1 can be directly used to generate the data by setting 𝑿 as its noise and using 𝑿 to generate 𝐴 with the edge weights and associated noise. 𝑿 and 𝐴 can then be used with the edge weights and associated noise to generate 𝑴 which is in turn used to generate 𝑌 in a similar manner. After this process is complete a baseline value of 1.0 is added to the response. Finally, the column-wise mean value for the dataset is subtracted from the dataset. The seeds used to generate the 100 datasets used for each simulation scenario are 1 through 100.

(a) True (b) ISL( 𝑛

500 ) (c) 𝑿

[ 1 , 0 ] (d) 𝑿

[ 0 , 1 ] Figure 2: Results for S3 with subgraphs for different 𝑿 .

Simulation results. We apply the proposed method to estimate the heterogeneous causal graphs and effects. The averaged estimated matrix 𝑩 ^ ⊤ over 100 replicates under different sample sizes with its true causal graph are summarized in Figure D.1 to D.6 in Appendix for S1 to S6 to evaluate the proposed method. Each plot has a yellow box that identifies the inner weighted adjacency matrix for mediators and intersecting orange lines to emphasize the direct effects on or from the treatment. The corresponding accuracy metrics, here we use the false discovery rate (FDR), the true positive rate (TPR), and the structural Hamming distance (SHD), with their standard errors are provided in Tables 1 and 2. The bias and standard error of the estimated heterogeneous causal effects for S1-S3mod are summarized in Tables D.1-D.2 in the Appendix. The effects for S4-S6 are omitted for brevity. In addition, we compare our method with NOTEARS proposed by Zheng et al. [45] and DAG-GNN proposed by Yu et al. [43] for S1 to S3 with 𝑛

500 , as summarized in Tables D.3 and D.4. The penalty term in NOTEARS is set at 𝑙 1

0.03 the settings for DAG-GNN are left as default to achieve optimal performance. Here, for all estimated causal graphs, we set a threshold of 0.4 as the maximum absolute value that an edge weight needs to be to be considered nonzero. We also conduct a bootstrap simulation using 100 runs of 1000 bootstrap resamples to create 100 bootstrap CIs for each causal effect associated with S3. The average coverage probabilities are reported in Table D.5 with 𝛼

0.05 . Here we note that in estimating graphs for use in constructing these confidence intervals, thresholding is used to accurately determine the causal skeleton. As will be seen in the real data section, thresholding can sometimes lead to cases in which all bootstrap samples return the same estimate yielding a confidence interval that only contains one value. While this is not ideal, it should be noted that this is not an error, but a consequence of using accuracy-improving techniques, such as thresholding.

As can be seen in Table 1 and 2, our method can estimate the weighted adjacency matrix of a causal graph with high accuracy which in turn leads to highly accurate estimates for the causal effects as seen in Tables D.1-D.2. The accuracy also increases marginally as the sample size increases. Our method can also be seen, in Figures D.1 to D.3 and Table D.3, to perform better than NOTEARS. Furthermore, our method can be seen to perform well in scenarios without interaction and in the case in which moderators that are independent of the treatment are used. In the higher-dimension case, it can be seen in Table 2 and D.6 that the accuracy of the proposed method remains quite high. S5 had the best accuracy metrics of the three and S4 had the worst, with S6 in the middle. It can then be concluded that in general, it is easier to estimate a graph with more potential moderators than with potential mediators. Here, SHD should be interpreted given the total possible errors a model could make. Since S4 has 44 nodes, 44 2 / 2

968 errors are possible. So an SHD of 14.67 for S4 would be equivalent to an accuracy of 98.5%.

8 Real Data Analysis

To demonstrate the practical usefulness of our method, we apply it to investigate the causal relationship of psychiatric disorders for trauma survivors using data collected from the AURORA study. The response of interest is post-traumatic stress disorder (PTSD) measured three months after trauma. The event of interest is pre-trauma insomnia of trauma survivors. Peri-traumatic (PT) PTSD, stress, acute distress (ASD), and depression measured 2 weeks after the trauma event are included as potential mediators. Moderators used for this study include age, gender, race, education, pre-trauma physical and mental health, perceived stress level, neuroticism, and childhood trauma. Before applying our method, categorical variables were one-hot encoded, numerical variables were centered, and missing data were removed. Results are summarized in causal graphs in Figures 6(a) - 9(b) with higher resolution for easier viewing. Motivations and overall effects are summarized in Appendix C.

Table 1: Accuracy metrics (standard errors) for 𝑛

500 . FDR TPR SHD S1 0.00(0.00) 1.00(0.00) 0.00(0.00) S2 0.01(0.02) 1.00(0.03) 0.25(0.86) S3 0.00(0.01) 1.00(0.01) 0.04(0.24) S3nx 0.00(0.01) 1.00(0.01) 0.03(0.22) S3mod 0.00(0.00) 1.00(0.01) 0.02(0.14) Table 2: Accuracy metrics (standard errors) for 𝑛

1000 . FDR TPR SHD S1 0.00(0.00) 1.00(0.00) 0.00(0.00) S2 0.00(0.00) 1.00(0.01) 0.01(0.10) S3 0.00(0.00) 1.00(0.00) 0.00(0.00) S3nx 0.00(0.00) 1.00(0.00) 0.00(0.00) S3mod 0.00(0.00) 1.00(0.00) 0.00(0.00) S4 0.03(0.01) 0.90(0.02) 14.67(3.45) S5 0.00(0.01) 1.00(0.02) 0.43(2.53) S6 0.00(0.01) 0.99(0.02) 2.39(6.26) Figure 3: 95 % Confidence intervals for effects of male and female subgraphs, produced using 1000 bootstrap samples.

Heterogeneous causal effects for this real data example are characterized by the interactions of pre-trauma insomnia with moderators, such as gender and race. These interaction terms can affect the effect of pre-trauma insomnia to response, or to potential mediators. Results are summarized in Figures E.2 - E.6. Results in Figure E.3 suggest the interaction of pre-trauma insomnia with Gender, education, and lifetime chronic stress are marginally significant for 3-month PTSD which indicates that the direct effect of pretrauma insomnia to 3-month PTSD is moderated by gender, education level, and level of chronic stress. In Figure E.2 and E.4 to E.6, we can also observe that the chronic stress level moderate (increase) the effect of pretrauma insomnia to peritraumatic distress, stress, PTSD, and depression. On the other hand, education level decreases the effect of pretrauma insomnia on the four peritraumatic disorders. Finally, Figure E.4 suggest that gender moderate the effect of pretrauma insomnia to peritraumatic stress but not the other three peritraumatic disorders. Heterogeneous causal effects for male and female trauma survivors are shown in Figure 3. Results suggest that the total, direct and indirect effects of pretrauma insomnia to 3-month PTSD are (marginally) significant for male trauma survivors but not for females, and the effect of pretrauma insomnia on 3-month PTSD are mainly mediated by peritrauma stress and PTSD. These results also indicate that preventive intervention of 3-month PTSD after trauma exposure that focuses on reducing pertrauma stress and PTSD is more likely to be effective for male than for female trauma survivors. The causal effects for the male and female subgraph are summarized in Tables E.2 and E.3, respectively.

Acknowledgments

Research reported in this publication was supported in part by the National Heart, Lung, And Blood Institute of the National Institutes of Health under Award Number T32HL079896. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health.

References Athey & Imbens [2015] Athey, S. and Imbens, G. W. Machine learning methods for estimating heterogeneous causal effects. stat, 1050(5):1–26, 2015. Benjamini & Yekutieli [2001] Benjamini, Y. and Yekutieli, D. The control of the false discovery rate in multiple testing under dependency. Annals of statistics, pp.  1165–1188, 2001. Bühlmann et al. [2014] Bühlmann, P., Peters, J., Ernest, J., et al. Cam: Causal additive models, high-dimensional order search and penalized regression. The Annals of Statistics, 42(6):2526–2556, 2014. Cai et al. [2020] Cai, H., Song, R., and Lu, W. Anoce: Analysis of causal effects with multiple mediators via constrained structural learning. In International Conference on Learning Representations, 2020. Chakrabortty et al. [2018] Chakrabortty, A., Nandy, P., and Li, H. Inference for individual mediation effects and interventional effects in sparse high-dimensional causal graphical models. arXiv preprint arXiv:1809.10652, 2018. Efron & Tibshirani [1994] Efron, B. and Tibshirani, R. J. An introduction to the bootstrap. CRC press, 1994. Farrell et al. [2021] Farrell, M. H., Liang, T., and Misra, S. Deep neural networks for estimation and inference. Econometrica, 89(1):181–213, 2021. Feczko et al. [2019] Feczko, E., Miranda-Dominguez, O., Marr, M., Graham, A. M., Nigg, J. T., and Fair, D. A. The heterogeneity problem: approaches to identify psychiatric subtypes. Trends in cognitive sciences, 23(7):584–601, 2019. Hernán [2004] Hernán, M. A. A definition of causal effect for epidemiological research. Journal of Epidemiology & Community Health, 58(4):265–271, 2004. Hernán et al. [2000] Hernán, M. Á., Brumback, B., and Robins, J. M. Marginal structural models to estimate the causal effect of zidovudine on the survival of hiv-positive men. Epidemiology, pp.  561–570, 2000. Imai & Yamamoto [2013] Imai, K. and Yamamoto, T. Identification and sensitivity analysis for multiple causal mechanisms: Revisiting evidence from framing experiments. Political Analysis, 21(2):141–171, 2013. Jessica et al. [2011] Jessica, M., Tian, L., and Cai, T. A perturbation method for inference on regularized regression estimates. J Am Stat Association, 106(496):1371–1382, 2011. Kalisch & Bühlmann [2007] Kalisch, M. and Bühlmann, P. Estimating high-dimensional directed acyclic graphs with the pc-algorithm. Journal of Machine Learning Research, 8(Mar):613–636, 2007. Kraemer et al. [2002] Kraemer, H. C., Wilson, T. G., Fairburn, C. G., and Agras, S. W. Mediators and moderators of treatment effects in randomized clinical trials. Archives of General Psychiatry, 59(10):877–883, 2002. Künzel et al. [2019] Künzel, S. R., Sekhon, J. S., Bickel, P. J., and Yu, B. Metalearners for estimating heterogeneous treatment effects using machine learning. Proceedings of the national academy of sciences, 116(10):4156–4165, 2019. Maathuis et al. [2009] Maathuis, M. H., Kalisch, M., Bühlmann, P., et al. Estimating high-dimensional intervention effects from observational data. The Annals of Statistics, 37(6A):3133–3164, 2009. Marquand et al. [2016] Marquand, A. F., Wolfers, T., Mennes, M., Buitelaar, J., and Beckmann, C. F. Beyond lumping and splitting: a review of computational approaches for stratifying psychiatric disorders. Biological psychiatry: cognitive neuroscience and neuroimaging, 1(5):433–447, 2016. McLean et al. [2020] McLean, S. A., Ressler, K., Koenen, K. C., Neylan, T., Germine, L., Jovanovic, T., Clifford, G. D., Zeng, D., An, X., Linnstaedt, S., et al. The aurora study: a longitudinal, multimodal library of brain biology and function after traumatic stress exposure. Molecular psychiatry, 25(2):283–296, 2020. Muller et al. [2005] Muller, D., Judd, C. M., and Yzerbyt, V. Y. When moderation is mediated and mediation is moderated. Journal of Personality and Social Psychology, 89(6), 2005. Nandy et al. [2017] Nandy, P., Maathuis, M. H., Richardson, T. S., et al. Estimating the effect of joint interventions from observational data in sparse high-dimensional settings. The Annals of Statistics, 45(2):647–674, 2017. Neylan et al. [2021] Neylan, T. C., Kessler, R. C., Ressler, K. J., Clifford, G., Beaudoin, F. L., An, X., Stevens, J. S., Zeng, D., Linnstaedt, S. D., Germine, L. T., et al. Prior sleep problems and adverse post-traumatic neuropsychiatric sequelae of motor vehicle collision in the aurora study. Sleep, 44(3):zsaa200, 2021. Nie & Wager [2021] Nie, X. and Wager, S. Quasi-oracle estimation of heterogeneous treatment effects. Biometrika, 108(2):299–319, 2021. Ning & Liu [2017] Ning, Y. and Liu, H. A general theory of hypothesis tests and confidence regions for sparse high dimensional models. The Annals of Statistics, 45(1):158–195, 2017. Panizza & Presbitero [2014] Panizza, U. and Presbitero, A. F. Public debt and economic growth: is there a causal effect? Journal of Macroeconomics, 41:21–41, 2014. Pearl [2000] Pearl, J. Causality: models, reasoning and inference, volume 29. Springer, 2000. Pearl et al. [2009] Pearl, J. et al. Causal inference in statistics: An overview. Statistics surveys, 3:96–146, 2009. Peters & Bühlmann [2014] Peters, J. and Bühlmann, P. Identifiability of gaussian structural equation models with equal error variances. Biometrika, 101(1):219–228, 2014. Peters et al. [2014] Peters, J., Mooij, J. M., Janzing, D., and Schölkopf, B. Causal discovery with continuous additive noise models. 2014. Peters et al. [2017] Peters, J., Janzing, D., and Schölkopf, B. Elements of causal inference: foundations and learning algorithms. The MIT Press, 2017. Ramsey et al. [2017] Ramsey, J., Glymour, M., Sanchez-Romero, R., and Glymour, C. A million variables and more: the fast greedy equivalence search algorithm for learning high-dimensional graphical causal models, with an application to functional magnetic resonance images. International journal of data science and analytics, 3(2):121–129, 2017. Robins [2003] Robins, J. M. Semantics of causal dag models and the identification of direct and indirect effects. Highly Structured Stochastic Systems, pp.  70–81, 2003. Rolland et al. [2022] Rolland, P., Cevher, V., Kleindessner, M., Russell, C., Janzing, D., Schölkopf, B., and Locatello, F. Score matching enables causal discovery of nonlinear additive noise models. In Chaudhuri, K., Jegelka, S., Song, L., Szepesvari, C., Niu, G., and Sabato, S. (eds.), Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp.  18741–18753. PMLR, 17–23 Jul 2022. URL https://proceedings.mlr.press/v162/rolland22a.html. Shalit et al. [2017] Shalit, U., Johansson, F. D., and Sontag, D. Estimating individual treatment effect: generalization bounds and algorithms. In International Conference on Machine Learning, pp. 3076–3085. PMLR, 2017. Shi & Li [2021] Shi, C. and Li, L. Testing mediation effects using logic of boolean matrices. Journal of the American Statistical Association, 2021. Shimizu et al. [2006] Shimizu, S., Hoyer, P. O., Hyvärinen, A., and Kerminen, A. A linear non-gaussian acyclic model for causal discovery. Journal of Machine Learning Research, 7(Oct):2003–2030, 2006. Spirtes et al. [2000a] Spirtes, P., Glymour, C., Scheines, R., Kauffman, S., Aimale, V., and Wimberly, F. Constructing bayesian network models of gene expression networks from microarray data. 2000a. Spirtes et al. [2000b] Spirtes, P., Glymour, C. N., Scheines, R., and Heckerman, D. Causation, prediction, and search. MIT press, 2000b. Tchetgen & Vanderweele [2014] Tchetgen, E. J. and Vanderweele, T. J. On identification of natural direct effects when a confounder of the mediator is directly affected by exposure. Epidemiology, 25(2):282–291, 2014. Vanderweele [2016] Vanderweele, T. J. Mediation analysis: A practitioner’s guide. Annual Review of Public Health, 37(1):17–32, 2016. Vansteelandt & Daniel [2017] Vansteelandt, S. and Daniel, R. M. Interventional effects for mediation analysis with multiple mediators. Epidemiology (Cambridge, Mass.), 28(2):258, 2017. Vansteelandt et al. [2019] Vansteelandt, S., Linder, M., Vandenberghe, S., Steen, J., and Madsen, J. Mediation analysis of time-to-event endpoints accounting for repeatedly measured mediators subject to time-varying confounding. Statistics in Medicine, 38(24):4828–4840, 2019. Wager & Athey [2018] Wager, S. and Athey, S. Estimation and inference of heterogeneous treatment effects using random forests. Journal of the American Statistical Association, 113(523):1228–1242, 2018. Yu et al. [2019] Yu, Y., Chen, J., Gao, T., and Yu, M. Dag-gnn: Dag structure learning with graph neural networks. arXiv preprint arXiv:1904.10098, 2019. Zhang & Zhang [2014] Zhang, C.-H. and Zhang, S. S. Confidence intervals for low dimensional parameters in high dimensional linear models. Journal of the Royal Statistical Society. Series B (Statistical Methodology), 76:217–242, 2014. Zheng et al. [2018] Zheng, X., Aragam, B., Ravikumar, P. K., and Xing, E. P. Dags with no tears: Continuous optimization for structure learning. In Advances in Neural Information Processing Systems, pp. 9472–9483, 2018. Zheng et al. [2020] Zheng, X., Dan, C., Aragam, B., Ravikumar, P., and Xing, E. Learning sparse nonparametric dags. In International Conference on Artificial Intelligence and Statistics, pp.  3414–3425. PMLR, 2020. Zhu & Chen [2019] Zhu, S. and Chen, Z. Causal discovery with reinforcement learning. arXiv preprint arXiv:1906.04477, 2019. Appendix \parttoc Appendix A More Details on Framework A.1 Complete Definitions for Assumptions and further discussion

In order to understand the Causal Markov and Faithfulness assumptions, one must first understand the concept of D-separation.

Definition A.1 (D-separation).

Nodes, 𝑋 and 𝑌 , are d-separated by a set of nodes, 𝑍 , if and only if for every path, 𝑝 , there exists a node, 𝑚 ∈ 𝑍 , that extends 𝑝 ( 𝑖 → 𝑚 → 𝑗 ) or forks 𝑝 ( 𝑖 ← 𝑚 → 𝑗 ) and for any node, 𝑐 , along 𝑝 that is a so-called collider ( 𝑖 → 𝑚 ← 𝑗 ), 𝑐 and all descendents of 𝑐 are not in 𝑍 [26].

Given that 𝑍 d-separates 𝑋 and 𝑌 and 𝑋 preceeds 𝑌 causally, the implication of d-seperation is that 𝑋 ⟂ ⟂ 𝑌 | 𝑍 .

Definition A.2 (Causal Markov assumption).

For a given causal graph, 𝐺

{ 𝑍 , 𝐄 } , the set of independences among the nodes, 𝑍 , contains the set of independences implied by d-separation.

Definition A.3 (Faithfulness assumption).

For a given causal graph, 𝐺

{ 𝑍 , 𝐄 } , the set of independences among the nodes, 𝑍 , is exactly described by the set of independences implied by applying d-separation to 𝐺 .

It should be noted that the assumptions made in this paper are common in the literature of causal inference. Please refer to [25; 26; 1; 20; 42; 15; 22] for discussions of these assumptions and their impact. There are a few future extensions to relax or diagnose these assumptions. For instance, a full sensitivity analysis of the assumptions would be useful to the field when it is hard to include all variables causally related to any variable in the data in practice. In addition, utilizing the instrumental variables in the contexts of causal graphs with multiple mediators may be beneficial to address no unmeasured confounders. We leave these directions for future work.

A.2 Further Discussion Regarding the Identifiability of the Causal Graph

Under the linear SEM, when the noises are Gaussian distributed, the model yields the class of standard linear-Gaussian model that has been studied in Spirtes et al. [36]; Peters et al. [29]. If the noises have equal variances, the DAG is uniquely identifiable from the observational data according to Peters & Bühlmann [27]. If the functions are linear but the noises are non-Gaussian, the true DAG can be uniquely identified under favorable conditions described in Shimizu et al. [35]. Also, the DAG can be naturally identified from the observational data if the corresponding MEC contains only one DAG, however, this cannot be known. The recent score-based causal discovery methods [45; 43; 47; 4] usually consider synthetic datasets that are generated from fully identifiable models so that it is practically meaningful to evaluate the estimated graph with respect to the true DAG. The non-linear case shares similar identifiability statements, with more details provided in Sections 2.1 and 3.3 in [46].

A.3 Comparison between Moderated Mediation and Mediated Moderation

The interaction seen in Model (1) is an example of moderation in which the relationship between two variables depends on another. In this case, the moderator would be 𝑿 , and the relationships being moderated would be 𝐴 and 𝑴 and 𝐴 and 𝑌 . For those familiar with moderation, our setting may seem similar to the moderated mediation and/or mediated moderation settings. In Figure A.1, we have an example of moderation, moderated mediation, and mediated moderation taken from Muller et al. [19]’s paper on the topic. Here 𝑋 is the treatment, 𝑀 ⁢ 𝑒 is the mediator, 𝑌 is the response and 𝑀 ⁢ 𝑜 is the moderator, not shown in the figure. Here it can be seen that 𝑀 ⁢ 𝑜 moderates the relationship between 𝑋 and 𝑌 , which is the example of moderation described earlier. 𝑀 ⁢ 𝑜 also moderates the relationship between 𝑋 and 𝑀 ⁢ 𝑒 and 𝑀 ⁢ 𝑒 and 𝑌 which is an example of mediated moderation and moderated mediation respectively.

Figure A.1: Illustration of moderation, moderated mediation, and mediated moderation.

In their paper, Muller et al. [19] give equations similar to the linear SEM equations above to model both of these settings:

𝑀 ⁢ 𝑒

𝛽 50 + 𝛽 51 ⁢ 𝑋 + 𝛽 52 ⁢ 𝑀 ⁢ 𝑜 + 𝛽 53 ⁢ 𝑋 ⁢ 𝑀 ⁢ 𝑜 + 𝜖 5 ,

𝑌

𝛽 60 + 𝛽 61 ⁢ 𝑋 + 𝛽 62 ⁢ 𝑀 ⁢ 𝑜 + 𝛽 63 ⁢ 𝑋 ⁢ 𝑀 ⁢ 𝑜 + 𝛽 64 ⁢ 𝑀 ⁢ 𝑒 + 𝛽 65 ⁢ 𝑀 ⁢ 𝑒 ⁢ 𝑀 ⁢ 𝑜 + 𝜖 6 .

If we restate this as a linear SEM, the difference between our setting and the moderated settings can be seen:

[ 𝑀 ⁢ 𝑜

𝑋

𝑋 ⁢ 𝑀 ⁢ 𝑜

𝑀 ⁢ 𝑒

𝑀 ⁢ 𝑒 ⁢ 𝑀 ⁢ 𝑜

𝑌 ]

[ 0

0

0

𝛽 50

0

𝛽 60 ] + [ 0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

𝛽 52

𝛽 51

𝛽 53

0

0

0

0

0

0

0

0

0

𝛽 62

𝛽 61

𝛽 63

𝛽 64

𝛽 65

0 ] ⁢ [ 𝑀 ⁢ 𝑜

𝑋

𝑋 ⁢ 𝑀 ⁢ 𝑜

𝑀 ⁢ 𝑒

𝑀 ⁢ 𝑒 ⁢ 𝑀 ⁢ 𝑜

𝑌 ] + 𝜖 . (A.1)

Comparing this model to our model, we can see that our model is more general. The moderator in this model is allowed to directly affect the treatment in our model, that is to say, we allow the confounder to moderate relations between other variables.

A.4 Further Discussion on Heterogeneous Causal Graphs

By heterogeneity, we are referring to the differences that may exist between subgroups within a population. We pose these differences via the way in which moderators affect and interact with the treatment variable in the causal graph. This leads to the possibility that different subgroups may have different causal graphs. This set of causal graphs is what we refer to as heterogeneous causal graphs (HCGs). Note that we assume here for practical reasons that 𝑿 is a set of pre-treatment confounders and the topological order of 𝐴 is lower than that of 𝑌 , i.e. the causal direction of the edge between 𝐴 and 𝑌 is assumed. Furthermore, the existence of any other edge is not assumed and may be different among the HCGs depending on how 𝑿 moderates 𝐴 . The model presented in this work, given the topological assumption from earlier, will not lead to HCGs with the same edge that differ in causal direction, except that under a certain value of 𝒙 the edge from 𝐴 to 𝑴 and 𝐴 to 𝑌 may disappear based on the results in section 3.2. Such changes in causal edges from the treatment are owing to the 𝑿 ⁢ 𝐴 interactions we considered.

Following a similar logic, theoretically, we could allow a fully heterogeneous causal relationship among mediators, including changes in causal direction, by adding 𝑿 ⁢ 𝑴 interactions to the model such that 𝑿 would moderate the way mediators affect each other (see Section A.5). A “fully heterogeneous” model may not be practically necessary since it is very uncommon to expect the causal direction to be heterogeneous. The slightly restricted version we proposed in this study should be able to address the majority of applied research questions with respect to heterogeneous causal relationships.

A.5 Adding XM Interaction to Model 1

In this section, we introduce an extension of Model 1 that includes 𝑿 ⁢ 𝑴 interaction. Note that this interaction only includes a term for the response and does not include a term for mediators, i.e. we assume that 𝑿 does not moderate how mediators affect other mediators. This is done mainly for three practical reasons: Firstly, we believe practitioners may not find value in modeling this relationship. Secondly, modeling this relationship dramatically increases the number of quantities that need estimating and thus increases the estimation error. Thirdly, including this term would not allow for a closed-form formula for the effects as we have done previously for Model 1 which reduces its interpretability.

𝑝

1

𝑝

𝑠

𝑠 * 𝑝

1 ⁢ [ 𝑿

𝐴

𝑿 ⁢ 𝐴

𝑴

𝑿 ⊗ 𝑴

𝑌 ]

[ 𝟎

𝟎

𝟎

𝟎

𝟎

𝟎

𝜹 𝑿

0

𝟎

𝟎

𝟎

0

𝟎

𝟎

𝟎

𝟎

𝟎

𝟎

𝑩 𝑿 ⊤

𝜷 𝑨

𝑩 𝑿 ⁢ 𝑨 ⊤

𝑩 𝑴 ⊤

𝟎

𝟎

𝟎

𝟎

𝟎

𝟎

𝟎

𝟎

𝜸 𝑿

𝛾 𝐴

𝜸 𝑿 ⁢ 𝑨

𝜸 𝑴

𝑣 ⁢ 𝑒 ⁢ 𝑐 ⁢ ( 𝚪 𝑿 ⁢ 𝑴 ) ⊤

0 ] ⁢ [ 𝑿

𝐴

𝑿 ⁢ 𝐴

𝑴

𝑿 ⊗ 𝑴

𝑌 ] + [ 𝜖 𝑿

𝜖 𝐴

𝑿 ⁢ 𝐴

𝜖 𝑴

𝑿 ⊗ 𝑴

𝜖 𝑌 ] .

Theorem A.1.

Under the modified assumptions and model above:

The natural direct effect

𝐷 ⁢ 𝐸

𝛾 𝐴 + 𝜸 𝑿 ⁢ 𝑨 ⁢ 𝒙 ;

The natural indirect effect is

𝐼 ⁢ 𝐸

( 𝜸 𝑴 + 𝒙 ⊤ ⁢ 𝚪 𝑿 ⁢ 𝑴 ) ⁢ ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝜷 𝑨 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒙 ) ;

The total effect of 𝐴 on 𝑌 given 𝑋 is

𝑇 ⁢ 𝐸

𝛾 𝐴 + 𝜸 𝑿 ⁢ 𝑨 ⁢ 𝒙 + ( 𝜸 𝑴 + 𝒙 ⊤ ⁢ 𝚪 𝑿 ⁢ 𝑴 ) ⁢ ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝜷 𝑨 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒙 ) ,

where 𝚪 𝐗 ⁢ 𝐌 is a 𝑝 by 𝑠 coefficient matrix and 𝑣 ⁢ 𝑒 ⁢ 𝑐 ⁢ ( 𝚪 𝐗 ⁢ 𝐌 ) ⊤ is the vectorization of this matrix.

As one might expect, when taking 𝑿 ⁢ 𝑴 interaction into account, the indirect effect of 𝐴 changes accordingly.

Appendix B More Details of Algorithms B.1 ISL Algorithm Specifics

In this section, we provide more details for the proposed method we call Interactive Structural Learning (ISL). We start with the extension of the base learner DAG-GNN Yu et al. [43] in our proposed framework with confounder-based interaction, with the corresponding implementation details below. The complete pseudocode is also provided below. Other score-based algorithms are also applicable to our framework such as causal discovery with RL [47] expect the NOTEARS method [45] which requires differentiable constraints to support their optimization algorithm.

We use Yu et al. [43]’s deep generative approach for causal structural learning as an example to detail the estimation of 𝑩 . First, we convert Model (1) and treat the random error as independent latent variables such that

𝑫

( 𝑰 2 ⁢ 𝑝 + 𝑠 + 2 − 𝑩 ⊤ ) − 1 ⁢ 𝜖 .

We adopt the variational autoencoder model in Yu et al. [43] to generate 𝑫 using two multilayer perceptrons (MLPs) as the encoder and the decoder with mean zero noise 𝜖 . The goal is to minimize the evidence lower bound 𝑓 such that the generated data is close to the observed data as follows,

𝑓 ⁢ ( 𝑩 , 𝜃 | 𝑫 )

∑ 𝑖

1 2 ⁢ 𝑝 + 𝑠 + 2 Δ 𝐾 ⁢ 𝐿 ⁢ { 𝑞 ⁢ ( 𝜖 | 𝑫 𝑖 ) ∥ 𝑝 ⁢ ( 𝜖 ) } / ( 2 ⁢ 𝑝 + 𝑠 + 2 ) − 𝐸 𝑞 ⁢ ( 𝜖 | 𝑫 𝑖 ) ⁢ { log ⁡ 𝑝 ⁢ ( 𝑫 𝑖 | 𝜖 ) } ,

where 𝑫 𝑖 is the 𝑖 -th variable in 𝑫 , 𝜃 is a vector of weights for MLPs, Δ 𝐾 ⁢ 𝐿 refers to the KL divergence, 𝑞 ⁢ ( 𝜖 | 𝑫 𝑖 ) is the reconstructed posterior distribution, 𝑝 ⁢ ( 𝜖 ) is the prior distribution, and 𝑝 ⁢ ( 𝑫 𝑖 | 𝜖 ) is the likelihood function. This objective can be minimized using any preferred black-box stochastic optimization.

The pseudocode of Interactive Structural Learning (ISL) is provided in Algorithm 3.

Remark B.1.

Although ISL is able to identify causal heterogeneity, to have a complete examination of such causal heterogeneity, one has to apply the method to all possible configurations of the moderators. This may be a limitation in an extremely high dimensional setting, though we demonstrate a reasonably good performance of our method in Section 7 with 𝑝

22 and more than 50 nodes in total. We leave the variable selection in causal graphs as a future investigation.

B.2 Time Complexity of ISL Algorithm

Our method uses another causal discovery method as a base in order to find the estimated topological ordering of the nodes. Due to this, the time complexity of our method is based on the base method used. Let the time complexity of the base method be 𝑔 ⁢ ( 𝑁 , 𝑛 ) where 𝑁 is the data sample size, and the number of nodes, 𝑛

2 ⁢ 𝑝 + 𝑠 + 2 where 𝑝 is the number of confounders/moderators and 𝑠 is the number of mediators. Let the time complexity of LASSO be 𝑓 ⁢ ( 𝑁 , 𝑛 ) . Computing the HCEs requires inverting a size 𝑛 matrix and a size 𝑛 − 1 matrix 𝑠 times. Putting this together, the time complexity of our method is 𝑂 ⁢ ( 𝑔 ⁢ ( 𝑁 , 𝑛 ) + 𝑓 ⁢ ( 𝑁 , 𝑛 ) + 𝑛 2 ) for 𝑠 << 𝑛 and 𝑂 ⁢ ( 𝑔 ⁢ ( 𝑁 , 𝑛 ) + 𝑓 ⁢ ( 𝑁 , 𝑛 ) + 𝑠 ⁢ 𝑛 2 ) otherwise.

B.3 Full Algorithms   Input: data 𝑫 , dimension of baseline information 𝑝 , dimension of mediators 𝑠 , number of epochs 𝐻 , max number of iterations 𝐾 , parameter upper bound 𝑈 , original learning rate 𝑟 0 , tolerance for constraint 𝛿 , tuning parameters 𝜌 and 𝜏 , tolerance for estimating causal skeleton 𝛿 𝑏 .   Initialize: 𝜆 1 ← 0 ; 𝜆 2 ← 0 ; 𝑐 ← 1 ; 𝑑 ← 1 ; 𝑟 ← 𝑟 0 ; 𝑩 ^ 0 ← 𝟎 ; 𝑩 ^ ← 𝟎 ; ℎ 1 𝑜 ⁢ 𝑙 ⁢ 𝑑 ← ∞ ; ℎ 2 𝑜 ⁢ 𝑙 ⁢ 𝑑 ← ∞ ; Encoder weights 𝑊 1 , 𝑊 2 and Decoder weights 𝑊 3 , 𝑊 4 with Gaussian initialization.   for  𝑘

0 to 𝐾 − 1  do      repeat         for  𝑖

0 to 𝐻 − 1  do            1. Compute the distribution parameters for the noise using the encoder:
( 𝝁 𝜖 , 𝝈 𝜖 ) ← ( 𝑰 2 ⁢ 𝑝 + 𝑠 + 2 − ( 𝑩 ^ 0 ) ⊤ ) ⁢ 𝑀 ⁢ 𝐿 ⁢ 𝑃 ⁢ { 𝑫 , 𝑊 1 , 𝑊 2 }
           2. Compute the distribution parameters for the data using the decoder:
( 𝝁 𝑫 , 𝝈 𝑫 ) ← 𝑀 ⁢ 𝐿 ⁢ 𝑃 ⁢ { ( 𝑰 2 ⁢ 𝑝 + 𝑠 + 2 − ( 𝑩 ^ 0 ) ⊤ ) − 1 ⁢ 𝜖 , 𝑊 3 , 𝑊 4 }
           3. Calculate structural constraints, ℎ 1 𝑛 ⁢ 𝑒 ⁢ 𝑤 ← ℎ 1 ⁢ ( 𝑩 ^ 0 ) , ℎ 2 𝑛 ⁢ 𝑒 ⁢ 𝑤 ← ℎ 2 ⁢ ( 𝑩 ^ 0 ) , and loss ℓ ← 𝐿 ⁢ ( 𝑩 ^ 0 , 𝑊 1 , 𝑊 2 , 𝑊 3 , 𝑊 4 )            3. Use backward propagation to update 𝑩 ^ 0 and network weights { 𝑊 1 , 𝑊 2 , 𝑊 3 , 𝑊 4 }            4. Update learning rate 𝑟         end for         if  ℎ 1 𝑛 ⁢ 𝑒 ⁢ 𝑤 > 𝜌 ⁢ ℎ 1 𝑜 ⁢ 𝑙 ⁢ 𝑑 & ℎ 2 𝑛 ⁢ 𝑒 ⁢ 𝑤 > 𝜌 ⁢ ℎ 2 𝑜 ⁢ 𝑙 ⁢ 𝑑  then             𝑐 ← 𝑐 × 𝜏 ; 𝑑 ← 𝑑 × 𝜏         else if  ℎ 1 𝑛 ⁢ 𝑒 ⁢ 𝑤 > 𝜌 ⁢ ℎ 1 𝑜 ⁢ 𝑙 ⁢ 𝑑 & ℎ 2 𝑛 ⁢ 𝑒 ⁢ 𝑤 < 𝜌 ⁢ ℎ 2 𝑜 ⁢ 𝑙 ⁢ 𝑑  then             𝑐 ← 𝑐 × 𝜏         else if  ℎ 1 𝑛 ⁢ 𝑒 ⁢ 𝑤 < 𝜌 ⁢ ℎ 1 𝑜 ⁢ 𝑙 ⁢ 𝑑 & ℎ 2 𝑛 ⁢ 𝑒 ⁢ 𝑤 > 𝜌 ⁢ ℎ 2 𝑜 ⁢ 𝑙 ⁢ 𝑑  then             𝑑 ← 𝑑 × 𝜏         else            Break         end if         Update: ℎ 1 𝑜 ⁢ 𝑙 ⁢ 𝑑 ← ℎ 1 𝑛 ⁢ 𝑒 ⁢ 𝑤 ; ℎ 2 𝑜 ⁢ 𝑙 ⁢ 𝑑 ← ℎ 2 𝑛 ⁢ 𝑒 ⁢ 𝑤 ; 𝜆 1 ← 𝜆 1 × ℎ 1 𝑛 ⁢ 𝑒 ⁢ 𝑤 ; 𝜆 2 ← 𝜆 2 × ℎ 2 𝑛 ⁢ 𝑒 ⁢ 𝑤 ;         if  ℎ 1 𝑛 ⁢ 𝑒 ⁢ 𝑤 < 𝛿 & ℎ 2 𝑛 ⁢ 𝑒 ⁢ 𝑤 > 𝛿  then            Break         end if      until  𝑐 × 𝑑 < 𝑈   end for   Compute 𝑩 ^ 𝑏 , where 𝑩 ^ 𝑖 , 𝑗 𝑏

𝑩 ^ 𝑖 , 𝑗 0 > 𝛿 𝑏   for  𝑖

1 to 2 ⁢ 𝑝 + 𝑠 + 2  do      Estimate direct children of 𝑖 th node, denoted 𝐷 𝑖 , by { 𝐷 𝑗 | 𝑩 ^ 𝑖 , 𝑗 𝑏 ≠ 0 }      Update 𝑖 th row of 𝑩 ^ using coefficients of fitted LASSO model using { 𝐷 𝑗 | 𝑩 ^ 𝑖 , 𝑗 𝑏 ≠ 0 } as the predictors and 𝐷 𝑖 as the response   end for   Return 𝑩 ^ Algorithm 3 Interactive Structural Learning B.4 More Information on Rolland et al. [32]’s SCORE Method and Extended ISL

Rolland et al. [32]’s SCORE Method is based on their finding that leaf nodes can be found by using the Jacobian of the data distribution’s score function or the variance of the Jacobian. This fact is then used to estimate a topological ordering for the variables by iteratively finding a leaf node, adding it to the top of the current topological order, removing it from the graph, and repeating until all nodes have been ordered [32]. The causal graph is then estimated by using any pruning method to prune the full graph associated with the estimated topological order [32]. The SCORE algorithm is summarized below in Algorithm 4. Note that for practical reasons, the authors identify the leaf node as the node corresponding as the smallest element of the variance of the Jacobian [32]. For further information on the computation of the score function, please see Rolland et al. [32]’s paper.

  Input: data 𝑿 with 𝑑 nodes and sample size 𝑁 .   Initialize: topological order 𝜋

[ ] and nodes

{ 1 , … , 𝑑 }   for  𝑖

1 to 𝑑  do      Estimate score function 𝑠 𝑛 ⁢ 𝑜 ⁢ 𝑑 ⁢ 𝑒 ⁢ 𝑠      Estimate variance 𝑉 𝑗

Var 𝑋 nodes ⁢ [ 𝛿 ⁢ 𝑠 𝑗 ⁢ ( 𝑋 ) 𝛿 ⁢ 𝑥 𝑗 ]      Find the leaf node: 𝑙 ← nodes ⁢ [ arg min 𝑗 ⁢ 𝑉 𝑗 ]      Add leaf node to topological order: 𝜋 ← [ 𝑙 , 𝜋 ]      Remove 𝑙 from the node set and data matrix   end for   Prune the full DAG associated with 𝜋 using desired method   Return the pruned DAG Algorithm 4 SCORE method Appendix C More Information about the Real Data Analysis

Heterogeneity is common for many types of disorders in terms of phenotype, risk factors, treatment effect, and underlying neuro-biological mechanism. This is especially true for psychiatric disorders [17], such as depression and post-traumatic stress disorder (PTSD). Heterogeneity is one of the important obstacles that continue to hamper research for psychiatric disorders [17]. To help overcome these challenges and advance research for psychiatric disorders, the National Institutes of Mental Health, joined by several institutions and foundations, launched the Advancing Understanding of RecOvery afteR traumA (AURORA) study [18], where thousands of trauma survivors were recruited at the emergency departments after trauma exposures, and followed for one year to collect a broad range of bio-behavioral data.

One of the aims of the AURORA study is to address the heterogeneity issue by identifying homogeneous sub-types or subgroups of patients after trauma exposure (i.e., homogeneous prognosis patterns among patients with PTSD). Currently, most of the researchers for psychiatric disorders focus on stratifying patients into subgroups using different clustering algorithms [17] based on cross-sectional or longitudinal patterns using self-reported data and neuroimaging data. On the other hand, a large number of studies have also been conducted to investigate the associations among pre-trauma characteristics, peritraumatic symptoms, and post-traumatic disorders. However, due to the lack of appropriate statistical tools, very few studies have been conducted to explore heterogeneous causal relationships for psychiatric disorders.

To develop preventive interventions for psychiatric disorders, such as post-traumatic stress disorder (PTSD), in the immediate aftermath of trauma exposure, it is essential to identify risk factors that can be targeted to prevent or alleviate the corresponding disorder. For instance, a recent study by Neylan et al. [21] found that pre-trauma sleep disorders (e.g., nightmare and insomnia) are associated with 8-week PTSD, and these associations are mediated by peritraumatic outcomes (e.g., acute stress disorder) measured at 2 weeks. However, as the authors have discussed, the associations identified in this study do not support causal conclusions. Furthermore, the possible causal effect of pre-trauma sleep disorder on PTSD is very likely moderated by characteristics such as gender, race, pre-trauma mental health, etc. As a result, it is valuable to understand the heterogeneous causal pathways of pre-trauma characteristics with PTSD and other psychiatric disorders.

Under our linear model setting, the marginal effect of each covariate is directly characterized by the coefficient corresponding to the interaction term of each covariate with treatment 𝐴 . Our model can help identify real moderators from a set of potential covariates which can be potentially very useful for applied studies since prior knowledge about real moderators is often not available.

We worked with domain experts to try to take into account as many possible confounders as possible based on previous research, but it is impossible to claim that all potential confounders have been identified and included in the model. Results from this real data analysis indicate that overall the total, direct and indirect effects of pre-trauma insomnia are all marginally significant (HTE, HDE, and HIE in Figure E.1), and total mediation effects from peritraumatic acute stress and peritraumatic PTSD are also marginally significant (HME(2) and HME(3) in Figure E.1). The mediation effect from peritraumatic acute stress is mainly from the direct mediation effect (HDM(2) in Figure E.1). On the other hand, the mediation effect from peritraumatic PTSD is from indirect mediation effects (HIM(3) in Figure E.1). The causal effects for the whole population graph are summarized in Table E.1.

Appendix D Additional Simulation Figures and Tables Table D.1: Bias (standard error) of causal effects for S1-S3.
𝑛

500
𝑛

1000

S1 S2 S3 S1 S2 S3

𝐻 ⁢ 𝐷 ⁢ 𝐸 -0.01(0.05) -0.25(0.23) -0.13(0.07) -0.02(0.04) -0.29(0.09) -0.13(0.04)

𝐻 ⁢ 𝐼 ⁢ 𝐸 0.00(0.00) 0.40(0.17) 0.29(0.23) 0.00(0.00) 0.42(0.11) 0.25(0.06)

𝐻 ⁢ 𝐷 ⁢ 𝑀 1 0.00(0.00) 0.53(0.14) 0.00(0.00) 0.00(0.00) 0.52(0.06) 0.00(0.00)

𝐻 ⁢ 𝐷 ⁢ 𝑀 2 0.00(0.00) 0.00(0.03) 0.00(0.00) 0.00(0.00) 0.00(0.03) 0.00(0.00)

𝐻 ⁢ 𝐷 ⁢ 𝑀 3 0.00(0.00) 0.55(0.08) 0.13(0.20) 0.00(0.00) 0.56(0.05) 0.10(0.05)

𝐻 ⁢ 𝐷 ⁢ 𝑀 4 0.00(0.00) -0.55(0.09) 0.00(0.02) 0.00(0.00) -0.54(0.05) 0.00(0.00)

𝐻 ⁢ 𝐷 ⁢ 𝑀 5 0.00(0.00) -0.12(0.07) 0.00(0.00) 0.00(0.00) -0.11(0.05) 0.00(0.00)

𝐻 ⁢ 𝐷 ⁢ 𝑀 6 0.00(0.00) 0.00(0.04) 0.16(0.07) 0.00(0.00) 0.00(0.02) 0.15(0.04)

𝐻 ⁢ 𝐼 ⁢ 𝑀 1 0.00(0.00) 0.00(0.00) 0.00(0.00) 0.00(0.00) 0.00(0.00) 0.00(0.00)

𝐻 ⁢ 𝐼 ⁢ 𝑀 2 0.00(0.00) 0.00(0.00) 0.00(0.00) 0.00(0.00) 0.00(0.00) 0.00(0.00)

𝐻 ⁢ 𝐼 ⁢ 𝑀 3 0.00(0.00) 0.00(0.00) 0.00(0.00) 0.00(0.00) 0.00(0.00) 0.00(0.00)

𝐻 ⁢ 𝐼 ⁢ 𝑀 4 0.00(0.00) 0.00(0.00) 0.01(0.06) 0.00(0.00) 0.00(0.00) 0.00(0.00)

𝐻 ⁢ 𝐼 ⁢ 𝑀 5 0.00(0.00) 0.00(0.00) 0.12(0.09) 0.00(0.00) 0.00(0.00) 0.10(0.03)

𝐻 ⁢ 𝐼 ⁢ 𝑀 6 0.00(0.00) 0.00(0.00) 0.01(0.05) 0.00(0.00) 0.00(0.00) 0.00(0.00) Table D.2: Bias (standard error) of causal effects for S3nx and S3mod.
𝑛

500
𝑛

1000

S3nx	S3mod	S3nx	S3mod

𝐻 ⁢ 𝐷 ⁢ 𝐸 -0.11(0.07) 0.02(0.08) -0.12(0.05) 0.03(0.06)

𝐻 ⁢ 𝐼 ⁢ 𝐸 0.13(0.18) 0.73(0.15) 0.11(0.05) 0.72(0.12)

𝐻 ⁢ 𝐷 ⁢ 𝑀 1 0.00(0.00) 0.00(0.00) 0.00(0.00) 0.00(0.00)

𝐻 ⁢ 𝐷 ⁢ 𝑀 2 0.00(0.00) 0.00(0.00) 0.00(0.00) 0.00(0.00)

𝐻 ⁢ 𝐷 ⁢ 𝑀 3 -0.05(0.18) 0.49(0.12) -0.07(0.05) 0.48(0.09)

𝐻 ⁢ 𝐷 ⁢ 𝑀 4 0.00(0.00) 0.00(0.00) 0.00(0.00) 0.00(0.00)

𝐻 ⁢ 𝐷 ⁢ 𝑀 5 0.00(0.00) 0.00(0.00) 0.00(0.00) 0.00(0.00)

𝐻 ⁢ 𝐷 ⁢ 𝑀 6 0.19(0.05) 0.25(0.09) 0.18(0.02) 0.24(0.07)

𝐻 ⁢ 𝐼 ⁢ 𝑀 1 0.00(0.00) 0.00(0.00) 0.00(0.00) 0.00(0.00)

𝐻 ⁢ 𝐼 ⁢ 𝑀 2 0.00(0.00) 0.00(0.00) 0.00(0.00) 0.00(0.00)

𝐻 ⁢ 𝐼 ⁢ 𝑀 3 0.00(0.00) 0.00(0.00) 0.00(0.00) 0.00(0.00)

𝐻 ⁢ 𝐼 ⁢ 𝑀 4 0.00(0.04) 0.00(0.00) 0.00(0.00) 0.00(0.00)

𝐻 ⁢ 𝐼 ⁢ 𝑀 5 0.19(0.06) 0.22(0.09) 0.18(0.02) 0.21(0.07)

𝐻 ⁢ 𝐼 ⁢ 𝑀 6 0.00(0.04) 0.00(0.00) 0.00(0.00) 0.00(0.00) Table D.3: Accuracy metrics for S1-S3 using NOTEARS and a sample size of 500 averaged across 100 simulated datasets.
𝑛

500

FDR TPR SHD S1 0.00(0.00) 1.00(0.00) 0.00(0.00) S2 0.09(0.09) 0.90(0.11) 3.06(3.14) S3 0.10(0.09) 0.94(0.08) 2.52(1.97) Table D.4: Accuracy metrics for S1-S3 using DAG-GNN and a sample size of 500 averaged across 100 simulated datasets.
𝑛

500

FDR TPR SHD S1 0.03(0.09) 0.97(0.08) 0.14(0.42) S2 0.05(0.04) 0.97(0.07) 1.43(1.51) S3 0.03(0.05) 0.98(0.04) 0.70(1.05) (a) True (b) NOTEARS( 𝑛

500 ) (c) DAG-GNN( 𝑛

500 ) (d) ISL( 𝑛

500 ) (e) ISL( 𝑛

1000 ) Figure D.1: Estimated Causal Graph for Scenario 1 without mediator effects for 𝑛

500 and 1000 with NOTEARS and DAG-GNN shown for comparison. (a) True (b) NOTEARS( 𝑛

500 ) (c) DAG-GNN( 𝑛

500 ) (d) ISL( 𝑛

500 ) (e) ISL( 𝑛

1000 ) Figure D.2: Estimated Causal Graph for Scenario 2 with parallel mediators for 𝑛

500 and 1000 with NOTEARS and DAG-GNN shown for comparison. (a) True (b) NOTEARS( 𝑛

500 ) (c) DAG-GNN( 𝑛

500 ) (d) ISL( 𝑛

500 ) (e) ISL( 𝑛

1000 ) Figure D.3: Estimated Causal Graph for Scenario 3 with sequentially ordered mediators or 𝑛

500 and 1000 with NOTEARS and DAG-GNN shown for comparison. (a) True (b) 𝑛

500 (c) 𝑛

1000 Figure D.4: Estimated Causal Graphs for Scenario 3 when 𝑋 is a moderator (d to f) with sample sizes of 𝑛

500 and 1000 . (a) True (b) 𝑛

500 (c) 𝑛

1000 Figure D.5: Estimated Causal Graphs for Scenario 3 with no interaction (a to c) with sample sizes of 𝑛

500 and 1000 . (a) True S4 (b) S4 estimate (n=1000) (c) S4 estimate (n=1500) (d) True S5 (e) S5 estimate (n=1000) (f) S5 estimate (n=1500) (g) True S6 (h) S6 estimate (n=1000) (i) S6 estimate (n=1500) Figure D.6: Results for Scenario 4 with more mediators, Scenario 5 with more moderators, and Scenario 6 with more mediators and moderators with sample sizes of 𝑛

1000 and 1500 . Table D.5: Coverage for causal effects and interaction edge weights ( 𝑿 ⁢ 𝐴 → 𝑌 ) for S3 averaged across 100 simulated datasets using 1000 bootstrap resamples each with the significance level of 0.05 . Percentile Gaussian

𝐻 ⁢ 𝐷 ⁢ 𝐸 0.94 0.88

𝐻 ⁢ 𝐼 ⁢ 𝐸 0.76 0.90

𝐻 ⁢ 𝐷 ⁢ 𝑀 1 1.00 1.00

𝐻 ⁢ 𝐷 ⁢ 𝑀 2 1.00 0.99

𝐻 ⁢ 𝐷 ⁢ 𝑀 3 0.96 0.96

𝐻 ⁢ 𝐷 ⁢ 𝑀 4 1.00 1.00

𝐻 ⁢ 𝐷 ⁢ 𝑀 5 1.00 1.00

𝐻 ⁢ 𝐷 ⁢ 𝑀 6 1.00 0.99

𝐻 ⁢ 𝐼 ⁢ 𝑀 1 1.00 1.00

𝐻 ⁢ 𝐼 ⁢ 𝑀 2 1.00 1.00

𝐻 ⁢ 𝐼 ⁢ 𝑀 3 1.00 1.00

𝐻 ⁢ 𝐼 ⁢ 𝑀 4 1.00 1.00

𝐻 ⁢ 𝐼 ⁢ 𝑀 5 0.97 0.93

𝐻 ⁢ 𝐼 ⁢ 𝑀 6 1.00 0.99

𝐼 ⁢ 𝑋 1 1.00 1.00

𝐼 ⁢ 𝑋 2 0.84 0.86 Table D.6: Accuracy metrics for S4-S6 with 𝑛

1500 .
𝑛

1500

FDR TPR SHD S4 0.01(0.01) 0.91(0.02) 12.28(3.07) S5 0.03(0.03) 0.96(0.04) 6.99(7.44) S6 0.00(0.02) 1.00(0.02) 1.08(6.09) Appendix E Figures and Tables from the Real Data Analysis Table E.1: Estimated effects for the whole population. Insomnia PT distress ASD PT PTSD PT depression Total 0.1931 -0.0036 0.0572 0.0802 -0.0059 Direct 0.1160 -0.0007 0.0572 0.0227 -0.0021 Indirect 0.0771 -0.0029 0 0.0576 -0.0038 Table E.2: Estimated causal effects for males. Total Direct Indirect Insomnia 0.2418 0.1729 0.0690 PT distress -0.0023 -0.0004 -0.0019 ASD 0.0498 0.0498 0 PT PTSD 0.0831 0.0235 0.0597 PT Depression -0.0108 -0.0039 -0.0069 Table E.3: Estimated causal effects for females. Total Direct Indirect Insomnia 0.102 0.0099 0.0921 PT distress -0.006 -0.0011 -0.0048 ASD 0.0709 0.0709 0 PT PTSD 0.0748 0.0211 0.0537 PT Depression 0.0034 0.0012 0.0021 Figure E.1: 95 % Confidence intervals for causal effects on the population level graph, produced using 1000 bootstrap samples. Figure E.2: 95 % Confidence intervals for interaction effects on response computed over 1000 bootstrap resamples. Figure E.3: 95 % Confidence intervals for interaction effects on PT Distress computed over 1000 bootstrap resamples. Figure E.4: 95 % Confidence intervals for interaction effects on ASD computed over 1000 bootstrap resamples. Figure E.5: 95 % Confidence intervals for interaction effects on PT PTSD computed over 1000 bootstrap resamples. Figure E.6: 95 % Confidence intervals for interaction effects on PT Depression computed over 1000 bootstrap resamples. (a) (b) Figure E.7: Causal graphs for the male and female demographic. The red node is the event of interest. Orange nodes are mediators. The yellow node is the outcome. (a) (b) Figure E.8: Causal graphs for the white and black demographic. The red node is the event of interest. Orange nodes are mediators. The yellow node is the outcome. (a) (b) Figure E.9: Causal graphs for the white and black male demographic. The red node is the event of interest. Orange nodes are mediators. The yellow node is the outcome. (a) (b) Figure E.10: Causal graphs for the white and black female demographic. The red node is the event of interest. Orange nodes are mediators. The yellow node is the outcome. Appendix F Proofs F.1 Proof of Theorem 4.1 Theorem F.1.

Under assumptions (A1-A3) and Model (1), we have:

𝐻 ⁢ 𝐷 ⁢ 𝐸 ⁢ ( 𝒙 )

𝛾 𝐴 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ;

𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝒙 )

𝜸 𝑴 ⁢ ( 𝑰 𝑠 − 𝑩 𝑴 ⊤ ) − 1 ⁢ ( 𝜷 𝐴 + 𝑩 𝑿 ⁢ 𝐴 ⊤ ⁢ 𝒙 ) ;

𝐻 ⁢ 𝑇 ⁢ 𝐸 ⁢ ( 𝒙 )

𝐻 ⁢ 𝐷 ⁢ 𝐸 ⁢ ( 𝒙 ) + 𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝒙 ) ,

where 𝐈 𝑠 is a 𝑠 × 𝑠 identity matrix and 𝐱 is is the value of 𝐗 .

Proof.

We begin with the systems of equations described by Model (1) as

{ 𝑿

𝜖 𝑿 ,

𝐴

𝜹 𝑿 ⁢ 𝑿 + 𝜖 𝐴 ,

𝑴

𝑩 𝑿 ⊤ ⁢ 𝑿 + 𝜷 𝐴 ⁢ 𝐴 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝑿 ⁢ 𝐴 + 𝑩 𝑴 ⊤ ⁢ 𝑴 + 𝜖 𝑴 ,

𝑌

𝜸 𝑿 ⁢ 𝑿 + 𝛾 𝐴 ⁢ 𝐴 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ 𝐴 + 𝜸 𝑴 ⁢ 𝑴 + 𝜖 𝑌 . (F.1)

Under the assumptions, we have the following:

𝐸 ⁢ [ 𝑴 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 ]

𝐸 ⁢ [ 𝑴 | 𝐴

𝑎 , 𝑿

𝒙 ] ,

𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 ]

𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 , 𝑿

𝒙 ] ,

𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑴

𝒎 ) , 𝑿

𝒙 ]

𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 , 𝑴

𝒎 , 𝑿

𝒙 ] .

We can then use Equation F.1 to compute each of these expectations:

𝐸 ⁢ [ 𝑴 | 𝐴

𝑎 , 𝑿

𝒙 ]

( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝑩 𝑿 ⊤ ⁢ 𝑿 + 𝜷 𝐴 ⁢ 𝐴 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝑿 ⁢ 𝐴 ) , (F.2)
𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 , 𝑿

𝒙 ]

𝐸 ⁢ [ 𝜸 𝑿 ⁢ 𝑿 + 𝛾 𝐴 ⁢ 𝐴 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ 𝐴 + 𝜸 𝑴 ⁢ 𝑴 + 𝜖 𝑌 | 𝐴

𝑎 , 𝑿

𝒙 ]

𝜸 𝑿 ⁢ 𝒙 + 𝛾 𝐴 ⁢ 𝑎 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ 𝑎 + 𝜸 𝑴 ⁢ 𝐸 ⁢ [ 𝑴 | 𝐴

𝑎 , 𝑿

𝒙 ]

𝜸 𝑿 ⁢ 𝒙 + 𝛾 𝐴 ⁢ 𝑎 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ 𝑎 + 𝜸 𝑴 ⁢ ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝑩 𝑿 ⊤ ⁢ 𝒙 + 𝜷 𝐴 ⁢ 𝑎 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒙 ⁢ 𝑎 ) , (F.3)

and

𝐸 [ 𝑌 |
𝐴

𝑎 , 𝑴

𝒎 ( 𝑎 ) , 𝑿

𝒙 ]

𝜸 𝑿 𝒙 + 𝛾 𝐴 𝑎 + 𝜸 𝑿 ⁢ 𝐴 𝒙 𝑎 + 𝜸 𝑴 𝒎 ( 𝒂 ) . (F.4)

From Equations F.1 and F.4, we can compute the HDE and HIE as follows,

𝐻 ⁢ 𝐷 ⁢ 𝐸

𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 + 1 , 𝑴

𝒎 ( 𝑎 ) ) , 𝑿

𝒙 ] − 𝐸 ⁢ [ 𝑌 ⁢ | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) | ⁢ 𝑿

𝒙 ]

𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 + 1 , 𝑴

𝒎 ( 𝑎 ) , 𝑿

𝒙 ] − 𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 | 𝑿

𝒙 ]

𝜸 𝑿 ⁢ 𝒙 + 𝛾 𝐴 ⁢ ( 𝑎 + 1 ) + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ ( 𝑎 + 1 ) + 𝜸 𝑴 ⁢ 𝒎 ( 𝒂 ) − ( 𝜸 𝑿 ⁢ 𝒙 + 𝛾 𝐴 ⁢ 𝑎 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ 𝑎 + 𝜸 𝑴 ⁢ 𝒎 ( 𝒂 ) )

𝛾 𝐴 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ,

and

𝐻 ⁢ 𝐼 ⁢ 𝐸

𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑴

𝒎 ( 𝑎 + 1 ) ) , 𝑿

𝒙 ] − 𝐸 ⁢ [ 𝑌 ⁢ | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) | ⁢ 𝑿

𝒙 ]

𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 , 𝑴

𝒎 ( 𝑎 + 1 ) , 𝑿

𝒙 ] − 𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 | 𝑿

𝒙 ]

𝜸 𝑿 ⁢ 𝒙 + 𝛾 𝐴 ⁢ 𝑎 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ 𝑎 + 𝜸 𝑴 ⁢ 𝒎 ( 𝒂 + 𝟏 ) − ( 𝜸 𝑿 ⁢ 𝒙 + 𝛾 𝐴 ⁢ 𝑎 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ 𝑎 + 𝜸 𝑴 ⁢ 𝒎 ( 𝒂 ) )

𝜸 𝑴 ( [ ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ( 𝑩 𝑿 ⊤ 𝒙 + 𝜷 𝐴 ( 𝑎 + 1 ) + 𝑩 𝑿 ⁢ 𝑨 ⊤ 𝒙 ( 𝑎 + 1 ) ) ]

− [ ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ( 𝑩 𝑿 ⊤ 𝒙 + 𝜷 𝐴 𝑎 + 𝑩 𝑿 ⁢ 𝑨 ⊤ 𝒙 𝑎 ) ] )

𝜸 𝑴 ⁢ ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝜷 𝐴 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒙 ) .

And finally, we have the HTE as

𝐻 ⁢ 𝑇 ⁢ 𝐸

𝐻 ⁢ 𝐷 ⁢ 𝐸 + 𝐻 ⁢ 𝐼 ⁢ 𝐸

𝛾 𝐴 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 + 𝜸 𝑴 ⁢ ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝜷 𝐴 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒙 ) .

F.2 Proof of Theorem 4.2 Theorem F.2.

Under assumptions (A1-A3) and Model (1), we have:

𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 )

{ 𝜸 𝑴 } 𝑖 ⁢ { ( 𝑰 𝑠 − 𝑩 𝑴 ⊤ ) − 1 ⁢ ( 𝜷 𝐴 + 𝑩 𝑿 ⁢ 𝐴 ⊤ ⁢ 𝒙 ) } 𝑖 ;

∑ 𝑖

1 𝑠 𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 )

𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝒙 ) ;

𝐻 ⁢ 𝐼 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 )

𝐻 ⁢ 𝑇 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 ) − 𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 ) ;

𝐻 ⁢ 𝑇 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 )

𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝒙 ) − 𝐻 ⁢ 𝐼 ⁢ 𝐸 𝔾 ⁢ ( − 𝑖 ) ⁢ ( 𝒙 )

where { ⋅ } 𝑖 is the 𝑖 th element of a vector and 𝐻 ⁢ 𝐼 ⁢ 𝐸 𝔾 ⁢ ( − 𝑖 ) is the HIE under the causal graph 𝔾 ⁢ ( − 𝑖 ) in which the 𝑖 th mediator is removed from the original causal graph 𝔾 .

Proof.

We begin by demonstrating that the 𝐻 ⁢ 𝑇 ⁢ 𝑀 𝑖 can be decomposed into 𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 and 𝐻 ⁢ 𝐼 ⁢ 𝑀 𝑖 using the definitions. As the second term in the product,

𝐸 ⁢ { 𝑀 𝑖 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 + 1 ) , 𝑿

𝒙 } − 𝐸 ⁢ { 𝑀 𝑖 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 } ,

is included in all mediation effects, it is only necessary to show that

𝐸 ⁢ { 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝑀 𝑖

𝑚 𝑖 + 1 ) , 𝑿

𝒙 } − 𝐸 ⁢ { 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝑀 𝑖

𝑚 𝑖 ) , 𝑿

𝒙 } (F.5)

can be decomposed into

𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑀 𝑖

𝑚 𝑖 ( 𝑎 ) + 1 , 𝛀 𝑖

𝒐 𝑖 ( 𝑎 ) ) , 𝑿

𝒙 ] − 𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 ] (F.6)

and

𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑀 𝑖

𝑚 𝑖 ( 𝑎 ) + 1 ) , 𝑿

𝒙 ] − 𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑀 𝑖

𝑚 𝑖 ( 𝑎 ) + 1 , 𝛀 𝑖

𝒐 𝑖 ( 𝑎 ) ) , 𝑿

𝒙 ] . (F.7)

Adding F.6 and F.7, we have

𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑀 𝑖

𝑚 𝑖 ( 𝑎 ) + 1 ) , 𝑿

𝒙 ] − 𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 ]

which can be shown is equivalent to F.5 on the interventional level in the following manner:

𝐸 ⁢ { 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝑀 𝑖

𝑚 𝑖 + 1 ) , 𝑿

𝒙 } − 𝐸 ⁢ { 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝑀 𝑖

𝑚 𝑖 ) , 𝑿

𝒙 }

𝐸 ⁢ { 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝑀 𝑖

𝑚 𝑖 ( 𝑎 ) + 1 ) , 𝑿

𝒙 } − 𝐸 ⁢ { 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝑀 𝑖

𝑚 𝑖 ( 𝑎 ) ) , 𝑿

𝒙 }

𝐸 ⁢ { 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑀 𝑖

𝑚 𝑖 ( 𝑎 ) + 1 ) , 𝑿

𝒙 } − 𝐸 ⁢ { 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑀 𝑖

𝑚 𝑖 ( 𝑎 ) ) , 𝑿

𝒙 }

𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑀 𝑖

𝑚 𝑖 ( 𝑎 ) + 1 ) , 𝑿

𝒙 ] − 𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 ] ,

where the first equality is true because the mediator value chosen, 𝑚 𝑖 , is arbitrary and the effect of increasing this value by a unit is assumed to be constant. The latter equalities are true by definition. Thus we have that

𝐻 ⁢ 𝑇 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 )

𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 ) + 𝐻 ⁢ 𝐼 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 ) . (F.8)

This means that if we can compute the HDM for the 𝑖 th mediator, then we can use the corresponding HTM to calculate the HIM for that mediator. From Equation F.2, we have

𝐸 ⁢ { 𝑀 𝑖 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 + 1 ) , 𝑿

𝒙 } − 𝐸 ⁢ { 𝑀 𝑖 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 }

{ ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝑩 𝑿 ⊤ ⁢ 𝒙 + 𝜷 𝐴 ⁢ ( 𝑎 + 1 ) + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒙 ⁢ ( 𝑎 + 1 ) ) } 𝑖

− { ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝑩 𝑿 ⊤ ⁢ 𝒙 + 𝜷 𝐴 ⁢ 𝑎 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒙 ⁢ 𝑎 ) } 𝑖

{ ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝜷 𝐴 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒙 ) } 𝑖 .

Likewise, from Equation F.4, we have

𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑀 𝑖

𝑚 𝑖 ( 𝑎 ) + 1 , 𝛀 𝑖

𝒐 𝑖 ( 𝑎 ) ) , 𝑿

𝒙 ] − 𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 ]

( 𝜸 𝑿 ⁢ 𝒙 + 𝛾 𝐴 ⁢ 𝑎 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ 𝑎 + 𝜸 𝑴 ⁢ ( 𝒎 ( 𝒂 ) + 𝒆 𝒊 ) ) − ( 𝜸 𝑿 ⁢ 𝒙 + 𝛾 𝐴 ⁢ 𝑎 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ 𝑎 + 𝜸 𝑴 ⁢ 𝒎 ( 𝒂 ) )

𝜸 𝑴 ⁢ 𝒆 𝒊

{ 𝜸 𝑴 } 𝑖 ,

where 𝒆 𝒊 is the 𝑖 th basis vector in 𝑹 𝑠 . Putting these all together, we can compute the HDM of the 𝑖 -th mediator:

𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 )

[ 𝐸 ⁢ [ 𝑀 𝑖 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 + 1 ) , 𝑿

𝒙 ] − 𝐸 ⁢ [ 𝑀 𝑖 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 ] ]

× [ 𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑀 𝑖

𝑚 𝑖 ( 𝑎 ) + 1 , 𝛀 𝑖

𝒐 𝑖 ( 𝑎 ) ) , 𝑿

𝒙 ] − 𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 ] ]

{ 𝜸 𝑴 } 𝑖 × { ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝜷 𝐴 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒙 ) } 𝑖 ,

It is then easy to see that

∑ 𝑖

1 𝑠 𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 )

∑ 𝑖

1 𝑠 { 𝜸 𝑴 } 𝑖 × { ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝜷 𝐴 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒙 ) } 𝑖

𝜸 𝑴 ⁢ ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝜷 𝐴 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒙 )

𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝒙 )

By definition we have that the HIM for the 𝑖 -th mediator is

𝐻 ⁢ 𝐼 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 )

𝐻 ⁢ 𝑇 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 ) − 𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 ) .

Thus, all that is left is the 𝐻 ⁢ 𝑇 ⁢ 𝑀 𝑖 which can be interpreted as the effect of the treatment 𝐴 on the outcome 𝑌 that is mediated through mediator 𝑀 𝑖 , or inversely as the change in total treatment effect that is due to 𝑀 𝑖 being removed from the causal graph. Thus it can be calculated as follows,

𝐻 ⁢ 𝑇 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 )

𝐻 ⁢ 𝑇 ⁢ 𝐸 ⁢ ( 𝒙 ) − 𝐻 ⁢ 𝑇 ⁢ 𝐸 ( 𝑖 ) ⁢ ( 𝒙 )

{ 𝐻 ⁢ 𝐷 ⁢ 𝐸 ⁢ ( 𝒙 ) + 𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝒙 ) } − { 𝐻 ⁢ 𝐷 ⁢ 𝐸 𝔾 ⁢ ( − 𝑖 ) ⁢ ( 𝒙 ) + 𝐻 ⁢ 𝐼 ⁢ 𝐸 𝔾 ⁢ ( − 𝑖 ) ⁢ ( 𝒙 ) }

{ 𝐻 ⁢ 𝐷 ⁢ 𝐸 ⁢ ( 𝒙 ) − 𝐻 ⁢ 𝐷 ⁢ 𝐸 𝔾 ⁢ ( − 𝑖 ) ⁢ ( 𝒙 ) } + { 𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝒙 ) − 𝐻 ⁢ 𝐼 ⁢ 𝐸 𝔾 ⁢ ( − 𝑖 ) ⁢ ( 𝒙 ) }

{ ( 𝛾 𝐴 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ) − ( 𝛾 𝐴 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ) } + { 𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝒙 ) − 𝐻 ⁢ 𝐼 ⁢ 𝐸 𝔾 ⁢ ( − 𝑖 ) ⁢ ( 𝒙 ) }

𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝒙 ) − 𝐻 ⁢ 𝐼 ⁢ 𝐸 𝔾 ⁢ ( − 𝑖 ) ⁢ ( 𝒙 ) .

F.3 Proof of Theorem 6.1 Proof.

Similar to before, We begin with the systems of equations described Model 15

{ 𝑿

𝜖 𝑿 ,

𝐴

𝜹 𝑿 ⁢ 𝒇 𝑨 ⁢ ( 𝑿 ) + 𝜖 𝐴 ,

𝑴

𝑩 𝑿 ⊤ ⁢ 𝒇 𝑴 ⁢ 𝒙 ⁢ ( 𝑿 ) + 𝜷 𝐴 ⊤ ⁢ 𝒇 𝑴 ⁢ 𝒂 ⁢ ( 𝐴 ) + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒇 𝑴 ⁢ 𝒙 ⁢ 𝒂 ⁢ ( 𝑿 , 𝐴 ) + 𝑩 𝑴 ⊤ ⁢ 𝑴 + 𝜖 𝑴 ,

𝑌

𝜸 𝑿 ⁢ 𝒇 𝒀 ⁢ 𝒙 ⁢ ( 𝑿 ) + 𝛾 𝐴 ⁢ 𝑓 𝑌 ⁢ 𝑎 ⁢ ( 𝐴 ) + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝑓 𝑌 ⁢ 𝑥 ⁢ 𝑎 ⁢ ( 𝑿 , 𝐴 ) + 𝜸 𝑴 ⁢ 𝒇 𝒀 ⁢ 𝒎 ⁢ ( 𝑴 ) + 𝜖 𝑌 .

As before, Under the assumptions, we have the following:

𝐸 ⁢ [ 𝑴 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 ]

𝐸 ⁢ [ 𝑴 | 𝐴

𝑎 , 𝑿

𝒙 ] ,

𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 ]

𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 , 𝑿

𝒙 ] ,

𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑴

𝒎 ) , 𝑿

𝒙 ]

𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 , 𝑴

𝒎 , 𝑿

𝒙 ] .

Applying Model 15, we can compute each of these expectations:

𝐸 ⁢ [ 𝑴 | 𝐴

𝑎 , 𝑿

𝒙 ]

( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝑩 𝑿 ⊤ ⁢ 𝒇 𝑴 ⁢ 𝒙 ⁢ ( 𝒙 ) + 𝜷 𝐴 ⊤ ⁢ 𝒇 𝑴 ⁢ 𝒂 ⁢ ( 𝑎 ) + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒇 𝑴 ⁢ 𝒙 ⁢ 𝒂 ⁢ ( 𝒙 , 𝑎 ) ) , (F.9)
𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 , 𝑿

𝒙 ]

𝐸 ⁢ [ 𝜸 𝑿 ⁢ 𝒇 𝒀 ⁢ 𝒙 ⁢ ( 𝑿 ) + 𝛾 𝐴 ⁢ 𝑓 𝑌 ⁢ 𝑎 ⁢ ( 𝐴 ) + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝑓 𝑌 ⁢ 𝑥 ⁢ 𝑎 ⁢ ( 𝑿 , 𝐴 ) + 𝜸 𝑴 ⁢ 𝒇 𝒀 ⁢ 𝒎 ⁢ ( 𝑴 ) + 𝜖 𝑌 | 𝐴

𝑎 , 𝑿

𝒙 ]

𝜸 𝑿 ⁢ 𝒇 𝒀 ⁢ 𝒙 ⁢ ( 𝒙 ) + 𝛾 𝐴 ⁢ 𝑓 𝑌 ⁢ 𝑎 ⁢ ( 𝑎 ) + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝑓 𝑌 ⁢ 𝑥 ⁢ 𝑎 ⁢ ( 𝒙 , 𝑎 ) + 𝜸 𝑴 ⁢ 𝐸 ⁢ [ 𝒇 𝒀 ⁢ 𝒎 ⁢ ( 𝑴 ) | 𝐴

𝑎 , 𝑿

𝒙 ] , (F.10)
𝐸 [ 𝑌 |
𝐴

𝑎 , 𝑴

𝒎 ( 𝑎 ) , 𝑿

𝒙 ]

𝜸 𝑿 𝒇 𝒀 ⁢ 𝒙 ( 𝒙 ) + 𝛾 𝐴 𝑓 𝑌 ⁢ 𝑎 ( 𝑎 ) + 𝜸 𝑿 ⁢ 𝐴 𝑓 𝑌 ⁢ 𝑥 ⁢ 𝑎 ( 𝒙 , 𝑎 ) + 𝜸 𝑴 𝒇 𝒀 ⁢ 𝒎 ( 𝑚 ( 𝑎 ) ) . (F.11)

Where 𝒎 ( 𝒂 ) is the value 𝑀 would take given 𝐴

𝑎 . From Equations F.3 and F.11, we can compute the HDE and HIE as follows,

𝐻 ⁢ 𝐷 ⁢ 𝐸 ⁢ ( 𝒙 , 𝑎 )

𝛿 ⁢ 𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑴

𝒎 ( 𝑎 ) ) , 𝑿

𝒙 ] 𝛿 ⁢ 𝑎

𝛿 ⁢ 𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 , 𝑴

𝒎 ( 𝑎 ) , 𝑿

𝒙 ] 𝛿 ⁢ 𝑎

𝛿 ⁢ [ 𝜸 𝑿 ⁢ 𝒇 𝒀 ⁢ 𝒙 ⁢ ( 𝒙 ) + 𝛾 𝐴 ⁢ 𝑓 𝑌 ⁢ 𝑎 ⁢ ( 𝑎 ) + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝑓 𝑌 ⁢ 𝑥 ⁢ 𝑎 ⁢ ( 𝒙 , 𝑎 ) + 𝜸 𝑴 ⁢ 𝒇 𝒀 ⁢ 𝒎 ⁢ ( 𝑚 ( 𝑎 ) ) ] 𝛿 ⁢ 𝑎

𝛾 𝐴 ⁢ 𝛿 ⁢ 𝑓 𝑌 ⁢ 𝑎 ⁢ ( 𝑎 ) 𝛿 ⁢ 𝑎 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝛿 ⁢ 𝑓 𝑌 ⁢ 𝑥 ⁢ 𝑎 ⁢ ( 𝒙 , 𝑎 ) 𝛿 ⁢ 𝑎 ,

and

𝐻 ⁢ 𝐼 ⁢ 𝐸 ⁢ ( 𝒙 , 𝑎 )

𝛿 ⁢ 𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑴

𝒎 ( 𝑎 ) ) , 𝑿

𝒙 ] 𝛿 ⁢ 𝒎 ( 𝑎 ) ⁢ 𝛿 ⁢ 𝒎 ( 𝑎 ) 𝛿 ⁢ 𝑎

𝛿 ⁢ 𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 , 𝑴

𝒎 ( 𝑎 ) , 𝑿

𝒙 ] 𝛿 ⁢ 𝒎 ( 𝑎 ) ⁢ 𝛿 ⁢ 𝒎 ( 𝑎 ) 𝛿 ⁢ 𝑎

𝛿 ⁢ [ 𝜸 𝑿 ⁢ 𝒇 𝒀 ⁢ 𝒙 ⁢ ( 𝒙 ) + 𝛾 𝐴 ⁢ 𝑓 𝑌 ⁢ 𝑎 ⁢ ( 𝑎 ) + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝑓 𝑌 ⁢ 𝑥 ⁢ 𝑎 ⁢ ( 𝒙 , 𝑎 ) + 𝜸 𝑴 ⁢ 𝒇 𝒀 ⁢ 𝒎 ⁢ ( 𝑚 ( 𝑎 ) ) ] 𝛿 ⁢ 𝒎 ( 𝑎 ) ⁢ 𝛿 ⁢ 𝒎 ( 𝑎 ) 𝛿 ⁢ 𝑎

𝜸 𝑴 ⁢ 𝛿 ⁢ 𝒇 𝒀 ⁢ 𝒎 ⁢ ( 𝑚 ( 𝑎 ) ) 𝛿 ⁢ 𝒎 ( 𝑎 ) ⁢ 𝛿 ⁢ 𝒎 ( 𝑎 ) 𝛿 ⁢ 𝑎 .

where

𝛿 ⁢ 𝒎 ( 𝑎 ) 𝛿 ⁢ 𝑎

𝛿 ⁢ 𝐸 ⁢ [ 𝑴 | 𝐴

𝑎 , 𝑿

𝒙 ] 𝛿 ⁢ 𝑎

( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ 𝛿 ⁢ [ 𝜷 𝐴 ⊤ ⁢ 𝒇 𝑴 ⁢ 𝒂 ⁢ ( 𝑎 ) + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒇 𝑴 ⁢ 𝒙 ⁢ 𝒂 ⁢ ( 𝒙 , 𝑎 ) ] 𝛿 ⁢ 𝑎 .

F.4 Proof of Theorem 6.2 Proof.

As it was shown in the proof of theorem 4.2 that the computation of the HIM and HTM is model-independent and does not have an explicit form, we only give the computation of the HDM here. From Equation F.9 and F.11 and Model 6.1, we have the following:

𝐻 ⁢ 𝐷 ⁢ 𝑀 𝑖 ⁢ ( 𝒙 )

𝛿 ⁢ 𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑀 𝑖

𝑚 𝑖 ( 𝑎 ) , 𝛀 𝑖

𝒐 𝑖 ( 𝑎 ) ) , 𝑿

𝒙 ] 𝛿 ⁢ 𝑚 𝑖 ( 𝑎 ) × 𝛿 ⁢ 𝐸 ⁢ [ 𝑀 𝑖 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 ] 𝛿 ⁢ 𝑎

𝛿 ⁢ 𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 , 𝑀 𝑖

𝑚 𝑖 ( 𝑎 ) , 𝛀 𝑖

𝒐 𝑖 ( 𝑎 ) , 𝑿

𝒙 ] 𝛿 ⁢ 𝑚 𝑖 ( 𝑎 ) × 𝛿 ⁢ 𝐸 ⁢ [ 𝑀 𝑖 | 𝐴

𝑎 , 𝑿

𝒙 ] 𝛿 ⁢ 𝑎

𝛿 ⁢ [ 𝜸 𝑿 ⁢ 𝒇 𝒀 ⁢ 𝒙 ⁢ ( 𝒙 ) + 𝛾 𝐴 ⁢ 𝑓 𝑌 ⁢ 𝑎 ⁢ ( 𝑎 ) + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝑓 𝑌 ⁢ 𝑥 ⁢ 𝑎 ⁢ ( 𝒙 , 𝑎 ) + 𝜸 𝑴 ⁢ 𝒇 𝒀 ⁢ 𝒎 ⁢ ( 𝒎 ( 𝒂 ) ) ] 𝛿 ⁢ 𝑚 𝑖 ( 𝑎 ) ⁢ 𝛿 ⁢ 𝒎 ( 𝑎 ) 𝛿 ⁢ 𝑎

{ 𝜸 𝑴 } 𝑖 ⁢ 𝛿 ⁢ 𝐸 ⁢ [ 𝒇 𝒀 ⁢ 𝒎 ⁢ ( 𝒎 ( 𝒂 ) ) ] 𝛿 ⁢ 𝑚 𝑖 ( 𝑎 ) ⁢ 𝛿 ⁢ 𝒎 ( 𝑎 ) 𝛿 ⁢ 𝑎 .

F.5 Proof of Theorem A.1 Proof.

We begin with the systems of equations described in Section A.5:

{ 𝑿

𝜖 𝑿 ,

𝐴

𝜹 𝑿 ⁢ 𝑿 + 𝜖 𝐴 ,

𝑴

𝑩 𝑿 ⊤ ⁢ 𝑿 + 𝜷 𝐴 ⁢ 𝐴 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝑿 ⁢ 𝐴 + 𝑩 𝑴 ⊤ ⁢ 𝑴 + 𝜖 𝑴 ,

𝑌

𝜸 𝑿 ⁢ 𝑿 + 𝛾 𝐴 ⁢ 𝐴 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝑿 ⁢ 𝐴 + 𝜸 𝑴 ⁢ 𝑴 + 𝑿 ⊤ ⁢ 𝚪 𝑿 ⁢ 𝑴 ⁢ 𝑴 + 𝜖 𝑌 . (F.12)

Noting that 𝑿 ⊤ ⁢ 𝚪 𝑿 ⁢ 𝑴 ⁢ 𝑴

𝑣 ⁢ 𝑒 ⁢ 𝑐 ⁢ ( 𝚪 𝑿 ⁢ 𝑴 ) ⊤ ⁢ ( 𝑿 ⊗ 𝑴 ) . Under the assumptions, we have the following:

𝐸 ⁢ [ 𝑴 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 ]

𝐸 ⁢ [ 𝑴 | 𝐴

𝑎 , 𝑿

𝒙 ] ,

𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) , 𝑿

𝒙 ]

𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 , 𝑿

𝒙 ] ,

𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑴

𝒎 ) , 𝑿

𝒙 ]

𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 , 𝑴

𝒎 , 𝑿

𝒙 ] .

We can then use Equation F.12 to compute each of these expectations:

𝐸 ⁢ [ 𝑴 | 𝐴

𝑎 , 𝑿

𝒙 ]

( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝑩 𝑿 ⊤ ⁢ 𝒙 + 𝜷 𝐴 ⁢ 𝑎 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒙 ⁢ 𝑎 ) , (F.13)
𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 , 𝑿

𝒙 ]

𝐸 ⁢ [ 𝜸 𝑿 ⁢ 𝑿 + 𝛾 𝐴 ⁢ 𝐴 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ 𝐴 + 𝜸 𝑴 ⁢ 𝑴 + 𝑿 ⊤ ⁢ 𝚪 𝑿 ⁢ 𝑴 ⁢ 𝑴 + 𝜖 𝑌 | 𝐴

𝑎 , 𝑿

𝒙 ]

𝜸 𝑿 ⁢ 𝒙 + 𝛾 𝐴 ⁢ 𝑎 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ 𝑎 + ( 𝜸 𝑴 + 𝒙 ⊤ ⁢ 𝚪 𝑿 ⁢ 𝑴 ) ⁢ 𝐸 ⁢ [ 𝑴 | 𝐴

𝑎 , 𝑿

𝒙 ]

𝜸 𝑿 ⁢ 𝒙 + 𝛾 𝐴 ⁢ 𝑎 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ 𝑎 + ( 𝜸 𝑴 + 𝒙 ⊤ ⁢ 𝚪 𝑿 ⁢ 𝑴 ) ⁢ ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝑩 𝑿 ⊤ ⁢ 𝒙 + 𝜷 𝐴 ⁢ 𝑎 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒙 ⁢ 𝑎 ) , (F.14)

and further

𝐸 [ 𝑌 |
𝐴

𝑎 , 𝑴

𝒎 ( 𝑎 ) , 𝑿

𝒙 ]

𝜸 𝑿 𝒙 + 𝛾 𝐴 𝑎 + 𝜸 𝑿 ⁢ 𝐴 𝒙 𝑎 + ( 𝜸 𝑴 + 𝒙 ⊤ 𝚪 𝑿 ⁢ 𝑴 ) 𝒎 ( 𝒂 ) . (F.15)

Where 𝒎 ( 𝒂 ) is the value 𝑀 would take given 𝐴

𝑎 . From Equations F.5 and F.15, we can compute the HDE and HIE as follows,

𝐻 ⁢ 𝐷 ⁢ 𝐸

𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 + 1 , 𝑴

𝒎 ( 𝑎 ) ) , 𝑿

𝒙 ] − 𝐸 ⁢ [ 𝑌 ⁢ | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) | ⁢ 𝑿

𝒙 ]

𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 + 1 , 𝑴

𝒎 ( 𝑎 ) , 𝑿

𝒙 ] − 𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 | 𝑿

𝒙 ]

𝜸 𝑿 ⁢ 𝒙 + 𝛾 𝐴 ⁢ ( 𝑎 + 1 ) + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ ( 𝑎 + 1 ) + ( 𝜸 𝑴 + 𝒙 ⊤ ⁢ 𝚪 𝑿 ⁢ 𝑴 ) ⁢ 𝒎 ( 𝒂 )

− ( 𝜸 𝑿 ⁢ 𝒙 + 𝛾 𝐴 ⁢ 𝑎 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ 𝑎 + ( 𝜸 𝑴 + 𝒙 ⊤ ⁢ 𝚪 𝑿 ⁢ 𝑴 ) ⁢ 𝒎 ( 𝒂 ) )

𝛾 𝐴 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ,

and

𝐻 ⁢ 𝐼 ⁢ 𝐸

𝐸 ⁢ [ 𝑌 | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 , 𝑴

𝒎 ( 𝑎 + 1 ) ) , 𝑿

𝒙 ] − 𝐸 ⁢ [ 𝑌 ⁢ | 𝑑 ⁢ 𝑜 ⁢ ( 𝐴

𝑎 ) | ⁢ 𝑿

𝒙 ]

𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 , 𝑴

𝒎 ( 𝑎 + 1 ) , 𝑿

𝒙 ] − 𝐸 ⁢ [ 𝑌 | 𝐴

𝑎 | 𝑿

𝒙 ]

𝜸 𝑿 ⁢ 𝒙 + 𝛾 𝐴 ⁢ 𝑎 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ 𝑎 + ( 𝜸 𝑴 + 𝒙 ⊤ ⁢ 𝚪 𝑿 ⁢ 𝑴 ) ⁢ 𝒎 ( 𝒂 + 𝟏 ) − ( 𝜸 𝑿 ⁢ 𝒙 + 𝛾 𝐴 ⁢ 𝑎 + 𝜸 𝑿 ⁢ 𝐴 ⁢ 𝒙 ⁢ 𝑎 + ( 𝜸 𝑴 + 𝒙 ⊤ ⁢ 𝚪 𝑿 ⁢ 𝑴 ) ⁢ 𝒎 ( 𝒂 ) )

( 𝜸 𝑴 + 𝒙 ⊤ 𝚪 𝑿 ⁢ 𝑴 ) ( [ ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ( 𝑩 𝑿 ⊤ 𝒙 + 𝜷 𝐴 ( 𝑎 + 1 ) + 𝑩 𝑿 ⁢ 𝑨 ⊤ 𝒙 ( 𝑎 + 1 ) ) ]

− [ ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ( 𝑩 𝑿 ⊤ 𝒙 + 𝜷 𝐴 𝑎 + 𝑩 𝑿 ⁢ 𝑨 ⊤ 𝒙 𝑎 ) ] )

( 𝜸 𝑴 + 𝒙 ⊤ ⁢ 𝚪 𝑿 ⁢ 𝑴 ) ⁢ ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝜷 𝐴 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒙 ) .

And finally, we have the HTE as

𝐻 ⁢ 𝑇 ⁢ 𝐸

𝐻 ⁢ 𝐷 ⁢ 𝐸 + 𝐻 ⁢ 𝐼 ⁢ 𝐸

𝛾 𝐴 + 𝜸 𝑿 ⁢ 𝑨 ⁢ 𝒙 + ( 𝜸 𝑴 + 𝒙 ⊤ ⁢ 𝚪 𝑿 ⁢ 𝑴 ) ⁢ ( 𝑰 𝒔 − 𝑩 𝑴 ⊤ ) − 𝟏 ⁢ ( 𝜷 𝑨 + 𝑩 𝑿 ⁢ 𝑨 ⊤ ⁢ 𝒙 ) .

Generated on Thu Jul 13 18:08:00 2023 by LATExml RkjXdWy329+dTgeSJD3ieZ7RNO0VAXAPwDEAO5VKndi2fWrb9jWl9Esul6PZbDY9Go1OZ7PZ9z/lyuD3OozU2wAAAABJRU5ErkJggg==" alt="[LOGO]">

Xet Storage Details

Size:
116 kB
·
Xet hash:
80e067b3a1a828930d262e237651dced20b8b9dcb35216b46cb92813909bf588

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.