Inferensys

Glossary

Directed Acyclic Graph (DAG)

A Directed Acyclic Graph (DAG) is a graphical representation of causal assumptions where nodes represent variables and directed edges represent direct causal effects, containing no feedback loops.
Engineer deploying small language model to edge device, IoT sensor visible on desk, technical hardware setup in bright workspace.
Causal Structure

What is a Directed Acyclic Graph (DAG)?

A Directed Acyclic Graph (DAG) is a graphical representation of causal assumptions where nodes represent variables and directed edges represent direct causal effects, containing no feedback loops.

A Directed Acyclic Graph (DAG) is a probabilistic graphical model that encodes a qualitative set of causal assumptions about a data-generating process. Each node represents a random variable, and each directed edge (arrow) signifies a direct causal influence from a parent node to a child node. The 'acyclic' constraint strictly prohibits any path that loops back to its origin, ensuring that a variable cannot be a cause of itself, either directly or through a chain of intermediaries.

In quantitative finance, DAGs serve as the foundational blueprint for causal inference, allowing researchers to visually encode domain expertise and apply the backdoor criterion to identify confounding variables. By explicitly mapping assumptions about market microstructure or factor relationships, a DAG enables the systematic removal of spurious correlations, distinguishing genuine predictive signals from mere statistical artifacts in observational data.

CAUSAL ARCHITECTURE

Key Features of a DAG

A Directed Acyclic Graph (DAG) is the foundational blueprint for causal inference, encoding assumptions about the data-generating process. These features define its structural rigor and utility in quantitative finance.

01

Unidirectional Causal Flow

Edges in a DAG represent direct causal effects flowing strictly in one direction. This prohibits mutual causation (X ↔ Y) within a single time slice, enforcing a clear temporal and logical ordering of variables. In market microstructure, this ensures that an order submission precedes a trade execution, not the reverse.

02

Acyclicity: No Feedback Loops

The 'A' in DAG is its most critical constraint. A graph is acyclic if no path starts and ends at the same node. This prevents circular reasoning where an effect becomes its own cause. In algorithmic trading, a DAG ensures that a volatility signal is not modeled as both the cause and effect of a position change in the same instant, avoiding logical paradoxes.

03

d-Separation and Conditional Independence

DAGs provide a graphical criterion called d-separation to read off all conditional independencies implied by the causal structure. If two nodes are d-separated by a set Z, they are statistically independent given Z. This is the primary tool for identifying confounding and selecting control variables in a regression model.

04

The Backdoor Criterion

A fundamental rule for causal identification. A set of variables Z satisfies the backdoor criterion relative to a treatment X and outcome Y if:

  • All spurious paths between X and Y are blocked by conditioning on Z.
  • Z contains no descendants of X. This allows quants to isolate the pure causal effect of a trading signal from confounding market factors.
05

Structural Causal Model (SCM) Foundation

A DAG is the qualitative visual representation of a Structural Causal Model. Each node is a function of its direct parents and an exogenous noise term (U). This provides a generative, intervention-capable framework. For a stock price (P), it's not just a correlation but a function: P = f(Market_Sentiment, Order_Flow, U_P), allowing quants to simulate interventions like 'what if we block order flow?'

06

Collider Bias Identification

A collider is a node where two arrows 'collide' (X → C ← Y). Crucially, conditioning on a collider opens a non-causal path between its parents, inducing spurious correlation. In finance, conditioning on a stock being in a specific index (a collider of performance and sector) can create a false negative correlation between performance and sector, a classic selection bias trap.

CAUSAL STRUCTURES

Frequently Asked Questions

Clarifying the role of Directed Acyclic Graphs in distinguishing genuine causal drivers from spurious correlations in quantitative finance.

A Directed Acyclic Graph (DAG) is a formal graphical representation of causal assumptions where nodes represent variables and directed edges (arrows) represent direct causal effects, strictly containing no feedback loops. In quantitative finance, a DAG encodes the data-generating process, visually distinguishing between causal paths and non-causal associations. The 'acyclic' constraint means you cannot start at a variable, follow the direction of the arrows, and return to the starting variable; this prohibits instantaneous feedback loops and ensures the causal ordering is logically consistent. DAGs are the foundational language for applying the backdoor criterion and do-calculus to identify causal estimands from observational market data.

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.