causal_networkx.ci.BaseConditionalIndependenceTest#
- class causal_networkx.ci.BaseConditionalIndependenceTest[source]#
Abstract class for any conditional independence test.
All CI tests are used in constraint-based causal discovery algorithms. This class interface is expected to be very lightweight to enable anyone to convert a function for CI testing into a class, which has a specific API.
Methods
test
(df, x_var, y_var[, z_covariates])Abstract method for all conditional independence tests.