Next Article in Journal
A Software Verification Method for the Internet of Things and Cyber-Physical Systems
Next Article in Special Issue
The Effect of Critical Distance in Digital Levelling
Previous Article in Journal
Developing a Numerical Method of Risk Management Taking into Account the Decision-Maker’s Subjective Attitude towards Multifactorial Risks
Previous Article in Special Issue
Spillover Effects in Empirical Corporate Finance: Choosing the Proxy for Treatment Coverage
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Quantifying Causal Path-Specific Importance in Structural Causal Model

1
Department of Computer Science, University of California, Davis, CA 95616, USA
2
School of Industrial and Systems Engineering, Georgia Institute of Technology, Atlanta, GA 30332, USA
3
Department of Mechanical and Aerospace Engineering, University of California, Davis, CA 95616, USA
*
Author to whom correspondence should be addressed.
Computation 2023, 11(7), 133; https://doi.org/10.3390/computation11070133
Submission received: 30 April 2023 / Revised: 3 July 2023 / Accepted: 5 July 2023 / Published: 7 July 2023
(This article belongs to the Special Issue Causal Inference, Probability Theory and Graphical Concepts)

Abstract

:
Path-specific effect analysis is a powerful tool in causal inference. This paper provides a definition of causal counterfactual path-specific importance score for the structural causal model (SCM). Different from existing path-specific effect definitions, which focus on the population level, the score defined in this paper can quantify the impact of a decision variable on an outcome variable along a specific pathway at the individual level. Moreover, the score has many desirable properties, including following the chain rule and being consistent. Finally, this paper presents an algorithm that can leverage these properties and find the k-most important paths with the highest importance scores in a causal graph effectively.

1. Introduction

Path-specific effect analysis, which quantifies the strength of pathways linking a decision to its outcome, is an important topic in statistical causal inference. This approach has been widely adopted across various disciplines, including social psychology [1], medicine [2], and economics [3], proving to be a valuable tool for analyzing complex systems. Recently, with the advancement of artificial intelligence, path-specific effect analysis has been employed to provide explanations for decision-making mechanisms in models and design algorithms that promote fair predictions [4,5,6].
As an illustration of the significance of the path-specific effect, consider the structural causal model (SCM) in Figure 1, which describes a hiring process based on an applicant’s gender, number of children, physical strength, and qualifications [7]. The effect of gender (X) on the hiring decision (Y) can be decomposed into three different pathways starting from X and ending in Y: the direct impact of gender (unfair) π 1 : X Y ; the impact mediated by the number of children π 2 : X C Y (unfair, as it also discriminates against women who have children); and the impact mediated by physical strength π 3 : X M Y (fair). It is essential to measure each path’s effect in the SCM to analyze the hiring process’ fairness. The importance of the path-specific effect is also demonstrated in other domains, such as protein signaling networks, which provide insight into how signaling molecules influence subsequent molecules in the cascade [2] and biological pathways of symptoms, where it elucidates the impact of a disease on symptoms [8]. Identifying and differentiating specific pathways can contribute to a deeper understanding of complex diseases and may lead to new insights into disease mechanisms.
However, using the classical definition of the path-specific effect [9] has limitations in assessing the fairness of SCM. This is because it only provides an average effect estimate at the population (type) level without considering individual-level impact (token). For example, the impact of gender on hiring ( X Y ) can be very small on average for the population but it can be large for an individual.
To overcome this limitation, we present a novel definition of the causal counterfactual path-specific importance score at the individual level. The proposed definition has three major advantages. Firstly, it can quantify individual-level impact through a specific pathway from the source vertex to the target vertex. Secondly, for paths with multiple edges, the effect can be decomposed into individual edges and evaluated as the product of the effects associated with the edges, making it cognitively intuitive for humans to understand. Finally, the computation of the proposed definition is efficient compared to the classical path-specific effect calculation, which is computationally demanding due to the need to evaluate each path independently. In complex causal graphs where the number of pathways grows exponentially with the number of edges, evaluating all pathways from the source vertex to the target vertex can be expensive. Our proposed path-specific importance score has desirable mathematical properties and can be efficiently computed through our designed algorithm.
In summary, we defined a causal counterfactual path-specific importance score, which quantifies the individual-level impact of a specific path from the source variable to the target variable. We show that our metric has desirable mathematical properties, including adherence to chain rules and consistency. Additionally, we present an algorithm that can efficiently compute the scores of all paths from the source vertex to the target vertex and identify the k-most significant paths in a causal graph with the highest scores.
The structure of this paper is as follows. Section 2 introduces preliminary knowledge related to causality. Section 3 presents our definition of path-specific counterfactual importance score. In Section 4, we establish the mathematical properties of the importance score. In Section 5, we propose an efficient algorithm to identify the most important path. Section 6 provides the evaluation of our method, while Section 7 presents related works in the field. Section 8 offers a detailed discussion of our findings. We summarize our work in Section 9. Lastly, the appendix provides proof of theorems and lemmas.

2. Preliminaries

We introduce the notation used to express concepts and variables. Capital letters, such as X, are utilized to represent random variables, while small letters, such as x, are utilized to denote the realizations of these variables. Bold letters, such as X , are used to denote vectors of random variables. Calligraphic letters, such as X , are used to represent sets. For a given natural number n, the [ n ] is defined as the set { 1 , 2 , , n } .

2.1. Causal Graph and Skeleton

Causal graphs are probabilistic graphical models specifically constructed to depict data-generating processes  [10]. In the graph, each vertex represents a variable. With a given variable set denoted as V = { V i , i [ n ] } , a directed edge started from variable V j and ended with V i implies that V i reacts to modifications in V j , with all other variables in the causal graph maintaining respective constant values. Direct causes of V i , or its parent variables, are defined as those linked to V i through directed edges, denoted by the set P a i . The underlying structure of a causal graph, commonly referred to as its skeleton, is determined by the graph’s overall topology.

