Detecting time lag between a pair of time series using visibility graph algorithm

Commun Stat Case Stud Data Anal Appl. 2021;7(3):315-343. doi: 10.1080/23737484.2021.1882356. Epub 2021 Feb 26.

Abstract

Estimating the time lag between a pair of time series is of significance in many practical applications. In this article, we introduce a method to quantify such lags by adapting the visibility graph algorithm, which converts time series into a mathematical graph. Currently widely used method to detect such lags is based on cross-correlations, which has certain limitations. We present simulated examples where the new method identifies the lag correctly and unambiguously while as the cross-correlation method does not. The article includes results from an extensive simulation study conducted to better understand the scenarios where the new method performed better or worse than the existing approach. We also present a likelihood based parametric modeling framework and consider frameworks for quantifying uncertainty and hypothesis testing for the new approach. We apply the current and new methods to two case studies, one from neuroscience and the other from environmental epidemiology, to illustrate the methods further.

Keywords: Time series; correlogram; cross correlation; environmental epidemiology; local field potentials; neuroscience; ozone levels; time lag; transfer function; visibility graph algorithm.