Skip to main content

Tigramite causal discovery for time series

Project description

TIGRAMITE – Causal discovery for time series datasets

Version 4.2

(Python Package)

Github

Documentation

Overview

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, continuous, linear Gaussian dependencies
GPDC / GPDCtorch univariate, continuous, additive dependencies
CMIknn multivariate, continuous, general dependencies
CMIsymb univariate, discrete/categorical dependencies

General Notes

Tigramite is a causal time series analysis python package. It allows to efficiently reconstruct causal graphs from high-dimensional time series datasets and model the obtained causal dependencies for causal mediation and prediction analyses. 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. 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 mediation class to analyze causal pathways
  • prediction class based on sklearn models including causal feature selection

Required python packages

  • numpy
  • scipy
  • scikit-learn (optional, necessary for GPDC test)
  • matplotlib (optional, only for plotting)
  • networkx (optional, only for plotting and mediation)
  • cython (optional, necessary for CMIknn)
  • mpi4py (optional, necessary for using the parallelized script)
  • dcor (optional, necessary for GPDC)
  • gpytorch (optional, necessary for GPDCtorch implementation)

Installation

python setup.py install

This will install tigramite in your path.

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

  • CMIknn: cython can optionally be used for compilation, otherwise the provided ``*.c'' file is used

  • 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-2020 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-4.2.2.0.tar.gz (234.4 kB view details)

Uploaded Source

Built Distribution

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

tigramite-4.2.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (419.5 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: tigramite-4.2.2.0.tar.gz
  • Upload date:
  • Size: 234.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13

File hashes

Hashes for tigramite-4.2.2.0.tar.gz
Algorithm Hash digest
SHA256 482503e353db79ced3c994c7ec930dd022d45c3797a0478111afd343e1660b28
MD5 e5cd5a9e30bf36eb0f7c60eb4db54ac1
BLAKE2b-256 e2b35b28c4cada0ec25fa6456e9b74a6c65a87828170955ecffaad9b3b3d561d

See more details on using hashes here.

File details

Details for the file tigramite-4.2.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tigramite-4.2.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 89610f3e234d9337def70bcb55608c01a658cafcb74c89e660c1a7dcce604a66
MD5 41f09a35f86832d8e64c9ec9fe8b16e5
BLAKE2b-256 d48c8ff71c079ab589357b3067694481d22073c3e53c4fa413d45691c4f0bc78

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