Cross‐validation strategies for data with temporal,spatial, hierarchical,or phylogenetic structure |
| |
Authors: | David R. Roberts Volker Bahn Simone Ciuti Mark S. Boyce Jane Elith Gurutzeta Guillera‐Arroita Severin Hauenstein José J. Lahoz‐Monfort Boris Schröder Wilfried Thuiller David I. Warton Brendan A. Wintle Florian Hartig Carsten F. Dormann |
| |
Affiliation: | 1. http://orcid.org//0000‐0002‐3437‐2422;2. Dept of Biometry and Environmental System Analysis, Univ. of Freiburg, Freiburg, Germany;3. Dept of Biological Sciences, Wright State Univ., Dayton, OH, USA;4. Dept of Biological Sciences, Univ. of Alberta, Edmonton, AB, Canada;5. School of BioSciences, Univ. of Melbourne, Melbourne, Australia;6. Inst. of Geoecology, Div. of Landscape Ecology and Environmental Systems Analysis, Technische Univ. Braunschweig, Braunschweig, Germany, and: Berlin‐Brandenburg Inst. of Advanced Biodiversity Research (BBIB), Berlin, Germany;7. Lab. d’écologie Alpine, Univ. Joseph Fourier, Grenoble, France;8. School of Mathematics and Statistics and Evolution and Ecology Research Centre, The Univ. of New South Wales, Sydney, Australia;9. Theoretical Ecology, Univ. of Regensburg, Regensburg, Germany |
| |
Abstract: | Ecological data often show temporal, spatial, hierarchical (random effects), or phylogenetic structure. Modern statistical approaches are increasingly accounting for such dependencies. However, when performing cross‐validation, these structures are regularly ignored, resulting in serious underestimation of predictive error. One cause for the poor performance of uncorrected (random) cross‐validation, noted often by modellers, are dependence structures in the data that persist as dependence structures in model residuals, violating the assumption of independence. Even more concerning, because often overlooked, is that structured data also provides ample opportunity for overfitting with non‐causal predictors. This problem can persist even if remedies such as autoregressive models, generalized least squares, or mixed models are used. Block cross‐validation, where data are split strategically rather than randomly, can address these issues. However, the blocking strategy must be carefully considered. Blocking in space, time, random effects or phylogenetic distance, while accounting for dependencies in the data, may also unwittingly induce extrapolations by restricting the ranges or combinations of predictor variables available for model training, thus overestimating interpolation errors. On the other hand, deliberate blocking in predictor space may also improve error estimates when extrapolation is the modelling goal. Here, we review the ecological literature on non‐random and blocked cross‐validation approaches. We also provide a series of simulations and case studies, in which we show that, for all instances tested, block cross‐validation is nearly universally more appropriate than random cross‐validation if the goal is predicting to new data or predictor space, or for selecting causal predictors. We recommend that block cross‐validation be used wherever dependence structures exist in a dataset, even if no correlation structure is visible in the fitted model residuals, or if the fitted models account for such correlations. |
| |
Keywords: | |
|
|