Permute-match tests: Detecting significant correlations between time series despite nonstationarity and limited replicates

preprint OA: closed CC-BY-4.0
📄 Open PDF View at publisher

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/n n or 1/n n 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/n n 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.

My notes (saved in your browser only)

Funding

funders
[{'doi': None, 'name': None, 'awards': ['R01GM124128']}, {'doi': None, 'name': None, 'awards': []}, {'doi': None, 'name': None, 'awards': ['1917258']}, {'doi': '10.13039/501100000288', 'name': 'Royal Society', 'awards': []}, {'doi': None, 'name': None, 'awards': []}]

Citation neighborhood (sparse)

Too few in-corpus citations on either side for a chart; here are the lists.

Cites (2)

References (38)

Source provenance

crossref
last seen: 2026-07-14T06:42:10.682512+00:00
europepmc
last seen: 2026-05-19T01:45:01.086888+00:00
unpaywall
last seen: 2026-05-22T02:00:06.705733+00:00
License: CC-BY-4.0