IDEAS home Printed from https://ideas.repec.org/a/plo/pbio00/3002758.html
   My bibliography  Save this article

A rigorous and versatile statistical test for correlations between stationary time series

Author

Listed:
  • Alex E Yuan
  • Wenying Shou

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 and thus 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. There are also nonparametric tests that can be used with any correlation statistic, but for these, 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 2 time series. We prove that this test correctly controls the false positive rate 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 datasets from climatology, animal behavior, and microbiome science, verifying previously discovered dependence relationships and detecting additional relationships.Testing the significance of a correlation between time series without substantial assumptions is a longstanding challenge. This study presents the truncated time-shift (TTS) test, a conservative significance test that is valid as long as one time series is statistically stationary.

Suggested Citation

  • Alex E Yuan & Wenying Shou, 2024. "A rigorous and versatile statistical test for correlations between stationary time series," PLOS Biology, Public Library of Science, vol. 22(8), pages 1-26, August.
  • Handle: RePEc:plo:pbio00:3002758
    DOI: 10.1371/journal.pbio.3002758
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.3002758
    Download Restriction: no

    File URL: https://journals.plos.org/plosbiology/article/file?id=10.1371/journal.pbio.3002758&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pbio.3002758?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Mark Maslin, 2016. "Forty years of linking orbits to ice ages," Nature, Nature, vol. 540(7632), pages 208-209, December.
    2. Sean M Gibbons & Sean M Kearney & Chris S Smillie & Eric J Alm, 2017. "Two dynamic regimes in the human gut microbiome," PLOS Computational Biology, Public Library of Science, vol. 13(2), pages 1-20, February.
    3. Davidson, Russell & MacKinnon, James, 2001. "Bootstrap Tests: How Many Bootstraps?," Queen's Economics Department Working Papers 273506, Queen's University - Department of Economics.
    4. Granger, C. W. J. & Newbold, P., 1974. "Spurious regressions in econometrics," Journal of Econometrics, Elsevier, vol. 2(2), pages 111-120, July.
    5. Russell Davidson & James MacKinnon, 2000. "Bootstrap tests: how many bootstraps?," Econometric Reviews, Taylor & Francis Journals, vol. 19(1), pages 55-68.
    6. Masayuki Ushio & Chih-hao Hsieh & Reiji Masuda & Ethan R Deyle & Hao Ye & Chun-Wei Chang & George Sugihara & Michio Kondoh, 2018. "Fluctuating interaction network and time-varying stability of a natural fish community," Nature, Nature, vol. 554(7692), pages 360-363, February.
    7. Peter Huybers & Carl Wunsch, 2005. "Obliquity pacing of the late Pleistocene glacial terminations," Nature, Nature, vol. 434(7032), pages 491-494, March.
    8. David P Shorten & Richard E Spinney & Joseph T Lizier, 2021. "Estimating Transfer Entropy in Continuous Time Between Neural Spike Trains or Other Event-Based Data," PLOS Computational Biology, Public Library of Science, vol. 17(4), pages 1-45, April.
    9. Jakob Runge & Sebastian Bathiany & Erik Bollt & Gustau Camps-Valls & Dim Coumou & Ethan Deyle & Clark Glymour & Marlene Kretschmer & Miguel D. Mahecha & Jordi Muñoz-Marí & Egbert H. Nes & Jonas Peters, 2019. "Inferring causation from time series in Earth system sciences," Nature Communications, Nature, vol. 10(1), pages 1-13, December.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. David Llanos-Ruiz & Víctor Abella-García & Vanesa Ausín-Villaverde, 2025. "Virtual Reality in Higher Education: A Systematic Review Aligned with the Sustainable Development Goals," Societies, MDPI, vol. 15(9), pages 1-60, September.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. M.L. Nores & M.P. Díaz, 2016. "Bootstrap hypothesis testing in generalized additive models for comparing curves of treatments in longitudinal studies," Journal of Applied Statistics, Taylor & Francis Journals, vol. 43(5), pages 810-826, April.
    2. Johannesson Magnus & Östling Robert & Ranehill Eva, 2010. "The Effect of Competition on Physical Activity: A Randomized Trial," The B.E. Journal of Economic Analysis & Policy, De Gruyter, vol. 10(1), pages 1-31, September.
    3. Wen Shi & Xi Chen & Jennifer Shang, 2019. "An Efficient Morris Method-Based Framework for Simulation Factor Screening," INFORMS Journal on Computing, INFORMS, vol. 31(4), pages 745-770, October.
    4. repec:ebl:ecbull:v:30:y:2010:i:1:p:55-66 is not listed on IDEAS
    5. Dong Ding & Axel Gandy & Georg Hahn, 2020. "A simple method for implementing Monte Carlo tests," Computational Statistics, Springer, vol. 35(3), pages 1373-1392, September.
    6. Davidson, Russell, 2009. "Reliable inference for the Gini index," Journal of Econometrics, Elsevier, vol. 150(1), pages 30-40, May.
    7. Sarlin, Peter & von Schweinitz, Gregor, 2021. "Optimizing Policymakers’ Loss Functions In Crisis Prediction: Before, Within Or After?," Macroeconomic Dynamics, Cambridge University Press, vol. 25(1), pages 100-123, January.
    8. Strikholm, Birgit & Teräsvirta, Timo, 2005. "Determining the Number of Regimes in a Threshold Autoregressive Model Using Smooth Transition Autoregressions," SSE/EFI Working Paper Series in Economics and Finance 578, Stockholm School of Economics, revised 11 Feb 2005.
    9. Emmanuel Flachaire, 2000. "Les méthodes du bootstrap dans les modèles de régression," Économie et Prévision, Programme National Persée, vol. 142(1), pages 183-194.
    10. Francis, Bill B. & Mougoué, Mbodja & Panchenko, Valentyn, 2010. "Is there a symmetric nonlinear causal relationship between large and small firms?," Journal of Empirical Finance, Elsevier, vol. 17(1), pages 23-38, January.
    11. Priscila Espinosa & Jose M. Pavía, 2023. "Automation in Regional Economic Synthetic Index Construction with Uncertainty Measurement," Forecasting, MDPI, vol. 5(2), pages 1-19, April.
    12. Dufour, Jean-Marie & Khalaf, Lynda, 2002. "Simulation based finite and large sample tests in multivariate regressions," Journal of Econometrics, Elsevier, vol. 111(2), pages 303-322, December.
    13. Dang, Rey & Houanti, L'Hocine & Sahut, Jean-Michel & Simioni, Michel, 2021. "Do women on corporate boards influence corporate social performance? A control function approach," Finance Research Letters, Elsevier, vol. 39(C).
    14. Chiu, Sung Nok & Wang, Ling, 2009. "Homogeneity tests for several Poisson populations," Computational Statistics & Data Analysis, Elsevier, vol. 53(12), pages 4266-4278, October.
    15. Fleissig, Adrian R. & Whitney, Gerald A., 2007. "Testing additive separability," Economics Letters, Elsevier, vol. 96(2), pages 215-220, August.
    16. Makram El-Shagi & Axel Lindner & Gregor von Schweinitz, 2016. "Real Effective Exchange Rate Misalignment in the Euro Area: A Counterfactual Analysis," Review of International Economics, Wiley Blackwell, vol. 24(1), pages 37-66, February.
    17. Webb, Matthew D., 2014. "Reworking Wild Bootstrap Based Inference for Clustered Errors," Queen's Economics Department Working Papers 274640, Queen's University - Department of Economics.
    18. Judith Clarke & Nilanjana Roy & Marsha Courchane, 2009. "On the robustness of racial discrimination findings in mortgage lending studies," Applied Economics, Taylor & Francis Journals, vol. 41(18), pages 2279-2297.
    19. Görtz, Christoph & Yeromonahos, Mallory, 2022. "Asymmetries in risk premia, macroeconomic uncertainty and business cycles," Journal of Economic Dynamics and Control, Elsevier, vol. 137(C).
    20. Ghassan, Hassan B. & Alhajhoj, Hassan R., 2009. "اختبار أثر مزاحمة الإنفاق الحكومي للإستثمار الخاص في الاقتصاد السعودي عبر المعاينة المعادة [Crowding out Test of Government Expenditures to Private Investment in Saudi Arabia using Bootstrapping]," MPRA Paper 54453, University Library of Munich, Germany, revised 2009.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pbio00:3002758. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosbiology (email available below). General contact details of provider: https://journals.plos.org/plosbiology/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.