pub trait BNCausalInference<T>where
T: BN,{
// Required method
fn cace_estimate(
&self,
x: &Set<usize>,
y: &Set<usize>,
z: &Set<usize>,
) -> Option<T::CPD>;
// Provided method
fn ace_estimate(&self, x: &Set<usize>, y: &Set<usize>) -> Option<T::CPD> { ... }
}Expand description
A trait for causal inference with Bayesian Networks.
Required Methods§
Sourcefn cace_estimate(
&self,
x: &Set<usize>,
y: &Set<usize>,
z: &Set<usize>,
) -> Option<T::CPD>
fn cace_estimate( &self, x: &Set<usize>, y: &Set<usize>, z: &Set<usize>, ) -> Option<T::CPD>
Estimate the conditional average causal effect of X on Y given Z as E(Y | do(X), Z).
§Arguments
x- The cause variables.y- The effect variables.z- The conditioning variables.
§Panics
- If
Xis empty. - If
Yis empty. - If
XandYare not disjoint. - If
XandZare not disjoint. - If
YandZare not disjoint.
§Returns
The estimated conditional average causal effect of X on Y given Z.