Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2025 Jan 4.
Published in final edited form as: J Mach Learn Res. 2024;25:310.

Causal Discovery with Generalized Linear Models through Peeling Algorithms

Minjie Wang 1, Xiaotong Shen 2, Wei Pan 3
PMCID: PMC11699566  NIHMSID: NIHMS2044931  PMID: 39758585

Abstract

This article presents a novel method for causal discovery with generalized structural equation models suited for analyzing diverse types of outcomes, including discrete, continuous, and mixed data. Causal discovery often faces challenges due to unmeasured confounders that hinder the identification of causal relationships. The proposed approach addresses this issue by developing two peeling algorithms (bottom-up and top-down) to ascertain causal relationships and valid instruments. This approach first reconstructs a super-graph to represent ancestral relationships between variables, using a peeling algorithm based on nodewise GLM regressions that exploit relationships between primary and instrumental variables. Then, it estimates parent-child effects from the ancestral relationships using another peeling algorithm while deconfounding a child's model with information borrowed from its parents' models. The article offers a theoretical analysis of the proposed approach, establishing conditions for model identifiability and providing statistical guarantees for accurately discovering parent-child relationships via the peeling algorithms. Furthermore, the article presents numerical experiments showcasing the effectiveness of our approach in comparison to state-of-the-art structure learning methods without confounders. Lastly, it demonstrates an application to Alzheimer's disease (AD), highlighting the method's utility in constructing gene-to-gene and gene-to-disease regulatory networks involving Single Nucleotide Polymorphisms (SNPs) for healthy and AD subjects.

Keywords: Generalized linear models, large directed acyclic graphs, hierarchy, nonconvex minimization, mixed graphical models

1. Introduction

Discovering causal relationships among variables is crucial for scientific inquiries in various fields, including genetics, artificial intelligence, and social science. For instance, in genetics, biologists aim to uncover gene-gene regulatory relationships, while neuroscientists focus on causal influences between different regions of interest in a patienťs brain. However, unmeasured confounders can arise when randomized experiments are unethical or infeasible, which distort the discovery process and obscure the relationship between exposures and the outcome variable, leading to false discoveries. Consider our motivating case study on inferring regulatory networks from the Alzheimer's disease gene expression data. We study a subset of genes while other genes are not included and removed by the prescreening procedure, which introduces unmeasured confounders. Meanwhile, in neuroscience, existing technologies can only record from a small subset of neurons in the brain at once, also leading to confounders. This article proposes a novel approach to causal discovery using instrumental variables to correct confounding effects, yielding accurate causal discovery, particularly for discrete outcomes such as binary, count-valued, and multinomial.

Causal discovery necessitates estimating parent-child relationships, or equivalently, the graph structure of a directed acyclic graph (DAG). DAGs are an effective tool for describing directional effects in causal discovery, but reconstructing a DAG structure poses computational challenges due to the acyclicity constraint. Two popular approaches for reconstructing a Gaussian DAG structure without confounders are the sequential conditional independence tests, such as the PC algorithm (Spirtes et al. 2000), and the likelihood-based methods subject to the acyclicity constraint (Zheng et al. 2018; Yuan et al. 2019). Recently, Li et al. (2023) proposed a linear causal discovery method without confounders through interventions. Going beyond, for non-Gaussian outcomes, Zheng et al. (2020) extended the algebraic characterization of DAGs by Zheng et al. (2018) to nonparametric and semiparametric models including GLMs; Shi et al. (2023) proposed a new hypothesis testing method for nonlinear DAG models. However, despite recent work, causal discovery for discrete outcome data, particularly in the presence of confounders, has received limited attention, and unique challenges arise when handling such data. One challenge is the non-identifiability of the logistic DAG model, even without confounders (Park and Raskutti 2018). Moreover, in the presence of confounders, unmeasured confounders can distort causal effect estimation, making structural equation models non-identifiable. Another challenge is the typically intractable form of the marginal likelihood, despite an interpretable conditional likelihood and data-specific noise or variance. It also remains unclear how to separate confounders from causal effects in the discovery process. Some recent proposals focus on simple situations, such as the two-stage least squares (Theil 1992), an instrumental variable (IV) regression of continuous outcomes given a known causal order, the two-stage predictor substitution (2SPS, Cai et al. (2011)) and two-stage residual inclusion (2SRI, Hausman (1978); Terza et al. (2008)) for general nonlinear outcomes, including discrete outcome data. However, none of these approaches apply to causal discovery with an unknown causal order and multiple primary variables.

This article proposes a new approach called GAMPI (Generalized Linear Models with Peeling and Instruments) for causal discovery of multiple primary variables from various data types. GAMPI involves a two-step process. First, we propose a fidelity model as a simple surrogate for the original intractable marginal model, which retains intervention characteristics. Then, we design a bottom-up peeling algorithm to reconstruct the super-graph consisting of ancestral relationships while identifying valid instrumental variables (IVs) for each primary variable by exploiting the connections between the primary and instrumental variables to determine the causal order. For each primary variable, a constrained generalized linear model (GLM, Nelder and Wedderburn (1972)) subject to the truncated 1-penalty constraint (TLP, Shen et al. (2012)) is fit on the instrumental variables to identify nonzero-coefficient IVs, followed by a difference-of-convex (DC) algorithm to solve the corresponding nonconvex minimization. In the second step, given the identified super-graph, we develop a top-down peeling algorithm to estimate the direct causal effects of each primary variable while identifying its parents from ancestors. In this peeling process, we propose a novel deconfounding approach using the estimated confounders from the parents' equation models to correct the confounding effects of a child's equation model. This approach fits a TLP-constrained GLM to each primary variable on its ancestors and residuals from its ancestors' models to identify parents and estimate the direct causal effect of each parent-child relationship.

This article contributes to causal discovery. It introduces a comprehensive approach capable of handling diverse data types with unobserved confounders, ensuring the identification of parent-child relationships through valid instruments for each primary variable. This involves generalized linear models, addressing both discrete and mixed (continuous and discrete) outcomes while considering confounders beyond Gaussian data without confounders by Li et al. (2023). In particular,

  1. It establishes the identifiability of generalized structural equation models with confounders and instruments, valid and invalid. This result does not require additional assumptions for each primary variable with a nonlinear link, unlike the Gaussian case which requires valid instrumental variables to be the majority of the instrumental variables (Kang et al. 2016; Windmeijer et al. 2019).

  2. It introduces a fidelity model to handle intractable likelihoods and eliminate the confounding effects for identifying ancestral relationships.

  3. It designs a projection-based difference-convex (DC) algorithm to solve nonconvex minimization for a constrained generalized linear model regression. This algorithm delivers a global minimizer with high probability and a computational complexity of q2max(q,n)logK0, where q,n, and K0 are the numbers of regressors, the sample size, and the nonzero regression coefficients.

  4. It develops bottom-up and top-down peeling algorithms to estimate the causal order and the causal effects for primary variables. These algorithms require solving at most p generalized linear model regressions subject to the truncated 1-penalty constraint, where p is the number of primary variables.

  5. It shows that GAMPI yields the correct discovery of all parent-child relationships, providing statistical guarantees for GAMPI.

  6. It demonstrates the superior performance of GAMPI for logistic and Poisson models over state-of-the-art methods, NOTEARS (Zheng et al. 2018, 2020) and a faster version of NOTEARS, called DAGMA (Bello et al. 2022), especially in the presence of confounders. It suggests that GAMPI corrects the confounding effects without imposing additional noise variance structures to reconstruct a causal graph.

The rest of the article is structured as follows. Section 2 introduces generalized structural equation models with confounders and instruments. Section 3 introduces the fidelity model and three algorithms, one DC and two peeling algorithms, for identifying the ancestral and then parent-child relationships. Section 4 investigates the statistical properties of the proposed approach. Section 5 performs simulation studies, followed by Section 6 with an application to Alzheimer's disease to reconstruct a gene-to-gene and gene-to-disease regulatory network. Section 7 concludes the article. The Appendix contains illustrative examples, technical proofs, and additional simulations.

2. Generalized Structural Mean Models

2.1. Directed Acyclic Graphs, Confounders, and Interventions

Given a vector of primary variables of interest Y=Y1,,Yp, the joint probability of a generalized structural equation model (SEM, Pearl (2000)) with confounders h=h1,,hp and instrumental variables X=X1,,Xq can be factorized as:

P(YX,h)=j=1pPYjYpa(j),X,hj, (1)

where PYjYpa(j),X,hj denotes the conditional probability of Yj given Ypa(j),X,hj, which follows an exponential family distribution. Here, unmeasured confounders refer to variables that are not included in the model, but nonetheless affect the primary variables of interest. Confounders hj and hj can be correlated among equations for jj. An instrumental variable (IV) is a variable that affects the primary variables of interest, but not vice versa, i.e., the primary variable should not have an impact on the IVs. In practice, one may choose candidate IV sets based on scientific knowledge, as in Section 6. Note that (1) characterizes a DAG under the acyclicity constraint. Moreover, the conditional distribution of Yj is characterized by a generalized linear model:

ψjEYjYpa(j),X,hj=Upa(j),jYpa(j)+Win(j),jXin(j)+hj,j=1,,p, (2)

