{
  "id": "structural-causal-model",
  "title": "Structural Causal Model",
  "lang": "en",
  "source_lang": "en",
  "summary": "A structural causal model represents causal mechanisms through equations and a distribution over background variables, enabling formal analysis of observations, interventions, and counterfactuals.",
  "category": "mathematics",
  "subcategory": "probability-statistics",
  "type": "concept",
  "aliases": [
    "SCM",
    "structural causal framework"
  ],
  "generated_at": "2026-11-05",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/structural-causal-model/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/structural-causal-model/",
      "json": "https://aiwiki.page/zh/structural-causal-model.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "A structural causal model (SCM) is a mathematical representation of a system in which each modeled variable is determined by a specified mechanism involving other variables and background factors. Unlike a model that describes only statistical associations, an SCM specifies how the system would change if some mechanisms were externally replaced. It provides a framework for causal inference, including the analysis of interventions and counterfactual questions.\n\nThe defining feature is not that the equations are linear, deterministic at the population level, or directly observable. It is that the equations receive a causal interpretation: each represents a mechanism assumed to remain unchanged when other mechanisms are modified, except where the model explicitly specifies otherwise."
    },
    {
      "heading": "Formal definition",
      "text": "An SCM is commonly written as a tuple\n\n\\[M=(U,V,F,P_U),\\]\n\nwhere:\n\n- \\(U\\) is a collection of exogenous variables, whose causes are not modeled within the system.\n- \\(V=\\{V_1,\\ldots,V_n\\}\\) is a collection of endogenous variables, whose values are determined within the model.\n- \\(F=\\{f_1,\\ldots,f_n\\}\\) is a collection of structural functions.\n- \\(P_U\\) is a joint probability distribution over the exogenous variables.\n\nEach endogenous variable satisfies an equation of the form\n\n\\[V_i:=f_i(\\operatorname{Pa}_i,U_i),\\]\n\nwhere \\(\\operatorname{Pa}_i\\) denotes its endogenous parents and \\(U_i\\) denotes the exogenous inputs used by its mechanism. The assignment symbol \\(:=\\) emphasizes that the equation specifies how \\(V_i\\) is generated, rather than merely asserting an algebraic equality.\n\nThe functions are deterministic once their inputs are fixed. Randomness arises through the exogenous random variables. This does not restrict SCMs to simple deterministic relationships between observed quantities: sufficiently rich exogenous variables can represent stochastic mechanisms.\n\n“Exogenous” does not mean independent, randomized, or necessarily unobservable. It means that the variable's generating mechanism lies outside the model. Dependence between exogenous variables can represent unmodeled common causes.\n\nSolutions and induced distributions\n\nIf the causal structure is acyclic, the equations can be evaluated in an order in which parents precede children. Under suitable measurability assumptions, every assignment of exogenous variables then determines a unique assignment of endogenous variables, inducing an observational distribution \\(P(V)\\).\n\nModels containing feedback require additional care. Their equations can have no solution, one solution, or multiple solutions for a given exogenous state. Existence, uniqueness, and behavior under interventions must therefore be specified or established; they do not follow merely from writing down a system of equations."
    },
    {
      "heading": "Causal graphs and statistical structure",
      "text": "An SCM has an associated directed graph with an arrow \\(V_j\\to V_i\\) when the structural function for \\(V_i\\) depends on \\(V_j\\). For an acyclic model, this is a directed acyclic graph.\n\nThe graph summarizes which variables directly enter which mechanisms, but it does not ordinarily determine the numerical strengths, functional forms, or exogenous distribution. Many distinct SCMs can therefore share the same graph.\n\nWhen exogenous inputs are mutually independent and the endogenous graph is acyclic, the induced distribution factorizes as\n\n\\[p(v_1,\\ldots,v_n) = \\prod_{i=1}^{n}p(v_i\\mid \\operatorname{pa}_i),\\]\n\nwith densities or probability masses used as appropriate. This resembles the factorization of a Bayesian network. The causal interpretation adds information absent from a purely statistical network: it specifies what happens when mechanisms are changed.\n\nGraphical separation criteria imply conditional independence relations under the relevant Markov assumptions. The reverse inference generally requires further assumptions. In particular, faithfulness rules out conditional independences arising solely from special cancellations of causal effects.\n\nIf some common causes are unobserved, a graph over observed variables may use bidirected edges to represent latent common causes. Such edges are a graphical summary of latent structure, not reciprocal causal arrows."
    },
    {
      "heading": "Interventions and the do-operator",
      "text": "A central operation is an ideal intervention, written\n\n\\[\\operatorname{do}(X=x).\\]\n\nIt replaces the structural equation for \\(X\\) with\n\n\\[X:=x,\\]\n\nwhile leaving the other equations and \\(P_U\\) unchanged. The resulting model is often denoted \\(M_x\\). Its outcome distribution is written\n\n\\[P_M(Y\\mid \\operatorname{do}(X=x)).\\]\n\nThis is fundamentally different from the conditional probability \\(P(Y\\mid X=x)\\). Conditioning selects cases in which \\(X\\) happened to equal \\(x\\); intervention changes how \\(X\\) is generated.\n\nExample: association without a causal effect\n\nConsider\n\n\\[Z:=U_Z,\\qquad X:=Z+U_X,\\qquad Y:=2Z+U_Y,\\]\n\nwhere the exogenous variables are mutually independent, have mean zero, and have finite variances.\n\nHere \\(Z\\) is a common cause of \\(X\\) and \\(Y\\). Their covariance is\n\n\\[\\operatorname{Cov}(X,Y)=2\\operatorname{Var}(Z),\\]\n\nso they are associated whenever \\(Z\\) has positive variance.\n\nUnder \\(\\operatorname{do}(X=x)\\), however, only the equation for \\(X\\) changes. The equations determining \\(Z\\) and \\(Y\\) remain untouched, so\n\n\\[P(Y\\mid \\operatorname{do}(X=x))=P(Y).\\]\n\nThe model therefore attributes no causal effect on \\(Y\\) to intervening on \\(X\\), despite their observational association. This is a basic example of confounding.\n\nOther interventions\n\nNot every intervention fixes a variable to a constant. A stochastic intervention replaces a mechanism with a specified random assignment rule. A policy intervention can assign values as a function of observed information. A mechanism intervention, sometimes called a soft intervention, changes a generating function or its noise distribution without necessarily removing all dependence on existing causes.\n\nThese interventions must be defined explicitly. Different ways of changing a variable can correspond to different causal questions."
    },
    {
      "heading": "Counterfactuals",
      "text": "An SCM also defines counterfactual quantities such as \\(Y_x(u)\\): the value that \\(Y\\) would take under \\(X:=x\\) for a particular exogenous state \\(u\\).\n\nThe same exogenous state is retained across factual and counterfactual scenarios. This connects statements about alternative outcomes for the same modeled unit, rather than merely comparing unrelated populations.\n\nCounterfactual inference is commonly described in three steps:\n\n- Abduction: update the distribution of exogenous variables using observed evidence \\(E=e\\), obtaining \\(P(U\\mid E=e)\\).\n- Action: replace the relevant structural equations to form the intervened model.\n- Prediction: evaluate the outcome in that modified model using the updated exogenous distribution.\n\nAbduction can be understood as Bayesian inference over the background state, although the model's functions and parameters need not themselves be assigned Bayesian priors.\n\nFor example, suppose\n\n\\[Y:=aX+U_Y.\\]\n\nFor a unit observed with \\(X=x\\) and \\(Y=y\\), the equation implies \\(U_Y=y-ax\\). Under an intervention setting \\(X=x'\\), the model gives\n\n\\[Y_{x'}=ax'+U_Y =y+a(x'-x).\\]\n\nThis unit-level conclusion depends on the specified structural equation and the assumption that the same \\(U_Y\\) applies in both scenarios. It is not generally determined by observational data alone.\n\nRelationship to potential outcomes\n\nThe potential-outcomes framework represents outcomes under alternative assignments, such as \\(Y(x)\\). An SCM generates such quantities through its intervention semantics.\n\nFor a binary exposure, the average causal effect can be expressed as\n\n\\[\\mathbb{E}[Y(1)-Y(0)],\\]\n\nwhere \\(\\mathbb{E}\\) denotes expectation. An SCM additionally specifies mechanisms linking variables and can express joint counterfactual statements involving several hypothetical worlds.\n\nNeither framework eliminates the need for assumptions. In particular, the joint distribution of \\(Y(0)\\) and \\(Y(1)\\) is generally not identified merely by knowing their separate distributions."
    },
    {
      "heading": "Identification and estimation",
      "text": "An SCM may define a causal quantity without making it recoverable from available data. Identification asks whether all models compatible with the stated assumptions and available distributions agree on that quantity. This is distinct from estimating it accurately from a finite sample.\n\nAdjustment for confounding\n\nIf an observed set \\(Z\\) satisfies an appropriate back-door adjustment criterion relative to \\(X\\) and \\(Y\\), then, for discrete \\(Z\\),\n\n\\[P(Y=y\\mid \\operatorname{do}(X=x)) = \\sum_z P(Y=y\\mid X=x,Z=z)P(Z=z).\\]\n\nFor continuous variables, an integral replaces the sum.\n\nThe graphical criterion requires that \\(Z\\) contain no descendants of \\(X\\) and block all paths from \\(X\\) to \\(Y\\) that begin with an arrow into \\(X\\). Data-based estimation also requires sufficient support: the relevant exposure values must occur within the covariate strata being used.\n\nConditioning on more variables is not automatically safer. Adjusting for a common effect can introduce an association between its causes, while adjusting for a mediator can remove part of the total effect being studied.\n\nBeyond adjustment\n\nSome causal effects can be identified even when ordinary covariate adjustment is unavailable. Relevant approaches include front-door identification, instrumental variables, and do-calculus, a system of graphical rules for transforming expressions involving interventions.\n\nThese methods have different requirements. Instrumental-variable methods, for example, need assumptions about how the instrument affects treatment and outcome; the existence of a variable labeled an “instrument” does not by itself identify a desired effect.\n\nRandomization can remove dependence between treatment assignment and background causes under the experimental assignment mechanism. Nevertheless, interpreting an experiment still requires specifying what intervention was implemented and how outcomes were measured.\n\nOnce identification is established, statistical methods estimate the identified expression. A large sample or a highly flexible predictive model cannot, by itself, resolve a failure of identification."
    },
    {
      "heading": "Linear and nonlinear models",
      "text": "A linear SCM can be written as\n\n\\[V:=BV+U,\\]\n\nwhere the entry \\(B_{ij}\\) is the coefficient of the direct effect from \\(V_j\\) to \\(V_i\\). If \\(I-B\\) is invertible,\n\n\\[V=(I-B)^{-1}U.\\]\n\nThe matrix inverse combines contributions transmitted through the system. In an acyclic model, an appropriate ordering makes \\(B\\) strictly triangular, ensuring that \\(I-B\\) is invertible.\n\nDirect coefficients need not equal total causal effects: effects can also travel through intermediate variables. Nor do coefficients from linear regression automatically have structural interpretations. Such interpretations depend on the causal model and assumptions about omitted causes, measurement, and disturbance dependence.\n\nNonlinear SCMs allow thresholds, interactions, discrete outcomes, and arbitrary measurable mechanisms. This flexibility broadens the class of systems represented, but does not automatically make their mechanisms identifiable or estimable.\n\nFor cyclic linear systems, invertibility of \\(I-B\\) establishes a unique solution for the original equations, but not necessarily for every intervened system. Dynamic stability is also a separate property: a unique equilibrium need not be stable under a chosen time-evolution process."
    },
    {
      "heading": "Historical development",
      "text": "Structural causal modeling draws on several traditions. Sewall Wright's early twentieth-century path analysis represented relationships through directed diagrams and equations. Structural-equation methods in econometrics, including work by Trygve Haavelmo, distinguished structural relationships from the observational distributions generated by a system.\n\nLater work connected structural equations with graphical models, formal interventions, and counterfactual semantics. Judea Pearl's research was central to the development and dissemination of the modern SCM framework and do-calculus.\n\nThe modern term encompasses more than traditional linear structural-equation modeling: structural functions may be nonlinear, variables may be discrete or continuous, and latent causes can be represented explicitly."
    },
    {
      "heading": "Applications and limitations",
      "text": "SCMs are used in economics, the social sciences, engineering, and machine learning to formalize causal assumptions, evaluate policy changes, study mediation, and examine how predictions might behave when a system changes.\n\nTheir principal limitation is that the causal content is not supplied by observational fit alone. Different models can generate the same observational distribution while disagreeing about interventions. Even models agreeing on all single-world interventional distributions may disagree about some joint counterfactual quantities.\n\nImportant modeling issues include:\n\n- Mechanism invariance: unchanged equations must remain applicable under the intervention being considered.\n- Model boundaries: omitted common causes, feedback, interference between units, or measurement processes can invalidate a proposed representation.\n- Well-defined interventions: different procedures producing the same recorded exposure value may have different consequences.\n- Measurement and selection: measurement error, missing observations, and selection bias can alter the relationship between the modeled system and the available data.\n- Assumption sensitivity: conclusions may depend on untestable restrictions concerning hidden causes or functional form; sensitivity analysis examines how results change when such restrictions are varied.\n\nAn observational goodness-of-fit test can reject some SCMs, but cannot generally establish that a surviving model has the correct causal interpretation. Establishing that interpretation requires substantive knowledge, experimental evidence where available, and explicit justification of the assumptions connecting the equations to the system."
    }
  ],
  "links": [
    "causal-inference",
    "probability-distribution",
    "random-variable",
    "directed-graph",
    "directed-acyclic-graph",
    "bayesian-network",
    "conditional-independence",
    "conditional-probability",
    "covariance",
    "confounding",
    "bayesian-inference",
    "expected-value",
    "instrumental-variables",
    "randomization",
    "statistics",
    "statistical-identification",
    "inverse-matrix",
    "linear-regression",
    "econometrics",
    "machine-learning",
    "selection-bias",
    "sensitivity-analysis"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}