Skip to main content
. Author manuscript; available in PMC: 2019 May 6.
Published in final edited form as: Proc IEEE Int Conf Data Min. 2017 Dec 18;2017:913–918. doi: 10.1109/ICDM.2017.114

Algorithm 3.

Causal Direction Determination

1) Input: observations of {Vi}1m, subset VS, causal skeleton UG.
2) Let R = VS.
3) For each variable Vi in R, let Adi be the set of variables adjacent to Vi in UG. Estimate the dependence between P(Adi) and P(Vi|Adi) using equation (7), and denote the estimation as Δ^(i). Find the variable Vl in R with the minimum Δ^.
4) Orient all edges incident to Vl in U into Vl. (In other words, make Vl a leaf.)
5) Remove Vl from R.
6) Repeat steps 3, 4, and 5 until only one variable is left in R.
7) Output: Graph UG (with edges between variables in VS oriented).