where ψj() is a monotone link function for a GLM chosen to be appropriate for the data type of Yj (cf. Table 1), pa(j)k:ukj0=k:YkYj denotes a set of parent variables of Yj, defined by the parent-child relationship YkYj,in(j)l:wlj0=l:XlYj denotes a set of the associated instrumental variables of Yj, defined by an intervention from Xl to Yj:XlYj, and YA=Yk1,,YkM,kmA, is a sub-vector of Y indexed by A. Here, U=ukj and W=wlj are the p×p adjacency and q×p intervention matrices, and Upa(j),j=ukjkpa(j) and Win(j),j=wljlin(j) are sub-vectors of the jth column vector of U,Uj=ukj and the jth column vector of W,Wj=wlj. denotes the transpose. Note that the p structural equations can possess different ψjs, depending on the data type of Yj, reminiscent of the mixed graphical models framework (Yang et al. 2014). We refer the reader to Section 6 for an illustrative example.

Table 1:

Examples of distributions in generalized linear models

Distribution Support Link Density
Bernoulli, Bern(μ) Integer: {0,1} ψj(μ)=lnμ1μ μy(1μ)1y
Binomial, Bin(N,μ) Integer: 0,…,N ψj(μ)=lnμ1μ Nyμy(1μ)Ny
Gaussian, Nμ,σ2 Real: (-∞,∞) ψj(μ)=μ 12πσ2exp(yμ)22σ2
Poisson, Poisson(μ) Integer: 0,1,… ψj(μ)=lnμ μyexpμy!
Multinomial, Multiμ1,,μK K-vector of integer: [0,…,N] ψj(μ)=lnμ1μ n!y1!yK!k=1Kμkyk

The adjacency matrix U specifies a directed acyclic graph (DAG) with each primary variable as a node, and its non-zero elements represent directed edges between nodes. To prevent directed cycles, U is subject to the acyclicity constraint (Zheng et al. 2018; Yuan et al. 2019).

2.2. Identifiability

Model (2) encodes a DAG model describing multiple parent-child relationships, which, however, is generally not identifiable in the presence of unmeasured confounders h. Note that (2) may not be identifiable even in the absence of confounders h, for instance, a logistic model without instrumental variables and confounders (Park and Raskutti 2018). However, as suggested by Proposition 1, with suitable instruments, (2) is identifiable.

To proceed, we first categorize instrumental variables (IVs) into valid IVs and non-valid IVs (covariates). A valid instrument Xl for primary variable Yj satisfies:

  1. Relevance: it intervenes on Yj;

  2. Exclusion: it does not intervene on other primary variables.

Otherwise, it is a non-valid IV that intervenes on none or multiple primary variables. Let in*(j) denote a set of valid IV of Yj. Next, we make some assumptions on instruments for model (2).

Assumption 1 Assume that for j=1,,p, model (2) satisfies:

(A) (Local faithfulness) CovYj,XlX{1,,q}{l}0 when Xl intervenes on an immediate parent of Yj, where Cov denotes the covariance.

(B) (Instrumental sufficiency) Each primary variable is intervened by at least one valid IV. If ψj is linear, then the number of valid IVs for Yj is required to exceed 50% of its total number of IVs, known as the majority rule. Otherwise, the majority rule is not required for a specific nonlinear ψj.

(C) (Validity) Confounders h=h1,,hp and valid instruments Xin*=Xin*(1),,Xin*(p) are independent. That is, for each pair of (l,j),lj=1pin*(j),Xl and hj are independent.

Assumption 1(A) guarantees that other interventions donť offset an intervention from Xl to Yj, while Assumption 1(B) ensures that each primary variable has at least one valid IV. Both are necessary for the identifiability of a Gaussian structural model (Li et al. 2023). The second condition in Assumption 1(B) requires the majority rule for a linear link, which amounts to the so-called majority requirement for Gaussian data (Kang et al. 2016; Windmeijer et al. 2019). However, such a majority condition is not required for a nonlinear link function. We provide an illustrative example of the majority rule in Appendix A.2. Note Assumption 1(B) considers a GLM with the canonical link as well as the non-canonical link, defined by model (2). Assumption 1(C) is also required by the two-stage least squares and residual inclusion methods for the IVs (Lousdal 2018; Terza et al. 2008), known as the instrumental validity assumption. Further, the instrumental variables X and confounders are independent by parameterization, i.e., projecting hj onto the space spanned by the non-valid IVs. Given Assumption 1, Proposition 1 suggests the identifiability of model (2).

Proposition 1 (Identifiability) Under Assumption 1, model (2) is identifiable for model parameters (U,W).

Proposition 1 suggests that a nonlinear link function permits the identification of the parents of a primary variable, which is unlike the linear link for Gaussian data. This new result highlights the importance of a link function concerning the model identifiability of causal effects.

3. Method

This section estimates (U,W) to identify parent-child relationships and the corresponding interventions in (2). Due to the model identifiability issue of (2), direct estimation of U is impossible without the help of instrumental variables X. To estimate parent sets pa(j),j=1,,p, and thus U, we first need to determine the causal order, which amounts to determining ancestral relationships, including all parent-child relationships. Here, Yk is an ancestor of Yj, or Yj is an offspring of Yk, denoted by YkYj, if there exists a directed pathway YkYk1YkmYj, where YkYk1 is a parent-child relationship defined by U. Subsequently, an (j) denotes a set of ancestors of Yj. Once an (j) is identified, we then pinpoint pa(j) via a deconfounding approach in Section 3.3.

3.1. Fidelity Models

