Problem
To estimate causal effects from observational data, analysts first need a causal graph: a map of which variables drive which. Often nobody has the domain knowledge to draw it. Causal discovery algorithms learn the graph from data, but the true graph of real data is unknown, so there is no easy way to tell whether the output is right. Wrong edges are damaging once a structural causal model is built on the graph.
Example from the article: a call centre where demand, call waiting time, abandoned calls, reported problems and discounts sent all feed into customer churn. The author uses a known graph to simulate data and tests whether the PC algorithm recovers it.
Solution in brief
Use the PC algorithm to learn the undirected skeleton from conditional independence tests, then treat edge directions as a separate question for domain experts. Validate the algorithm first on simulated data generated from a graph you know, and score the result with GScore.
Questions this case answers
- How to recover the causal structure among a handful of business variables from observational data alone, when randomization is impossible and expert knowledge of the structure is incomplete
- How to validate a causal structure learning method when the true graph of real data is unknown
- How to get a causal graph from observational data when no domain expert can draw it?
- How to check whether a causal discovery algorithm can be trusted before using it on real data?
Tools and methods
- PC algorithm — constraint-based causal discovery: removes edges from a fully connected graph with conditional independence tests, then partly orients the rest
- Conditional independence tests — decide whether two variables are still associated after controlling for others
- gCastle — Python package with the PC algorithm, skeleton search and evaluation metrics, including GScore
- GScore — graph accuracy between 0 and 1 that penalizes wrong edges
Google or a one-time email code. No password.