2.2. Structural Causal Models (SCM)

The Structural Causal Model (SCM) introduces a framework in which the value of each variable V i can be determined as a function of both its parent variables and exogenous variables within a causal graph. This formalization proceeds as follows: let V = { V i , i [ n ] } denote a set of endogenous (observed) variables, and let U = { U i , i [ n ] } stand for a set of exogenous (unobserved) variables. An SCM is then established through a series of structural equations [10]:
V i = f i ( P a i , U i ) , P a i V , U i U , i [ n ] ,
where function f i signifies the causal mechanism of V i , thereby determining the value of V i contingent upon its parent variables and the respective exogenous variables.

2.3. Intervention and Do-Operation

The intervention of a variable on an SCM, denoted by the d o ( · ) operator, refers to assigning a constant value v to V i , irrespective of its structural equation in the SCM. d o ( V i = v ) means setting the value of V i to a constant v regardless of its structural equation in the SCM, i.e., ignoring the edges into the vertex V i . This equates to disregarding the edges leading into the vertex V i in the causal graph. After intervention d o ( X = x ) , the distribution of Y is denoted by P ( Y X = x = y ) , where the variable Y X = x is the value of Y after intervention d o ( X = x ) .

2.4. Path

Given a graph G, a path from vertex X to vertex Y in G is a finite sequence of edges π that originates at X and terminates at Y, such that any two consecutive edges in π are adjacent and all vertices are distinct. In particular, π can be a direct edge { X Y } or a sequence of edges { X V 1 , V 1 V 2 , , V m 1 Y } .

2.5. Counterfactual Reasoning

Counterfactual reasoning enables the exploration of hypothetical “what if” scenarios. Consider a set of the endogenous (observed) variable O in the causal graph and an observation o referring to a realization of these variables, given X = x , the counterfactual question is asking what the potential outcome is if X were assigned a different value, x  [10]. The counterfactual outcome of Y is represented as Y X = x | X = x , O = o . With a given SCM, deterministic counterfactual reasoning can be accomplished through intervention as follows:
  • Recover the exogenous variable value U as u, via the structural functions and the values X = x , O = o ;
  • Calculate the counterfactual outcome Y X = x | U = u . Specifically, within the SCM, assign the value of X to x and substitute all exogenous variable values U as u on the right side of each structural function to obtain the value of Y.
The two steps are called deterministic counterfactual reasoning  [11], because the value of U can be solved uniquely from f when X and o are given. If the exogenous variable U in step 1 has multiple solutions, then nondeterminism should be involved in causal models by assigning a prior probability P ( U = u ) . In the nondeterministic counterfactual reasoning [11], step 1 is to update P ( U ) as P ( U | X = x , O = o ) , and the counterfactual outcome in step 2 is defined as the expectation over the posterior distribution of U.

3. Causal Effect along Different Pathways

We consider an SCM that represents the causal relationships among a set of variables V = { V i , i [ n ] } that are given. All structural functions f i , i [ n ] are assumed to be continuous, with bounded derivatives on their respective domains. Additionally, we assume the corresponding causal graph G is a directed acyclic graph (DAG), as an example depicted in Figure 1.
Our primary objective is to examine the influence of a source vertex X on a target vertex Y, where X , Y V . The most prevalent definition of a causal effect is applied within the medical field for binary cases, where the outcome variable Y depends on whether a patient accepts the diagnosis D or not. In this context, the causal effect is defined as the expected difference between these two scenarios within the population, denoted by E [ Y D = 1 ] E [ Y D = 0 ] . Building upon this concept, to evaluate the causal effect at an individual level, allowing the algorithm to quantify the impact for a specific data point, we introduce the total counterfactual importance score described in Definition 1. This method incorporates counterfactual reasoning and a perturbation value δ in the denominator of Equation  (2).
Definition 1.
(Total Counterfactual Importance Score) Given a factual observation o : { V i = v i | i = 1 , , n } , which is a realization of all endogenous variables, for X , Y V , the counterfactual importance score of X on Y when O = o is
w X Y | o = lim δ 0 E [ Y X = x + δ | o ] E [ Y X = x | o ] δ ,
where X = x is the factual observation from o.
The numerator represents the difference between two counterfactual outcomes of Y in the situations X is setup to X or x + δ when given the observation o. By incorporating the denominator δ and the limit operation in Equation (2), this definition intuitively captures how Y responds to the change on X given the current observation o. A larger value of effect scores for a path indicates greater significance for that path.
Next, we will discuss how to perform an intervention on a variable along a path. Furthermore, we introduce the concept of the path-specific counterfactual importance score for a given path π , which starts from variable X and ends at variable Y. This score quantifies the causal effect from the source variable to the target variable along a specific path. A direct edge can be considered a special case of a path.
Definition 2.
(Intervention on a variable along a path) For an SCM M, given a path (or an edge, a subgraph) π, we can partition each vertex V i ’s parents into two parts P a i = P a i ( π ) P a i ( π ˜ ) , where P a i ( π ) represents those members of P a i that are linked to V i in π and P a i ( π ˜ ) represents the complementary set. The operation of intervention of X = x on the path π is defined as: we replace the structural equation f i as f i ( P a i , u ) π = f i ( P a i ( π ) X = x , P a i ( π ˜ ) , u ) , where P a i ( π ) X = x represents it taking the value when X = x is enforced. The outcome of Y after the intervention of X = x on the path π can be represented as Y X = x ( π ) , where x ( π ) represents value x in the path π.
Definition 3.
(Path-Specific Counterfactual Importance Score) Given a factual observation o : { V i = v i | i = 1 , , n } , which is a realization of all endogenous variables, and a causal path π in graph G, the path-specific counterfactual importance score of source vertex X on target vertex Y along path π is defined as follows:
w X π Y | o = lim δ 0 E [ Y X = x + δ ( π ) , X = x ( π ˜ ) | o ] E [ Y X = x | o ] δ .
Here, X = x is the factual observation. The term π ˜ = Π X Y π represents the set of all paths from X to Y excluding path π, where Π X Y is the set of all paths from X to Y. When the path is a direct edge from X to Y, the notation w X π Y | o can be simplified as w l X Y | o . The first term in the numerator represents the counterfactual outcome of Y when X is fixed at x + δ if X is part of path π; otherwise, it remains fixed at x.
The numerator captures the effect of X on Y through the given π . Definition 3 can quantify how Y responds to the change on X only through a path π given the current observation o. In our model, the direct effect is defined as the effect propagated only through the edge directly connecting the source and target, which can be regarded as a special case of path-specific effect.
Intuitively, Definition 3 uses the intervention operation on a path and only considers the effect of the changing of X on Y propagating from the given path π . We will keep X as its original value for other edges in the graph. Intuitively, if the change caused by the intervention is larger, the causal strength of X to Y on these paths is larger. The operation of intervention on a path isolates the impact on Y by X on the given path. The normalization and limitation operation on the intervention value provides some “independence” among edges of the causal effect in a path. These exhibit desirable properties.
The numerator is similar to the definition of the counterfactual path-specific effect in [5]. However, they focus on the discrete case. Although [5] can be directly extended to the individual level, it does not have the math properties we propose in the next section. Our definition adds the normalization of the intervention value in the denominator and focuses on the strength of the local effect by limitation operation. Intuitively, these modifications provide some “independence” of the causal effect in the graph. So, our method has more straightforward decomposition and fast calculation properties (discussed in the next section), which are important for explaining and evaluating the causal effect along each path.
The limit format of the perturbation value δ has a similar format to that of the incremental causal effect and the marginal treatment effect [12,13,14]. Ours are defined on the counterfactual reasoning and the path-specific effect. However, they focus on the total or direct effect.