This subsection introduces a working model termed as the “fidelity model”, to identify all ancestral relationships. The term “fidelity model” is named as it yields the same support as the marginal distribution of the original model. Towards this end, we exploit the connections between a primary variable and the associated instrumental variables, described by the conditional distribution of Yj given X from (2), PYjX, to identify the causal orders among primary variables. However, PYjX is generally intractable even given an analytic expression of PYjYpa(j,X,hj in (2). To overcome this difficulty, we introduce the fidelity model that is also a GLM:

ψjEYjX=VjX,j=1,,p, (3)

where ψj is set to be the same as in (2). Here, Vj=V1j,,Vqj is the jth column vector of a q×p matrix V=V1,,Vp. This model (3) is motivated by the observation that the conditional distribution of Yj given X, denoted by P*YjX and defined by (3), satisfies P*YjXXm0 if and only if PYjXXm0 based on (2) due to the properties of GLMs, as shown in Proposition 2, where Xm denotes the partial derivative with respect to Xm.

The conditional distribution P*YjX defined by the fidelity model (3) not only provides a simple form to work with, but also has the same support as the intractable marginal distribution PYjX under (2), although with different intervention magnitudes. In particular, a nonzero l-th element of Vj indicates that Yk is an ancestor of Yj if Xl is a valid IV of Yk. This property permits the identification of the super-graph characterizing all the ancestral relationships, as shown in Proposition 3.

We define the index set of X1,,Xq with nonzero coefficients in the fidelity model (3) and in the true model PYjX marginalized from (2) as Sj=m:Vmj0 and S~j=m:PYjXXm0, respectively, for j=1,,p. The following Proposition 2 establishes the connections between the fidelity model and the marginal distribution of the true model PYjX.

Proposition 2 (Support preservation) Assume that Assumption 1 is satisfied and the link function ψjs in (2) are differentiable. Then, P*YjX defined by the fidelity model (3) has the same support as PYjX under the full model (2), that is, Sj=S~j,j=1,,p.

Proposition 2 suggests that the fidelity model (3) retains the intervention structure of PYjX in the original model concerning the presence or absence of a specific intervention. It is worth mentioning that the fidelity model (3) eliminates the confounding effects when identifying the support of PYjX and hence the ancestral relationships or the causal order among Y1,,Yp. This property is due to Assumption 1(C) that X are independent of confounders h. Consequently, the confounders are marginalized for X and thus have no impact on the support of PYjX.

To illustrate the fidelity model and Proposition 2, we here include a motivating example. Consider a generalized structural equation model for binary outcomes with p=q=5:

ψ(E[Y1X1,h1])=2X1+h1,ψ(E[Y2Y1,X2,h2])=1.5Y1+2X2+h2,ψ(E[Y3Y2,X3,h3])=1.5Y2+2X3+h3,ψ(E[Y4Y3,Y1,X4,h4])=1.5Y1+1.5Y3+2X4+h4,ψ(E[Y5X5,h5])=2X5+h5, (4)

where ψ1==ψ5=ψ is the logit link function. Here, (4) defines a DAG shown in Figure 1. Note that marginalizing each equation in (4) over Yj does not lead to closed-form expressions for YjX.

Figure 1:

Figure 1:

Example DAG defined by model (4).

The proposed fidelity model that has the same support as the marginal model of (4) is:

ψ(E[Y1X1])=V11X1,ψ(E[Y3X1,X2,X3])=V13X1+V23X2+V33X3,ψ(E[Y2X1,X2])=V12X1+V22X2,ψ(E[Y4X1,X2,X3,X4])=V14X1+V24X2+V34X3+V44X4,ψ(E[Y5X5])=V55X5.

Note that the fidelity model has the same support as the true marginal model and in the next section, we show that ancestral relationships can be identified via V.

3.2. Identifying Ancestral Relationships

This subsection proposes a novel structure learning method to identify the ancestral relationships. To start with, we introduce a proposition demonstrating the connections between the primary variables and instrumental variables via V in the fidelity model.

Proposition 3 (Identification of ancestral relationships via V) Assume that Assumption 1 is met. Then,

(a) For a valid instrument Xl, if Vlj0, then Xl intervenes on Yj or an ancestor of Yj.

(b) Yj is a leaf variable with no children if and only if there exists a valid instrument Xl such that Vlj0 and Vl0=1.

(c) If Vlj0 and Xl is a valid instrument for Yk, then Yk is an ancestor of Yj, that is, YkYj.

Proposition 3 suggests that the topological order of a DAG can be reconstructed by recursively identifying and removing (“peeling off”) leaf variables in the graph, as long as the non-zero elements of V are obtained. We define Yj as a leaf variable if it has no children. Next, we first introduce a nodewise constrained GLM-based approach to estimate the non-zero elements of V and then propose a peeling algorithm to identify the ancestral relationships from V based on Proposition 3.

3.2.1. Nodewise constrained GLM Regressions

This subsection proposes nodewise constrained GLM regressions subject to the 0-constraint based on the fidelity model to estimate nonzero elements of V in (3).

Consider the data matrix Xn×q,Yn×p where Xi and Yi refer to the ith row of X and Y. Given independent observations Xi,Yii=1n, let Vj=n1i=1nYij,VjXi denote the negative log-likelihood for a GLM, where Yij,VjXi is the negative log-likelihood for Yij given Xi; refer to Table 1 and (12) for details. For example, Yij,VjXi=YijVjXi+log1+expVjXi for a logistic model.

For j=1,,p, the nodewise constrained GLM regression solves the following minimization with a nonconvex constraint:

V^j=argminVjVjsubjecttol=1qIVlj0Kj, (5)

where 1Kjq is an integer-valued tuning parameter. Note that Kj1 ensures that each variable Yj receives at least one valid IV, as required by Assumption 1(B). Here, we impose the 0-constraint to obtain the exact number of non-zeros as opposed to the 1 version. Note many other penalty functions in the literature induce sparsity such as the 1-penalty (Tibshirani 1996) and the minimax concave penalty (MCP, Zhang (2010)). However, these penalty functions do not yield the exact number of non-zero coefficients to ensure that each variable Yj receives at least one valid IV, i.e., Kj1, required by Assumption 1(B).

To solve the nonconvex minimization (5), we propose a projection-based difference-convex (DC) algorithm for efficient computation. The constrained problem is equivalent to solving a penalized version of (5) by adding a penalty term to the objective function. Specifically, we minimize Vj+λjl=1qIVlj0, where λj>0 is a computational parameter corresponding to the constrained parameter Kj in (5). Next, we replace the 0-indicator function with its computational surrogate, the truncated 1-function (TLP) denoted by Jτ(), where Jτ(z)=min(|z|/τ,1), as suggested by Shen et al. (2012). We decompose Jτ into a difference of two convex functions: Jτ(z)=S1(z)S2(z)|z|/τmax(|z|/τ1,0), to construct an upper approximation of the cost function iteratively. At the t-th iteration, we approximate Jτ by S1(z)S2z[t1]S2z[t1](zz[t1]=|z|τIz[t1]τ+1Iz[t1]τ based on the DC decomposition. Then, we solve the unconstrained minimization problem:

V˜j[t]=argminVljVj+γjτjl=1qIV~lj[t1]τjVlj, (6)

where γj=λj/τj2. The DC algorithm iterates until a stopping criterion is met. In particular, let f() denote the objective function in (6). The DC algorithm terminates at iteration T when fV~j[T]fV~j[T1]ϵtol, where ϵtol is the tolerance level. Finally, the estimated solution V^j is computed by projecting the penalized solution onto the constraint set Vj0Kj. In this paper, q denotes the q-norm of a vector and x0=jIxj0. In practice, we use either 5-fold cross-validation or the extended Bayesian information criterion (EBIC, Chen and Chen (2008)) to choose τj,Kj. We recommend EBIC due to its computational efficiency and strong empirical performance. Algorithm 1 summarizes the DC algorithm for solving nonconvex minimization (5).

Algorithm 1:

DC algorithm for nonconvex minimization (5)

1. (Initialization) Specify tuning parameters τj,Kj. Initialize V˜j[0]0Kj, and choose a sequence of γj so that CjKj in Step 4.
2. (Relaxation) Compute the penalized solution V˜j[t] of (6).
3. (Termination) Repeat Step 2 until a termination criterion is met. Compute V˜:V~j=argminVjVj with VjV~j[t]t=1T, where T is the iteration index at termination.
4. (Projection) Let Cj=l:V~lj>V~jKj+1, where V~Kj+1 is the Kj+1th largest absolute value of the coefficients. Set V^j=argminVjVj subject to Vlj=0 for lCj.

Remark: Computing V^=V^1,,V^p amounts to applying Algorithm 1 p times. The computational complexity of Algorithm 1 to solve one 0-constrained regression in (5) is the number of DC iterations multiplied by that of solving a weighted Lasso regression for a GLM, which is q2max(q,n)logKj0 (Efron et al. 2004).

3.2.2. Identifying Ancestral Relationships via Peeling

Given the nonzero elements of V^ obtained by Algorithm 1, we now introduce a bottom-up peeling algorithm to estimate ancestral relationships through the nonzero elements of V^ using Proposition 3. This algorithm constructs a hierarchy of different layers of primary variables, defined by the causal ordering of the variables. The algorithm begins with leaf variables at the bottom, and proceeds by recursively identifying and peeling off one leaf layer of primary variables along with the associated instrumental variables in the graph. Specifically, at iteration h, based on Proposition 3 (b), the algorithm first identifies all leaf nodes Yk in the subgraph with V^lk[h]0 and instrumental variables Xl such that V^l[h]0=1. In practice, the condition V^l[h]0=1 may not hold due to estimation error. To address this issue, we identify the rows of V^[h] with the smallest positive 0-norm, that is, {l*:l*=argminl=1qV^l[h]0, s.t V^l[h]01}, followed by identifying the largest absolute value element index k*=argmaxk=1p|V^l*k[h]| of the l*th row for each l*. By Proposition 3(b), Xl*Yk*. Moreover, the algorithm identifies the ancestral relationship Yk*Yj if an instrument Xl* for the primary variable Yk* also satisfies V^l*j0 for a previously peeled off Yj, according to Proposition 3 (c). The algorithm continues by peeling off all the current leaf-instrument XlYk pairs (i.e., removing the lth row and kth column from the current V^[h]) to focus on the subgraph. This peeling process repeats until all primary variables are removed. The super-graph 𝒮ˆ contains all the ancestral relationships identified during this process. Lastly, the algorithm computes the causal ordering from the super-graph 𝒮ˆ, which is defined as a linear ordering of the nodes where each node appears before all nodes to which it has edges.

Algorithm 2:

Peeling algorithm for identifying all ancestral relationships

1. (Initialization) V^[1]=V^ and 𝒮ˆ=.
Begin iteration h=1,: at iteration h,
2. (Leaf-IV pairs)
 (a) Identify rows of V^[h] with the smallest positive 0-norm. Store indices of all IVs associated with leaf variables in A[h]=l*:l*=argminV^l[h]0.
 (b) Identify the largest absolute value element index of the l*th row for each l*A[h]:Bl*[h]=k*:k*=argmaxV^l*k[h]. Identify all leaf-IV pairs: Xl*Yk*. Let B[h]=l*Bl*[h].
(Ancestral relationships) Identify ancestral relationships Yk*Yj if i) Xl*Yk* for l*A[h] and ii) V^l*j0 where Yj has been previously removed. Update 𝒮ˆ=𝒮ˆk*,j.
4. (Peeling) Remove leaf variables and associated IVs. Let V^[h+1]=V^A[h],B[h][h] where V^\A[h],B[h][h] is a submatrix by removing the rows and columns indexed by A[h] and B[h] from V^[h].
5. (Termination) Let hh+1 and repeat steps 2–4 until all Yj’s are removed. Update 𝒮ˆ=𝒮ˆ(k,j):YkYj in 𝒮ˆ. Compute the causal ordering πˆ=πˆ1,,πˆp from 𝒮ˆ. Return the ancestors and IVs identified for each Yj, (an¯(j), in¯(j)).

Algorithm 2 summarizes the peeling process for identifying all ancestral relationships or the causal order among primary variables. We include an illustrative example of the peeling algorithm in Appendix A.1. In Step 3, the peeling algorithm identifies all ancestral relationships via Proposition 3, reconstructing a superset that includes all parent-child relationships. Given the superset, we propose a deconfounding approach to identify parent-child relationships.

3.3. Identifying Parent-Child Relationships via Deconfounding

This subsection identifies parent-child relationships given the estimated ancestral relationships from Algorithm 2.

3.3.1. Deconfounding

Given estimated ancestral relationships from the first stage, we develop a novel deconfounding approach based on residual inclusion, called DRI, to estimate parent-child relationships in the presence of confounders. From (2),

ψjEYjYpa(j),X,hj=Upa(j),jYpa(j)+Win(j),jXin(j)+hj,j=1,,p, (7)

