causaldag.classes.dag.DAG.local_markov_statements¶
-
DAG.
local_markov_statements
() → Set[Tuple[Any, FrozenSet[T_co], FrozenSet[T_co]]][source]¶ Return the local Markov statements of this DAG, i.e., those of the form
i
independent nondescendants(i) given the parents ofi
.Returns: The set of tuples of the form ( i
,A
,C
) representing the local Markov statements of the DAG via (i
independent ofA
givenC
).Return type: set Examples
>>> import causaldag as cd >>> g = cd.DAG(arcs={(1, 2), (3, 2)}) >>> g.local_markov_statements() {(1, frozenset({3}), frozenset()), (2, frozenset(), frozenset({1, 3})), (3, frozenset({1}), frozenset())}