causal_networkx.ci.FisherZCITest#

class causal_networkx.ci.FisherZCITest(correlation_matrix=None)[source]#

Methods

test(df, x_var, y_var[, z_covariates])

Run conditional independence test.

test(df, x_var, y_var, z_covariates=None)[source]#

Run conditional independence test.

Parameters:

df : pd.DataFrame

_description_

x : Any

_description_

y : Any

_description_

z : Any, optional

_description_, by default None

Returns:

stat : float

The test statistic.

pvalue : float

The p-value of the test.

:rtype:py:data:Tuple[float, float]