bioRxivBioinformaticsPreprint
A rigorous and versatile statistical test for correlations between time series
Abstract
In disciplines from biology to climate science, a routine task is to compute a correlation between a pair of time series, and determine whether the correlation is statistically significant (i.e. unlikely under the null hypothesis that the time series are independent). This problem is challenging because time series typically exhibit autocorrelation, which cannot be properly analyzed with the standard iid-oriented statistical tests. Although there are well-known parametric tests for time series, these are designed for linear correlation statistics and thus not suitable for the increasingly popular nonlinear correlation statistics. Among nonparametric tests, the conditions that guarantee correct false positive rates are either restrictive or unclear. Here we describe the truncated time-shift (TTS) test, a nonparametric procedure to test for dependence between two time series. We prove that this test is valid as long as one of the time series is stationary, a minimally restrictive requirement among current tests. The TTS test is versatile because it can be used with any correlation statistic. Using synthetic data, we demonstrate that this test performs correctly even while other tests suffer high false positive rates. In simulation examples, simple guidelines for parameter choices allow high statistical power to be achieved with sufficient data. We apply the test to data sets from climatology, animal behavior and microbiome science, verifying previously discovered dependence relationships and detecting additional relationships.
- Citations
- 4
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Test-statistic correlation and data-row correlation
Bin Zhuo, Duo Jiang, Yanming Di·Statistics & Probability LettersPeer-reviewed·Aug 14, 2020
- Subtle methodological variations substantially impact correlation test results in ecological time series
Caroline Cannistra, Linh Hoang, … Wenying Shou·bioRxiv·Oct 11, 2024
- Nonsense correlations in neuroscience
Kenneth D. Harris·bioRxiv·Nov 29, 2020
- Permute-match tests detect significant correlations between time series despite nonstationarity and limited replicates
Alex E. Yuan, Wenying Shou·bioRxiv·Mar 13, 2023
- Detecting pairwise correlations in spike trains: an objective comparison of methods and application to the study of retinal waves.
Catherine Sarah Cutts, Stephen J Eglen·bioRxiv·Sep 9, 2014
- Novel Covariance-Based Neutrality Test of Time-Series Data Reveals Asymmetries in Ecological and Economic Systems
Alex Washburne, Daniel Lacker, Josh Burby·PLOS Computational BiologyPeer-reviewed·Sep 30, 2016