4. Properties of Path-Specific Counterfactual Importance Score

As previously stated in the introduction, the traditional definition of the path-specific effect encounters difficulties in decomposing its effect to individual edges and computing it efficiently. This section delves into the mathematical properties of our path-specific counterfactual importance score, which addresses these limitations.
In detail, we discuss the connection between our definition and the partial derivative involved in the calculation, as well as the consistency between the total importance score and path-specific score. First, we introduce an assumption and a lemma pertinent to the direct effect, which refers to an edge that directly connects the source and target vertex within the graph.
Lemma 1.
For an SCM M, given an edge from X to Y, and the structural causal equation of Y: Y = f Y ( X , Z yx , U y ) , where Z yx represents all parents of Y excluding X. Given a factual observation o, the counterfactual importance score of X on Y along the path/link π = l X Y = { X Y } is the partial derivative of Y with respect to X at the point of the observation. Formally,
w l X Y | o = E U y | o Y X o = E U y | o Y X X = x , Z yx = z yx , U y = u y = Y X X = x , Z yx = z yx , U y = u y P ( u y | o ) d u y .
Lemma 1 does not require the exogenous variables U to be deterministically recovered (having a unique solution when f , X , o are given). The derivation is based on nondeterministic counterfactual reasoning. It shows that the value of the path-specific counterfactual importance score in an edge case is the partial derivative of Y concerning X in the counterfactual reasoning data point weighted by the posterior probability of U . Additionally, if exogenous variables U can be perfectly recovered as u , given a factual observation o : { V j = v j | j = 1 , , n } , then Equation (4) in Lemma 1 can be simplified as Equation (5). The detailed proof of Lemma 1 can be found in Appendix A.
w l X Y | o = Y X o .
We introduce the following assumption about exogenous variables U .
Assumption 1.
(Independent exogenous variables assumption) All exogenous variables U are independent.
Based on Lemma 1, when Assumption 1 holds true, we can derive the following theorem for a general path in the causal graph, which shows that the calculation of the importance score for each edge in the graph is independent and the importance score for a path is the multiplication of the importance score for each edge inside the path. Our path-specific score can be directly decomposed to individual edges. This is helpful for understanding the effect of these edges on the outcome and designing effective algorithms for calculating the importance score in the graph. The detailed proof of Theorem 1 is in Appendix A.
Theorem 1.
(Chain rule: path-specific counterfactual importance score and partial derivative). For an SCM M, when Assumption 1 holds true, given a path π = { X V 1 , V 1 V 2 , V m 2 V m 1 , V m 1 Y } with length m and a factual observation o, the path-specific counterfactual importance score of the source vertex X on target vertex Y along the path π can be represented as:
w X π Y | o = w l X V 1 | o i = 1 m 2 w l V i V i + 1 | o w l V m 1 Y | o = E U 1 | o V 1 X o i = 1 m 2 E U i + 1 | o V i + 1 V i o E U Y | o Y V Y o .
We also show the consistency of our definition in Theorem 2. The sum of counterfactual path-specific scores among all paths from source to target is the same as the total counterfactual importance score from source to target. It provides the connection between Definitions 1 and 3. This makes the addition and comparison among different paths’ scores more meaningful. The detailed proof is in Appendix A.
Theorem 2.
(Consistency) Given an SCM M and a factual observation o, when Assumption 1 holds true, the total counterfactual importance score of X on Y equals the summation of path-specific counterfactual importance score among all the possible paths from X to Y:
w X Y | o = π Π X Y w X π Y | o .

5. Efficient Algorithm for the Most Important Path

