The framework of causal models provides a principled approach to causal reasoning, applied today across many scientific domains. Here we present this framework in the language of string diagrams, interpreted formally using category theory. A class of string diagrams, called network diagrams, are in 1-to-1 correspondence with directed acyclic graphs. A causal model is given by such a diagram with its components interpreted as stochastic maps, functions, or general channels in a symmetric monoidal category with a 'copy-discard' structure (cd-category), turning a model into a single mathematical object that can be reasoned with intuitively and yet rigorously. Building on prior works by Fong and Jacobs, Kissinger and Zanasi, as well as Fritz and Klingler, we present diagrammatic definitions of causal models and functional causal models in a cd-category, generalising causal Bayesian networks and structural causal models, respectively. We formalise general interventions on a model, including but beyond do-interventions, and present the natural notion of an open causal model with inputs. We also give an approach to conditioning based on a normalisation box, allowing for causal inference calculations to be done fully diagrammatically. We define counterfactuals in this setup, and treat the problems of the identifiability of causal effects and counterfactuals fully diagrammatically. The benefits of such a presentation of causal models lie in foundational questions in causal reasoning and in their clarificatory role and pedagogical value. This work aims to be accessible to different communities, from causal model practitioners to researchers in applied category theory, and discusses many examples from the literature for illustration. Overall, we argue and demonstrate that causal reasoning according to the causal model framework is most naturally and intuitively done as diagrammatic reasoning.
翻译:因果模型提供了一种基于原则的因果推理方法,今天被应用于许多科学领域。本文提出了一种基于范畴论形式语言的因果模型框架——图式表示法。一类称为网络图的图式与有向无环图相对应。因果模型由这样的图式给出,并将其组件解释为对称蒙德类中的随机映射、函数或通道,将模型转化为可以直观但严格推理的单个数学对象。在Fong和Jacobs、Kissinger和Zanasi以及Fritz和Klingler之前的工作上,我们在CD-范畴的图式定义下提出了因果模型和函数因果模型的图示概念,这些概念分别概括了因果贝叶斯网络和结构性因果模型。我们对模型的一般干预进行了规范化,包括但不限于干预,还提出了具有输入的开放式因果模型的自然概念。我们还提出了一种基于归一化框的归一化方法,以使因果推理计算可以完全进行图示。我们在这个设置中定义了反事实,全面地利用了图形思维处理因果效应和反事实的可识别性问题。将因果模型表示为图示方法的优点在于它在因果推理的基础问题上以及在澄清角色和教育价值方面具有直观而自然的作用。本文旨在使不同社区的人都能理解,从因果模型从业者到应用范畴论的研究人员,本文讨论了许多文献例子作为证明。总之,我们认为和证明了,基于因果模型框架的因果推理和图示推理最自然和直观。