2.4.1. dodiscover.ci.KernelCITest#

class dodiscover.ci.KernelCITest(kernel_x='rbf', kernel_y='rbf', kernel_z='rbf', null_size=1000, approx_with_gamma=True, kwidth_x=None, kwidth_y=None, kwidth_z=None, threshold=1e-05, n_jobs=None)[source]#

Methods

test(df, x_vars, y_vars[, z_covariates])

Run CI test.

test(df, x_vars, y_vars, z_covariates=None)[source]#

Run CI test.

Parameters:
dfpd.DataFrame

The dataframe containing the dataset.

x_varsSet of column

A column in df.

y_varsSet of column

A column in df.

z_covariatesSet, optional

A set of columns in df, by default None. If None, then the test should run a standard independence test.

Returns:
statfloat

The test statistic.

pvaluefloat

The p-value of the test.