In reality, given an SCM, people are more interested in finding the most important path that has the largest impact. We define the most important paths from the source to the target as the path with the largest absolute value of the Importance score. We introduce Algorithm 1 to find the most important path effectively. We note that this algorithm can be easily extended to the k-most important path, by using a priority queue.
Algorithm 1 Fast calculation for the most important path.
1:
Inputs: Graph G(V, E), source vertex X, target vertex Y
2:
Outputs: Path P
3:
Calculate the path-specific importance score for each edge in the graph: w 1 , w 2 , , w n , where n = | E |
4:
Transfer the importance score to log scale, l o g ( | w 1 | ) , l o g ( | w 2 | ) , , l o g ( | w n | )
5:
Define a graph G that maintains same skeleton as graph G, with edge weight l o g ( | w 1 | ) , l o g ( | w 2 | ) , , l o g ( | w n | )
6:
Path P = LongestPathDAG( G , X, Y)
7:
return P
Based on Theorem 1, the calculation for the importance score for each edge is independent. So, we can evaluate each edge’s score first and then calculate the path’s score. Then, we notice that finding the most important path in the original causal graph can be reduced into finding the longest path in a DAG with different edge weights. In detail, based on Theorem 1, the importance score for a path is the multiplication of the importance score for each edge inside the path. We denote the importance score of all edges in a graph as w 1 , , w n , where n is the number of edges. Because of the monotonicity of the log function, i = 1 n | w i | achieves the largest value as the l o g ( i = 1 n | w i | ) . Then, we can transfer it from the multiplication to the summation as follows:
l o g ( i = 1 n | w i | ) = i = 1 n l o g ( | w i | ) .
Next, we define a new graph G with the same skeleton as the original graph G, but the length for edge i is log ( | w i | ) , rather than w i , i [ n ] . For each path in G with a length of i = 1 n log ( | w i | ) , there exists a corresponding path in G with an absolute importance score of i = 1 n | w i | . Given the monotonicity of logarithms, the most important path in the original graph G corresponds to the longest path in the transformed graph G . Finally, Algorithm 1 calls a subroutine Algorithm 2 to calculate the longest path in a DAG [15]. Because of the acyclic property, Algorithm 2 can find the longest path in polynomial time by topological sort and dynamic programming.
Algorithm 2 Longest path in DAG.
1:
Inputs:Weighted DAG graph G ( V , E ) , source vertex X, target vertex Y
2:
Outputs: Path P
3:
Linearized order V = Topologically sort G
4:
for each vertex v V in linearized order from X to Y do
5:
    d i s t ( v ) = max u , v E ( d i s t ( u ) + w ( u , v ) )
6:
    v p r e v i o u s = a r g m a x u , v E ( d i s t ( u ) + w ( u , v ) )
7:
end for
8:
Recursively find the path using v p r e v i o u s starting from X to Y
9:
return P
Our methodology retains its applicability even when | w i | is less than 1. If | w i | is found within the range of 0 to 1, then the associated edge length log ( | w i | ) in the graph G is a negative value. As we presuppose the causal graph to be acyclic, issues related to negative cycles are avoided and the validity of our longest path computation is preserved. Intuitively, when | w i | lies between 0 and 1, in the original graph G, the expansion of a path by an edge results in a decrease in the path’s importance score. Correspondingly, in the graph G , a negative path log ( | w i | ) contributes to a decrease in path length. Consequently, the consistent correlation between these observations validates our approach.
The time complexity of Algorithm 1 is in the linear scale of number of edges and vertices, O ( | E | + | V | ) [16]. Compared with the case using the classical definition, where the calculations for each path are independent, and the number of paths is exponential to the edge, our algorithm significantly improves finding the most important path in the causal graph.
Because of the math property that the edge’s scores are independent, we can easily formulate our definition of the path-specific score into the existing algorithm that is based on a graph theorem to design an efficient algorithm. For example, we can use the algorithm in [17] to find the paths with the top k largest importance score in a causal graph.

6. Evaluation

We demonstrate the performance of our method for path-specific analysis using two datasets, one synthetic and the other real.

6.1. Job Hiring Problem

We assume the following SCM for the physically demanding job hiring process discussed in the introduction (illustrated in Figure 1):
X = U x , U x B e r n o u l l i ( 0.6 ) Q = U Q , U Q N ( 2 , 5 2 ) C = X + 0.5 Q U c , U c T r N ( 2 , 1 2 , 0.1 , 3.0 ) M = 3 X + 0.4 Q U M , U M T r N ( 3 , 2 2 , 0.1 , 3.0 ) Y = h ( X , Q , C , M ) = ζ ( 10 + 5 X + C + Q + M ) ,
where B e r n o u l l i , N , and Tr N represent the Bernoulli, Gaussian, and truncated Gaussian distributions, respectively, and ζ ( k ) = 1 / ( 1 + e x p ( k ) ) denotes the standard sigmoid function. A similar data generation process was employed in [7].
The simulation results are presented in Figure 2. The first three figures display population-level results. Specifically, they illustrate the distribution of importance scores for three distinct paths, originating from gender and ending in hiring, which quantify the impact of X on Y. For the majority of individuals (over 80 % ), the effect of these three paths is small, indicating that the model appears fair on average. This result aligns with the classical definition at the population level.
In the final subfigure, we examine a specific individual and assess the impact of all paths related to hiring decisions of Figure 1 for this particular individual. We observe that the hiring process is unfair for this individual, as the impact of the unfair paths X Y and X C Y possess importance scores comparable to other paths. This example highlights how our approach can be utilized to quantify the influence of paths for individuals.
To further investigate the variations in importance scores for paths within the population and at the individual level, we introduce a weight coefficient, w c , corresponding to the ‘number of children’ feature, into the equation for Y. An increase in the value of w c signifies an amplified impact of feature C on Y.
Y = h ( X , Q , C , M ) = ζ ( 10 + 5 X + w c C + Q + M ) .
Our analysis results are depicted in Figure 3. The first figure presents the distribution of importance scores for path X C Y . The second figure relates to the individual-level importance scores. We note that, as the value of w c increases, the importance score for path X C Y increases correspondingly, while the scores for other paths remain almost unchanged. This indicates an increased level of unfairness associated with this specific path, in line with the changes in w c .