where h1,,hp may be correlated. When there is no confounder, we could identify parents by fitting a constrained GLM regression of Yj on its ancestors Yan(j) and instruments Xin(j). However, in the presence of confounders, unobserved confounders hj and hpa(j) can be correlated. Thus Yj’s parent variables Ypa(j) depend on hj through hpa(j), which biases the estimation of Upa(j),j as hj is one resource of the model error for the regression of Yj.

To address the confounding issue, we propose a novel deconfounding approach, DRI, to correct the confounding effects in the child structural equations by treating the residuals from its parent GLM regression as predictors. In this way, this approach utilizes the connections between confounders in a parent and its child equations. To facilitate DRI, we make the practically sensible assumption that the confounders h1,,hp are jointly normal. Assumption 2 simplifies the implementation of DRI and makes it computationally efficient.

Assumption 2 The confounders h1,,hp are jointly normal with an unknown mean and an unknown covariance.

Remark: Assumption 2 can be relaxed to the assumption that each confounder can be represented as a linear function of other confounders along with an independent error, hj=kβkjhk+ϵj. In the literature, most assume one common underlying confounding (i.e., one h across all equations) while we here consider a more general case of h1,,hp. For complex problems, Assumption 2 is sensible as the confounder is in fact an ensemble of many confounding effects. Under the dense confounding setting in Figure 3, the confounder for each variable hj is added up by many independent confounding effects from unobserved variables. Therefore, asymptotics holds and the confounders are jointly normal by the central limit theorem. In practice, many variables are unobserved and each is associated with many primary variables of interest, satisfying the dense confounding setting.

To implement DRI, we estimate the confounding effect hj using the parent equations for each Yj based on Assumption 2, that is, hjhk,kan(j)~Nkan(j)αkjhk,σ2, or hj=kan(j)αkjhk+ej, where ej~N0,σ2 is the unobserved error orthogonal to the projection space spanned by hk:kan(j), and uncorrelated with and thus independent of hk:kan(j) and Ypa(j). By Assumption 1(C) and reparameterization (projecting ej onto the space spanned by the non-valid IVs), ej is also independent of X. Then,

ψjEYjYpa(j),X,hj=Upa(j),jYpa(j)+Win(j),jXin(j)+kan(j)αkjhk+ej, (8)

where DRI replaces hk with the residuals h^k estimated from the parent equations of Yj. As a result, ej is independent of Ypa(j),Xin(j),kan(j)αkjhk in (8), resolving the dependence issue of Ypa(j) on hj in (7) due to confounding.

We propose a top-down algorithm to estimate parent-child relationships through deconfounding, given the causal ordering of the primary variables πˆ, and (an¯(j), in¯(j)), j=1,,p, identified by Algorithm 2. Note that the causal ordering represents the direction of edges in a DAG in that for every directed edge (k,j), i.e., YkYj,k appears before j in the ordering. The algorithm proceeds from the top to the bottom of a hierarchy defined by the causal order while identifying the parents for each primary variable and iterates this process until the last element of the ordering.

The algorithm starts from a root variable Yk that has no parents. First, a GLM regression of Yk is fit on its valid IVs Xin¯(k) via the model: ψkEYkX=Win¯(k),kXin¯(k). Then, we compute the residuals YikφkW^in¯(k),kXi,n¯(k) to estimate the confounding effect hik, where φk() is the inverse link function for the k-th GLM model. It is important to note that the confounders do not bias the estimation of residuals in root equations by the independence assumption of the IVs and confounders. Our simulations and theory suggest that this approach works well, as in the IV regression (Johnston et al. 2008). Alternatively, we can also fit a generalized linear mixed-effects model for root equations when the data has repeated measurements. Details are given in Algorithm 5 of the Appendix.

