Skip to main content

pc_adjacent

Function pc_adjacent 

Source
pub fn pc_adjacent(correlation: f32, threshold: f32) -> bool
Expand description

PC-algorithm skeleton (constraint-based structure learning): two variables are adjacent (share an edge) iff their correlation is at/above threshold in absolute value — i.e. they are NOT marginally independent. This is the order-0 skeleton; the full PC additionally removes edges via conditional-independence tests over separating sets.