6.2. Smoking Impact Problem

We also evaluated our method using a real dataset—the Framingham Heart Study dataset [18]. The original Framingham cohort dataset comprises two years of examination data for 5209 participants aged between 30 and 62 years. Our objective was to investigate the causal mechanisms of smoking behavior on systolic blood pressure (SBP) mediated by cholesterol levels and body weight (depicted in Figure 4). Our SCM was formulated as a linear regression model with some covariant terms, as recommended by [19].
Figure 5 presents the average effect of the paths that begin with smoking and end with SBP at the population level by using our method. Our method reveals that the direct impact of smoking on blood pressure, denoted as ( S Y ), has the highest average importance score in comparison with the other three paths. Consequently, the direct path’s influence is the most dominant factor relative to other paths. Notably, the ranking for the paths sorted by their importance based on our method is consistent with the conclusion drawn in [19]. We believe the difference in the magnitude of the results is due to the different perturbation values used by the two methods.
The first four subfigures of Figure 6 display the distribution of importance scores along the paths that begin with smoking and end with SBP at the population level. Additionally, the last two subfigures show the individual-level importance of these paths for two specific individuals. Interestingly, we find that, for person A, both the direct path from smoking to blood pressure ( S Y ) and the path of smoking affecting blood pressure through body weight ( S B Y ) are significant. However, for person B, the direct impact of smoking on blood pressure ( S Y ) is the dominant factor. This type of individual-level path analysis provided by our method can help an individual know each path’s influence for the particular individual.

7. Related Works

The study of path-specific analysis has garnered significant interest within the academic community. A majority of the existing research has centered around non-parametric settings, identifiability, or informational decomposition of SCMs [20,21,22]. These approaches diverge from our work, which is grounded in a known SCM model. Our method enables the quantification of individual-level path-specific effects and the development of efficient algorithms to identify the most crucial paths.
Several related studies have proposed causal effect definitions such as incremental causal effects and marginal treatment effects [12,13,14]. These definitions employ a similar constraint format for the perturbation value δ . However, while their focus lies on total effects and population-level analysis, our work concentrates on path-specific effects and offers individual-level quantification.
We elucidate the relationship between our work and existing literature concerning population-level causal effects. In particular, the studies by Janzing et al. [23] and Wang et al. [24] both define and measure causal strength (effect) using Shapley values. Janzing et al. [25] assess causal influence based on the distributional change resulting from removing a “causal arrow”. Furthermore, Janzing’s concept of intrinsic causal contribution [23] allows for the separation of intrinsic information added by each vertex from the information obtained from its ancestors. Wang et al. [24] allocate credit to edges and provide an interpretation of the entire causal graph. In contrast, our method builds upon the classical definition of average treatment effect, which is grounded in intervention operations, and extends this definition to continuous and individual cases. Our approach boasts advantages such as the clear decomposition of causal effects along paths and rapid calculations for identifying the most important paths. This transparent decomposition proves critical for interpreting the entirety of the SCM.

8. Discussions

8.1. Motivation for Path-Specific Effects

In certain applications, the analysis of path effects yields vital information that is not captured by total effects. Notable examples include the fairness analysis of a model as discussed in the introduction, protein signaling networks (which examine the influence of signaling molecules on subsequent molecules within the cascade) [2], and the biological pathway of symptoms (exploring the impact of a disease on its symptoms) [8]. Identifying and distinguishing specific pathways can enhance our understanding of complex diseases and potentially offer novel insights into disease mechanisms.

8.2. Linear Case

Based on our definition, when all structural equations are linear, the individual-level effect is equivalent to the population-level effect, as the difference between the counterfactual after perturbation and the original is independent of U . Consequently, for each edge, the path-specific score is the partial derivative of the structural function, which corresponds to the coefficient of the linear function. Simultaneously, using Theorem 1, the path-specific score for a given path is determined by the product of each variable’s coefficient within its respective linear model along that path.

8.3. Assumptions

We do not make the assumption that U is perfectly recovered, which is only necessary for deterministic counterfactual reasoning and facilitates the calculation of the expectation over U . The only requirement is the independence of U (Assumption 1). Without perfectly recovered U , our definitions and theorems remain valid, and our method can still be employed based on nondeterministic counterfactual reasoning, as evidenced by our experiments.

8.4. Single-Point Derivatives and Potential for Severe Errors

Our objective was to quantify the local effect at a specific point; hence, we used a method that concentrates on a single point to preserve generality. We recognized that the product of effects along a causal path may lead to error propagation and amplification, a common issue when estimating a path’s strength. This arises because the target vertex can be represented as a multi-layer composition function of the source vertex through the causal graph structure. We intend to explore this challenge in future work.

9. Conclusions

In this study, we presented a novel metric for path-specific effect analysis, termed the causal counterfactual path-specific importance score. This score quantifies path-specific effects at the individual level. We demonstrated that our metric exhibits desirable mathematical properties, such as compliance with chain rules and preservation of consistency. These properties facilitate the decomposition of the path-specific score into each edge within the path, enabling the development of an efficient algorithm to identify the most critical path in a causal graph in linear time with respect to the number of edges. Our simulations indicate that our innovative definition concurs with the classical definition at the population (type) level while also delineating path-specific effects at the individual (token) level.

Author Contributions

Conceptualization, X.W., M.Z., F.M., X.L., Z.K. and X.C.; Formal analysis, X.W. and M.Z.; Funding acquisition, X.L., Z.K. and X.C.; Investigation, X.W.; Methodology, X.W.; Software, X.W.; Supervision, X.L., Z.K. and X.C.; Validation, X.W.; Visualization, X.W.; Writing—original draft, X.W.; Writing—review and editing, M.Z., F.M., X.L., Z.K. and X.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by USDA through grant USDA 2020-67021-32855, and NSF through grants USDA-020-67021-32855, IIS-1838207, CNS 1901218, and OIA-2134901.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Proof of Theorems and Lemmas