The algorithm then moves to a non-root variable Yj and considers the GLM regression on its ancestors Yan¯(j), its IVs Xin¯(j), and the estimated confounder h^k from the ancestor equations via the model: ψjEYjYpa(j),X,hj=Uan¯(j),jYan¯(j)+Win¯(j),jXin¯(j)+kan¯(j)αkjh^k+ej, where (pa(j),hk in (8) is replaced by an¯(j),h^k. Specifically, it fits TLP-constrained GLM regressions:

(W^in¯(j),j,U^an¯(j),j,α^an¯(j),j)=Win¯(j),j,Uan¯(j),j,j,αan¯(j),jargmin(Win¯(j),j,Uan¯(j),j,αan¯(j),jXin¯(j),Yan¯(j),h^an¯(j))subjecttokan¯(j)I(Ukj0)Kj¯,kan¯(j)I(αkj0)Kj¯,j=1,,p, (9)

where 0Kj¯|an¯(j)| and 0Kj¯|an¯(j)| can be tuned as in (5), with |⋅| denoting the size of a set; Win¯(j),j is unconstrained so that Assumption (1)(B) continues to satisfy; Win¯(j),j,Uan¯(j),j,αan¯(j),jXin¯(j),Yan¯(j),h^an¯(j)=n1i=1nYij,Win¯(j),jXi,in¯(j)+Uan¯(j),jYi,an¯(j)+αan¯(j),jh^i,an¯(j);hi,an¯(j) denotes a column vector consisting of hik:kan¯(j) and αan¯(j),jh^i,an¯(j)=kan^(j)α^kjh^ik. From (9), we obtain the estimated set pa^(j)=kan¯(j):U^kj0an¯(j), and in^(j)=in¯(j). Finally, we compute the residuals

h^ij=YijφjU^pa^(j),jYi,pa^(j)+W^in^(j),jXi,in^(j)+kan^(j)α^kjh^ik. (10)

Algorithm 3 summarizes the peeling process for identifying parent-child relationships using the proposed deconfounders.

Algorithm 3:

Peeling algorithm for estimating parent-child relationships via DRI

1. Input (an¯(j),in¯(j))j=1p and πˆ from Algorithm 2. Input data matrix Yij,Xijn×(p+q)=Yi,Xii=1n of primary variables Yn×p and instruments Xn×q.
Begin Iteration: for d=1,p,
2. (Estimating the confounding effects via IV regression) If πˆd is a root variable indexed by Yk, compute W^in¯(k),k by fitting a GLM regression of Yk on X:EYkX=φkWin¯(k),kXin¯(k). Compute the residuals: h^ik=YikφkW^in¯(k),kXi,in¯(k).
3. (Deconfounding) If πˆd is a non-root variable indexed by Yj, compute W^in¯(j),j,U^an¯(j),j,α^an¯(j),j by fitting a TLP-constrained GLM regression of Yj in (9). Compute the residuals h^ij in (10).

Remark: The computational complexity of Algorithm 3 amounts to solving at most p TLP-constrained regressions in (5) of size |in¯(j)|+2|an¯(j)| via Algorithm 1, which is of order (p+q)2max(n,(p+q))logKj0.

3.3.2. Connections with 2 SRI and 2 SPS

DRI is reminiscent of, but fundamentally different from the two-stage predictor substitution (2SPS, (Cai et al. 2011)) and two-stage residual inclusion (2SRI, (Hausman 1978; Terza et al. 2008)), both of which require a known causal order between two primary variables. Similar to 2SRI, our DRI uses estimated residuals as additional predictors in subsequent GLM regressions to deconfound. In 2SRI, the residuals obtained at the first stage serve as an additional predictor as opposed to replacing the endogenous variables with their predicted values in 2SPS, which is also known as two-stage least squares for Gaussian data. However, neither applies to our situation of multiple primary variables with an unknown causal order and different confounders among equations.

For our problem, we also include a version of predictor substitution, referred to as DPS, to compare with DRI in the Appendix. In practice, we recommend DRI for causal discovery due to its superior performance and theoretical guarantees, and therefore integrate it with our top-down peeling algorithm for implementation. DRI explores the connection between parent and child equations to eliminate the confounding effect in a child equation through the residuals, whereas DPS cannot capture this aspect. This recommendation is consistent with the observation of Terza et al. (2008) and Ying et al. (2019) that 2SRI suits more than 2SPS for general nonlinear outcomes, including binary or discrete outcomes in our case. Moreover, in Algorithm 3, we use the residuals from a GLM to estimate the unmeasured confounders. Yet, one may employ different models to estimate the confounders based on their distribution. In Appendix B, we present a general framework of the deconfounding algorithm and then propose a generalized linear mixed model (GLMM) to estimate the confounders when the data has repeated measurements.

4. Theory

This section presents a novel theoretical analysis of the proposed approach, offering theoretical guarantees even in the presence of confounders. First, we demonstrate in Theorem 4 that the proposed DC algorithm, Algorithm 1, successfully recovers the true support of V0, terminates within a finite number of steps, and achieves a global minimizer for the nonconvex minimization (5), with probability approaching one. Based on this, our bottom-up peeling algorithm, Algorithm 2, retrieves the true super-graph 𝒮. Secondly, we prove in Theorem 5 that our top-down peeling algorithm, Algorithm 3, accurately reconstructs the true causal graph, thereby identifying all parent-child relationships.

Consider a generalized linear model with the canonical link, where the negative log-likelihood of Yij given Xi based on independent observations Yij,Xii=1n can be expressed as:

Yij,θXi=YijθXi+AjθXi,i=1,,n. (11)

Here, Aj(θ) represents the cumulant function of an exponential family distribution, with θ denoting the regression function. For instance, in the case of the logistic regression, Aj(θ)=log(1+exp(θ)). Given the canonical link, Aj(θ)=EYj=ψj1(θ)=φj(θ)θ=VjXi. Hence, the log-likelihood of Yij given Xi for the fidelity model (3) can be written as:

Yij,VjXi=YijVjXi+AjVjXi,i=1,,n. (12)

Subsequently, we denote 0 as the true parameter; for example, V0 means the true parameter values of V. Denote Sj0=l:Vlj00. Let Kj0=Vj00=Sj0 and Kmax0=max1jpKj0. The following technical conditions are assumed for the fidelity model (3).

Assumption 3 (GLM residuals) Assume there exists an interval K1,K2 such that Vj0XiK1,K2. Further, assume that for any θK1ϵ,K2+ϵ with some constant ϵ>0, there exist some positive constants L1 and L2, such that Aj(θ)L1,Aj(θ)L2,j=1,,p, whereanddenote the second and third derivatives. Moreover, ξiji=1n with ξij=YijEYij is sub-exponential with mean zero, so that for any real t>0,

Pn1i=1nξijt2expmint22M2,t2Mn,j=1,,p.

Note for the fidelity model, EYijX=φjVj0Xi. Similar conditions have been suggested in Assumption E.1 of Ning and Liu (2017). Assumption 3 includes a wide range of exponential family distributions such as Poisson, and holds for a large class of GLMs including the Poisson regression. In particular, Ning and Liu (2017) and Yang et al. (2015) computed the exact value and thus showed the existence of L1 and L2 for specific GLMs including the logistic, exponential, and Poisson regressions. For linear and logistic models, Assumption 3 can be relaxed to sub-Gaussian residuals as all sub-Gaussian and bounded variables are sub-exponential (Maurer and Pontil 2021).

Assumption 4 (Restricted strong convexity) For a constant m>0,

Λmin=minA:|A|2Kmax0min{(Δ,Vj):ΔAc13ΔA1,Vj(Vj0Δ,Vj0+Δ)}Δ2(Vj)ΔΔ22m. (13)

Note that (13) is the restricted strong convexity (eigenvalue) condition and requires the log-likelihood Vj to be strongly convex in a neighborhood of Vj0, where 2Vj0=XMjX and Mj is a diagonal matrix with Miij=AjVj0Xi depending on X and V0 only. This condition has been commonly used for the analysis of the error bound of parameter estimation and the convergence analysis of optimization algorithms (Lee et al. 2015; Negahban et al. 2012; Hastie et al. 2015; Zhang 2017). Note that Assumption 4 permits correlated designs X and is a weaker condition than the irrepresentable condition required by the Lasso (van de Geer and Bühlmann 2009).

Assumption 5 (Bounded domain for interventions) For some constants c0c2 and C1>0,

Xc1,Vj02C1,XSj0MjXSj0/n1XSj0c2,ΩmaxXSj0XSj0/nc0,

where Ωmax() refers to the maximum eigenvalue of a matrix.

Assumption 6 (Minimum signal strength)

minVlj00Vlj0100Mc2logq+lognn.

Assumption 6 specifies the minimal signal strength over candidate interventions. Such an assumption has been widely used for establishing selection consistency in high-dimensional variable selection (Zhao et al. 2018; Fan and Lv 2011).

Theorem 4 (Reconstruction of super-graph via Algorithm 1) Under Assumptions 3-6, for j=1,,p, if the tuning parameters τj,Kj of Algorithm 1 satisfy:

  1. (Computation) γj8τj1Mc1(logq+logn)/n,m/6,

  2. (Tuning parameters) 8Mc2logq+lognnτj0.4minVlj00Vlj0,Kj=Kj0,

then Algorithm 1 terminates in at most 1+log2Kj0/log4 iterations for (5), where is the ceiling function. Moreover, for 1jp,

PV˜jisnotaglobalminimizerof(5)8qexp(2(log(q)+log(n)))=8q1n2.

As a result, Algorithm 1 yields a global minimizer of (5), V~j, with probability tending to 1 as n. Importantly, Algorithm 1, together with Algorithm 2, recovers the true super-graph 𝒮0 containing ancestral relations with probability

P𝒮^𝒮08pq1n2,

where 𝒮^ is obtained from Algorithm 2 and 𝒮0{(k,j):kan(j)}. Under Assumption 1(C) (i.e., pq), with probability tending to one, 𝒮^ correctly reconstructs the true super-graph 𝒮0 and thus the causal order of Y1,,Yp as n.

Theorem 4 ensures the consistent reconstruction of the super-graph 𝒮0 by Algorithm 1 and Algorithm 2, which characterizes ancestral relationships and determines the causal order of primary variables. Also, it says that Algorithm 1 (DC algorithm) attains a global minimizer almost surely as n under the data generating distribution. This result is in contrast to the strong hardness result of Chen et al. (2019) that there does not exist a polynomial-time algorithm achieving the globality of the 0-constrained optimization (5) in the worst-case scenario. We here show that with probability tending to one, this problem can be solved. In other words, the probability of the worst-case scenario tends to zero. Note that Algorithm 1 is indeed a polynomial-time algorithm with time complexity Oq2max(q,n)logKj0 for solving one 0-constrained regression in (5). In addition, since Kj is discrete, the assumption Kj=Kj0 corresponds to the requirement that the optimal parameter λ for the Lasso has to be within a range of values for consistency. In practice, Kj0 is unknown and Kj is tuned via parameter selection methods.

Next, we establish causal graph selection consistency of the estimated causal graph based on the estimates U^j by Algorithm 3. On this ground, we ensure that all parent-child relationships are correctly identified. Let Kj¯0=Uj00,Kj¯0=|an(j)|,s=max1jp|an(j)|, s˜=max1jpWj00, and Z~=Xin(j),Ypa(j),h^an(j). Under Assumption 5 with Z~,Z~b1,Z~MZ~/n1Z~b2, and ΩmaxZ~Z~/nb0.

Theorem 5 (Reconstruction of causal graph via Algorithm 3) Under Assumptions 3-5 with Z~=Xin(j),Ypa(j),h^an(j) in the GLM regression (9), if tuning parameters of Algorithm 3 satisfy:

  1. (Computation) γjτj18Mb1(log(2s+s~)+logp)/n,m/6,

  2. (Tuning parameters) Clog(2s+s˜)+logpnτj0.4minUkj00Ukj0,Kj¯=Kj¯0,Kj¯=Kj¯0,

where C is a constant depending on b1,b2 and b0, then, Algorithm 3 reconstructs the causal graph consistently with probability tending to one, or

PE^=E01,asn,

where E^=(k,j):U^kj0 and E0=(k,j):Ukj00.

Theorem 5 suggests that Algorithm 3 recovers the true causal graph and thus causal relationships with probability tending to one as the sample size is sufficiently large. In Appendix D.5, we prove this by establishing error bounds of the estimates U^j,W^j for estimating U and W by Algorithm 3.

Remark: By Theorem 4 and 5, our proposed GAMPI using Algorithm 13 reconstructs the causal graph consistently with probability at least 18pq1n28(2s+s~)1p1. For fixed p case, the logp term in γj and τj of Theorem 5 can be modified to log(np) respectively and the probability is then 18pq1n28(2s+s~)1n2p1, similar to the remarks of Ravikumar et al. (2010).

5. Simulations

This section investigates the empirical performance of the proposed method. We assess the performance of GAMPI and compare it against the structure learning method NOTEARS (Zheng et al. 2018, 2020), under various graph structures (hub, chain, and random graphs) and types of outcome variables. Further, we compare GAMPI with a recently proposed structure learning method DAGMA (Bello et al. 2022) based on a log-det constraint. For NOTEARS and DAGMA, we use the loss type that is appropriate for the data type of the outcome variables. Note that DAGMA is designed exclusively for Gaussian and logistic outcomes.

5.1. Simulation Setting

The data simulation process is as follows. Firstly, we generate an adjacency matrix U based on the graph structure and construct an intervention matrix W with Wjj=1, for j=1,,p and Wlj=0, for 1ljq. For the hub graph, U1j=1,j=2,,p, and 0 otherwise. The random graph is simulated similarly as Li et al. (2023). Secondly, we generate Gaussian instrumental variables X=X1,,Xq~N(0,1). We also investigate the case when the instrumental variables X are correlated in Appendix C.7. For the confounders, we simulate h~N(0,Σ), where ρij=0.95. In Appendix C.1, we explore the simulation setup where the data is generated without confounders, i.e., h=0. Given X,U,W, and h, we generate random samples Y according to (2). In this section, we consider two data types for the outcome variable Y: binary and count outcomes. In the binary case, Yj is generated from the Bernoulli distribution with PYj=1 equal to expα0wjXin(j)+hj1+expα0wjXin(j)+hj if Yj is a root variable, and expβ1ujYpa(j)+α1wjXin(j)+hj1+expβ1ujYpa(j)+α1wjXin(j)+hj otherwise. For the hub graph, we set α0=5,β1=2.5, and α1=2. For the chain graph, we set α0=5,β1=2.5, and α1=3. For the random graph, we set α0=5,β1=3, and α1=3.

For the count outcome, to avoid extreme values, we employ standard copula transforms to simulate Y, as described by Yang et al. (2015) and Nelsen (2007). Specifically, we first generate data using Y˜j=β1ujYpa(j)+α1wjXin(j)+hj+ϵj, where ϵj are i.i.d. Gaussian errors. We then use a standard copula transform to ensure that the marginals of the generated data Yj are approximately Poisson. For the hub graph, we set α0=5,β1=0.5, and α1=2. For the chain graph, we set α0=5,β1=0.5, and α1=3. For the random graph, we set α0=4,β1=1, and α1=2. We consider three different graph structures: the hub, chain (of length 4), and random graphs. In addition, we fix the sample size n=500 while varying the number of variables from 100 to 300.

To evaluate the accuracy of estimating the directed edges of a graph, we consider five evaluation metrics: the false positive rate (FPR), the false discovery rate (FDR), the F-score, the Matthews correlation coefficient (MCC), and the structural Hamming distance (SHD). The Matthews correlation coefficient is a binary classification metric defined as

TP×TNFP×FN{(TP+FP)(TP+FN)(TN+FP)(TN+FN)}1/2,

where TP, FP, TN and FN denote the true positive, false positive, true negative, and false negative rates for edge selection. A large MCC value close to 1 indicates that the estimated edge set is close to the true edge set. In addition, the structural Hamming distance measures edge directionality between two directed graphs, which is the number of edge insertions, deletions, or flips needed to transform one graph to another graph (Tsamardinos et al. 2006). A small structural Hamming distance between two graphs of the same size indicates their closeness.

5.2. Results

This subsection reports the simulation results in a situation where we simulate the data in the presence of confounders. Table 2 suggests that GAMPI outperforms NOTEARS across all setups in terms of causal graph recovery, as measured by five metrics: FPR, FDR, F-score, MCC, and SHD. Table 2 shows that NOTEARS can yield an empty graph with no edges selected when “NA” occurs. Table 6 in Appendix C.4 suggests that GAMPI outperforms DAGMA significantly in most scenarios, except for the simple case of the hub graph, where both methods perform equally well. Further, note that unlike GAMPI, NOTEARS and DAGMA do not guarantee acyclicity or estimate the parameters of causal effects. To conclude, our simulation results demonstrate the advantage of the proposed method for causal graph recovery in the presence of confounders.

Table 2:

Comparison of causal graph reconstruction accuracy of GAMPI and NOTEARS in the presence of confounders, with GAMPI employing EBIC for tuning parameter selection and NOTEARS applying the default value of 0.1. Metrics include FPR, FDR, F-score, MCC, and SHD. NA indicates that the method returns an empty graph with no edges selected.

Binary
Graph (p,q,n) FPR FDR F-score MCC SHD
No-tears GAMPI No-tears GAMPI No-tears GAMPI No-tears GAMPI No-tears GAMPI
Hub (100,100,500) 0.00 (0.00) 0.00 (0.00) 0.01 (0.01) 0.05 (0.01) 0.16 (0.01) 0.96 (0.01) 0.29 (0.01) 0.96 (0.01) 90.30 (0.78) 8.10 (1.46)
(200,200,500) 0.00 (0.00) 0.00 (0.00) 0.01 (0.01) 0.04 (0.01) 0.13 (0.02) 0.95 (0.01) 0.25 (0.03) 0.95 (0.01) 184.90 (2.37) 20.40 (3.95)
(300,300,500) 0.00 (0.00) 0.00 (0.00) 0.00 (0.00) 0.04 (0.01) 0.21 (0.02) 0.95 (0.01) 0.34 (0.02) 0.95 (0.01) 263.50 (3.87) 28.20 (7.61)
Chain (100,100,500) 0.00 (0.00) 0.00 (0.00) NA (NA) 0.16 (0.02) NA (NA) 0.87 (0.01) 0.00 (0.00) 0.87 (0.01) 75.00 (0.00) 21.00 (2.72)
(200,200,500) 0.00 (0.00) 0.00 (0.00) NA (NA) 0.21 (0.01) NA (NA) 0.84 (0.01) 0.02 (0.01) 0.84 (0.01) 149.80 (0.13) 52.30 (2.31)
(300,300,500) 0.00 (0.00) 0.00 (0.00) NA (NA) 0.22 (0.01) NA (NA) 0.83 (0.01) 0.01 (0.01) 0.83 (0.01) 224.80 (0.13) 84.30 (5.17)
Random (100,100,500) 0.00 (0.00) 0.00 (0.00) NA (NA) 0.14 (0.01) NA (NA) 0.74 (0.02) 0.08 (0.02) 0.74 (0.02) 73.00 (1.56) 33.90 (1.98)
(200,200,500) 0.00 (0.00) 0.00 (0.00) 0.52 (0.08) 0.17 (0.01) 0.03 (0.01) 0.69 (0.01) 0.09 (0.01) 0.70 (0.01) 147.90 (5.32) 78.40 (3.25)
(300,300,500) 0.00 (0.00) 0.00 (0.00) 0.61 (0.04) 0.26 (0.01) 0.03 (0.00) 0.64 (0.00) 0.07 (0.01) 0.65 (0.00) 224.30 (6.86) 144.00 (3.69)
Count
Graph (p,q,n) FPR FDR F-score MCC SHD
No-tears GAMPI No-tears GAMPI No-tears GAMPI No-tears GAMPI No-tears GAMPI
Hub (100,100,500) 0.00 (0.00) 0.00 (0.00) NA (NA) 0.00 (0.00) NA (NA) 1.00 (0.00) 0.00 (0.00) 1.00 (0.00) 99.00 (0.00) 0.30 (0.30)
(200,200,500) 0.00 (0.00) 0.00 (0.00) NA (NA) 0.00 (0.00) NA (NA) 1.00 (0.00) 0.00 (0.00) 1.00 (0.00) 199.00 (0.00) 1.40 (1.19)
(300,300,500) 0.00 (0.00) 0.00 (0.00) NA (NA) 0.00 (0.00) NA (NA) 1.00 (0.00) 0.00 (0.00) 1.00 (0.00) 299.00 (0.00) 2.50 (0.79)
Chain (100,100,500) 0.00 (0.00) 0.00 (0.00) NA (NA) 0.00 (0.00) NA (NA) 0.95 (0.00) 0.00 (0.00) 0.95 (0.00) 75.00 (0.00) 7.30 (0.58)
(200,200,500) 0.00 (0.00) 0.00 (0.00) NA (NA) 0.00 (0.00) NA (NA) 0.94 (0.01) 0.00 (0.00) 0.94 (0.01) 150.00 (0.00) 17.80 (1.58)
(300,300,500) 0.00 (0.00) 0.00 (0.00) NA (NA) 0.00 (0.00) NA (NA) 0.92 (0.00) 0.00 (0.00) 0.92 (0.00) 225.00 (0.00) 32.60 (1.45)
Random (100,100,500) 0.00 (0.00) 0.00 (0.00) NA (NA) 0.00 (0.00) NA (NA) 0.92 (0.01) 0.00 (0.00) 0.92 (0.01) 73.00 (2.93) 11.10 (1.28)
(200,200,500) 0.00 (0.00) 0.00 (0.00) NA (NA) 0.01 (0.00) NA (NA) 0.89 (0.01) 0.00 (0.00) 0.89 (0.01) 154.60 (3.88) 31.40 (2.79)
(300,300,500) 0.00 (0.00) 0.00 (0.00) NA (NA) 0.00 (0.00) NA (NA) 0.88 (0.01) 0.00 (0.00) 0.89 (0.01) 228.60 (2.93) 49.20 (2.45)

In Appendix C.2, we further compare our deconfounding approach via DRI with employing the standard GLM in Algorithm 3 for binary outcomes. For the chain graph, the standard logistic regression without adjusting for confounders does not perform well in terms of causal discovery. This is because the unobserved confounders induce false positive edges between the node and its ancestors. By contrast, the deconfounding approach corrects the bias of the confounders and recovers the true graph structure. For the hub graph, though both two approaches recover the true causal graph, the confounding approach still outperforms the standard logistic regression in terms of parameter estimation. Note that our peeling algorithm in the first stage identifies the correct ancestral relationships (super-graph) as the confounders are independent of the instrumental variables by assumption.

In addition, in Appendix C.1, we consider the special case when the data is simulated without confounders. The result suggests that our deconfounding approach performs well even when the data is simulated without confounders. Last, we consider the simulation setup where the data has repeated measurements. Still, our deconfounding approach using a mixed-effects model outperforms the standard GLM approach. To summarize, our deconfounding approach demonstrates strong empirical performance and outperforms the existing methods in most cases.

6. Mixed DAG Networks: Direct Effect to AD

This section applies GAMPI to a publicly available Alzheimer's Disease Neuroimaging Initiative (ADNI) dataset. Our goal is to estimate a regulatory gene expression network of a subset of genes related to Alzheimer's disease (AD) and identify which of the genes have a direct causal effect on AD through gene-to-gene and gene-to-AD regulatory networks.

First, we download the raw data from the ANDI website (https://adni.loni.usc.edu), containing gene expression, DNA sequencing, and phenotypic data. Then, for preprocessing, we clean and merge these data to obtain 712 subjects with complete records. In addition, from the KEGG database (Kanehisa et al. 2002), we extract the AD reference pathway (hsa05010, https://www.genome.jp/pathway/hsa05010) and therefore obtain 146 genes from the ANDI data. Meanwhile, the subjects are categorized into four groups: Cognitive Normal (CN), Early Mild Cognitive Impairment (EMCI), Late Mild Cognitive Impairment (LMCI), and Alzheimer's Disease (AD). We treat the 247 CN individuals as the control group and the remaining 465 AD and MCI individuals as the case group. We then include the disease status, a binary outcome with 0/1 indicating normal/AD, as an additional variable (node) to identify which genes are directly related to AD. Moreover, we use SNPs as instrumental variables in this case study as it is known that biologically SNPs may have an impact on the genes, but not the other way around, therefore satisfying the IV requirement.

To perform data analysis, we first regress the gene expressions on the additional covariates, including age, gender, education, handedness, and intracranial volume. Next, for each SNP from a gene, we perform significance tests with the gene and disease status marginally and select the genes which have at least one SNP whose i) significance level with the gene is less than 0.05 and ii) significance level with the disease status is less than 0.02, rendering p=39 primary variables. For these genes, we extract their two most correlated SNPs with the disease status based on the p-values given the significance level with the gene less than 0.05, yielding q=39×2=78 instrumental variables. Removing duplicate SNPs and the gene that has the same SNPs as other genes results in p=38 and q=76. To summarize, we use the gene expressions along with the disease status as primary variables and SNPs as instrumental variables to reconstruct a causal network for gene-to-gene and gene-to-disease regulatory relationships.

