Permute-match tests detect significant correlations between time series despite nonstationarity and limited replicates
Abstract
Researchers frequently analyze correlations between pairs of time series by determining whether an observed correlation is stronger than expected under the null hypothesis of independence. However, the time series are often nonstationary, with statistical properties that change over time, thereby making standard tests invalid. If sufficient replicates exist, a trial-swapping permutation test can be performed that handles nonstationarity by comparing within-replicate correlations to between-replicate correlations. Although largely assumption-free, this test is fundamentally limited by the number of replicates (n) because its minimum p-value is 1/n!. With n = 3, this minimum is 1/6, rendering thresholds like 0.05 unattainable. This limits its use considerably in animal experiments, where n may be as low as 3. We propose permute-match tests -- modified permutation tests that can report lower p-values of 2/nn or 1/nn under strong evidence of dependence. Permute-match tests guarantee a false positive rate at or below the significance level when replicates are independent and identically distributed. The bound of 1/nn is not gratuitously conservative, since it cannot be further lowered without additional assumptions. We demonstrate our approach using synthetic data and apply it to an existing dataset with 3 independent groups of zebrafish, confirming the observation that zebrafish swim faster when directionally aligned. Data availabilitySource code 1 contains all the simulation and analysis code used to prepare this manuscript. The experimental data analyzed in this paper can be obtained at the following web address: https://drive.google.com/drive/folders/1UmzlX-yJhzQ5KX5rGry8wZgXvcz6HefD.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- Organism
- Research Focus
- Approach
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
- A rigorous and versatile statistical test for correlations between time series
Alex E. Yuan, Wenying Shou·bioRxiv·Jan 25, 2022
- Permutation tests for hypothesis testing with animal social data: problems and potential solutions
D. R. Farine, G. G. Carter·bioRxiv·Aug 2, 2020
- Parallelized calculation of permutation tests
Markus Ekvall, Michael Höhle, Lukas Käll·BioinformaticsPeer-reviewed·Nov 19, 2020
- Enlarging the Scope of Randomization and Permutation Tests in Neuroimaging and Neuroscience
Eric Maris·bioRxiv·Feb 1, 2020
- Common Permutation Methods in Animal Social Network Analysis Do Not Control for Non-independence
J. D. A. Hart, M. N. Weiss, … D. W. Franks·bioRxiv·Jun 4, 2021
- Nonsense correlations in neuroscience
Kenneth D. Harris·bioRxiv·Nov 29, 2020