Skip to main content

Module strategy

Module strategy 

Source
Expand description

The data-bound conditional-independence test contract.

Every test implements CITest, operating on a shared Dataset and referring to the variables under test (x, y) and the conditioning set (z) by column index. Configuration lives on the test struct; the data lives on the Dataset. The provided CITest::test validates the query via validate_query before delegating to the required CITest::test_impl. The default CITest::is_independent turns a numeric CIResult into a boolean using the test’s IndependenceRule.

Re-exports§

pub use crate::dataset::ColumnKind as DataType;

Structs§

CIResult
The numeric outcome of a conditional-independence test.
TestMeta
Static description of a test: its name, supported data types, whether it is symmetric in x/y, and its independence rule.

Enums§

IndependenceRule
How a p-value is turned into an independence decision at level alpha.

Traits§

CITest
A stateless conditional-independence test operating on a supplied Dataset.

Functions§

validate_query
Validate a (x, y, z) query against data before running a test.