As shown in Figure 2, GAMPI identifies a direct causal effect of gene ATF6 on the AD status. In the literature, ATF6 is a transcription factor that acts during endoplasmic reticulum (ER) stress by activating UPR target genes, and ER stress is known to be closely associated with AD. Furthermore, Du et al. (2020) suggested that ATF6 could be a potential hub for targeting the treatment of AD, which protects the retention of spatial memory in AD model mice. Zhang et al. (2022) found that the expression of both ATF6 and CTH are decreased in AD patients and ATF6 positively regulates the expression of CTH so that the addition of CTH reduces the loss of spatial learning and memory ability in mice caused by ATF6 reduction. In addition, GAMPI uncovers some known regulatory relationships related to AD in the literature for both the AD and control groups. For example, for the directed connection MAPK1 → CASP8, it has been shown that phosphorylation of p38 MAPK induced by oxidative stress is associated with the activation of caspase-8-mediated apoptotic pathways in dopaminergic neurons (Choi et al. 2004). The connection ATF6 → CDK5R1 is in the AD KEGG pathway https://www.genome.jp/pathway/hsa05010. Furthermore, the approach also identifies some potential gene regulatory relationships for future biological investigations. For example, the two genes in the connection RYR3 → LPL are among the 13 genes directly associated with AD in the DEX DFC geneset analysis (Sharma et al. 2021), while the two genes in the connection GSK3B → COX5A are in the same AD-related protein association network in AD-iPS5 neurons (Hossini et al. 2015). Further, we compare our proposed method GAMPI with the existing method NOTEARS. Both find common gene-to-gene causal relationship NDUFA9 → CDK5R1. Moreover, our proposed method identifies the meaningful gene-to-disease regulatory relationship validated biologically in the literature.

