IndependenceMatch#
- class pgmpy.ci_tests.IndependenceMatch(independencies=None)[source]#
Bases:
_BaseCITestCheck if X ⊥⊥ Y | Z is in independences.
This method is implemented to have a uniform API when the independences are provided explicitly instead of being inferred from data.
- Parameters:
- independenciespgmpy.independencies.Independencies
The object containing the known independencies.
- run_test(X, Y, Z)[source]#
Check whether the independence assertion X ⊥⊥ Y | Z is present.
- Parameters:
- Xstr
The first variable.
- Ystr
The second variable.
- Zlist
Conditioning variables.
- Returns:
- statisticNone
No test statistic (this is a lookup, not a statistical test).
- p_valuefloat
1.0 if the assertion is found, 0.0 otherwise.