py-bbn

A Python library for exact associational, interventional, and counterfactual reasoning using Bayesian Belief Networks (BBNs) and Structural Causal Models (SCMs).

pybbn logo.

Current release: 4.0.0.

The package includes exact marginal, joint, conditional, interventional, and counterfactual query APIs, array-backed and pandas-friendly result modes, and model serialization.

Installation

pip install pybbn

License

py-bbn is released under the Apache-2.0 license.

Indices and tables

Citation

@misc{rocketvector_pybbn_2024,
title={PyBBN},
url={https://pybbn.rocketvector.io},
author={Vang, Jee},
year={2024},
month={Jan}}