IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v056i12.html

Introducing localgauss, an R Package for Estimating and Visualizing Local Gaussian Correlation

Author

Listed:
  • Berentsen, Geir Drage
  • Kleppe, Tore Selland
  • Tjøstheim, Dag Bjarne

Abstract

Quantifying non-linear dependence structures between two random variables is a challenging task. There exist several bona-fide dependence measures able to capture the strength of the non-linear association, but they typically give little information about how the variables are associated. This problem has been recognized by several authors and has given rise to the concept of local measures of dependence. A local measure of dependence is able to capture the “local” dependence structure in a particular region. The idea is that the global dependence structure is better described by a portfolio of local measures of dependence computed in different regions than a one-number measure of dependence. This paper introduces the R package localgauss which estimates and visualizes a measure of local dependence called local Gaussian correlation. The package provides a function for estimation, a function for local independence testing and corresponding functions for visualization purposes, which are all demonstrated with examples.

Suggested Citation

  • Berentsen, Geir Drage & Kleppe, Tore Selland & Tjøstheim, Dag Bjarne, 2014. "Introducing localgauss, an R Package for Estimating and Visualizing Local Gaussian Correlation," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 56(i12).
  • Handle: RePEc:jss:jstsof:v:056:i12
    DOI: http://hdl.handle.net/10.18637/jss.v056.i12
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v056i12/v56i12.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v056i12/localgauss_0.33.tar.gz
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v056i12/v56i12.R
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v056.i12?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. Rosenblatt, Murray & Wahlen, Bruce E., 1992. "A nonparametric measure of independence under a hypothesis of independent components," Statistics & Probability Letters, Elsevier, vol. 15(3), pages 245-252, October.
    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. repec:rim:rimwps:23-09 is not listed on IDEAS
    2. Dimitrios Dimitriou & Dimitris Kenourgios & Theodore Simos & Alexandros Tsioutsios, 2025. "The implications of non‐synchronous trading in G‐7 financial markets," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 30(1), pages 689-709, January.
    3. Bampinas, Georgios & Panagiotidis, Theodore & Politsidis, Panagiotis N., 2023. "Sovereign bond and CDS market contagion: A story from the Eurozone crisis," Journal of International Money and Finance, Elsevier, vol. 137(C).
    4. Georgios Bampinas & Theodore Panagiotidis, 2017. "Oil and stock markets before and after financial crises: A local Gaussian correlation approach," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 37(12), pages 1179-1204, December.
    5. Li, Dongxin & Zhang, Feipeng & Yuan, Di & Cai, Yuan, 2024. "Does COVID-19 impact the dependence between oil and stock markets? Evidence from RCEP countries," International Review of Economics & Finance, Elsevier, vol. 89(PA), pages 909-939.
    6. Elie Bouri & Rangan Gupta & Shixuan Wang, 2019. "Contagion between Stock and Real Estate Markets: International Evidence from a Local Gaussian Correlation Approach," Working Papers 201917, University of Pretoria, Department of Economics.
    7. Otneim, Håkon & Jullum, Martin & Tjøstheim, Dag, 2020. "Pairwise local Fisher and naive Bayes: Improving two standard discriminants," Journal of Econometrics, Elsevier, vol. 216(1), pages 284-304.
    8. Elie Bouri & Rangan Gupta & Shixuan Wang, 2022. "Nonlinear contagion between stock and real estate markets: International evidence from a local Gaussian correlation approach," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 27(2), pages 2089-2109, April.
    9. Lars Arne Jordanger & Dag Tjøstheim, 2023. "Local Gaussian Cross-Spectrum Analysis," Econometrics, MDPI, vol. 11(2), pages 1-27, April.

    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. Wu, Edmond H.C. & Yu, Philip L.H. & Li, W.K., 2009. "A smoothed bootstrap test for independence based on mutual information," Computational Statistics & Data Analysis, Elsevier, vol. 53(7), pages 2524-2536, May.
    2. Pinkse, Joris, 1998. "A consistent nonparametric test for serial independence," Journal of Econometrics, Elsevier, vol. 84(2), pages 205-231, June.
    3. Luca Bagnato & Lucio De Capitani & Antonio Punzo, 2014. "Testing Serial Independence via Density-Based Measures of Divergence," Methodology and Computing in Applied Probability, Springer, vol. 16(3), pages 627-641, September.
    4. Cees Diks & Valentyn Panchenko, 2005. "Nonparametric Tests for Serial Independence Based on Quadratic Forms," Tinbergen Institute Discussion Papers 05-076/1, Tinbergen Institute.
    5. Bagkavos, D. & Patil, P.N., 2017. "A new test of independence for bivariate observations," Journal of Multivariate Analysis, Elsevier, vol. 160(C), pages 117-133.
    6. Ahmad, Ibrahim A. & Li, Qi, 1997. "Testing independence by nonparametric kernel method," Statistics & Probability Letters, Elsevier, vol. 34(2), pages 201-210, June.

    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:jss:jstsof:v:056:i12. 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: Christopher F. Baum (email available below). General contact details of provider: http://www.jstatsoft.org/ .

    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.