Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Causal models in Python

Project description

causalmodels in Python.


$ pip install causalmodels


>>> import numpy as np
>>> import pandas as pd
>>> import causalmodels as cm
>>> a = np.random.laplace(size=500)
>>> b = np.random.laplace(size=500) + a
>>> c = np.random.laplace(size=500) + a + b
>>> data = pd.DataFrame({'a': a, 'b': b, 'c': c})
>>> model = cm.DirectLiNGAM(data.values, data.columns)
>>> results =
>>> results.order
[2, 1, 0]
>>> result.plot()

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
causalmodels-0.4.0-py3-none-any.whl (6.7 kB) Copy SHA256 hash SHA256 Wheel 3.4 Jul 20, 2016
causalmodels-0.4.0.tar.gz (4.6 kB) Copy SHA256 hash SHA256 Source None Jul 20, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page