Bayesian estimation of the functional spatial lag model
Alassane Aw, Emmanuel Nicolas Cabral

TL;DR
This paper introduces a Bayesian estimation approach for the functional spatial lag model, extending traditional spatial models to a functional framework and demonstrating its effectiveness through simulations and real data analysis.
Contribution
It proposes a novel Bayesian MCMC estimation method for the functional spatial lag model, improving upon existing truncated maximum likelihood techniques.
Findings
Bayesian method performs well in simulations.
Application to Senegal data reveals meaningful spatial relationships.
Bayesian approach offers a flexible alternative for functional spatial models.
Abstract
The spatial lag model (SLM) has been widely studied in the literature for spatialised data modeling in various disciplines such as geography, economics, demography, regional sciences, etc. This is an extension of the classical linear model that takes into account the proximity of spatial units in modeling. The extension of the SLM model in the functional framework (the FSLM model) as well as its estimation by the truncated maximum likelihood technique have been proposed by \cite{Ahmed}. In this paper, we propose a Bayesian estimation of the FSLM model. The Bayesian MCMC technique is used as estimation methods of the parameters of the model. A simulation study is conducted in order to compare the results of the Bayesian estimation method with the truncated maximum likelihood method. As an illustration, the proposed Bayesian method is used to establish a relationship between the…
| Method | BIC | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Uniform kernel | -3.62 | -3.04 | -2.55 | -1.96 | -1.47 | -1.64 | -0.79 | 1.09 | 0.48 | 182 | |
| 0.3 | Normal kernel | -3.67 | -3.06 | -2.53 | -1.98 | -1.46 | -1.15 | -0.82 | 1.07 | 0.28 | 185 |
| Maximum likelihood | -3.68 | -3.05 | -2.52 | -1.90 | -1.43 | -1.16 | -0.80 | 1.00 | 0.25 | 393 | |
| Uniform kernel | -3.49 | -2.82 | -2.26 | -1.41 | -1.27 | -0.86 | -0.35 | 0.99 | 0.54 | 188 | |
| 0.5 | Normal kernel | -3.41 | -2.76 | -2.20 | -1.33 | -1.23 | -0.86 | -0.40 | 0.97 | 0.46 | 203 |
| Maximum likelihood | -3.45 | -2.80 | -2.26 | -1.41 | -1.30 | -0.88 | -0.39 | 0.89 | 0.44 | 383 | |
| Uniform kernel | -3.32 | -2.76 | -2.18 | -1.32 | -1.20 | -0.91 | -0.51 | 0.81 | 0.57 | 427 | |
| 0.7 | Normal kernel | -3.28 | -2.73 | -2.20 | -1.37 | -1.23 | -0.91 | -0.54 | 0.81 | 0.72 | 289 |
| Maximum likelihood | -3.33 | -2.75 | -2.18 | -1.33 | -1.22 | -0.89 | -0.50 | 0.74 | 0.74 | 371 |
| Method | BIC | AR | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Value | -0.31 | -0.22 | 1.08 | 0.89 | -1.45 | 0.26 | -0.09 | 57 | 0.53 | 299 | 69 | |
| Normal kernel | ||||||||||||
| Std | 0.38 | 0.47 | 0.67 | 0.84 | 0.75 | 0.69 | 0.77 | 14 | 0.14 | |||
| Value | -0.32 | -0.24 | 1.21 | 1.03 | -1.58 | 0.17 | -0.07 | 58 | 0.53 | 279 | 12 | |
| Uniform kernel | ||||||||||||
| Std | 0.38 | 0.48 | 0.68 | 0.86 | 0.77 | 0.70 | 0.79 | 14 | 0.27 | |||
| Value | -0.27 | -0.22 | 1.23 | 0.99 | -1.59 | 0.20 | -0.08 | 45 | 0.45 | 340 | ||
| ML method | ||||||||||||
| Std | 0.34 | 0.42 | 0.60 | 0.74 | 0.67 | 0.61 | 0.69 | 6.73 | 0.14 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Bayesian estimation of the functional spatial lag model
Alassane Aw, Laboratory of Mathematics and Applications, Assane Seck University of Ziguinchor, Ziguinchor, Senegal.
Email: [email protected].
Emmanuel Nicolas Cabral, Laboratory of Mathematics and Applications, Assane Seck University of Ziguinchor, Ziguinchor, Senegal.
Email: [email protected].
Abstract
The spatial lag model (SLM) has been widely studied in the literature for spatialised data modeling in various disciplines such as geography, economics, demography, regional sciences, etc. This is an extension of the classical linear model that takes into account the proximity of spatial units in modeling. The extension of the SLM model in the functional framework (the FSLM model) as well as its estimation by the truncated maximum likelihood technique have been proposed by Ahmed et al. (2017). In this paper, we propose a Bayesian estimation of the FSLM model. The Bayesian MCMC technique is used as estimation methods of the parameters of the model. A simulation study is conducted in order to compare the results of the Bayesian estimation method with the truncated maximum likelihood method. As an illustration, the proposed Bayesian method is used to establish a relationship between the unemployment rate and the curves of illiteracy rate observed in the 45 departments of Senegal.
Keywords. Spatial lag model, Functional data analysis, Bayesian estimation, MCMC algorithms.
Mathematics Subject Classification : 62F15, 62H11, 62P20, 60J22, 62-07.
1 Introduction
In the last decades, functional data is becoming increasingly common in many scientific fields, facilitated mainly by recent advances in data storage and processing. We can cite, among others, biology, climatology, econometrics, chemistry, meteorology that are likely to produce data considered as random curves. These data can be longitudinal, multivariate or spatial. Longitudinal data can include, for example, temperature curves, precipitation curves, growth curves of a plant, electrocardiogram of a patient, etc. Multivariate or logitidunal data may concern, for example, image modeling as random functions depending on two variables (abscissa and ordinate). The equipments for collecting and storing the functional data as powerful as they are, in fact, never makes it possible to observe a random curve. The functional data are therefore in vector form: they consist of a certain number of discrete values which have been measured on a sufficiently fine grid and recorded. Functional data analysis (FDA) has arisen as a new discipline in the field of statistics proposing to model this type of data (Ramsay and Silverman (2005)).
The first category of models of the functional statistics are based on the hypothesis of the independence of the functions defined on a compact interval on the real line . For instance, functional linear models (Cardot et al. (1999), Cardot et al. (2005)), Hall and Horowitz (2007), Hilgert et al. (2013)), functional analysis of variance (Zoglat (2008), Zhang (2013)), multivariate functional data (James and Sugar (2003), Jacques and Preda (2014)) are models that rely on the assumption of independence of functions. However, in many disciplines of applied sciences, there is a growing need to model corelated functional data. This is the case when samples of functions are observed over a discrete set of time points (temporally correlated functional data) or when these functions are observed over different sites or areas of a region (spatially correlated functional data). In such cases, the independence assumption of is violated and the above models mentionned are not appropriate. To overcome these limitations, appropriate models are developed to take into account the dependency between functions. For more developments, one can refer to the works of Delicado et al. (2010), Ramsay et al. (2011).
In the domain of spatially correlated data, functional geostatistics models random functions observed at a given set of points in a region (Dabo-Niang and Yao (2007), Giraldo et al. (2011), Caballero et al. (2013)). Functional point processes correspond to the case where the functions are observed at each point in which is generated by a standard point process. When is a fixed and countable set, functional areal data (functional data in lattices) are concerned. Some works relating to functional areal data exist in the literature and can be found in Zhang et al. (2016), Ahmed et al. (2017), Huang et al. (2018), Pineda-Rios et al. (2019).
The motivation of this paper is to provide a Bayesian estimation method to functional linear models on lattices. Specifically, we are intersted at the Bayesian estimation of the spatial lag model which is one of the family of spatial autoregressive models. This paper is organized as follows: we present the functional spatial lag model (FSLM) in the Bayesian context in section 2. In section 3, we propose the Bayesian MCMC estimation procedure of the functional spatial lag model. Section 4 gives a simulation study of the model proposed. In section 5, we apply the methodology proposed to real data. We end the article by a conclusion in section 6.
2 The model
We consider here n spatial units located in a fixed and countable region . In each spatial unit, we observe a real response variable and a functional explanatory variable which takes its values in the Hilbert space . The set is a compact interval of the real line .
We start from the model (see Ahmed et al. (2017)) which assumes an endogenous relationship between and according to the spatial lag model defined by
[TABLE]
where is an unkwon real spatial autoregressive parameter, is an unknown functional parameter, the error terms are assumed to be independent and identically distributed according to the normal density with mean 0 and variance and is the coefficient of the spatial weight matrix W defined by where if the areas and are contiguous and if not. By convention, for all .
The introduction of this matrix is very important because it defines the relationships among locations. The weight matrix W is the space version of lag operator in time series Anselin (1988). In practice, the weight matrix W is row-standardized so that comparisons between models are easy to make.
Consider an orthonormal basis of . We can decompose and in this basis as follows
[TABLE]
The real random variables and the functional coefficients are given by
[TABLE]
From this decomposition, it follows that
[TABLE]
Equation (4) can be proved using dominated convergence and the fact that is an orthornormal basis of by writing
[TABLE]
where is the inner product of of the functions and is the Kronecker symbol.
Following Ahmed et al. (2017), we decompose the right-hand side of equation (4) like this
[TABLE]
where is a sequence of positive integers which increases with the size of the sample n. The goal here is to approach the infinite sum by the finite sum . This is only possible when the sum becomes negligible. For more details, one can refer to Müller and Stadtmüller (2005) and Ahmed et al. (2017).
The truncation of equation (5) at order can be accomplished by using the eingenfunctions basis, the Fourier basis, the spline basis or the wavelet basis. When the variable to be truncated is periodic, one can use the Fourier basis. In the other cases, one can think of using the other forms of basis according to the situations.
After truncation, model (1) becomes:
[TABLE]
Then, the infinite dimension of model (1) is reduced to a finite dimension. The problem now comes down to estimating parameters: parameters and 2 parameters concerning the spatial autoregressive parameter and the variance of the error term.
If we set , , , , ,
then the matrix form of equation (6) can be written as
[TABLE]
where is the identity matrix of order n.
As in LeSage (1997) and LeSage and Pace (2009), we assume a normal prior for with mean and variance-covariance matrix , an inverse gamma prior for with shape parameter and scale parameter and a uniform prior for . These prior distributions are given by
- •
,
- •
,
- •
.
In order to facilitate the statistical processing, we assume that all prior distributions are independent.
3 Bayesian MCMC estimation of the FSLM
3.1 Full conditional distributions
From equation (7), we can deduce
[TABLE]
where . Noting and using the transformation theorem, the likelihood function of the model is given by
[TABLE]
where is the Jacobian matrix. Since , its multidimensional probability density is given by
[TABLE]
The calculation of the determinant of the Jacobian matrix is as follows
[TABLE]
Combining equation (8) and equation (9), the likelihood function of the model is then given by
[TABLE]
The posterior distribution of the model, under the assumption of independence of the prior distributions, is
[TABLE]
When we ignore the constant terms involved in the prior distributions of the parameters, the posterior distribution can be put in the form of a relation of proportionality as follows
.
From this posterior distribution, we will deduce the full conditional distributions of the parameters. We start by looking for the conditional distribution of . By omitting the elements that do not include the parameter in the posterior distribution, one can get the full conditional distribution for this parameter in terms of proportionality relation as descibed below
[TABLE]
We recognize in equation (12) an inverse gamma distribution for with shape parameter and scale parameter , which we materialize by writing
[TABLE]
Similarly, starting from the posterior distribution and considering only terms that include the parameter, we get the full conditional distribution given below
[TABLE]
In order to recognize the distributional form of , we complete the square by expending out the terms and (we can refer to Gelman et al. (2013) for more details on the technique of completing the square). We begin completing the square by wrting
[TABLE]
where . Similarly, we write
[TABLE]
After completing the square, the distribution of is a multinormal distribution with mean= and variance-covariance matrix equals to . We summarize the conditional distribution of as follows
[TABLE]
The proportionality relation relative to the full conditional distribution for the parameter is given by
[TABLE]
Unfortunately there is any recognizable form for the full conditional distribution of the parameter due to the presence of the derminant .
3.2 Bayesian MCMC computation
Recall that is the parameter vector. We consider here the loss function where R is a positive define matrix. This function is used as a good criterion to determine an optimal point estimate of the parameter . The Bayesian point estimate of the parameter is then given by
[TABLE]
The solution of equation (15) is defined as , which corresponds to the mean of the posterior distribution of (Koop et al. (2007)). In general, the analytical solution of equation (15) cannot be obtained in the closed form.
To avoid this problem, we use MCMC algorithms which consist of onstructing a Markov chain from the conditional posterior distributions. If the Markov chain is simulated long enough, then the mean of the sample is seen as an estimate of (Casella and Georg (1992), Roberts and Rosenthal (2004)).
Since we know the full conditional distributions for and , we can use Gibbs sampling method to easily obtain random draws for these parameters. Unfortunately, the full conditional distribution of the autoregressive parameter is in the unknown form. Thus, we use the Metropolis-Hastings algorithm to obtain samples for this parameter. In practice, we combine the Gibbs sampling method and the Metropolis-Hastings algorithm for the sampling scheme of the functional spatial lag model. This technique is known in the litterature as the Metropolis-within-Gibbs algorithm (Gilks et al. (1995)).
The Metropolis-Hastings algorithm uses a proposal distribution, according to which, we will sample the autoregressive parameter . Following LeSage and Pace (2009), we can use a normal proposal distribution with tuned random-walk procedure defined as
[TABLE]
The constant c represents the tuning parameter. Since is symmetric, so the probability to accept the candidate is given by
[TABLE]
Doğan and Taşpınar (2014) show that the tuning parameter affects the behavior of the chain in at least two ways: (i) it affects the acceptance rate of new candidate values through acceptance probability, (ii) it also affects the region where the new candidate values are sampled.
In practice, the tuning parameter is choosen so that the acceptance rate falls between 40 and 60. The Metropolis-within-Gibbs algorithm for estimating parameters of the functional spatial lag model is described through the following steps.
-
Set up initial value ,
-
For iteration j from 1 to N, do the following steps.
2.1 Simulate from ,
2.2 Simulate from ,
2.3 Compute ,
2.3.1 Calculate ,
2.3.2 Simulate u from uniform (0, 1),
2.3.3 Set if else .
2.3.4 Return .
The sequence generated by the Metropolis-within-Gibbs algorithm is a markov chain whose stationary distribution converges towards the joint posterior density (Tierney (1994)).
Alternatively, we can use this algorithm considering a uniform proposal distribution instead of a normal proposal distribution. A slight modification of the algorithm takes place at the level of updating the autoregressive parameter (see, for instance LeSage (1997), LeSage and Pace (2009)).
4 Simulation study
In this section, we propose simulations of the FSLM model from the point of view of the Bayesian approach. The simulations cover the 121 communes of Senegal represented by the spatial layout in figure 1 below.
We consider several scenarios of simulations according to the values of the autoregressive parameter . In each scenario, we compare the results obtained for the Bayesian FSLM model with uniform kernel and normal kernel, and the FSLM with maximum likelihood procedure. The process is summarized by the following steps.
- •
The weighting matrix W whose elements are equal to 1 if the communes i and j share a common border and 0 otherwise is calculated through the spatial layout in figure 1;
- •
In each commune, we simulate the functional covariate , where is a realization of a white noise. We then smooth these values using a 7 B-spline basis in order to obtain the curves . The number of basis is choosen using cross validation criterion (one can refer to Ramsay and Silverman (2005) for more details);
- •
The functional parameter is defined by as in Pineda-Rios et al. (2019);
- •
We generate a Gaussian vector ;
- •
We calculate by considering the values ;
- •
The parameters , and are estimated using the Metropolis-within-Gibbs algorithm described above. We consider both the uniform kernel and the normal kernel for the proposal distribution.
The curves are represented in figure 2 below.
We give in Table 1 below the results of simulations of the Metropolis-within-Gibbs algorithm for the FSLM model. For , we find that all the methods considered give substantially the same results for the values of the parameter. However, it is generally noted that the normal kernel method and the maximum likelihood method are closer in terms of the results obtained. The value of the simulated parameter ( for the normal kernel method is closer to the true value than the other methods. However, the uniform kernel method is preferable than the other methods according to the BIC values. The simulated values of the parameters are of the same order of magnitude for the different methods considered when .
However, the uniform kernel and maximum likelihood methods produce simulated values that are substantially the same. It is always noted that the uniform kernel method is preferable with respect to the value of the BIC.
When , it was again found that the uniform kernel and maximum likelihood methods yield results that are about the same. The normal kernel method gives a value which is closer to the true value .
This method, with a value of , is preferable. In summary, the general finding is that the Bayesian proposition is better than the classical method. When the value is low, the uniform kernel method overrides the normal kernel method. However for large values, the normal kernel method is preferable to the uniform kernel method.
5 Application to unemployment data
In this section, we apply the proposed methodology to real data. The aim is to explain the variations in the unemployment rate according to those of the illiteracy rate. In each department of Senegal, we observe the unemployment rate in the first quarter of 2019 and the illiteracy rate from the second quarter of 2016 to the first quarter of 2019. The data come from the National Agency of Statistics and Demography of Senegal.
We give in Figure 3 below a spatial distribution of the unemployment rate in each of the 45 departments of Senegal. We observe in this figure that the spatial distribution of the unemployment rate is not neutral. Most geographically close departments have similar unemployment values.
This means that the unemployment rate is a spatially autocorrelated variable. This visual observation was confirmed by the Moran test.
Figure 4 below shows the curves of the illiteracy rate over the observation period. As a first step, these discrete data on the illiteracy rate collected per quarter are smoothed using 7 B-splines basis. Overall, the curves of the illiteracy rate are decreasing over the observation period. This shows the great efforts made by the Government of Senegal to reduce the illiteracy rate by formulating targeted literacy programs.
In Table 2 below, we group the results of the parameter estimation of the Bayesian FSLM model according to the different methods. The results of the estimation of the vector parameter for the normal kernel and the uniform kernel methods that are very close do not deviate too much from the results obtained for the maximum likelihood method. The estimated standard deviations of the normal kernel and the uniform kernel methods are almost the same. The values of the parameter for the normal kernel and the uniform kernel methods show that the autocorrelation of the unemployment rate is more pronounced in these models than that of the maximum likelihood.
Looking at the values of the BIC, we conclude that the uniform kernel method gives the best model. However, the normal kernel method is preferable if we look at the acceptance rate (AR=69) of the Metropolis-within-Gibbs algorithm. In all cases, the results of the Bayesian approach are better than those obtained by the frequentist approach.
6 Conclusion
In this paper, we have proposed a Bayesian estimation method of the functional spatial lag model. Using the Metropolis-within-Gibbs algorithm, we have shown on the basis of numerical simulations that Bayesian estimation gives better results than frequentist estimation. We have also illustrated the Bayesian methodology with an application to unemployement data of Senegal. The results obtained confirm that the Bayesian methodology is more satisfactory than the maximum likelihood estimation. This modeling approach is innovative in the fields of spatial statistics and spatial econometrics. The application of this Bayesian methodology to other types of data and other areas of activity may be considered.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Ahmed et al. (2017) Ahmed, M., Broze L., Dabo-Niang, S., Gharbi, Z. (2017). Functional Linear Spatial Autoregressive Models. Ramon Giraldo; Jorge Mateu. Geostatistical Functional Data Analysis: Theory and Methods, Wiley, 2017.
- 2Anselin (1988) Anselin, L. (1988). Spatial Econometrics: Methods and Models , Kluwer Academic Publishers, Dorddrecht
- 3Caballero et al. (2013) Caballero,W., Giraldo, R., Mateu, J. (2013). A universal kriging approach for spatial functional data. Stochastic Environmental Research and Risk Assessmen t, 27, 1553–1563.
- 4Casella and Georg (1992) Casella, G., Georg, E. I. (1992). Explaining the Gibbs Sampler. The American Statistician , 46(3), 167–174.
- 5Cardot et al. (1999) Cardot, H., Ferraty, F., Sarda, P. (1999). Functional linear model. Statistics and Probability Letters 45:11–22.
- 6Cardot et al. (2005) Cardot, H., Ferraty, F., Mas, A., Sarda, P. (2003). Testing hypotheses in the functional linear model. Scandinavian Journal of Statistics , 30, 241–255.
- 7Dabo-Niang and Yao (2007) Dabo-Niang, S. and Yao, F. (2007). Kernel regression estimation for continuous spatial processes. Mathematical Methods of Statistics , 16, 298–317.
- 8Delicado et al. (2010) Delicado, P., Giraldo, R., Comas, C., Mateu, J. (2010). Statistics for spatial functional data: some recent contributions. Environmetrics , 21, 224–239.
