Conditional Independence Tests#

FastCIT has twelve conditional independence tests. All tests share one API (see one API for all tests). A test checks whether X and Y are independent given a set Z of other variables. HSIC has no Z: it checks only whether X and Y are independent. Select a test to see an example in each language and the method. Each language makes its own random data, so the values differ between the language tabs. With the same data, all languages give the same result.

Test

Data type

Chi-squared (chi_squared)

Discrete

Log-likelihood (log_likelihood)

Discrete

Cressie-Read (cressie_read)

Discrete

Freeman-Tukey (freeman_tukey)

Discrete

Modified log-likelihood (modified_likelihood)

Discrete

Pearson correlation (pearson_correlation)

Continuous

Fisher-z (fisher_z)

Continuous

Pearson equivalence (pearson_equivalence)

Continuous

HSIC (hsic)

Continuous

KCI (kci)

Continuous

GCM (gcm)

Continuous

Pillai’s trace (pillai)

Mixed (discrete and continuous)