We first introduce Lemma A1, which pertains to the properties based on our assumption of the structural function. Lemma A1 demonstrates that if f is continuously differentiable and possesses a bounded derivative of Y with respect to X, then the expectation operation (integration) and limit (derivative) on f are exchangeable.
Lemma A1.
Let U U be a random variable. Suppose that f ( x , U ) is continuously differentiable with respect to x for all U U and integrable on U for all x R . If the partial derivative | x f ( x , U ) | is bounded by a constant B for all x R , U U ,
x f ( x , U ) B ,
then
x E f ( x , U ) = x U f ( x , U ) d F ( U ) = U x f ( x , U ) d F ( U ) = E x f ( x , U ) ,
where F is the cumulative distribution function of U.
Proof. 
From the mean value theorem, there exists x ( x , x + δ ) such that f ( x + δ , U ) f ( x , U ) δ = x f ( x , U ) . Then
x E f ( x , U ) = x U f ( x , U ) d F ( U ) = lim δ 0 U f ( x + δ , U ) f ( x , U ) δ d F ( U ) = lim δ 0 U x f ( x , U ) d F ( U ) .
Since | x f ( x , U ) | B for all x ( x , x + δ ) , from dominated convergence theorem [26], we have
x E f ( x , U ) = lim δ 0 U x f ( x , U ) d F ( U ) = U lim δ 0 x f ( x , U ) d F ( U ) = U x f ( x , U ) d F ( U ) = E x f ( x , U ) .

Appendix A.1. Proof of Lemma 1

