Skip to content

Tigramite is a time series analysis python module for causal discovery. The Tigramite documentation is at

License

Notifications You must be signed in to change notification settings

Black-Swan-ICL/tigramite

 
 

Repository files navigation

TIGRAMITE – Causal discovery for time series datasets

Version 4.2

(Python Package)

Github

Documentation

--> Take a survey to improve tigramite <--

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>=1.17.0
  • scipy>=1.3.0
  • scikit-learn>=0.21 (optional, necessary for GPDC test)
  • matplotlib>=3.4.0 (optional, only for plotting)
  • networkx>=2.4 (optional, only for plotting and mediation)
  • cython>=0.29.12 (optional, necessary for CMIknn)
  • mpi4py>=3.0.3 (optional, necessary for using the parallelized script)
  • dcor>=0.5.3 (optional, necessary for GPDC)
  • gpytorch>=1.4 (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.

About

Tigramite is a time series analysis python module for causal discovery. The Tigramite documentation is at

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 73.5%
  • Python 26.5%