Skip to main content
# CausalGraphicalModels

## Introduction

`causalgraphicalmodels` is a python module for describing and manipulating [Causal Graphical Models](https://en.wikipedia.org/wiki/Causal_graph) and [Structural Causal Models](https://en.wikipedia.org/wiki/Structural_equation_modeling). Behind the scenes it is a light wrapper around the python graph library [networkx](https://networkx.github.io/), together with some CGM specific tools.

It is currently in a very early stage of development. All feedback is welcome.


## Example

For a quick overview of `CausalGraphicalModel`, see [this example notebook](https://github.com/ijmbarr/causalgraphicalmodels/blob/master/notebooks/cgm-examples.ipynb).

## Install

```
pip install causalgraphicalmodels
```


## Resources
My understanding of Causality comes mainly from the reading of the follow work:
- Causality, Pearl, 2009, 2nd Editing. (An overview available [here](http://ftp.cs.ucla.edu/pub/stat_ser/r350.pdf))
- A fantastic blog post, [If correlation doesn’t imply causation, then what does?](http://www.michaelnielsen.org/ddi/if-correlation-doesnt-imply-causation-then-what-does/) from Michael Nielsen
- [These lecture notes](http://www.math.ku.dk/~peters/jonas_files/scriptChapter1-4.pdf) from Jonas Peters
- The draft of [Elements of Causal Inference](http://www.math.ku.dk/~peters/jonas_files/bookDRAFT5-online-2017-02-27.pdf)
- http://mlss.tuebingen.mpg.de/2017/speaker_slides/Causality.pdf

## Related Packages
- [Causality](https://github.com/akelleh/causality)
- [CausalInference](https://github.com/laurencium/causalinference)
- [DoWhy](https://github.com/Microsoft/dowhy)





Release files for causalgraphicalmodels 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for causalgraphicalmodels 0.0.4
File Size Uploaded
causalgraphicalmodels-0.0.4.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for causalgraphicalmodels 0.0.4
File Interpreter ABI Platform
causalgraphicalmodels-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 kB

Release files / causalgraphicalmodels-0.0.4.tar.gz

Download URL causalgraphicalmodels-0.0.4.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
75db560dc1ff096ea17675b1225038fde0a835488be7f3b0e29e15b152573478
BLAKE2b-256 checksum
How to use checksums
3f4b48648fe469bd91b88192d5ac28724b18e139f1c9b089b8fae5ded293b38c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/36.7.2 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/3.6.3

Release files / causalgraphicalmodels-0.0.4-py3-none-any.whl

Download URL causalgraphicalmodels-0.0.4-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ceb3dd2300248ca69efb6d9d7f6c1afdfdf60ff250e8e07f7d275fb12d2b9968
BLAKE2b-256 checksum
How to use checksums
c8ee3b2d184576f3cb4873cebfc696e8e5c1e53eaef691f38aea76c206f9f916
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/36.7.2 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/3.6.3

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page