According to our assumption about f and U, we can have following results by using Lemma A1 in Definition 3.
Proof. 
w l X Y | o = lim δ 0 E [ Y X = x + δ ( π ) , X = x ( Π X Y π ) | o ] E [ Y X = x | o ] δ = lim δ 0 E [ f Y ( x + δ , z yx , U y ) | o f Y ( x , z yx , U y ) | o ] δ = lim δ 0 ( f Y ( x + δ , z yx , u y ) f Y ( x , z yx , u y ) P ( u y | o ) d u y δ = lim δ 0 f Y ( x + δ , z yx , u y ) f Y ( x , z yx , u y ) δ P ( u y | o ) d u y = Y X X = x , Z yx = z yx , U y = u y P ( u y | o ) d u y = E U y | o Y X X = x , Z yx = z yx , U y = u y

Appendix A.2. Proof of Theorem 1

Proof. 
We first show Theorem 1 holds for the path with two edges. Consider a path π = { X V 1 , V 1 V 2 } , we can show that the impact score of a path can be decomposed to the score of the edge inside the page. The calculation of each edge’s score is independent. From the assumption of f 1 , f 2 and U 1 , U 2 ,
w X π V 2 | o = lim δ 0 E [ V 2 X = x + δ ( π ) , X = x ( Π X V 2 π ) | o ] E [ Y X = x | o ] δ = lim δ 0 ( E [ f V 2 ( f V 1 ( x + δ , z v 1 x , U 1 ) , z v 2 v 1 , U 2 ) | o f V 2 ( f V 1 ( x , z v 1 x , U 1 ) , z v 2 v 1 , U 2 ) | o ] ) / δ = lim δ 0 E U 1 , U 2 | o [ ( f V 2 ( f V 1 ( x + δ , z v 1 x , U 1 ) , z v 2 v 1 , U 2 ) f V 2 ( f V 1 ( x , z v 1 x , U 1 ) , z v 2 v 1 , U 2 ) ) / δ | o ] = E U 1 , U 2 | o [ lim δ 0 ( f V 2 ( f V 1 ( x + δ , z v 1 x , U 1 ) , z v 2 v 1 , U 2 ) f V 2 ( f V 1 ( x , z v 1 x , U 1 ) , z v 2 v 1 , U 2 ) ) / δ | o ] .
Next we prove the chain rule g ( h ( x ) ) = g ( h ( x ) ) h ( x ) for continuously differentiable function g and h. Define
g ˜ ( y ) = g ( y ) g ( h ( x ) ) y h ( x ) , y h ( x ) , g ( h ( x ) ) , y = h ( x ) ,
which is continuous around x due to the differentiability of g. It’s easy to verify that δ 0 ,
g ( h ( x + δ ) ) g ( h ( x ) ) δ = g ˜ ( h ( x + δ ) ) h ( x + δ ) h ( x ) δ .
Since g ˜ is continuous and h is continuously differentiable, lim δ 0 g ˜ ( h ( x + δ ) ) and lim δ 0 h ( x + δ ) h ( x ) δ exist, which implies that lim δ 0 g ( h ( x + δ ) ) g ( h ( x ) ) δ exists and
lim δ 0 g ( h ( x + δ ) ) g ( h ( x ) ) δ = g ( h ( x ) ) h ( x ) .
Applying chain rule into (A1),
w X π V 2 | o = E U 1 , U 2 | o [ lim δ 0 ( f V 2 ( f V 1 ( x + δ , z v 1 x , U 1 ) , z v 2 v 1 , U 2 ) f V 2 ( f V 1 ( x , z v 1 x , U 1 ) , z v 2 v 1 , U 2 ) ) / δ | o ] . ( Step 1 ) = E U 1 , U 2 | o [ V 2 V 1 | V 1 = v 1 , Z v 2 v 1 = z v 2 v 1 , U 2 = u 2 × V 1 X | X = x , Z v 1 x = z v 1 x , U 1 = u 1 ] ( Step 2 ) = E U 2 | o V 2 V 1 | V 1 = v 1 , Z v 2 v 1 = z v 2 v 1 , U 2 = u 2 × E U 1 | o V 1 X | X = x , Z v 1 x = z v 1 x , U 1 = u 1 ( Step 3 ) = w l X V 1 | o w l V 2 V 1 | o ( Step 4 ) .
The transition from step 2 to step 3 is valid because the first term in step 2 is independent of U 1 and the second term in step 2 is independent of U 2 . Therefore, their expectations can be decomposed and calculated independently, which is shown in step 3.
Then, given a path contains multiple edges π = { X V 1 , V 1 V 2 , V m 2 V m 1 , V m 1 Y } , because the impact score for each edge is independent, we can show that the calculation of path-specific counterfactual importance score can be written as the format similar to the chain rule in calculus. The path-specific counterfactual importance score of the source vertex X on target vertex Y along the path π can be represented as:
w X π Y | o = E U 1 | o V 1 X o i = 1 m 2 E U i + 1 | o V i + 1 V i o E U Y | o Y V Y o = w l X V 1 | o i = 1 m 2 w l V i V i + 1 | o w l V m 1 Y | o

Appendix A.3. Proof of Theorem 2

Proof. 
We denote the set of all paths from X to Y as Π X Y = { π = ( X V π , 1 , V π , 1 V π , 2 , , V π , m π 1 Y ) | X P a ( V π , 1 ) , V π , m π 1 P a ( Y ) , V π , i P a ( V π , i + 1 ) , i = 1 , , m π 2 } , where m π is the number of vertex in path π . We use m to denote the number of vertex in the largest path in the DAG (which means that if we start from Y going backward along its parents, we will reach the root at most m steps). Then from the definition of the total derivative, we have
w X Y | o = lim δ 0 E [ Y X = x + δ | o ] E [ Y X = x | o ] δ = Y X X = x = V m 1 P a ( Y ) { X } V m 2 P a ( V m 1 ) { X } V 1 P a ( V 2 ) { X } E U | o Y V m 1 o i = 1 m 2 V i + 1 V i o V 1 X o = π Π X Y E U Y | o Y V π , m π 1 o i = 1 m π 2 E U i + 1 | o V π , i + 1 V π , i o E U 1 | o V π , 1 X o = π Π X Y w X π Y | o
The step of combining a sequence of summation operations to one summation over π Π X Y holds, because the change of X will not affect the value of V m 1 if there is not exist a path ( X V m 1 , V m 2 V m 1 , , V 1 Y ) . □

References

  1. Baron, R.M.; Kenny, D.A. The moderator–mediator variable distinction in social psychological research: Conceptual, strategic, and statistical considerations. J. Personal. Soc. Psychol. 1986, 51, 1173. [Google Scholar] [CrossRef] [PubMed]
  2. Sachs, K.; Perez, O.; Pe’er, D.; Lauffenburger, D.A.; Nolan, G.P. Causal protein-signaling networks derived from multiparameter single-cell data. Science 2005, 308, 523–529. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  3. Stock, J.H.; Watson, M.W. Identification and estimation of dynamic causal effects in macroeconomics using external instruments. Econ. J. 2018, 128, 917–948. [Google Scholar] [CrossRef]
  4. Chiappa, S. Path-specific counterfactual fairness. In Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; Volume 33, pp. 7801–7808. [Google Scholar]
  5. Wu, Y.; Zhang, L.; Wu, X.; Tong, H. PC-fairness: A unified framework for measuring causality-based fairness. Adv. Neural Inf. Process. Syst. 2019, 32, 3399–3409. [Google Scholar]
  6. Wang, X.; Meng, F.; Liu, X.; Kong, Z.; Chen, X. Causal explanation for reinforcement learning: Quantifying state and temporal importance. Appl. Intell. 2023. [Google Scholar] [CrossRef]
  7. Chikahara, Y.; Sakaue, S.; Fujino, A.; Kashima, H. Learning individually fair classifier with path-specific causal-effect constraint. In Proceedings of the International Conference on Artificial Intelligence and Statistics, PMLR, Online, 13–15 April 2021; pp. 145–153. [Google Scholar]
  8. Li, H.; Geng, Z.; Sun, X.; Yu, Y.; Xue, F. A novel path-specific effect statistic for identifying the differential specific paths in systems epidemiology. BMC Genet. 2020, 21, 85. [Google Scholar] [CrossRef] [PubMed]
  9. Avin, C.; Shpitser, I.; Pearl, J. Identifiability of Path-Specific Effects. In Proceedings of the 19th International Joint Conference on Artificial Intelligence, Edinburgh, Scotland, 30 July–5 August 2005; pp. 357–363. [Google Scholar]
  10. Pearl, J. Causality; Causality: Models, Reasoning, and Inference; Cambridge University Press: Cambridge, UK, 2009. [Google Scholar]
  11. Glymour, M.; Pearl, J.; Jewell, N.P. Causal Inference in Statistics: A Primer; John Wiley & Sons: Hoboken, NJ, USA, 2016. [Google Scholar]
  12. Rothenhäusler, D.; Yu, B. Incremental causal effects. arXiv 2019, arXiv:1907.13258. [Google Scholar]
  13. Zhou, X.; Xie, Y. Marginal treatment effects from a propensity score perspective. J. Political Econ. 2019, 127, 3070–3084. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  14. Zhou, X.; Opacic, A. Marginal Interventional Effects. arXiv 2022, arXiv:2206.10717. [Google Scholar]
  15. Cormen, T.H.; Leiserson, C.E.; Rivest, R.L.; Stein, C. Introduction to Algorithms; MIT Press: Cambridge, MA, USA, 2022. [Google Scholar]
  16. Jungnickel, D.; Jungnickel, D. Graphs, Networks and Algorithms; Springer: Cham, Switzerland, 2005; Volume 3. [Google Scholar]
  17. Yen, S.H.; Du, D.H.C.; Ghanta, S. Efficient algorithms for extracting the k most critical paths in timing analysis. In Proceedings of the 26th ACM/IEEE Design Automation Conference, Las Vegas, NV, USA, 25–29 June 1989; IEEE: New York, NY, USA, 1989; pp. 649–654. [Google Scholar]
  18. Benjamin, E.J.; Levy, D.; Vaziri, S.M.; D’Agostino, R.B.; Belanger, A.J.; Wolf, P.A. Independent risk factors for atrial fibrillation in a population-based cohort: The Framingham Heart Study. JAMA 1994, 271, 840–844. [Google Scholar] [CrossRef] [PubMed]
  19. Lin, S.H.; VanderWeele, T. Interventional approach for path-specific effects. J. Causal Inference 2017, 5, 20150027. [Google Scholar] [CrossRef]
  20. Malinsky, D.; Shpitser, I.; Richardson, T. A potential outcomes calculus for identifying conditional path-specific effects. In Proceedings of the 22nd International Conference on Artificial Intelligence and Statistics, Naha, Japan, 16–18 April 2019; PMLR: London, UK, 2019; pp. 3080–3088. [Google Scholar]
  21. Zhang, J.; Bareinboim, E. Non-parametric path analysis in structural causal models. In Proceedings of the 34th Conference on Uncertainty in Artificial Intelligence, Monterey, CA, USA, 6–10 August 2018. [Google Scholar]
  22. Gong, H.; Zhu, K. Path-specific Effects Based on Information Accounts of Causality. arXiv 2021, arXiv:2106.03178. [Google Scholar]
  23. Janzing, D.; Blöbaum, P.; Minorics, L.; Faller, P. Quantifying causal contributions via structure preserving interventions. arXiv 2020, arXiv:2007.00714. [Google Scholar]
  24. Wang, J.; Wiens, J.; Lundberg, S. Shapley flow: A graph-based approach to interpreting model predictions. In Proceedings of the International Conference on Artificial Intelligence and Statistics, Valencia, Spain, 25–27 April 2021; PMLR: London, UK, 2021; pp. 721–729. [Google Scholar]
  25. Janzing, D.; Balduzzi, D.; Grosse-Wentrup, M.; Schölkopf, B. Quantifying causal influences. Ann. Statist. 2013, 41, 2324–2358. [Google Scholar] [CrossRef]
  26. Bartle, R. The Elements of Integration and Lebesgue Measure; Wiley Classics Library; Wiley: New York, NY, USA, 1995. [Google Scholar]
Figure 1. The causal graph of job hiring for the physical demanding job. X: gender, C: the number of children, M: physical strength, Q: qualification, Y: hiring probability.
Figure 1. The causal graph of job hiring for the physical demanding job. X: gender, C: the number of children, M: physical strength, Q: qualification, Y: hiring probability.
Computation 11 00133 g001
Figure 2. The causal counterfactual path-specific importance score in job hiring problem. (a) Path X-Y (Gender-Hiring). (b) Path X-M-Y (Gender-Physical strength-Hiring). (c) Path X-C-Y (Gender-Num of children-Hiring). (d) Important score for an individual.
Figure 2. The causal counterfactual path-specific importance score in job hiring problem. (a) Path X-Y (Gender-Hiring). (b) Path X-M-Y (Gender-Physical strength-Hiring). (c) Path X-C-Y (Gender-Num of children-Hiring). (d) Important score for an individual.
Computation 11 00133 g002
Figure 3. The causal counterfactual path-specific importance score in the job hiring problem with different values of w C . (a) The distribution of importance score for path X-C-Y with different values of w c . (b) Importance score for an individual with different values of w c .
Figure 3. The causal counterfactual path-specific importance score in the job hiring problem with different values of w C . (a) The distribution of importance score for path X-C-Y with different values of w c . (b) Importance score for an individual with different values of w c .
Computation 11 00133 g003
Figure 4. The causal graph of smoking effect on blood pressure. S: smoking behavior, C: cholesterol level, B: body weight, Y: systolic blood pressure (SBP).
Figure 4. The causal graph of smoking effect on blood pressure. S: smoking behavior, C: cholesterol level, B: body weight, Y: systolic blood pressure (SBP).
Computation 11 00133 g004
Figure 5. Average effect for each path at the population level compared with Lin et al. [19].
Figure 5. Average effect for each path at the population level compared with Lin et al. [19].
Computation 11 00133 g005
Figure 6. The causal counterfactual path-specific importance score in smoking impact problem. (a) Importance score for path S-Y (population level). (b) Importance score for path S-B-Y (population level). (c) Importance score for path S-C-Y (population level). (d) Importance score for path S-C-B-Y (population level). (e) Importance score for individual (person A). (f) Importance score for individual (person B).
Figure 6. The causal counterfactual path-specific importance score in smoking impact problem. (a) Importance score for path S-Y (population level). (b) Importance score for path S-B-Y (population level). (c) Importance score for path S-C-Y (population level). (d) Importance score for path S-C-B-Y (population level). (e) Importance score for individual (person A). (f) Importance score for individual (person B).
Computation 11 00133 g006
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wang, X.; Zhao, M.; Meng, F.; Liu, X.; Kong, Z.; Chen, X. Quantifying Causal Path-Specific Importance in Structural Causal Model. Computation 2023, 11, 133. https://doi.org/10.3390/computation11070133

AMA Style

Wang X, Zhao M, Meng F, Liu X, Kong Z, Chen X. Quantifying Causal Path-Specific Importance in Structural Causal Model. Computation. 2023; 11(7):133. https://doi.org/10.3390/computation11070133

Chicago/Turabian Style

Wang, Xiaoxiao, Minda Zhao, Fanyu Meng, Xin Liu, Zhaodan Kong, and Xin Chen. 2023. "Quantifying Causal Path-Specific Importance in Structural Causal Model" Computation 11, no. 7: 133. https://doi.org/10.3390/computation11070133

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop