Causality

Average Causal Effect

Use this package to compute the Average Causal Effect.

class pybbn.causality.ace.Ace(bbn)

Bases: object

Estimates average causal effect (ACE).

__init__(bbn)

ctor

Parameters:

bbn – Bayesian belief network.

get_ace(x, y, y_val)

Computes the ACE of X on Y.

Parameters:
  • x – X name.

  • y – Y name.

  • y_val – Y value.

Returns:

Dictionary of ACE over X values.