Inferensys

Glossary

Directed Acyclic Graph

A graphical representation of causal assumptions where nodes represent variables and directed edges represent direct causal relationships, containing no feedback loops.
Finance professional using AI FP&A copilot on laptop, board presentation visible on screen, home office work session.
CAUSAL GRAPH THEORY

What is a Directed Acyclic Graph?

A foundational structure for encoding causal assumptions and data-generating mechanisms without circular dependencies.

A Directed Acyclic Graph (DAG) is a graphical representation of causal assumptions where nodes represent variables and directed edges represent direct causal relationships, containing no feedback loops. It is the primary mathematical object used in modern causal inference to visually encode a Structural Causal Model and determine which variables must be controlled for to isolate a causal effect.

The 'acyclic' constraint means you cannot start at a node and follow a directed path back to itself, preventing circular causality. DAGs enable the application of the Backdoor Criterion and Do-Calculus to algorithmically identify valid adjustment sets, distinguishing true causation from spurious correlation in observational supply chain data.

GRAPH THEORY FUNDAMENTALS

Key Properties of a DAG

A Directed Acyclic Graph (DAG) is a finite graph with directed edges and no directed cycles. It forms the mathematical backbone for representing causal assumptions, data pipelines, and version histories.

01

Directed Edges

Every connection in a DAG is a directed edge (an arrow) pointing from one node to another. This directionality explicitly encodes the flow of causation, dependency, or data. In a causal DAG, an arrow from X to Y asserts that X is a direct cause of Y relative to the other variables in the graph. This is fundamentally different from undirected graphs, which only represent symmetric associations.

02

Acyclicity

The 'A' in DAG stands for acyclic, meaning it is impossible to start at a node and follow a sequence of directed edges to return to the same node. This property prevents circular reasoning and feedback loops. In causal inference, a cycle would imply that an event causes itself, which is a logical paradox. In computation, acyclicity ensures that topological ordering is possible, guaranteeing that tasks like data transformation or causal effect estimation can be completed in a finite number of steps.

03

Nodes as Variables

Each node in a causal DAG represents a variable in the system being modeled. These can be observed quantities like 'Supplier Lead Time' or 'Order Volume,' or unobserved latent variables like 'Market Sentiment.' The graph's structure makes explicit which variables are parents (direct causes), children (direct effects), and ancestors or descendants of other variables, forming the basis for applying criteria like the Backdoor Criterion to identify confounding.

04

Topological Ordering

Every DAG has at least one topological ordering, which is a linear sequence of its nodes such that for every directed edge from node A to node B, A comes before B in the sequence. This property is critical for algorithms that process the graph sequentially. In a supply chain causal model, a topological sort ensures that root causes are analyzed before their downstream effects, enabling efficient propagation of interventions through the system.

05

d-Separation

d-separation (directional separation) is the graphical criterion for reading conditional independencies from a DAG. A path between two nodes is blocked if it contains a chain or fork where the middle node is conditioned on, or a collider where neither the collider nor its descendants are conditioned on. If all paths between two sets of nodes are blocked, they are d-separated and statistically independent. This is the core mechanism for testing whether a causal model is consistent with observed data.

06

No Feedback Loops

The absence of cycles means a DAG cannot represent feedback loops directly. In a supply chain, a true feedback loop—like a stockout causing a demand surge that worsens the stockout—must be modeled by unrolling the cycle over time. This is achieved by creating separate nodes for each time step (e.g., Inventory_t and Inventory_{t+1}), transforming a cyclic process into an acyclic temporal representation that preserves the DAG's mathematical tractability.

CAUSAL GRAPH FUNDAMENTALS

Frequently Asked Questions

Clear, technically precise answers to the most common questions about Directed Acyclic Graphs and their role in causal inference for supply chain disruption analysis.

A Directed Acyclic Graph (DAG) is a formal graphical representation of causal assumptions where nodes represent variables and directed edges (arrows) represent direct causal relationships, constrained by the strict rule that no path can start and end at the same node—meaning feedback loops are forbidden. In causal inference, a DAG encodes a qualitative causal model of the data-generating process. Each arrow X → Y asserts that X is a direct cause of Y relative to the other variables in the graph. The acyclic property ensures that a variable cannot be a cause of itself, either directly or through a chain of intermediaries, which enforces temporal precedence: causes must precede effects. This structure allows analysts to apply graphical criteria like the backdoor criterion and front-door criterion to determine which variables must be controlled for to estimate an unbiased causal effect from observational data.

GRAPHICAL MODEL COMPARISON

DAG vs. Other Graphical Models

A comparison of Directed Acyclic Graphs with other graphical modeling frameworks used in causal inference and probabilistic reasoning.

FeatureDirected Acyclic GraphBayesian NetworkMarkov Random FieldStructural Causal Model

Edge Directionality

Directed

Directed

Undirected

Directed

Cycles Permitted

Encodes Causal Assumptions

Supports Do-Calculus

Encodes Conditional Independencies

Includes Structural Equations

Distinguishes P(y|do(x)) from P(y|x)

Typical Use Case

Causal discovery and effect identification

Probabilistic inference with causal interpretation

Spatial statistics and image processing

Formal data-generating mechanism specification

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.