IDEAS home Printed from https://ideas.repec.org/a/wly/envmet/v36y2025i5ne70017.html

Computational Benchmark Study in Spatio‐Temporal Statistics With a Hands‐On Guide to Optimise R

Author

Listed:
  • Lorenzo Tedesco
  • Jacopo Rodeschini
  • Philipp Otto

Abstract

This study provides a comprehensive evaluation of the computational performance of R, MATLAB, Python, and Julia for spatial and spatio‐temporal modelling, focusing on high‐dimensional datasets typical in geospatial statistical analysis. We benchmark each language across key tasks, including matrix manipulations and transformations, iterative programming routines, and Input/Output processes, all of which are critical in environmetrics. The results demonstrate that MATLAB excels in matrix‐based computations, while Julia consistently delivers competitive performance across a wide range of tasks, establishing itself as a robust, open‐source alternative. Python, when combined with libraries like NumPy, shows strength in specific numerical operations, offering versatility for general‐purpose programming. R, despite its slower default performance in raw computations, proves to be highly adaptable; by linking to optimized libraries like OpenBLAS or MKL and integrating C++ with packages like Rcpp, R achieves significant performance gains, becoming competitive with the other languages. This study also provides practical guidance for researchers to optimize R for geospatial data processing, offering insights to support the selection of the most suitable language for specific modelling requirements.

