Skip to main content

Tigramite causal discovery for time series

Project description

Tigramite – Causal inference and causal discovery for time series datasets

Version 5.0

(Python Package)

Github

Documentation

Simple GUI

Overview

Update: Tigramite now has a new CausalEffects class that allows to estimate (conditional) causal effects and mediation based on a causal graph. Have a look at the tutorial.

Further, Tigramite provides several causal discovery methods that can be used under different sets of assumptions. An application always consists of a method and a chosen conditional independence test, e.g. PCMCI together with ParCorr. The following two tables give an overview of the assumptions involved:

Method Assumptions Output
(in addition to Causal Markov Condition and Faithfulness)
PCMCI Causal stationarity, no contemporaneous causal links, no hidden variables Directed lagged links, undirected contemporaneous links (for tau_min=0)
PCMCIplus Causal stationarity, no hidden variables Directed lagged links, directed and undirected contemp. links (Time series CPDAG)
LPCMCI Causal stationarity Time series PAG
Conditional independence test Assumptions
ParCorr univariate variables with continuous, linear Gaussian dependencies
GPDC / GPDCtorch univariate variables with continuous, additive dependencies
CMIknn multivariate variables with continuous, general dependencies
CMIsymb univariables with discrete/categorical dependencies

General Notes

Tigramite is a causal time series analysis python package. It allows to efficiently estimate causal graphs from high-dimensional time series datasets (causal discovery) and to use graphs for robust forecasting and the estimation and prediction of direct, total, and mediated effects. Causal discovery is based on linear as well as non-parametric conditional independence tests applicable to discrete or continuously-valued time series. Also includes functions for high-quality plots of the results. You can find a simple GUI version on https://github.com/stbachinger/TigramiteGui. Please cite the following papers depending on which method you use:

Features

  • high detection power even for large-scale time series datasets
  • flexible conditional independence test statistics adapted to continuously-valued or discrete data, and different assumptions about linear or nonlinear dependencies
  • automatic hyperparameter optimization for most tests
  • parallel computing script based on mpi4py
  • handling of missing values and masks
  • p-value correction and confidence interval estimation
  • causal effect class to non-parametrically estimate (conditional) causal effects and also linear mediated causal effects
  • prediction class based on sklearn models including causal feature selection
  • GUI covering basic functionality on https://github.com/stbachinger/TigramiteGui

Required python packages

  • python=3.7/3.8/3.9
  • numpy
  • scipy
  • numba

Optional packages depending on used functions

  • scikit-learn>=0.21 # Gaussian Process (GP) Regression
  • matplotlib>=3.4.0 # Plotting
  • networkx>=2.4 # Plotting
  • torch>=1.7 # GPDC torch version
  • gpytorch>=1.4 # GPDC torch version
  • dcor>=0.5.3 # GPDC distance correlation version

Installation

python setup.py install

This will install tigramite in your path.

To use just the ParCorr, CMIknn, and CMIsymb independence tests, only numpy/numba and scipy are required. For other independence tests more packages are required:

  • GPDC: scikit-learn is required for Gaussian Process regression and dcor for distance correlation

  • GPDCtorch: gpytorch is required for Gaussian Process regression

User Agreement

By downloading TIGRAMITE you agree with the following points: TIGRAMITE is provided without any warranty or conditions of any kind. We assume no responsibility for errors or omissions in the results and interpretations following from application of TIGRAMITE.

You commit to cite above papers in your reports or publications.

License

Copyright (C) 2014-2022 Jakob Runge

See license.txt for full text.

TIGRAMITE is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. TIGRAMITE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Project details


Download files

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

Source Distribution

tigramite-5.0.0.3.tar.gz (171.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tigramite-5.0.0.3-py3-none-any.whl (181.4 kB view details)

Uploaded Python 3

File details

Details for the file tigramite-5.0.0.3.tar.gz.

File metadata

  • Download URL: tigramite-5.0.0.3.tar.gz
  • Upload date:
  • Size: 171.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for tigramite-5.0.0.3.tar.gz
Algorithm Hash digest
SHA256 9522a9bfb3510a6a893350509635eadc3a5640ef435734003d76738804e475be
MD5 32452eb077f266380ca497a42d35f63d
BLAKE2b-256 a953e954638e4a8b67b864800480889940d25bb7acb01c2831cf6e2f909d09dc

See more details on using hashes here.

File details

Details for the file tigramite-5.0.0.3-py3-none-any.whl.

File metadata

  • Download URL: tigramite-5.0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 181.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for tigramite-5.0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e420ab4e362ad7480f1daece05e9319f230b05f8c00ae2dc838d8d265404fc82
MD5 addeecd6f91820cb64193952c065268a
BLAKE2b-256 8bb8b4763e12645fabafd3df7dd2ba8d7949c0e7b8e6d461a570c6591bdd7851

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page