Saved in:
Bibliographic Details
Main Authors: Parra, Lucas C., Ortubay, Aimar Silvan, Nentwich, Maximilian, Madsen, Jens, Babadi, Behtash
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2404.10834
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914851846094848
author Parra, Lucas C.
Ortubay, Aimar Silvan
Nentwich, Maximilian
Madsen, Jens
Babadi, Behtash
author_facet Parra, Lucas C.
Ortubay, Aimar Silvan
Nentwich, Maximilian
Madsen, Jens
Babadi, Behtash
contents Complex systems, such as brains, markets, and societies, exhibit internal dynamics influenced by external factors. Disentangling delayed external effects from internal dynamics within these systems is often challenging. We propose using a Vector Autoregressive model with eXogenous input (VARX) to capture delayed interactions between internal and external variables. While this model aligns with Granger's statistical formalism for testing "causal relations", the connection between the two is not widely understood. Here, we bridge this gap by providing fundamental equations, user-friendly code, and demonstrations using simulated and real-world data from neuroscience, physiology, sociology, and economics. Our examples illustrate how the model avoids spurious correlation by factoring out external influences from internal dynamics, leading to more parsimonious explanations of the systems. We also provide methods for enhancing model efficiency, such as L2 regularization for limited data and basis functions to cope with extended delays. Additionally, we analyze model performance under various scenarios where model assumptions are violated. MATLAB, Python, and R code are provided for easy adoption: https://github.com/lcparra/varx
format Preprint
id arxiv_https___arxiv_org_abs_2404_10834
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle VARX Granger Analysis: Modeling, Inference, and Applications
Parra, Lucas C.
Ortubay, Aimar Silvan
Nentwich, Maximilian
Madsen, Jens
Babadi, Behtash
Methodology
Complex systems, such as brains, markets, and societies, exhibit internal dynamics influenced by external factors. Disentangling delayed external effects from internal dynamics within these systems is often challenging. We propose using a Vector Autoregressive model with eXogenous input (VARX) to capture delayed interactions between internal and external variables. While this model aligns with Granger's statistical formalism for testing "causal relations", the connection between the two is not widely understood. Here, we bridge this gap by providing fundamental equations, user-friendly code, and demonstrations using simulated and real-world data from neuroscience, physiology, sociology, and economics. Our examples illustrate how the model avoids spurious correlation by factoring out external influences from internal dynamics, leading to more parsimonious explanations of the systems. We also provide methods for enhancing model efficiency, such as L2 regularization for limited data and basis functions to cope with extended delays. Additionally, we analyze model performance under various scenarios where model assumptions are violated. MATLAB, Python, and R code are provided for easy adoption: https://github.com/lcparra/varx
title VARX Granger Analysis: Modeling, Inference, and Applications
topic Methodology
url https://arxiv.org/abs/2404.10834