Suggested Citation

  • Lorenzo Tedesco & Jacopo Rodeschini & Philipp Otto, 2025. "Computational Benchmark Study in Spatio‐Temporal Statistics With a Hands‐On Guide to Optimise R," Environmetrics, John Wiley & Sons, Ltd., vol. 36(5), July.
  • Handle: RePEc:wly:envmet:v:36:y:2025:i:5:n:e70017
    DOI: 10.1002/env.70017
    as

    Download full text from publisher

    File URL: https://doi.org/10.1002/env.70017
    Download Restriction: no

    File URL: https://libkey.io/10.1002/env.70017?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. Abhirup Datta & Sudipto Banerjee & Andrew O. Finley & Alan E. Gelfand, 2016. "Hierarchical Nearest-Neighbor Gaussian Process Models for Large Geostatistical Datasets," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 111(514), pages 800-812, April.
    2. Joseph Guinness, 2019. "Spectral density estimation for random fields via periodic embeddings," Biometrika, Biometrika Trust, vol. 106(2), pages 267-286.
    3. Matthew J. Heaton & Abhirup Datta & Andrew O. Finley & Reinhard Furrer & Joseph Guinness & Rajarshi Guhaniyogi & Florian Gerber & Robert B. Gramacy & Dorit Hammerling & Matthias Katzfuss & Finn Lindgr, 2019. "A Case Study Competition Among Methods for Analyzing Large Spatial Data," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 24(3), pages 398-425, September.
    4. Michael Dumelle & Matt Higham & Jay M Ver Hoef, 2023. "spmodel: Spatial statistical modeling and prediction in R," PLOS ONE, Public Library of Science, vol. 18(3), pages 1-32, March.
    5. Lee, Duncan, 2013. "CARBayes: An R Package for Bayesian Spatial Modeling with Conditional Autoregressive Priors," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 55(i13).
    6. Håvard Rue & Sara Martino & Nicolas Chopin, 2009. "Approximate Bayesian inference for latent Gaussian models by using integrated nested Laplace approximations," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 71(2), pages 319-392, April.
    7. Bates, Douglas & Eddelbuettel, Dirk, 2013. "Fast and Elegant Numerical Linear Algebra Using the RcppEigen Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 52(i05).
    8. Finley, Andrew O. & Banerjee, Sudipto & Gelfand, Alan E., 2015. "spBayes for Large Univariate and Multivariate Point-Referenced Spatio-Temporal Data Models," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 63(i13).
    9. Guinness, Joseph, 2022. "Nonparametric spectral methods for multivariate spatial and spatial–temporal data," Journal of Multivariate Analysis, Elsevier, vol. 187(C).
    10. Baddeley, Adrian & Turner, Rolf, 2005. "spatstat: An R Package for Analyzing Spatial Point Patterns," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 12(i06).
    Full references (including those not matched with items on IDEAS)

    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. Matthias Katzfuss & Joseph Guinness & Wenlong Gong & Daniel Zilber, 2020. "Vecchia Approximations of Gaussian-Process Predictions," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 25(3), pages 383-414, September.
    2. Jeffrey W. Doser & Andrew O. Finley & Sarah P. Saunders & Marc Kéry & Aaron S. Weed & Elise F. Zipkin, 2025. "Modeling Complex Species-Environment Relationships Through Spatially-Varying Coefficient Occupancy Models," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 30(1), pages 146-171, March.
    3. Huang Huang & Sameh Abdulah & Ying Sun & Hatem Ltaief & David E. Keyes & Marc G. Genton, 2021. "Competition on Spatial Statistics for Large Datasets," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 26(4), pages 580-595, December.
    4. Jialuo Liu & Tingjin Chu & Jun Zhu & Haonan Wang, 2022. "Large spatial data modeling and analysis: A Krylov subspace approach," Scandinavian Journal of Statistics, Danish Society for Theoretical Statistics;Finnish Statistical Society;Norwegian Statistical Association;Swedish Statistical Association, vol. 49(3), pages 1115-1143, September.
    5. Zilber, Daniel & Katzfuss, Matthias, 2021. "Vecchia–Laplace approximations of generalized Gaussian processes for big non-Gaussian spatial data," Computational Statistics & Data Analysis, Elsevier, vol. 153(C).
    6. Lu Zhang & Sudipto Banerjee & Andrew O. Finley, 2021. "High‐dimensional multivariate geostatistics: A Bayesian matrix‐normal approach," Environmetrics, John Wiley & Sons, Ltd., vol. 32(4), June.
    7. Paul F. V. Wiemann & Matthias Katzfuss, 2023. "Bayesian Nonparametric Generative Modeling of Large Multivariate Non-Gaussian Spatial Fields," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 28(4), pages 597-617, December.
    8. Isabelle Grenier & Bruno Sansó & Jessica L. Matthews, 2024. "Multivariate nearest‐neighbors Gaussian processes with random covariance matrices," Environmetrics, John Wiley & Sons, Ltd., vol. 35(3), May.
    9. Yiping Hong & Yan Song & Sameh Abdulah & Ying Sun & Hatem Ltaief & David E. Keyes & Marc G. Genton, 2023. "The Third Competition on Spatial Statistics for Large Datasets," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 28(4), pages 618-635, December.
    10. Peter A. Gao & Hannah M. Director & Cecilia M. Bitz & Adrian E. Raftery, 2022. "Probabilistic Forecasts of Arctic Sea Ice Thickness," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 27(2), pages 280-302, June.
    11. Nikoline N. Knudsen & Jörg Schullehner & Birgitte Hansen & Lisbeth F. Jørgensen & Søren M. Kristiansen & Denitza D. Voutchkova & Thomas A. Gerds & Per K. Andersen & Kristine Bihrmann & Morten Grønbæk , 2017. "Lithium in Drinking Water and Incidence of Suicide: A Nationwide Individual-Level Cohort Study with 22 Years of Follow-Up," IJERPH, MDPI, vol. 14(6), pages 1-13, June.
    12. L. Altieri & D. Cocchi & M. Ventrucci, 2025. "Entropy‐Based Assessment of Biodiversity, With Application to Ants' Nests Data," Environmetrics, John Wiley & Sons, Ltd., vol. 36(1), January.
    13. Ferreira, Marco A.R. & Porter, Erica M. & Franck, Christopher T., 2021. "Fast and scalable computations for Gaussian hierarchical models with intrinsic conditional autoregressive spatial random effects," Computational Statistics & Data Analysis, Elsevier, vol. 162(C).
    14. Matthew J. Heaton & Abhirup Datta & Andrew O. Finley & Reinhard Furrer & Joseph Guinness & Rajarshi Guhaniyogi & Florian Gerber & Robert B. Gramacy & Dorit Hammerling & Matthias Katzfuss & Finn Lindgr, 2019. "A Case Study Competition Among Methods for Analyzing Large Spatial Data," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 24(3), pages 398-425, September.
    15. Jaewoo Park & Sangwan Lee, 2022. "A projection‐based Laplace approximation for spatial latent variable models," Environmetrics, John Wiley & Sons, Ltd., vol. 33(1), February.
    16. Sameh Abdulah & Yuxiao Li & Jian Cao & Hatem Ltaief & David E. Keyes & Marc G. Genton & Ying Sun, 2023. "Large‐scale environmental data science with ExaGeoStatR," Environmetrics, John Wiley & Sons, Ltd., vol. 34(1), February.
    17. Jennifer F. Bobb & Maricela F. Cruz & Stephen J. Mooney & Adam Drewnowski & David Arterburn & Andrea J. Cook, 2022. "Accounting for spatial confounding in epidemiological studies with individual‐level exposures: An exposure‐penalized spline approach," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 185(3), pages 1271-1293, July.
    18. Chen, Yewen & Chang, Xiaohui & Luo, Fangzhi & Huang, Hui, 2023. "Additive dynamic models for correcting numerical model outputs," Computational Statistics & Data Analysis, Elsevier, vol. 187(C).
    19. Pebesma, Edzer & Bivand, Roger & Ribeiro, Paulo Justiniano, 2015. "Software for Spatial Statistics," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 63(i01).
    20. Mauricio Campos & Bo Li & Guillaume Lafontaine & Joseph Napier & Feng Sheng Hu, 2024. "Integrating Different Data Sources Using a Bayesian Hierarchical Model to Unveil Glacial Refugia," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 29(3), pages 576-600, September.

    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:wly:envmet:v:36:y:2025:i:5:n:e70017. 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: Wiley Content Delivery (email available below). General contact details of provider: http://www.interscience.wiley.com/jpages/1180-4009/ .

    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.