Code Monkey home page Code Monkey logo

multiscalegrangercausality's Introduction

multiscaleGrangerCausality

In the study of complex physical and biological systems represented by multivariate stochastic processes, an issue of great relevance is the description of the system dynamics spanning multiple temporal scales. While methods to assess the dynamic complexity of individual processes at different time scales are well-established, multiscale analysis of directed interactions has never been formalized theoretically, and empirical evaluations are complicated by practical issues such as filtering and downsampling. We extend the very popular measure of Granger causality (GC), a prominent tool for assessing directed lagged interactions between joint processes, to quantify information transfer across multiple time scales. We show that the multiscale processing of a vector autoregressive (AR) process introduces a moving average (MA) component, and describe how to represent the resulting ARMA process using state space (SS) models and to combine the SS model parameters for computing exact GC values at arbitrarily large time scales. We exploit the theoretical formulation to identify peculiar features of multiscale GC in basic AR processes, and demonstrate with numerical simulations the much larger estimation accuracy of the SS approach compared with pure AR modeling of filtered and downsampled data. The improved computational reliability is exploited to disclose meaningful multiscale patterns of information transfer between global temperature and carbon dioxide concentration time series, both in paleoclimate and in recent years. The msGC Matlab toolbox reroduces algorithms, simulations and real data analysis reported in [1].

alt text

Main functions

  • mscg.m: computes Granger causality at a given scale from assigned VAR parameters
  • iss_PV: computes partial variances for a state space model from innovations form SS parameters
  • iss_ss2iss.m: computes innovations form SS parameters from SS parameters
  • iss_varma2iss.m: computes innovations form SS parameters from VARMA parameters
  • iss_ds.m: computes innovations form SS parameters for a downsampled SS model External functions

  • egc_gcMVAR.m (LinReg, linReg_Ftest, SetLag, buildvectors): functions to compute standard time domain Granger Causality
  • eMVAR_idMVAR.m (choldiag, InstModelFilter, mos_idMVAR, MVARfilter): functions to identify and simulate a MVAR process
  • surriaaft.m (surrshuf): functions to generate IAAFT surrogates Scripts

  • test_ssGC.m: computation of multiscale GC with state-space models for simple simulated VAR processes
  • PRE2017_simulationA.m: realizes simulation A of [1]
  • PRE2017_simulationB.m: realizes simulation b of [1]
  • PRE2017_application_modern.m: realizes application to modern climate data performed in [1]
  • PRE2017_application_paleo.m: realizes application to paleolithic climate data performed in [1] Data

  • data_modern.mat (data_modern_L1-filtered): climatological time series analyzed in [1] (modern climate data)
  • data_800.mat: climatological time series analyzed in [1] (paleolithic climate data) NOTE: the iss_ds and ss2iss functions are taken from the State-Space Granger Causality Matlab Toolbox - http://users.sussex.ac.uk/~lionelb/downloads/ssgc.zip

[1] L Faes, L Faes, S Stramaglia, G Nollo, D Marinazzo. Multiscale Granger causality. Physical Review E 96, 042150 (2017). https://doi.org/10.1103/PhysRevE.96.042150 https://arxiv.org/abs/1703.08487

multiscalegrangercausality's People

Contributors

danielemarinazzo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.