scieee AI-readable full text Open interactive document viewer

An overview of kriging and cokriging predictors for functional random fields

Giraldo, Ramón; Leiva, Víctor; Castro, Cecília

Abstract

This article presents an overview of methodologies for spatial prediction of functional data, focusing on both stationary and non-stationary conditions. A significant aspect of the functional random fields analysis is evaluating stationarity to characterize the stability of statistical properties across the spatial domain. The article explores methodologies from the literature, providing insights into the challenges and advancements in functional geostatistics. This work is relevant from theoreti cal and practical perspectives, offering an integrated view of methodologies tailored to the specific stationarity conditions of the functional processes under study. The practical implications of our work span across fields like environmental monitoring, geosciences, and biomedical research. This overview encourages advancements in functional geostatistics, paving the way for the development of innovative techniques for analyzing and predicting spatially correlated functional data. It lays the groundwork for future research, enhancing our understanding of spatial statistics and its applications.

Full text

Citation: Giraldo, R.; Leiva, V.; Castro, C. An Overview of Kriging and Cokriging Predictors for Functional Random Fields. Mathematics 2023,11, 3425. https:// doi.org/10.3390/math11153425 Academic Editor: Jiancang Zhuang Received: 13 July 2023 Revised: 27 July 2023 Accepted: 1 August 2023 Published: 7 August 2023 Copyright: © 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). mathematics Article An Overview of Kriging and Cokriging Predictors for Functional Random Fields Ramón Giraldo 1, Víctor Leiva 2,* and Cecilia Castro 3 1Departamento de Estadística, Universidad Nacional de Colombia, Sede Bogotá, Bogotá 111321, Colombia; [email protected] 2School of Industrial Engineering, Pontificia Universidad Católica de Valparaíso, Valparaíso 2362807, Chile 3Centre of Mathematics, Universidade do Minho, 4710-057 Braga, Portugal; [email protected] *Correspondence: [email protected] or [email protected] Abstract: This article presents an overview of methodologies for spatial prediction of functional data, focusing on both stationary and non-stationary conditions. A significant aspect of the functional random fields analysis is evaluating stationarity to characterize the stability of statistical properties across the spatial domain. The article explores methodologies from the literature, providing insights into the challenges and advancements in functional geostatistics. This work is relevant from theoretical and practical perspectives, offering an integrated view of methodologies tailored to the specific stationarity conditions of the functional processes under study. The practical implications of our work span across fields like environmental monitoring, geosciences, and biomedical research. This overview encourages advancements in functional geostatistics, paving the way for the development of innovative techniques for analyzing and predicting spatially correlated functional data. It lays the groundwork for future research, enhancing our understanding of spatial statistics and its applications. Keywords: functional data; geostatistics; kriging; non-stationarity; spatial prediction; stationarity MSC: 62H11; 60G10 1. Introduction The functional data analysis (FDA) plays a critical role in various fields, as it involves data depicted as curves, surfaces, or high-dimensional objects. The broad applicability of the FDA across diverse domains, emphasizing its capacity to discern complex data patterns, was illustrated in [ 1 ]. Geostatistics, as detailed in [ 2 ] and foundational works like [ 3 ], is an area known for providing a comprehensive framework in the modeling of spatial dependence structure of data [ 4 ]. Geostatistics facilitates estimation, prediction, and uncertainty quantification of this type of data. The core concepts of geostatistics were outlined in [ 5 ], while the concept of geostatistical functional data analysis (GFDA) has its roots in early studies that aimed to combine geostatistics with FDA [ 6 – 9 ]. It was further formalized and refined in [ 10 ], highlighting its application in merging the spatial data domain with geostatistical techniques and FDA. In light of the emphasis on geostatistics, it is essential to acknowledge the foundational works that have shaped the understanding of spatio-temporal geostatistical frameworks [ 11 – 13 ]. This understanding is evident when we consider the exploration of the physical geometry concept, which is pivotal for spatio-temporal geostatistical hydrology [ 14 ]. There are also advanced perspectives on environmental health modeling [ 15 ]. These insights have played a crucial role in refining geostatistical methodologies, especially when analyzing environmental variables [ 16 ]. Significant contributions include the integration of innovative approaches, such as the analysis of neural network residual data in unique environmental contexts [ 17 ]. Moreover, the recent fusion of quantitative analyses with spatio-temporal considerations highlights the evolving nature of geostatistical studies [18]. Mathematics 2023,11, 3425. https://doi.org/10.3390/math11153425 https://www.mdpi.com/journal/mathematics Mathematics 2023,11, 3425 2 of 22 Practical implications of the GFDA span various sectors such as climate science [ 19 ], agriculture [ 20 , 21 ], oceanology [ 22 ], environmental monitoring [ 23 ], geology [ 24 ], epidemiology [ 25 ], and pollution [ 26 ], among others. Through the GFDA, we seek to enhance our comprehension of spatial patterns and relationships, leading to informed decision-making and increased understanding of complex spatial phenomena. The GFDA aligns with the kriging methods used for spatial modeling as outlined in [ 27 , 28 ], by extending traditional geostatistical methods, primarily designed for uni-and-multivariate data, to accommodate functional observations. In [ 29 ], it was postulated a proposition for a wavelet regression stemming from FDA based on spatial correlation. In [ 30 ], a conditional structure based on stationary functional processes [31] employing a random sampling design was presented, whereas in [32], the robustness for spatio-temporal data was discussed. As the geostatistical field continues to evolve, recent advancements have addressed nuanced statistical aspects and their real-world applications. The intricacies of spatial autocorrelation, particularly concerning unorthodox random variables, have been explored, emphasizing their broader implications [ 33 ]. In the era of expansive datasets, the need for robust estimation techniques has become paramount, leading to the development of methods tailored for reduced rank models to accommodate large spatial data [ 34 ]. This extends into practical applications, as showcased by the integration of the spatial eigenvector methodology in regularized regression, enhancing predictive precision in domains such as property valuation [ 35 ]. The contemporary relevance of geostatistical tools is further underscored by their application in global challenges, such as the COVID-19 pandemic, where both Bayesian and nonparametric geostatistical models have been employed for data analysis [36]. The intent of this article is to furnish an exhaustive overview concerning the techniques utilized for spatial estimation via kriging and cokriging techniques in the realm of geospatially cohesive functional data. We aim to extend the analysis presented in [ 10 ] by exploring the breadth and depth of applicability of these techniques across numerous disciplines and their potential in enhancing the understanding of spatial patterns and relationships. Therefore, our primary objective is to deepen the GFDA framework, with a special emphasis on its synergy with kriging techniques, building on and expanding the foundational study presented in [ 10 ]. Our work aims to clearly convey this emphasis. In pursuit of our objective, we present a detailed review of various methods for kriging and cokriging prediction based on stationary and non-stationary functional random fields. After this introduction, in Section 2, we expand on the investigation presented in [ 5 ], discussing the methodologies for stationary functional data, including ordinary kriging and continuous time-varying kriging. We also delve into cokriging prediction based on observations of stationary functional random fields and the functional kriging total model. In Section 3, we shift our focus to the prediction of non-stationary functional random fields. Here, we specifically discuss on universal kriging and residual kriging with external drift, areas that remain less explored in the literature. Our comprehensive overview of interpolative and co-interpolative techniques for geospatial estimation of functional data represents a significant contribution to the advancement of GFDA. By enhancing the integration of the FDA and geostatistics, we hope to open new avenues for research and applications across a variety of fields. The methodologies presented here may provide a better understanding of spatial processes and patterns, leading to improved decision-making and management of spatially referenced functional observations [27,28]. This article unfolds under the following structure. Section 2is dedicated to a rigorous exploration of kriging and cokriging predictions tailored for stationary functional random fields. We delve into the foundational methodologies and elucidate their broader implications. In Section 3, we pivot our attention towards kriging predictions designed for non-stationary functional random fields. Concluding our discussion, Section 4serves as a platform for reflective synthesis of our findings, leading us to propose recommendations that might guide future research in the domain of GFDA. Mathematics 2023,11, 3425 3 of 22 2. Kriging and Cokriging Prediction for Stationary Functional Random Fields In this section, we provide background on the GFDA under the assumption of stationarity [ 27 ]. This section provides a detailed exploration of how kriging and cokriging can be applied to stationary functional random fields. By examining several variations of the GFDA, it contributes to a nuanced understanding of how this analysis can adapt to different circumstances and requirements. It offers valuable insight into both the practical implementation of the GFDA and the theoretical considerations that drive its use. 2.1. Context Consider the stochastic functional process ςs(t) , where s belongs to a domain D⊆Rd (commonly, d= 2). This process is indexed by time t within T . For each specific s in D , ςs(t) acts as a functional variable. Observations are made at locations s1 , . . . , sn within D , represented as ςs1(t) , . . . , ςsn(t) . The goal is to estimate the functional variable ςs0(t) at an unsampled location s0. For every t∈T , we operate under the assumption of a second-order stationary and isotropic process, ensuring consistent statistical properties throughout the domain. Specifically, for the process ςs(t) , its expected value is E (ςs(t)) = µ(t) , for all t∈T and s∈D ; its variance is Var(ςs(t)) = σ2(t) ; and its covariance is Cov( ςsi(t) , ςsj(t) = Cov(h ; t) , which is a function of the distance h=ksi−sjk , for any locations si , sj∈D . Then, its semi-variogram is defined by (1/2)Var(ςsi(t)−ςsj(t)) and denoted by $(h;t) = $sisj(t). 2.2. Standard Kriging for Spatially Correlated Functional Data The kriging estimator for ςs0is given in vectorial notation as [27] b ςs0(t) = η>·ς(t), (1) where η= (η1 , . . . , ηn)> represents the coefficient vector and ς(t)=(ςs1(t) , . . . , ςsn(t))> denotes the vector of observed values. The symbol “ · ” used in (1) indicates the scalar product between the vectors η and ς(t) . Optimal values for η as defined in (1) are determined by solving the subsequent system presented as     RT$s1s1(t)dt. . . RT$s1sn(t)dt1 . . ..... . .. . . RT$sns1(t)dt. . . RT$snsn(t)dt1 1 . . . 1 0          η1 . . . ηn −ν     =    RT$s0s1(t)dt . . . RT$s0sn(t)dt 1     , (2) where νis the Lagrange multiplier corresponding to the unbiasness constraint. The integral representation $(h) = RT$sisj(t)dt stated in (2) , with h=ksi−sjk , is known as the trace-semi-variogram [ 27 ]. For the existence of this integral, certain conditions are vital. Specifically, T should be bounded, and the corresponding stochastic functional process ς must be compactly-supported. Holding these conditions ensures that the tracesemi-variogram provides an accurate representation of the spatial dependence structure. Given the pairwise function stated as Fij(t) = (ςsi(t)−ςsj(t))2 , defined over the time domain T , and the set expressed as n(h) = {(si , sj):ksi−sjk=h} , the function related to the semi-variogram can be formulated as b $(h) = 1 2|n(h)|∑ (i,j)∈n(h)ZTFij(t)dt, where |n(h)| represents the total number of distinct pairs in n(h) . This formulation of the semi-variogram emphasizes the significance of spatial relationships within the data. By integrating over the time domain and considering pairwise differences, we gain a more comprehensive insight into the spatial dependencies inherent in the dataset. Mathematics 2023,11, 3425 4 of 22 2.3. Continuous Temporal Fluctuating Interpolation for Functional Data We provide an overview of the theoretical framework based on [ 28 ], considering functional parameters depicted as ηi(t), where ispans the set from 1 to n. This leads to b ςs0(t) = η(t)>·ς(t)(3) with η(t) = (η1(t) , . . . , ηn(t))> being the time-dependent coefficients and the vector of observed values being ς(t) = (ςs1(t), . . . , ςsn(t))>. Thus, the time-varying nature of the coefficient vector η(t)arises from the functional character of the data. As the observed data vary over the time domain T , the weight or importance assigned to each observation must be flexible, adjusting over time. This variation captures the continuous shifts in data behavior across the domain. In contrast, traditional ordinary kriging primarily deals with scalar spatial data, where each spatial location s has a static value. Our approach, focused on functional data, captures intrinsic variability over time, distinguishing it from traditional methods. The functional weights, ηi(t) namely, change over T , denoting a dynamic weighting approach different from the traditional method where weights remain constant. The concept of minimizing the integrand term-by-term might seem similar to minimizing the overall integral, but this is not always the case in FDA. Given potential interdependencies of functions over T , our approach explicitly addresses the inherent integrated characteristics of functional data, rather than analyzing each temporal instance in isolation. Having established the nature of functional weights, we next consider the problem of determining these weights mathematically. State the functional parameters ηi(t) as mentioned in (3) by solving the minimization problem formulated as minimize η1(t),...,ηn(t)ZTVar(b ςs0(t)−ςs0(t))dt. Suppose that we can represent each observed function with a combination of K basis functions, Bl , for l∈ { 1, . . . , K} , assuggested in [ 1 ]. This representation can be mathematically articulated as ςsj(t) = a> jB(t) = K ∑ l=1 ajlBl(t),∀j∈ {1, . . . , n}. (4) The assumptions concerning stationarity are: (i) The expected value of aj is consistent across locations. In more specific terms, we have E(aj) = υjfor every location j, where υjis a location-independent constant vector. (ii) The covariance matrix Σij depends solely on the relative distance or difference between locations iand j, rather than their absolute positions. To ensure stationarity within our framework, the linear model of co-regionalization is subject to certain restrictions. Specifically, this model assumes that the covariances between different components of the multivariate field depend on the spatial difference only through a set of shared univariate functions. Given the premise that ςsj(t) , for each j within the set { 1, . . . , n} , represents spatially dependent stochastic functions, the assumption is that matrix A , constituted by coefficients denoted ajl, is characterized as A=   a11 . . . a1K . . ..... . . an1. . . anK   =(a1, . . . , aK). Mathematics 2023,11, 3425 5 of 22 Note that A constitutes a K -variate random field [ 37 ] of mean E (al) = υl and matrix of covariance Σdefined as Σ=   Σ11 . . . Σ1K . . ..... . . ΣK1. . . ΣKK   , (5) where Σlr =Cov(al , ar) . Here, alr are assumed to be samples from the spatial random field al , for l in the set { 1, . . . , K} . We employ the framework of a co-regionalization linear model, as detailed in [37,38], for the estimation of the matrix presented in (5). When stating unbiasedness for making a prediction using (3), each parameter ηi(t) is represented as a linear combination of the basis functions Bl with coefficients bil . Mathematically, we have that ηi(t) = K ∑ l=1 bil Bl(t) = b> iB(t),i∈ {1, . . . , n}. (6) By using the formulas defined in (4) and (6) , the predictor stated in (3) is now formulated as b ςs0(t) = n ∑ i=1 b> iB(t)a> iB(t) = n ∑ i=1 b> iB(t)B>(t)ai. The constraint of unbiasedness, expanded using the constant equal to one, is stated as K ∑ l=1 clBl(t) = c>B(t) = 1. In this context, c is a coefficient vector ensuring that the unbiasedness constraint is satisfied for all values of t by making sure the linear combination of the basis functions Bl(t)yields a constant value equal to one. This constraint may be presented by n ∑ i=1 b> iB(t) = c>B(t),∀t∈T, which is analogous to ∑n i=1bi=c, or to ∑n i=1bi1=c1, . . . , ∑n i=1biK =cK. While constructing the dispersion of the objective function, it is pertinent to note that the coefficient vector a0 corresponds to the functional expansion of ςs0(t) , where ςs0(t) = a> 0B(t) = ∑K l=1a0lBl(t). Thus, we have that Var(b ςs0(t)−ςs0(t))=Varn ∑ i=1 b> iB(t)B>(t)ai+B>(t)Var(a0)B(t)(7) −2 n ∑ i=1 b> iB(t)B>(t)Cov(ai,a0)B(t) = n ∑ i=1 b> iB(t)B>(t)Var(ai)B(t)B>(t)bi +2∑ i<j b> iB(t)B>(t)Cov(ai,aj)B(t)B>(t)bj +B>(t)Var(a0)B(t) −2 n ∑ i=1 b> iB(t)B>(t)Cov(a0,ai)B(t). Mathematics 2023,11, 3425 6 of 22 From the expression given in (7), for i<j, with i,jin the set {1, . . . , n}, we get Cov(ai,aj) =    Cov(ai1,aj1). . . Cov(ai1,ajK) . . ..... . . Cov(aiK,aj1). . . Cov(aiK,ajK)   ,i,j∈ {1, . . . , n}. (8) For i=j , the expression given in (8) denotes a matrix associated with ai , wherein the diagonal components correspond to the variances of the components ai. Consider the definitions, for i,j∈ {1, . . . , n}, stated as Qi=ZT B(t)B>(t)Var(ai)B(t)B>(t)dt, Qij =ZT B(t)B>(t)Cov(ai,aj)B(t)B>(t)dt, D=ZT B>(t)Var(a0)B(t)dt, Ji=ZT B(t)B>(t)Cov(a0,ai)B(t)dt. where the matrix D is determined through d Var(a0) , which stems from the established linear model of co-regionalization. Taking into account K Lagrange constraints represented as ν>= (ν1 , . . . , νK) , the objective function to be optimized is articulated as minimize b1,...,bn(n ∑ i=1 b> iQibi+2∑ i<j b> iQijbj+D−2 n ∑ i=1 b> iJi+2ν>n ∑ i=1 (bi−c)). (9) By defining β= (b> 1, . . . , b> n,ν>)>, the expression established in (9) is reframed as minimize βnβ>Qβ+D−2β>Jo, (10) with a structure presented by Q=     Q1. . . Q1nI . . .. . ..... . . Qn1. . . Qnn I I. . . I0     ,J=     J1 . . . Jn c     . (11) The unit matrix I given in (11) has rank K . When optimizing the formulation stated in (10) in terms of β, one obtains 2Qβ−2J=0, which implies J=Qβ,Q−1J=b β. The plug-in estimate for the integrated prediction variance is represented as bσ2 s0=ZTVar(b ςs0(t)−ςs0(t))dt. The consolidated predictive variance bσ2 s0 offers insight into the variability associated with forecasting a complete curve. Mathematics 2023,11, 3425 7 of 22 2.4. Cokriging Prediction Based on Observations of Stationary Functional Random Fields This subsection is based on [ 23 ]. Let {Z(s) , s∈D} be a multivariate random field, where Z(s)∈Rp and D⊂Rd . Assume we have an observation {Z(s1) , . . . , Z(sn)} and that Z(si) =    Z1(si) . . . Zp(si)   =   µ1(si) . . . µp(si)   +   ε1(si) . . . εp(si)   ,i∈ {1, . . . , n}. Let µj(s) denote the mean of variable j , which is considered to be constant across all s∈D , and let εj(s) represent the random error. The cokriging predictor of variable j at location s0is expressed as b Zj(s0) = n ∑ i=1 ηi1Z1(si) + · · · + n ∑ i=1 ηipZp(si) = n ∑ i=1 p ∑ j=1 ηijZj(si). Now, let us shift our attention to a stochastic process with functional outputs, defined as {ςs(t) , s∈D , t∈T⊂R} . With the available observations {ςs1(t) , . . . , ςsn(t)} , we estimate the value of the transformation at the specific pair (s0∈D,v∈T). The challenge in this context is to adapt the traditional cokriging predictor for these curves (functional data). This adaptation involves utilizing functional analogs in place of the usual parameters and shifting from random variables to a series of functional variables, like ςsi(t) , with i spanning from 1 to n . Details of the adaptation are elaborated in the expressions stated in (12) and (13) and presented next. • Parameters Multivariate cokriging Cokriging employing curves η11 . . . η1p⇒ηv 1(t),t∈T . . .. . .. . . ηn1. . . ηnp ⇒ηv n(t),t∈T (12) • Variables Multivariate cokriging Cokriging employing curves Z1(s1). . . Zp(s1)⇒ςs1(t),t∈T . . .. . .. . . Z1(sn). . . Zp(sn)⇒ςsn(t),t∈T (13) Hence, within the realm of functional data, the cokriging predictor for ςs0(v) is depicted by b ςs0(v) = n ∑ i=1ZTηv i(t)ςsi(t)dt. (14) For each v∈T , the functional coefficients ηv i(t) given in (14) adhere to traditional geostatistical requirements like unbiasedness and minimal prediction variance. In addressing the complexities of our functional data, we adopt a strategy rooted in basis functions. This involves representing both variables and coefficients through expansions, for i∈ {1, . . . , n}, given by ςsi(t) = K ∑ l=1 ail Bl(t) = a> iB(t), (15) ηv i(t) = K ∑ l=1 bilvBl(t) = b> ivB(t), (16) Mathematics 2023,11, 3425 8 of 22 where K denotes the total number of basis functions. The choice of an optimal K is datadependent and can be determined using cross-validation techniques. By utilizing the expansions given by (15) and (16) , the predictor stated in (14) undergoes a transformation, yielding b ςs0(v) = n ∑ i=1ZT b> ivB(t)B>(t)aidt= n ∑ i=1 b> ivWai. (17) The integral product is defined as W=ZT B(t)B>(t)dt. (18) For commonly adopted orthonormal bases, like the Fourier series, the Gram matrix W stated in (18) is recognized to be the identity matrix as referenced in (18) . Conversely, for bases like B-splines, the determination of W requires numerical integration. Assuming stationary behavior in the random functions, we deduce that A=   a11 . . . a1K . . ..... . . an1. . . anK   =a1, . . . , aK. This establishes a K -variate random field with its mean and covariance matrix respectively expressed as E(al) =    E(a1j) . . . E(anl)   =   ϑl . . . ϑl   ,l∈ {1, . . . , K}, (19) and Σ=   Σ11 . . . Σ1K . . ..... . . ΣK1. . . ΣKK   , (20) where Σlr =Cov(al , ar) depicts the covariance between al and ar . Consequently, employing the formula given in (19), we derive E(ai) =    E(ai1) . . . E(aiK)   =   ϑ1 . . . ϑK   =ϑ,i∈ {1, . . . , n}. Hence, the mean predictor presented in (17) is characterized as E(b ςs0(v)) = n ∑ i=1 b> ivWE(ai) = n ∑ i=1 b> ivWϑ. Moreover, the mean unobserved function at s0(location) and v(time) is formulated by E(ςs0(v)) = K ∑ l=1 E(a0l)Bl(v) = B>(v)E(a0) = B>(v)ϑ. Mathematics 2023,11, 3425 9 of 22 Therefore, the suggested predictor holds with the unbiasedness condition if n ∑ i=1 b> iv =B>(v)W−1. (21) While Gram matrices are generally positive semi-definite, ensuring their strict positive definiteness can be challenging. However, in the context of our specific Gram matrix W defined in (18), its positive definiteness is guaranteed. This arises from the fact that the functions Bl(t) , for l∈ { 1, . . . , K} , constitute a basis set and are linearly independent. As a direct consequence, the inverse matrix W−1 exists, ensuring the well-defined nature of the expression presented in (21). To identify the optimal linear unbiased estimator, the functional parameters within our proposed predictor are obtained by addressing the optimization problem stated as minimize ηv 1,...,ηv nVar(b ςs0(v)−ςs0(v)), (22) subject to E(b ςs0(v)) = E(ςs0(v)). Obtaining the variance from the objective function formulated in (22), we find that Var(b ςs0(v)−ςs0(v))=Var(b ςs0(v))+Var(ςs0(v))−2Cov(b ςs0(v),ςs0(v)) = n ∑ i=1 b> ivWVar(ai)W>biv +2∑ i<j b> ivWCov(ai,aj)W>bjv (23) +B>(v)Var(a0)B(v)−2 n ∑ i=1 b> ivWCov(a0,ai)B(v). In this context, Var(ai) and Var(a0) denote the variances of ai and a0 , respectively. Similarly, Cov(ai , aj) signifies the covariance between ai and aj , while Cov(a0 , ai) represents the covariance of a0 with ai . These metrics can be computed from Σ given in (20) such as previously determined. However, multivariate geostatistics [ 37 ], and specifically a linear model of co-regionalization [ 37 ], can be employed to estimate these matrices. It should be noted that, due to the stationary random functions in A , Var(ai) and Var(a0) are identical. Furthermore, Cov(a0 , ai) is solely dependent on the distances and not on their locations. As a result, they may be directly obtained using Σ. Defining Mi=WVar(ai)W>,Mij =WCov(ai,aj)W>,Ni(v) = (WCov(a0,ai)B(v)),D(v) = B>(v)Var(a0)B(v), the expression given in (23) may be presented as Var(b ςs0(v)−ςs0(v))= n ∑ i=1 b> iv Mibiv +2∑ i<j b> iv Mijbjv +D(v)−2 n ∑ i=1 b> ivNi(v). (24) From the expression formulated in (24) and assuming the Lagrange multipliers ν> v= (ν1v, . . . , νKv), the optimization problem formulated in (22) may be stated as minimize b1v,...,bnv,νv(n ∑ i=1 b> iv Mibiv +2∑ i<j b> iv Mijbjv +D(v)−2 n ∑ i=1 b> ivNi(v) + 2ν> vn ∑ i=1 biv −W−1B(v)). Considering βv=b> 1v, . . . , b> nv,ν> v>, we have minimize βvnβ> vMβv+D(v)−2β> vN(v)o, (25) Mathematics 2023,11, 3425 16 of 22 Then, we get X>(s0) = ZT Σdt−1ZT c(t)dt+X(s)v!> X(s), X>(s0) = ZT c>(t)dtZT Σdt−1 X(s) + v>X>(s)ZT Σdt−1 X(s), v>= X>(s0)−ZT c>(t)dtZT Σdt−1 X(s)! X>(s)ZT Σdt−1 X(s)!−1 , v=W−1(X(s0)−Y),W=X>(s)ZT Σdt−1 X(s), Y=X>(s)ZT Σdt−1ZT c(t)dt, η=ZT Σdt−1ZT c(t)dt+ZT Σdt−1 X(s)W−1(X(s0)−Y). Thus, the predictor given in (40) and the MSE are obtained as b ςs0(t) = ZT c>(t)dtZT Σdt−1 +(X(s0)−Y)>W−1X>(s)ZT Σdt−1!ς(t), MSE(s0) = Zη>Ση(t)dt−2η>ZT c(t)dt+ZTσ2 0(t)dt. The value of the prediction variance is consequently reached as σ2 s0=ZTσ2 0(t)dt−ZT c(t)dt>ZT Σdt−1ZT c(t)dt+(X(s0)−Y)>W−1(X(s0)−Y). To solve the matrix equation system presented in (43) , it is necessary to estimate the spatial autocorrelation matrix Σ= (Covsisj)with Covsisj(t) = Cov(εsi(t),εsj(t)). Utilizing the trace-variogram function, we get $sisj(t) = $ςsi(t),ςsj(t)=1 2Varςsi(t)−ςsj(t)=σ2(t)−Covsisj(t). Incorporating this most recent relation from (41), we derive ZT$dtη−X(s)v=ZT$s0dt, where $s0= ($sis0). Therefore, the matrix system defined in (43) may be formulated as RT$dtX(s) X>(s)0η −v=RT$s0dt X(s0). Consequently, solving this system yields the weights ηand the Lagrange multipliers v. 3.2. Residual Kriging and External Drift for Spatially Correlated Functional Data Next, we present a review on residual kriging for functional data [ 40 ]. Assume that the residuals of a linear spatial trend are given by esi(t) = ςsi(t)−b ςsi(t) = ςsi(t)−bα(t) + b β1(t)xi+b β2(t)yi,i∈ {1, . . . , n}, (44) where (xi,yi)are the spatial coordinates. Mathematics 2023,11, 3425 17 of 22 While multiple regression can serve as an alternative, various models are available for detrending the mean of functional process. Detrending plays a pivotal role in spatial analysis, particularly in identifying structures in the residuals. However, detrending may introduce bias in the experimental covariances or variograms of residuals [ 3 ]. It is essential for readers to tackle this step carefully, ensuring the advantages of detrending surpass potential drawbacks. Though this formulation highlights the 2D spatial coordinates xi and yi , it is mainly for illustrative purposes. The methodology is adaptable beyond 2D and can extend to higher-dimensional spaces, requiring additional spatial coordinates and associated drift terms. Building on the residuals outlined in (44) , the estimation of a residual curve at unsampled locations can be achieved utilizing our discussion of Section 2. Specifically, a residual function can be predicted using bes0(t) = n ∑ i=1 ηiesi(t), (45) bes0(t) = n ∑ i=1 ηi(t)esi(t), (46) bes0(t) = n ∑ i=1ZTηi(t,v)esi(t)dt. (47) When predicting the functional variable at a non-sampled site s0, we get b ςs0(t) = bα(t) + b β1(t)x0+b β2(t)y0+bes0(t), where bes0(t)is defined in (45), (46), or (47). Another approach involves using explanatory variables distinct from the spatial coordinates to estimate the spatial trend. In that case, consider the model formulated as ςsi(t) = α(t) + Q ∑ q=1 $q(t)cq,i+ R ∑ r=1 βr(t)xr,i(t) + εsi(t),i∈ {1, . . . , n}. (48) In this model, α(t) acts as a functional intercept, cp,i is the value of a scalar explanatory variable, and xq,i(t) is the value of an explanatory variable at functional location si . The terms $p(t) and βq(t) represent their respective regression parameters. The drift, as detailed in (48) , incorporates both scalar and functional explanatory variables. Moreover, the parameters $p(t) and βq(t) are in functional form, allowing estimation of the nonlinear effects in the explanatory variables. Thus, the resulting residuals can be expressed as esi(t) = ςsi(t)−b ςsi(t) = ςsi(t)− bα(t) + Q ∑ q=1b $q(t)cq,i+ R ∑ r=1b βr(t)xr,i(t)!,i∈ {1, . . . , n}. Using the relations described in (45) , (46) , or (47) , a prediction for the error bes0(t) at a non-sampled location s0 can be derived. Then, the prediction of the functional variable is given as b ςs0(t) = bα(t) + Q ∑ q=1b $q(t)cq,0 + R ∑ r=1b βr(t)xr,0(t) + bes0(t). 3.3. RSoftware and Packages of Spatial Statistics In the geostatistical framework, particularly when addressing kriging and cokriging for stationary and non-stationary functional random fields, the computational tools we employ are of paramount importance. The R software, an unparalleled open-source environment for statistical computing, stands as a cornerstone in this domain, primarily due to its rich and ever-growing ecosystem of packages dedicated to spatial statistics [42]. Mathematics 2023,11, 3425 18 of 22 Among the myriad of packages available, sp serves as a linchpin, offering classes and methods dedicated to spatial data. This package essentially acts as the bedrock upon which many subsequent spatial packages have been developed [ 43 ]. The gstat package enriches this foundation, extending capabilities specifically for geostatistical analysis. Its offerings, especially concerning variogram estimation and various kriging methods, have been elucidated earlier in this section and in Section 2. These methods are deeply rooted in seminal works, particularly those presented in [ 23 , 27 , 28 , 39 ], among other pioneers in the field [ 40 , 41 ]. Importantly, gstat acts as a bridge, allowing the seamless translation of theoretical underpinnings into tangible computational solutions [44]. For those at the intersection of FDA and spatial statistics, the fda package is highly relevant. It provides tools for FDA, complementing our discussion on functionally-coherent spatial data and continuous time-varying kriging [ 45 ]. Beyond these foundational tools, spdep addresses the need for complex spatial regression, encapsulating both linear and nonlinear models. With capabilities such as defining spatial weights and analyzing spatial autocorrelation, it proves indispensable, especially when navigating the intricacies of multifaceted spatial structures [ 46 ]. The recent expansion in R geostatistical tools further underscores its stature. For instance, the EpiGeostats package enhances visualization capacities, making interpretation of geostatistical disease risk maps intuitive [47]. Additionally, the GeoSim package fills a niche by focusing on pluri-Gaussian simulation, bridging gaps between categorical and continuous variables [ 48 ]. For researchers in soil science, the insights from [ 49 ] provide invaluable guidance on merging linear mixed models with geostatistics [ 49 ]. The covatest package simplifies the selection of space-time covariance functions, a task pivotal to many geostatistical analyses [ 50 ]. And for those working with compositional data, the work presented in [ 51 ] serves as a comprehensive guide, detailing geostatistical methods in Rlanguage. Confronted with the complexities that riddle our study, especially in deciphering kriging predictions for stationary and non-stationary functional random fields, a multifaceted approach becomes imperative. This entails harnessing methods from the aforementioned packages, often in synergy, and crafting custom scripts that address distinct challenges. This adaptability underscores the Renvironment’s unmatched versatility in tackling advanced spatial statistical problems. For those poised on the brink of deeper exploration, package vignettes remain an invaluable primer. Additionally, the breadth and depth of tutorials and applications available serve as a testament to the boundless possibilities that R offers for spatial data analysis [ 52 ]. Another noteworthy contribution to the R spatial statistics toolkit is a comparative case study on Rpackages designed for analyzing areal data. This study offers insights into the optimal use-cases and advantages of various spatial packages, assisting practitioners in making informed decisions [ 53 ]. In the ever-evolving domain of mixed-effects models with spatial considerations, the sdmTMB package stands out. This package provides swift and versatile solutions, particularly suited for integrated linear models with random effects that address both geospatial and space-time variations. Such capabilities underscore its importance for detailed spatial analyses [54]. 4. Discussion and Conclusions The analysis of spatially correlated functional data has gained prominence in contemporary data analysis, notably in the big data era. Functional geostatistics, as a result, serves as a linchpin in deepening our grasp and modeling of intricate spatial processes. A pivotal factor in this analysis is the assessment of stationarity. This property, which underpins the stability of statistical characteristics over the spatial domain, guides the choice of the suitable kriging method for functional data. Table 1summarizes the main results and contributions of our work. Mathematics 2023,11, 3425 19 of 22 Table 1. Summary of main results and contributions. Aspect/Concept Description/Details Significance Challenges Addressed Stationarity evaluation It assesses stability across the spatial domain It is essential for the right kriging method selection Accurate assessment of functional processes’ stationarity Spatial prediction methodologies It gives a comprehensive review of methods under both stationary and nonstationary conditions It provides integrated view tailored to stationarity conditions Challenges posed by different stationarity conditions Applications It ranges from environmental monitoring to biomedical research It facilitates informed decisions in various domains Capturing accurate spatial dependence and functional variability Practical implications It facilitates informed decisions in environmental management and resource allocation It enhances practical applications Promoting the understanding of space-time-functional variability interplay Further advancements It stimulates innovative techniques and approaches It broadens the scope of functional geostatistics Complex spatial patterns and functional variations Contribution to spatial statistics It gives broader implications beyond functional geostatistics It filters understanding of spatial statistics Interplay between space, time, and functionality Delving into this topic, the present article offered a detailed review of methodologies tailored for the spatial prediction of functional geostatistical data, encompassing both stationarity and non-stationarity scenarios. Through an exploration of various scholarly proposals, this study shed light on the prevailing challenges and breakthroughs in this realm. The significance of our findings spans both theoretical and applied dimensions. The real-world implications of our exploration are expansive, influencing domains like environmental monitoring, geosciences, and even biomedical research. By fostering an accurate modeling paradigm for spatial dependence and functional variability, the groundwork is laid for experts to make insightful decisions in these arenas, particularly in spheres like environmental stewardship, resource allocation, and risk appraisal. Moreover, this article acts as a catalyst for innovative strides in functional geostatistics, spotlighting the hurdles brought about stationarity contexts. This beckons the genesis of avant-garde techniques to analyze and predict spatially intertwined functional data—a contribution benefiting not just functional geostatistics but also enriching spatial statistics at large. In summation, the contributions herein fortify the foundational aspects of analyzing, modeling, and predicting spatially dependent functional data. By weaving in considerations of diverse stationarity contexts, we amplify our prowess in deciphering intricate spatial patterns and functional idiosyncrasies typical of real-world datasets. Harnessing these methodologies promises heightened prediction accuracy, fostering judicious decision-making. This not only augments realms like environmental governance and resource distribution but also heralds a new dawn of research and novelty in the domain, broadening the horizons of spatial statistics and its multifaceted applications. In the setting of spatial data exhibiting non-symmetric distributions, several scholarly investigations have been undertaken [ 55 – 58 ], as well as in quantile regression with spatial data [ 59 ], and diagnostic analysis in regression models [ 21 , 60 ]. However, much investigation on this field must be explored still, even in traditional spatial models [61]. Author Contributions: Conceptualization, R.G. and V.L.; methodology, R.G., V.L. and C.C.; formal analysis, R.G., V.L. and C.C.; investigation, R.G.; writing—original draft preparation, R.G.; writing— review and editing, V.L. and C.C. All authors have read and agreed to the published version of the manuscript. Mathematics 2023,11, 3425 20 of 22 Funding: This research was partially supported by FONDECYT, grant number 1200525 (V.L.), from the National Agency for Research and Development (ANID) of the Chilean government under the Ministry of Science, Technology, Knowledge, and Innovation; and by Portuguese funds through the CMAT—Research Centre of Mathematics of University of Minho—within projects UIDB/00013/2020 and UIDP/00013/2020 (C.C.). Institutional Review Board Statement: Not applicable. Informed Consent Statement: Not applicable. Data Availability Statement: Not applicable. Acknowledgments: The authors would also like to thank the Editors and Reviewers for their constructive comments which led to improve the presentation of the manuscript. Conflicts of Interest: There are no conflict of interest declared by the authors. References 1. Ramsay, J.; Silverman, B. Functional Data Analysis; Springer: New York, NY, USA, 2005. 2. Christakos, G. Modern Spatiotemporal Geostatistics; Oxford University Press: Oxford, UK, 2000. 3. Chilès, J.P.; Delfiner, P. Geostatistics: Modeling Spatial Uncertainty; Wiley: Hoboken, NJ, USA, 2009. 4. Ripley, B.D. Spatial Statistics; Wiley: New York, NY, USA, 2005. 5. Cressie, N. Statistics for Spatial Sata; Wiley: New York, NY, USA, 2015. 6. Goulard, M.; Voltz, M. Geostatistical interpolation of curves: A case study in soil science. In Geostatistics Tróia’92; Springer: Dordrecht, The Netherlands, 1993; Volume 1, pp. 805–816. 7. Ignaccolo, R.; Mateu, J.; Giraldo, R. Kriging with external drift for functional data for air quality monitoring. Stoch. Environ. Res. Risk Assess. 2014,28, 1171–1186. [CrossRef] 8. Menafoglio, A.; Secchi, P.; Dalla Rosa, M. A universal kriging predictor for spatially dependent functional data of a Hilbert space. Electron. J. Stat. 2013,7, 2209–2240. [CrossRef] 9. Menafoglio, A.; Grujic, O.; Caers, J. Universal kriging of functional data: Trace-variography vs cross-variography? Application to gas forecasting in unconventional shales. Spat. Stat. 2016,15, 39–55. [CrossRef] 10. Mateu, J.; Giraldo, R. (Eds.) Geostatistical Functional Data Analysis; Wiley: Hoboken, NJ, USA, 2022. 11. Christakos, G. Modern Spatiotemporal Geostatistics; Oxford University Press: New York, NY, USA, 2000. 12. Christakos, G.; Olea, R.A.; Serre, M.L.; Yu, H.-L.; Wang, L.-L. Interdisciplinary Public Health Reasoning and Epidemic Modelling: The Case of Black Death; Springer: New York, NY, USA, 2002. 13. Christakos, G.; Hristopulos, D.T.; Bogaert, P. Spatiotemporal Environmental Health Modelling: A Tractatus Stochasticus. Stoch. Environ. Res. Risk Assess. 2000,14, 245–262. 14. Christakos, G. Physical Geography, Geosystems and Spatiotemporal Geostatistics; Elsevier: Amsterdam, The Netherlands, 2012. 15. Christakos, G. Environmental Health Modelling: An Introductory Manual; Springer: Cham, Switzerland, 2013. 16. Christakos, G. Analysis of Environmental Data using Neural Networks. Environ. Sci. Technol. 1970,4, 110–117. 17. Christakos, G.; Serre, M.L.; Demyanov, V. Neural Network Residual Analysis of the Spatial Estimation of Radioactivity. Stoch. Environ. Res. Risk Assess. 2001,15, 209–231. 18. Wu, J.; He, X.; Christakos, G. Quantitative Integration of Spatiotemporal Data Sources in Modern Geosciences. Adv. Geosci. 2021 , 56, 183–201. 19. Strandberg, J.; de Luna, S.; Mateu, J. A Comparison of Spatiotemporal and Functional Kriging Approaches; Springer: New York, NY, USA, 2022. 20. Cortes, D.L.; Camacho-Tamayo, J.H.; Giraldo, R. Spatial prediction of soil infiltration using functional geostatistics. AUC Geographica 2018,53, 149–155. [CrossRef] 21. Garcia-Papani, F.; Uribe-Opazo, M.A.; Leiva, V.; Aykroyd, R.G. Birnbaum-Saunders spatial modelling and diagnostics applied to agricultural engineering data. Stoch. Environ. Res. Risk Assess. 2017,31, 105–124. [CrossRef] 22. Dabo-Niang, S.; Ferraty, F.; Monestiez, P.; Nerini, D. A cokriging method for spatial functional data with applications in oceanology. In Functional and Operatorial Statistics; Physica-Verlag: Heidelberg, Germany, 2008; pp. 237–242. 23. Giraldo, R.; Herrera, L.; Leiva, V. Cokriging prediction using as a secondary variable a functional random field with application in environmental pollution. Mathematics 2020,8, 1305. [CrossRef] 24. Azevedo, L. Model reduction in geostatistical seismic inversion with functional data analysis in seismic inversion. Geophysics 2022,87, M1–M11. [CrossRef] 25. Dabo-Niang, S.; Ternynck, C.; Thiam, B.; Yao, A.F. Nonparametric statistical analysis of spatially distributed functional data. In Geostatistical Functional Data Analysis; Mateu, J., Giraldo, R., Eds.; Springer: New York, NY, USA, 2022; pp. 175–210. 26. Montero, J.M.; Fernández-Avilés, G. Functional kriging prediction of pollution series: The geostatistical alternative for spatiallyfixed data. Estud. Econ. Apl. 2015,33, 145–174. Mathematics 2023,11, 3425 21 of 22 27. Giraldo, R.; Delicado, P.; Mateu, J. Ordinary kriging for function-valued spatial data. Environ. Ecol. Stat. 2011 ,18, 411–426. [CrossRef] 28. Giraldo, R.; Delicado, P.; Mateu, J. Continuous time-varying kriging for spatial prediction of functional data: An environmental application. J. Agric. Biol. Environ. Stat. 2010,15, 66–82. [CrossRef] 29. Fernández-Pascual, R.M.; Espejo, R.; Ruiz-Medina, M.D. Moment and Bayesian wavelet regression from spatially correlated functional data. Stoch. Environ. Res. Risk Assess. 2016,30, 523–557. [CrossRef] 30. Bouzebda, S.; Soukarieh, I. Non-parametric conditional U-processes for locally stationary functional random fields under stochastic sampling design. Mathematics 2023,11, 16. [CrossRef] 31. Adler, R.J.; Taylor, J.E. Random Fields and Geometry; Springer: New York, NY, USA, 2007, 32. García-Pérez, A. On robustness for spatio-temporal data. Mathematics 2023,10, 1785. [CrossRef] 33. Griffith, D.A. Spatial autocorrelation and unorthodox random variables: The uniform distribution. Chil. J. Stat. 2022 ,13, 133–153. [CrossRef] 34. Jelsema, C.M.; Paul, R.; McKean, J.W. Robust estimation of reduced rank models to large spatial datasets. REVSTAT Stat. J. 2020 , 18, 203–221. 35. McCord, M.; Lo, D.; Davis, P.; McCord, J.; Hermans, L.; Bidanset, P. Applying the geostatistical eigenvector spatial filter approach into regularized regression for improving prediction accuracy for mass appraisal. Appl. Sci. 2022,12, 10660. [CrossRef] 36. Alvo, M.; Mu, J. COVID-19 data analysis using Bayesian models and nonparametric geostatistical models. Mathematics 2023 ,11, 1359. [CrossRef] 37. Wackernagel, H. Cokriging versus kriging in regionalized multivariate data analysis. Geoderma 1994,62, 83–92. [CrossRef] 38. Nerini, D.; Monestiez, P.; Manté, C. Cokriging for spatial functional data. J. Multivar. Anal. 2010,101, 409–418. [CrossRef] 39. Giraldo, R.; Delicado, P.; Mateu, J. Spatial prediction of a scalar variable based on data of a functional random field. Comun. Estadística 2017,10, 315–344. [CrossRef] 40. Franco-Viloria, M.; Ignacollo, R. Universal, Residual and External Drift Functional Kriging. In Geostatistical Functional Data Analysis; Mateu, J., Giraldo, R., Eds.; Springer: New York, NY, USA, 2015; pp. 55–72. 41. Caballero, W.; Giraldo, R.; Mateu, J. A universal kriging approach for spatial functional data. Stoch. Environ. Res. Risk Assess. 2013,27, 1553–1563. [CrossRef] 42. R Core Team. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2021. Available online: https://www.R-project.org/ (accessed on 2 August 2023). 43. Pebesma, E.J.; Bivand, R.S. Classes and methods for spatial data in R. R News 2005,5, 9–13. 44. Pebesma, E.J. Multivariable geostatistics in S: The gstat R package. Comput. Geosci. 2004,30, 683–691. [CrossRef] 45. Ramsay, J.O.; Hooker, G.; Graves, S. Functional Data Analysis with R and MATLAB; Springer: New York, NY, USA, 2009. 46. Bivand, R.S.; Pebesma, E.; Gómez-Rubio, V. Applied Spatial Data Analysis with R; Springer: New York, NY, USA, 2013. 47. Ribeiro, M.; Azevedo, L.; Pereira, M.J. EpiGeostats: An R Package to Facilitate Visualization of Geostatistical Disease Risk Maps. Math. Geosci. 2023, 1–17. [CrossRef] 48. Valakas, G.; Modis, K. GeoSim: An R-package for pluri-Gaussian simulation and co-simulation between categorical and continuous variables. Appl. Comput. Geosc. 2023,19, 100130. [CrossRef] 49. Slaets, J.I.; Boeddinghaus, R.S.; Piepho, H.P. Linear mixed models and geostatistics for designed experiments in soil science: Two entirely different methods or two sides of the same coin? Eur. J. Soil Sci. 2021,72, 47–68. [CrossRef] 50. Cappello, C.; De Iaco, S.; Posa, D. covatest: An R package for selecting a class of space-time covariance functions. J. Stat. Softw. 2020,94, 1–42. [CrossRef] 51. Tolosana-Delgado, R.; Mueller, U. Geostatistics for compositional data with R; Springer: New York, NY, USA, 2021. 52. Bivand, R.S.; Pebesma, E.; Gómez-Rubio, V. Applied Spatial Data Analysis with R; Springer: New York, NY, USA, 2008. 53. Bivand, R. R packages for analyzing spatial data: A comparative case study with areal data. Geogr. Anal. 2022 ,54, 488–518. [CrossRef] 54. Anderson, S.C.; Ward, E.J.; English, P.A.; Barnett, L.A. sdmTMB: An R package for fast, flexible, and user-friendly generalized linear mixed effects models with spatial and spatiotemporal random fields. bioRxiv 2022. [CrossRef] 55. Martinez, S.; Giraldo, R.; Leiva, V. Birnbaum-Saunders functional regression models for spatial data. Stoch. Environ. Res. Risk Assess. 2019,33, 1765–1780. [CrossRef] 56. Garcia-Papani, F.; Leiva, V.; Ruggeri, F.; Uribe-Opazo, M.A. Kriging with external drift in a Birnbaum-Saunders geostatistical model. Stoch. Environ. Res. Risk Assess. 2018,32, 1517–1530. [CrossRef] 57. Sanchez, L.; Leiva, V.; Galea, M.; Saulo, H. Birnbaum-Saunders quantile regression models with application to spatial data. Mathematics 2020,8, 1000. [CrossRef] 58. Kotz, S.; Leiva, V.; Sanhueza, A. Two new mixture models related to the inverse Gaussian distribution. Methodol. Comput. Appl. Probab. 2010,12, 199–212. [CrossRef] 59. Leiva, V.; Sanchez, L.; Galea, M.; Saulo, H. Global and local diagnostic analytics for a geostatistical model based on a new approach to quantile regression. Stoch. Environ. Res. Risk Assess. 2020,34, 1457–1471. [CrossRef] Mathematics 2023,11, 3425 22 of 22 60. Leiva, V.; Rojas, E.; Galea, M.; Sanhueza, A. Diagnostics in Birnbaum-Saunders accelerated life models with an application to fatigue data. Appl. Stoch. Models Bus. Ind. 2014,30, 114–128. [CrossRef] 61. Giraldo, R.; Leiva, V.; Christakos, G. Leverage and Cook distance in regression with geostatistical data: Methodology, simulation, and applications related to geographical information. Int. J. Geogr. Inf. Sci. 2021,37, 607–633. [CrossRef] Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.