local_independencies
Signature/Parameters
List conditional independencies implied by the DAG, and test them if data is provided.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
DataFrame or None
|
Observational data used to perform local conditional independence
tests through |
None
|
alpha
|
float
|
Significance level for converting quantile-based confidence bounds
into standard errors. Only used when |
0.05
|
include_sep_cols
|
bool
|
When |
False
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
Tidy representation of the implied independencies. The result
always includes columns |
Examples:
>>> G = DAG(graph="X -> Z -> Y")
>>> independencies = G.local_independencies(include_sep_cols=True)
>>> independencies.pull("term").to_list()
['Y _||_ X | Z']