Causal Inference in Finance
Why correlation-only factor mining structurally fails across regime changes, and how Double Machine Learning, Deep IV, causal discovery (NOTEARS, LiNGAM, PC/FCI), and the Interventional Covariance Matrix replace it with causally-robust structure.
Overview
Quantitative finance has historically relied on associational statistics — CAPM, Fama-French, standard deep learning — measured by conditional probability, P(Y|X). Mining thousands of factors this way mathematically guarantees finding statistically significant but spurious correlations, inflating the False Discovery Rate and producing strategies that degrade violently across regime changes. Causal inference instead asks P(Y|do(X)) — what happens under intervention, not just what's correlated — via Structural Causal Models and Directed Acyclic Graphs (DAGs) that map the actual temporal, causal flow of a system, isolating features that stay invariant across market turbulence.
Key Concepts
- Directed Acyclic Graph (DAG) — A structural map where variables are nodes connected by directed arrows indicating causal influence, with no feedback loops.
- Confounding Bias — An unobserved variable causes both the treatment and the outcome; failing to condition on it creates a spurious association.
- Collider Bias — Treatment and outcome both cause a third variable; conditioning on that collider induces artificial correlation between otherwise-independent variables.
- Double Machine Learning (DML) — Combines flexible ML models with Neyman orthogonalization and sample splitting to neutralize regularization bias and isolate true causal effects amid high-dimensional confounders.
- Instrumental Variable (IV) / Deep IV — An exogenous variable affecting the treatment but not the outcome directly; Deep IV integrates neural networks into IV regression to model non-linear asset pricing while preserving unconfoundedness.
- False Discovery Rate (FDR) — The expected proportion of "significant" results that are actually false positives — the statistical trap that unconstrained factor mining falls into without a causal framework.
- Causal Discovery — Algorithms that learn the DAG directly from observational data: constraint-based (PC, FCI — FCI specifically handles unobserved confounders), continuous optimization (NOTEARS — differentiable, scales to large universes, integrates with neural nets), and non-Gaussian/ICA-based (LiNGAM — uniquely orients causal arrows). LLMs can supply directional priors to these algorithms (boosting F1 accuracy on synthetic financial graphs by over 300% in testing) but must never independently arbitrate causality themselves — used alone, they act as "causal parrots" hallucinating relationships from linguistic co-occurrence.
Formulas
1. Pearl's Backdoor Adjustment (Do-Calculus)
While correlational models compute observational conditional probability , causal models isolate the interventional distribution by blocking non-causal backdoor paths:
2. Double Machine Learning (DML) Partially Linear Model
Given outcome asset return , treatment policy shock , and high-dimensional confounder vector :
Robinson Residualization & Orthogonal Estimator: Using ML cross-fitting to compute out-of-fold residuals and :
The Neyman score condition guarantees that achieves -consistency and asymptotic normality even when nuisance functions and converge at slower non-parametric rates ().
3. Continuous Acyclicity Constraint (NOTEARS)
Transforms combinatorial DAG search into a continuous optimization problem using a differentiable trace exponential constraint:
Where is the Hadamard (element-wise) product and .
4. Linear Non-Gaussian Acyclic Model (LiNGAM)
Exploits non-Gaussian asset returns and Independent Component Analysis (ICA) to uniquely identify causal arrow directionality without interventional experiments:
5. Deep Instrumental Variables (Deep IV)
Overcomes unobserved confounding via exogenous instruments () using two-stage neural networks to solve the non-linear operator:
6. The Interventional Covariance Matrix ()
Replaces the fragile Pearson sample covariance matrix by isolating true structural DAG dependencies and filtering out crash-induced spurious correlations:
Causal Mean-Variance Portfolio Optimization:
Key Takeaways
- Correlation-only models are structurally fragile. Without a causal framework, factor mining mathematically guarantees false positives that don't survive regime changes.
- DML is the practical fix for high-dimensional confounding — it lets you use flexible ML models for nuisance prediction while still getting an unbiased causal parameter estimate.
- Deep IV handles the case DML can't: unobserved confounders, via an exogenous instrument plus a neural network for non-linear structure.
- Causal discovery (NOTEARS, LiNGAM, PC/FCI) can learn the DAG itself from data — you don't always need to hand-specify the causal structure, though LLM-supplied priors should only ever be soft constraints, never the final arbiter.
- Portfolio construction on the Interventional Covariance Matrix (Σ_do) outperforms Pearson-based Modern Portfolio Theory on out-of-sample Sharpe ratio and drawdown recovery, because it relies on invariant structure rather than crash-correlated noise.
Related Reading
- The Structural Revolution in Causal Quantitative Finance — full article with the DML mechanics panel, causal discovery algorithm comparison, and the case for the Interventional Covariance Matrix.
- Watch on YouTube
The Structural Revolution in Causal Quantitative Finance
How causal finance is replacing correlation: Double Machine Learning, Deep IV, causal discovery algorithms, and a causally-robust covariance matrix.