Figure 2:

Figure 2:

Reconstructed gene-to-gene and gene-to-AD regulatory network. “AD status” is a binary outcome with 0/1 indicating normal/AD. Directed edges indicate causal relationships identified by the proposed GAMPI (left) and existing method NOTEARS (right).

7. Discussion

The article introduces a new causal discovery approach, GAMPI, which reconstructs a directed acyclic graph using instruments in the presence of unmeasured confounders. GAMPI involves generalized structural equation models that are identifiable with the help of instruments under certain conditions. GAMPI involves two steps. First, we proposed a fidelity model that is also a generalized linear model, having the same support as the marginal model regarding instrumental interventions. On this ground, we designed a bottom-up peeling algorithm to identify ancestral relationships and valid instruments by exploiting the connection between primary and instrumental variables. In the second step, we proposed a deconfounding approach to further select parent-child relationships from the identified ancestral relationships. This approach estimates the confounding effects from the parenťs equations and uses them in subsequent child equations to correct the confounding effects. The theoretical properties of GAMPI are also analyzed, including the globality of the DC solution for nonconvex minimization, estimation accuracy, and causal graph selection consistency. A series of simulation results demonstrate causal graph selection consistency and the practical advantages of GAMPI for handling unmeasured confounders and non-Gaussian outcomes.

Overall, GAMPI provides a promising approach to causal discovery, with potential applications in various fields beyond Alzheimer's disease. For instance, the method can be used to explore causal relationships in complex systems with unmeasured confounders, such as in economics or public health. Furthermore, GAMPI's flexibility to adapt to different distributions of confounders and link functions makes it suitable for a wide range of scenarios. For instance, it can handle directed graphical models with mixed variables (Chowdhury et al. 2022). In conclusion, GAMPI offers a valuable contribution to causal inference by providing a practical method for identifying causal relationships under challenging situations.

The R implementation is available at https://github.com/minjie-wang/GAMPI.

Supplementary Material

1

Acknowledgments

The authors would like to thank the action editor and three anonymous reviewers for constructive comments and suggestions on this work. The research is supported in part by NSF grant DMS-1952539, NIH grants R01GM113250, R01GM126002, R01AG065636, R01AG074858, R01AG069895, U01AG073079.

Contributor Information

Minjie Wang, Department of Mathematics and Statistics, Binghamton University, State University of New York, Binghamton, NY 13902, USA.

Xiaotong Shen, School of Statistics, University of Minnesota, Minneapolis, MN 55455, USA.

Wei Pan, Division of Biostatistics, University of Minnesota, Minneapolis, MN 55455, USA.

