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 of i.

Returns

The set of tuples of the form (i, A, C) representing the local Markov statements of the DAG via (i independent of A given C).

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())}