Spatial Autoregressive Model on a Dirichlet Distribution

Teo Nguyen, Sarat Moka, Kerrie Mengersen, Benoît LiquetarXiv 2024 · DOI · arXiv

Abstract

Compositional data find broad application across diverse fields due to their efficacy in representing proportions or percentages of various components within a whole. Spatial dependencies often exist in compositional data, particularly when the data represents different land uses or ecological variables. Ignoring the spatial autocorrelations in modelling of compositional data may lead to incorrect estimates of parameters. Hence, it is essential to incorporate spatial information into the statistical analysis of compositional data to obtain accurate and reliable results. However, traditional statistical methods are not directly applicable to compositional data due to the correlation between its observations, which are constrained to lie on a simplex. To address this challenge, the Dirichlet distribution is commonly employed, as its support aligns with the nature of compositional vectors. Specifically, the R package DirichletReg provides a regression model, termed Dirichlet regression, tailored for compositional data. However, this model fails to account for spatial dependencies, thereby restricting its utility in spatial contexts. In this study, we introduce a novel spatial autoregressive Dirichlet regression model for compositional data, adeptly integrating spatial dependencies among observations. We construct a maximum likelihood estimator for a Dirichlet density function augmented with a spatial lag term. We compare this spatial autoregressive model with the same model without spatial lag, where we test both models on synthetic data as well as two real datasets, using different metrics. By considering the spatial relationships among observations, our model provides more accurate and reliable results for the analysis of compositional data. The model is further evaluated against a spatial multinomial regression model for compositional data, and their relative effectiveness is discussed.

Introduction

In fields ranging from ecology to economics, researchers frequently encounter compositional data—vectors where components represent proportions that sum to unity (e.g., soil composition or land use). A critical challenge in analyzing such data is spatial autocorrelation: observations geographically near one another tend to be more similar than those far apart.

Standard statistical models often assume independence between observations. When applied to compositional data, ignoring spatial dependencies can lead to biased parameter estimates and unreliable predictions. While the Dirichlet distribution is the standard choice for modeling proportions on a simplex, existing tools like the R package DirichletReg do not account for spatial structure. This paper introduces a novel Spatial Autoregressive (SAR) Dirichlet regression model to bridge this gap.

Methodology: The Spatial Lag Dirichlet Model

The proposed model integrates spatial dependencies directly into the Dirichlet framework. The approach follows several key steps:

  1. Base Dirichlet Model: The model starts with a standard Dirichlet regression where concentration parameters $\alpha$ are determined by features $X$ and coefficients $\beta$.
  2. Incorporating Spatial Lag: A spatial lag is introduced via a matrix $M = (I_n - \rho W)$, where $W$ is a spatial weights matrix defining neighborhood relationships and $\rho$ represents the strength of spatial correlation.
  3. Transformation: By applying the inverse of the spatial matrix ($M^{-1}$) to the feature-coefficient product ($X\beta$), the model allows neighboring characteristics to influence local predictions.
  4. Estimation: Parameters are estimated using Maximum Likelihood Estimation (MLE), optimized via the BFGS algorithm to handle the complex log-likelihood functions.
The Dirichlet distribution's flexibility on a simplex under varying mean ($\mu$) and precision ($\phi$) parameters.

Experimental Evaluation

The model was evaluated across four scenarios:

  • Synthetic Data: Testing the model's ability to recover true parameters under varying spatial correlations ($\rho = 0.1, 0.5, 0.9$).
  • Arctic Lake Dataset: Analyzing sand, silt, and clay proportions relative to water depth.
  • Maupiti Island: Mapping 2,091 lagoon segments in French Polynesia into categories like coral, sand, and reef.
  • French Elections (2015): Modeling voting distributions across 207 cantons in the Occitanie region using 25 social indicators.

Key Results and Insights

The SAR Dirichlet model consistently outperformed non-spatial alternatives across multiple metrics, including $R^2$, RMSE, and Cross-entropy.

  • Predictive Accuracy: In the Maupiti Island study, the spatial model increased the $R^2$ from 0.265 to 0.441 and improved classification accuracy from 75.2% to 83.2%.
  • Election Modeling: The distance-based spatial model achieved a superior AIC (-965.1), confirming that neighboring voting patterns are strong predictors of local results.
  • Model Selection: The authors noted that for "normalized counts" (e.g., pixels or votes), a Spatial Multinomial model might be preferable, whereas the Dirichlet model excels for true continuous proportions.
  • Spatial Signal: Improvement is most significant when the spatial weights matrix $W$ provides information not already captured by existing features. For instance, in the Arctic Lake dataset, where depth already served as a proxy for space, the spatial model's gains were marginal.

Discussion and Future Directions

While the SAR Dirichlet model offers enhanced accuracy, it introduces significant computational costs. For the Maupiti dataset, the spatial model required 38 minutes to compute compared to 1 second for the non-spatial version, primarily due to the necessity of matrix inversion.

Future work should address:

  • Scalability: Developing more efficient computational methods for large datasets.
  • Missing Data: Improving robustness when spatial "chains" are broken by missing observations.
  • Inference: Refining significance testing for the spatial parameter $\rho$, as traditional Wald or Likelihood Ratio tests can be unreliable in this context.

Citation: Nguyen, T., Moka, S., Mengersen, K., & Liquet, B. (2024). Spatial Autoregressive Model on a Dirichlet Distribution. arXiv:2403.13076v1 [stat.ME].

Summary updated

Abstract

Compositional data find broad application across diverse fields due to their efficacy in representing proportions or percentages of various components within a whole. Spatial dependencies often exist in compositional data, particularly when the data represents different land uses or ecological variables. Ignoring the spatial autocorrelations in modelling of compositional data may lead to incorrect estimates of parameters. Hence, it is essential to incorporate spatial information into the statistical analysis of compositional data to obtain accurate and reliable results. However, traditional statistical methods are not directly applicable to compositional data due to the correlation between its observations, which are constrained to lie on a simplex. To address this challenge, the Dirichlet distribution is commonly employed, as its support aligns with the nature of compositional vectors. Specifically, the R package DirichletReg provides a regression model, termed Dirichlet regression, tailored for compositional data. However, this model fails to account for spatial dependencies, thereby restricting its utility in spatial contexts. In this study, we introduce a novel spatial autoregressive Dirichlet regression model for compositional data, adeptly integrating spatial dependencies among observations. We construct a maximum likelihood estimator for a Dirichlet density function augmented with a spatial lag term. We compare this spatial autoregressive model with the same model without spatial lag, where we test both models on synthetic data as well as two real datasets, using different metrics. By considering the spatial relationships among observations, our model provides more accurate and reliable results for the analysis of compositional data. The model is further evaluated against a spatial multinomial regression model for compositional data, and their relative effectiveness is discussed.
BibTeX
@misc{nguyen2024spatial,
  author = {Teo Nguyen and Sarat Moka and Kerrie Mengersen and Benoît Liquet},
  title = {{Spatial Autoregressive Model on a Dirichlet Distribution}},
  year = {2024},
  eprint = {2403.13076},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.13076},
}
Figure