References

  1. Bello Kevin, Aragam Bryon, and Ravikumar Pradeep. DAGMA: Learning DAGs via M-matrices and a log-determinant acyclicity characterization. In Advances in Neural Information Processing Systems, volume 35, pages 8226–8239, 2022. [Google Scholar]
  2. Cai Bing, Small Dylan S, and Ten Have Thomas R. Two-stage instrumental variable methods for estimating the causal odds ratio: analysis of bias. Statistics in Medicine, 30(15):1809–1824, 2011. [DOI] [PubMed] [Google Scholar]
  3. Chen Jiahua and Chen Zehua. Extended Bayesian information criteria for model selection with large model spaces. Biometrika, 95(3):759–771, 2008. [Google Scholar]
  4. Chen Li, Li Chunlin, Shen Xiaotong, and Pan Wei. Discovery and inference of a causal network with hidden confounding. Journal of the American Statistical Association, pages 1–13, 2023. [Google Scholar]
  5. Chen Yichen, Ye Yinyu, and Wang Mengdi. Approximation hardness for a class of sparse optimization problems. Journal of Machine Learning Research, 20(38):1–27, 2019. [Google Scholar]
  6. Choi Won-Seok, Eom Dae-Seok, Han Baek S, Kim Won K, Han Byung H, Choi Eui-Ju, Oh Tae H, Markelonis George J, Cho Jin W, and Oh Young J. Phosphorylation of p38 MAPK induced by oxidative stress is linked to activation of both caspase-8-and-9-mediated apoptotic pathways in dopaminergic neurons. Journal of Biological Chemistry, 279(19):20451–20460, 2004. [DOI] [PubMed] [Google Scholar]
  7. Chowdhury Shrabanti, Wang Ru, Yu Qing, Huntoon Catherine J, Karnitz Larry M, Kaufmann Scott H, Gygi Steven P, Birrer Michael J, Paulovich Amanda G, Peng Jie, et al. DAGBagM: learning directed acyclic graphs of mixed variables with an application to identify protein biomarkers for treatment response in ovarian cancer. BMC Bioinformatics, 23(1):1–19, 2022. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Du Yayun, Liu Xiaoli, Zhu Xilin, Liu Ying, Wang Xinru, and Wu Xiaopan. Activating transcription factor 6 reduces Aβ1–42 and restores memory in Alzheimer's disease model mice. International Journal of Neuroscience, 130(10):1015–1023, 2020. [DOI] [PubMed] [Google Scholar]
  9. Efron Bradley, Hastie Trevor, Johnstone Iain, and Tibshirani Robert. Least angle regression. The Annals of Statistics, 32(2):407–499, 2004. [Google Scholar]
  10. Fan Jianqing and Lv Jinchi. Nonconcave penalized likelihood with NP-dimensionality. IEEE Transactions on Information Theory, 57(8):5467–5484, 2011. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Hastie Trevor, Tibshirani Robert, and Wainwright Martin. Statistical learning with sparsity: the lasso and generalizations. CRC press, 2015. [Google Scholar]
  12. Hausman Jerry A. Specification tests in econometrics. Econometrica, 46(6):1251–1271, 1978. [Google Scholar]
  13. Hossini Amir M, Megges Matthias, Prigione Alessandro, Lichtner Bjoern, Toliat Mohammad R, Wruck Wasco, Schröter Friederike, Nuernberg Peter, Kroll Hartmut, Makrantonaki Eugenia, et al. Induced pluripotent stem cell-derived neuronal cells from a sporadic Alzheimer's disease donor as a model for investigating AD-associated gene regulatory networks. BMC Genomics, 16:1–22, 2015. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Johnston KM, Gustafson P, Levy AR, and Grootendorst P. Use of instrumental variables in the analysis of generalized linear models in the presence of unmeasured confounding with applications to epidemiological research. Statistics in Medicine, 27(9):1539–1556, 2008. [DOI] [PubMed] [Google Scholar]
  15. Kanehisa Minoru et al. The KEGG database. In Novartis Foundation Symposium, pages 91–100. Wiley Online Library, 2002. [PubMed] [Google Scholar]
  16. Kang Hyunseung, Zhang Anru, Cai T Tony, and Small Dylan S. Instrumental variables estimation with some invalid instruments and its application to mendelian randomization. Journal of the American Statistical Association, 111(513):132–144, 2016. [Google Scholar]
  17. Knudson Christina, Benson Sydney, Geyer Charles, and Jones Galin. Likelihood-based inference for generalized linear mixed models: Inference with the R package glmm. Stat, 10(1):e339, 2021. [Google Scholar]
  18. Lee Jason D, Sun Yuekai, and Taylor Jonathan E. On model selection consistency of regularized M-estimators. Electronic Journal of Statistics, 9(1):608–642, 2015. [Google Scholar]
  19. Li Chunlin, Shen Xiaotong, and Pan Wei. Inference for a large directed acyclic graph with unspecified interventions. Journal of Machine Learning Research, 24(73):1–48, 2023. [PMC free article] [PubMed] [Google Scholar]
  20. Li Wei and Lederer Johannes. Tuning parameter calibration for 1-regularized logistic regression. Journal of Statistical Planning and Inference, 202:80–98, 2019. [Google Scholar]
  21. Lousdal Mette Lise. An introduction to instrumental variable assumptions, validation and estimation. Emerging Themes in Epidemiology, 15(1):1, 2018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Maurer Andreas and Pontil Massimiliano. Concentration inequalities under sub-Gaussian and sub-exponential conditions. In Advances in Neural Information Processing Systems, volume 34, pages 7588–7597, 2021. [Google Scholar]
  23. Negahban Sahand N, Ravikumar Pradeep, Wainwright Martin J, and Yu Bin. A unified framework for high-dimensional analysis of M-estimators with decomposable regularizers. Statistical Science, 27(4):538–557, 2012. [Google Scholar]
  24. Nelder John Ashworth and Wedderburn Robert WM. Generalized linear models. Journal of the Royal Statistical Society: Series A (General), 135(3):370–384, 1972. [Google Scholar]
  25. Nelsen Roger B.. An Introduction to Copulas. Lecture Notes in Statistics. Springer, 2nd edition, 2007. [Google Scholar]
  26. Ning Yang and Liu Han. A general theory of hypothesis tests and confidence regions for sparse high dimensional models. The Annals of Statistics, 45(1):158–195, 2017. doi: 10.1214/16-AOS1448. [DOI] [Google Scholar]
  27. Park Gunwoong and Raskutti Garvesh. Learning quadratic variance function (QVF) DAG models via overdispersion scoring (ODS). Journal of Machine Learning Research, 18(224):1–44, 2018. [Google Scholar]
  28. Pearl Judea. Models, reasoning and inference. Cambridge University Press, 19(2):3, 2000. [Google Scholar]
  29. Ravikumar Pradeep, Wainwright Martin J, and Lafferty John D. High-dimensional Ising model selection using ℓ1-regularized logistic regression. The Annals of Statistics, 38(3):1287–1319, 2010. [Google Scholar]
  30. Ravikumar Pradeep, Wainwright Martin J., Raskutti Garvesh, and Yu Bin. High-dimensional covariance estimation by minimizing 1-penalized log-determinant divergence. Electronic Journal of Statistics, 5:935–980, 2011. doi: 10.1214/11-EJS631. [DOI] [Google Scholar]
  31. Sharma Ayati, Chunduri Alisha, Gopu Asha, Shatrowsky Christine, Crusio Wim E, and Delprato Anna. Common genetic signatures of Alzheimer's disease in Down Syndrome. F1000Research, 9:1299, 2021. [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Shen Xiaotong, Pan Wei, and Zhu Yunzhang. Likelihood-based selection and sharp parameter estimation. Journal of the American Statistical Association, 107(497):223–232, 2012. [DOI] [PMC free article] [PubMed] [Google Scholar]
  33. Shen Xiaotong, Pan Wei, Zhu Yunzhang, and Zhou Hui. On constrained and regularized high-dimensional regression. Annals of the Institute of Statistical Mathematics, 65(5):807–832, 2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  34. Shi Chengchun, Zhou Yunzhe, and Li Lexin. Testing directed acyclic graph via structural, supervised and generative adversarial learning. Journal of the American Statistical Association, pages 1–14, 2023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  35. Spirtes P, Glymour CN, and Scheines R. Causation, prediction, and search. The MIT Press, 2000. [Google Scholar]
  36. Terza Joseph V, Basu Anirban, and Rathouz Paul J. Two-stage residual inclusion estimation: addressing endogeneity in health econometric modeling. Journal of Health Economics, 27(3): 531–543, 2008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  37. Theil Henri. Estimation and simultaneous correlation in complete equation systems. Henri Theil's Contributions to Economics and Econometrics: Econometric Theory and Methodology, pages 65–107, 1992. [Google Scholar]
  38. Tibshirani Robert. Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society: Series B (Methodological), 58(1):267–288, 1996. [Google Scholar]
  39. Tsamardinos Ioannis, Brown Laura E, and Aliferis Constantin F. The max-min hill-climbing Bayesian network structure learning algorithm. Machine Learning, 65(1):31–78, 2006. [Google Scholar]
  40. van de Geer Sara A. and Bühlmann Peter. On the conditions used to prove oracle results for the Lasso. Electronic Journal of Statistics, 3:1360–1392, 2009. [Google Scholar]
  41. Vershynin Roman. High-dimensional probability: An introduction with applications in data science, volume 47. Cambridge University Press, 2018. [Google Scholar]
  42. Windmeijer Frank, Farbmacher Helmut, Davies Neil, and Smith George Davey. On the use of the lasso for instrumental variables estimation with some invalid instruments. Journal of the American Statistical Association, 114(527):1339–1350, 2019. [DOI] [PMC free article] [PubMed] [Google Scholar]
  43. Yang Eunho, Baker Yulia, Ravikumar Pradeep, Allen Genevera, and Liu Zhandong. Mixed Graphical Models via Exponential Families. In Proceedings of the Seventeenth International Conference on Artificial Intelligence and Statistics, volume 33, pages 1042–1050. PMLR, 2014. [Google Scholar]
  44. Yang Eunho, Ravikumar Pradeep, Allen Genevera I., and Liu Zhandong. Graphical models via univariate exponential family distributions. Journal of Machine Learning Research, 16(115): 3813–3847, 2015. URL http://jmlr.org/papers/v16/yang15a.html. [PMC free article] [PubMed] [Google Scholar]
  45. Ying Andrew, Xu Ronghui, and Murphy James. Two-stage residual inclusion for survival data and competing risks — An instrumental variable approach with application to SEER-Medicare linked data. Statistics in Medicine, 38(10):1775–1801, 2019. [DOI] [PubMed] [Google Scholar]
  46. Yuan Yiping, Shen Xiaotong, Pan Wei, and Wang Zizhuo. Constrained likelihood for reconstructing a directed acyclic Gaussian graph. Biometrika, 106(1):109–125, 2019. [DOI] [PMC free article] [PubMed] [Google Scholar]
  47. Zhang Cun-Hui. Nearly unbiased variable selection under minimax concave penalty. The Annals of Statistics, 38(2):894–942, 2010. doi: 10.1214/09-AOS729. [DOI] [Google Scholar]
  48. Zhang Hui. The restricted strong convexity revisited: analysis of equivalence to error bound and quadratic growth. Optimization Letters, 11(4):817–833, 2017. [Google Scholar]
  49. Zhang Jun-Yuan, Ma Shuang, Liu Xiaoli, Du Yayun, Zhu Xilin, Liu Ying, and Wu Xiaopan. Activating transcription factor 6 regulates cystathionine to increase autophagy and restore memory in Alzheimer's disease model mice. Biochemical and Biophysical Research Communications, 615: 109–115, 2022. [DOI] [PubMed] [Google Scholar]
  50. Zhao Tuo, Liu Han, and Zhang Tong. Pathwise coordinate optimization for sparse learning: Algorithm and theory. The Annals of Statistics, 46(1):180–218, 2018. [Google Scholar]
  51. Zheng Xun, Aragam Bryon, Ravikumar Pradeep, and Xing Eric P. DAGs with NO TEARS: continuous optimization for structure learning. In Advances in Neural Information Processing Systems, volume 31, 2018. [Google Scholar]
  52. Zheng Xun, Dan Chen, Aragam Bryon, Ravikumar Pradeep, and Xing Eric. Learning sparse nonparametric DAGs. In International Conference on Artificial Intelligence and Statistics, pages 3414–3425. PMLR, 2020. [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

1

RESOURCES