graphical_models.classes.dags.dag.DAG.local_markov_statements
- DAG.local_markov_statements() Set[Tuple[Any, FrozenSet, FrozenSet]] [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
>>> from graphical_models import DAG >>> g = DAG(arcs={(1, 2), (3, 2)}) >>> g.local_markov_statements() {(1, frozenset({3}), frozenset()), (2, frozenset(), frozenset({1, 3})), (3, frozenset({1}), frozenset())}