Notebook’s tools for causality

Visualization helpers for causal models in Jupyter notebooks. These functions render pyagrum.CausalModel instances and causal inference results as graphical outputs.

getCausalModel()

return a HTML representing the causal model

showCausalModel()

Shows a pydot svg representation of the causal DAG

getCausalImpact()

return a HTML representing of the three values defining a causal impact : formula, value, explanation

showCausalImpact()

display a HTML representing of the three values defining a causal impact : formula, value, explanation

getCausalImpactGraph()

return an HTML representation of a causal impact drawn on its causal model: the histogram of P(on | do(doing), knowing) on the impacted variable, the values of the interventions and of the observations, and the colors of the variables used by the formula of the do-calculus (see pyagrum.lib.causal2graph.causalImpact2dot).

showCausalImpactGraph()

show a causal impact drawn on its causal model: the histogram of P(on | do(doing), knowing) on the impacted variable, the values of the interventions and of the observations, and the colors of the variables used by the formula of the do-calculus (see pyagrum.lib.causal2graph.causalImpact2dot).