---
title: Spatiotemporal Autoregressive Gamma Process
url: https://www.emergentmind.com/topics/spatiotemporal-autoregressive-gamma-process
type: topic
---

# Spatiotemporal Autoregressive Gamma Process

The spatiotemporal autoregressive gamma process is a Bayesian modeling strategy for spatiotemporal count data in which observed counts are conditionally Poisson and the latent positive spatiotemporal frailties evolve through a gamma-process autoregression that is guaranteed stationary across the time dimension under explicit parameter restrictions. In the formulation of Cheng and Li, the construction replaces the more common latent Gaussian specification for log-rates with a conjugate Gamma–Poisson hierarchy, introduces latent Poisson decompositions, and yields efficient posterior sampling with sparse spatial dependence and effectively linear computational scaling in the total number of space–time observations [2507.19915].

## 1. Formal definition and hierarchical construction

Let $s_1,\dots,s_m$ denote $m$ spatial locations, $t=1,\dots,T$ time periods, and $x_t(s_i)$ a $p\times 1$ covariate at $(s_i,t)$. The observed counts are modeled as
$$
Y_t(s_i)\mid U_t(s_i),\beta \sim \operatorname{Pois}\{U_t(s_i)\cdot \exp[x_t(s_i)'\beta]\},
$$
where $U_t(s_i)>0$ is the spatiotemporal frailty.

The defining feature is the conjugate Gamma–Poisson hierarchy placed on $U_t(\cdot)$ so as to induce an autoregressive gamma process in time. For $t=2,\dots,T$ and $i=1,\dots,m$, the latent decomposition is
$$
Z^{(t-1)}_{(i0)}\mid U^{(t-1)}(s_i),\rho,c \sim \operatorname{Pois}\{(\rho/c)\cdot U^{(t-1)}(s_i)\},
$$
and, for each of the $h_s$ neighbors $j\in N(s_i)$,
$$
Z^{(t-1)}_{(ij)}\mid U^{(t-1)}(N(s_i)[j]),\kappa,c \sim \operatorname{Pois}\{(\kappa w_{ij}/c)\cdot U^{(t-1)}(N(s_i)[j])\}.
$$
Conditionally,
$$
U_t(s_i)\mid \{Z^{(t-1)}_{(ij)},\,j=0\dots h_s\},c
\sim \Gamma\!\left(\alpha+\sum_{j=0}^{h_s}Z^{(t-1)}_{(ij)},\,1/c\right),
$$
while the initial layer is
$$
U_1(s_i)\mid c \sim \Gamma(\alpha,1/c).
$$

An equivalent one-line representation is
$$
\lambda_t(s)\equiv U_t(s)\mid\{U_{t-1}(\cdot)\}\sim \Gamma\bigl(\alpha+Z_{t-1}(s),\,1/c\bigr),
$$
with
$$
Z_{t-1}(s)\sim \operatorname{Pois}\left\{(\rho/c)\cdot U_{t-1}(s)+(\kappa/c)\cdot\sum_{s'\in N(s)} w_{ss'}\,U_{t-1}(s')\right\}.
$$
This is described as the non-central AR(1) Gamma process in time.

This construction is motivated by the limitations of previous models that decompose logarithms of the response Poisson rates into fixed effects and spatial random effects, where the latter is typically assumed to follow a latent Gaussian process, the conditional autoregressive model, or the intrinsic conditional autoregressive model. Since log-Gaussian is not conjugate to Poisson, those implementations must resort to approximation methods like INLA or Metropolis moves on latent states in MCMC algorithms and exhibit several approximation and posterior sampling challenges. The autoregressive gamma specification is designed precisely to avoid that non-conjugacy.

## 2. Stationarity, spatial dependence, and sparsity

The model imposes a local spatial dependence structure. For each $s_k$, one chooses $N(s_k)\subseteq\{s_1,\dots,s_m\}\setminus\{s_k\}$ of size $|N(s_k)|\le h_s\ll m$, for example the $h_s$ nearest neighbors, and prespecifies nonnegative weights $w_{kj}$ on $N(s_k)$ summing to $1$. Within this structure, the $\rho$ term models own-location temporal autocorrelation, and the $\kappa\cdot w_{kj}$ term smooths toward neighbors.

The temporal stationarity condition is explicit. If $\rho,\kappa\ge 0$ and $\rho+\kappa\le 1$, then for any nonnegative neighbor-weight matrix $W$ whose rows sum to $\le 1$, the AR–Gamma process in $t$ is stationary [2507.19915]. This stationarity guarantee is central because it is built into the process definition rather than imposed only indirectly through a transformed latent Gaussian layer.

Sparsity is equally central. Because each row of the weight matrix $V=(v_{ij})$ has at most $h_s+1$ nonzero entries, consisting of self plus $h_s$ neighbors, all conditionals become sparse and require $O(mTh_s)$ per full sweep. Since $h_s\ll m$, this sparse design is what makes large-$m$ spatiotemporal count analysis computationally feasible within a fully Bayesian posterior-sampling framework.

A common misconception in this area is that strong spatiotemporal dependence for counts must be mediated through Gaussian random effects on the log-scale. The present formulation provides a direct counterexample: dependence is carried by positive frailties under a Gamma–Poisson hierarchy, with temporal persistence, neighborhood smoothing, and stationarity all expressed in the latent gamma process itself.

## 3. Latent decomposition and posterior computation

The key computational device is the introduction of latent Poisson variables $Z^{(t-1)}_{(ij)}$, with $j=0$ for the self-link and $j=1,\dots,h_s$ for neighbor links. Under this augmentation, the full conditionals become standard.

For $1<t<T$, the frailty update is
$$
[U_t(s_i)\mid \text{rest}] \sim \Gamma\!\left(
\begin{aligned}
&\text{shape}= y_t(s_i)+\alpha+\sum_{j=0}^{h_s}Z^{(t-1)}_{(ij)}+\sum_{\ell:s_i\in N(s_\ell)} Z^{(t)}_{(\ell,k_\ell(s_i))},\\
&\text{rate}= \exp[x_t(s_i)'\beta]+(1/c)\Big[1+\rho+\kappa\cdot\sum_{\ell:s_i\in N(s_\ell)} w_{\ell,k_\ell(s_i)}\Big]
\end{aligned}
\right).
$$
Similar Gamma updates apply at $t=1$ and $t=T$, omitting the next or previous $Z$ term.

For each $t=1,\dots,T-1$, $i=1,\dots,m$, and $j=0,\dots,h_s$,
$$
[Z^{(t)}_{(ij)}\mid \text{rest}] \sim \operatorname{Bessel}(\nu,a),
$$
where $\nu$ and $a$ depend on $\{U_{t+1}(s_i),U_t(s_\cdot),c,\rho,\kappa,w_{ij}\}$. In practice one uses the Devroye rejection sampler for the Poisson–Bessel mixture.

The remaining global-parameter updates are
$$
[c\mid \text{rest}] \sim \operatorname{Inv\text{-}Gamma}
\left(
\text{shape}=\alpha_c+Tm\alpha+2\sum Z_{ij},\;
\text{scale}=\theta_c+\sum U_t(s_i)+\rho\sum U_t(s_i)+\kappa\sum w_{ij}U_t(s_j)
\right),
$$
$$
[\rho\mid \text{rest}] \sim \operatorname{Truncated\text{-}Gamma}
\left(
\text{shape}=a_\rho+\sum Z^{(t)}_{(i0)},\;
\text{rate}=b_\rho+(1/c)\sum U_t(s_i),\;
\text{on }(0,1)
\right),
$$
and
$$
[\kappa\mid \text{rest}] \sim \operatorname{Truncated\text{-}Gamma}
\left(
\text{shape}=a_\kappa+\sum_{i,t,j>0}Z^{(t)}_{(ij)},\;
\text{rate}=b_\kappa+(1/c)\sum_{i,t,j}w_{ij}U_t(s_j),\;
\text{on }(0,1-\rho)
\right).
$$

The regression coefficient update is the sole non-conjugate component. Its posterior is
$$
\text{Posterior}\propto \exp\left\{-\tfrac12(\beta-\mu_0)'\Sigma_0^{-1}(\beta-\mu_0)+\sum [y_t\log \mu_t-\mu_t]\right\},
$$
with $\mu_t=U_t(s_i)e^{x'\beta}$. No closed form is available, so the algorithm uses a Metropolis–Hastings random-walk with Hessian-based adaptive proposal.

The resulting Gibbs sampler proceeds by sampling all $Z^{(t)}_{(ij)}$ in $O(mTh_s)$, all $U_t(s_i)$ in $O(mTh_s)$, then $c,\rho,\kappa$ in $O(mT)$, and finally the Metropolis step for $\beta$ in $O(mTp^2)$. Because $h_s\ll m$ and $p\ll m$, the total cost is effectively $O(mT)$.

## 4. Predictive distribution and extrapolation in space and time

Posterior prediction is handled by composition sampling. For prediction at future times $T+1,\dots,T+q$ and/or new spatial sites $s_{m+1},\dots,s_{m+r}$, the latent frailties are propagated via
$$
U_{t+k}(s)\mid U_{t+k-1}(\cdot),\rho,\kappa,c \sim \text{Gamma-noncentral }(\alpha,1/c,\lambda),
$$
with
$$
\lambda=(\rho/c)U_{t+k-1}(s)+(\kappa/c)\sum_{\text{neighbors}} w\cdot U_{t+k-1}(\cdot).
$$
The counts are then generated from
$$
Y_{t+k}(s)\mid U_{t+k}(s),\beta \sim \operatorname{Pois}\{U_{t+k}(s)e^{x_{t+k}(s)'\beta}\}.
$$

This predictive mechanism is operationally important because it applies both to temporal forecasting and to prediction at new spatial locations. The model description states that it delivers satisfactory performance in predicting at new spatial locations and time intervals [2507.19915]. A plausible implication is that the same latent augmentation that supports efficient posterior sampling also makes posterior predictive simulation straightforward, since the transition kernel remains in the gamma/noncentral-gamma family.

## 5. Empirical behavior and comparative performance

The reported simulation study is extensive. For $m$ up to $1600$, $T$ up to $100$, and over a wide range of $c\in[5,5000]$, the posterior means of $(c,\kappa,\rho)$ track the true values with negligible bias, and the Mean Absolute Error (MAE) of fitted $\mu_t(s)=E[Y_t(s)\mid \text{rest}]$ remains low [2507.19915].

Relative to six MCMC models in CARBayesST and two INLA-based models, the AR–Gamma model is reported to have comparable or lower MAE in-sample and out-of-sample, similar or better information criteria (DIC, WAIC), vastly higher effective sample size per CPU second, full conjugacy except $\beta$ (one Metropolis), and linear scaling in $mT$.

Real-data analyses are reported for weekly COVID-19 cases and deaths with approximately $m\approx 120$ countries and $T\approx 100$ weeks. The recorded performance is MAE approximately $2$–$3$ for cases and approximately $1$–$2$ for deaths, MAPE approximately $1\%$–$2\%$, together with clear superiority over CAR and INLA in cross-validation.

These findings are significant primarily because the comparison class includes both MCMC-based CAR models and INLA-based approximations. The reported results therefore address two distinct questions at once: posterior efficiency and predictive adequacy. The model is presented as obtaining satisfactory model fitting, accurate parameter estimation, and strong out-of-sample prediction without abandoning full Bayesian posterior computation.

## 6. Relation to autoregressive gamma-process research

The spatiotemporal autoregressive gamma process for lattice-indexed count data is closely related to a broader gamma-process literature. The paper explicitly references the autoregressive gamma process for time series of counts due to Creal, Chib, and Shephard. In the spatiotemporal construction, that time-series logic is extended by combining self-location persistence, neighbor-weighted dependence, and sparse spatial coupling.

A related arXiv development is the measure-valued autoregressive gamma process of Bassetti, Casarin, and Iacopini, used as the latent intensity in a spatiotemporal shot-noise Cox process [2308.08481]. There, the latent process is a Markov chain of gamma random measures on a Polish space $\Theta$, with one-step transition
$$
W_{t+1}\mid W_t\sim \operatorname{NcGP}(H,\beta_{t+1}W_t,c_{t+1}^{-1}),
$$
and an AR(1)+innovation representation
$$
W_{t+1}(A)=(\beta_{t+1},c_{t+1})\odot W_t(A)+W^{(I)}_{t+1}(A).
$$
If $(\beta_t,c_t)\equiv(\beta,c)$ are constant and $\rho=\beta c<1$, then $W_{t+h}\overset{d}{\longrightarrow}\operatorname{GP}(H,(1-\rho)/c)$, and the limiting law is invariant.

The two constructions differ in both inferential target and computational machinery. The spatiotemporal count model of Cheng and Li works directly with counts $Y_t(s_i)$ and latent frailties $U_t(s_i)$, exploits latent Poisson decomposition, and uses a Gibbs sampler with a Metropolis step only for $\beta$. By contrast, the shot-noise Cox process uses latent gamma random measures $W_t$, a kernelized intensity
$$
\lambda_t(y)=\int_\Theta K_\phi(y,\theta)\,W_t(d\theta),
$$
and Bayesian inference via Particle-Gibbs with blocking and conditional Sequential Monte Carlo [2308.08481].

This suggests a useful conceptual distinction. The lattice-based spatiotemporal autoregressive gamma process is tailored to large spatiotemporal count arrays with sparse neighborhood structure and linear-in-$mT$ computation, whereas the measure-valued formulation is designed for point-process intensities, product densities, and pair-correlation analysis. Both, however, rely on noncentral-gamma transitions and on explicit stationarity conditions rather than latent Gaussian approximations.

## 7. Interpretation, scope, and methodological significance

Within Bayesian spatiotemporal modeling, the main significance of the spatiotemporal autoregressive gamma process lies in the conjunction of three features: conjugacy with Poisson observations, stationarity across time under transparent constraints, and sparse spatial dependence with effectively linear complexity. The model is therefore not merely a replacement likelihood or a computational trick; it is a distinct latent-process specification for positive spatiotemporal frailties.

Its scope is specifically spatiotemporal count data. The observed process is Poisson conditional on latent frailties and regression effects, and the latent dependence is encoded through the parameters $\rho$, $\kappa$, the neighbor sets $N(s_i)$, and the weights $w_{ij}$. Because prediction at future times and new spatial sites is built from posterior samples of the same transition law, the inferential and predictive components are tightly aligned.

An important methodological point is that the model is not fully conjugate in every parameter: $\beta$ still requires a Metropolis–Hastings random-walk with Hessian-based adaptive proposal. Accordingly, claims of efficiency rest not on universal closed-form updating, but on the fact that all full conditionals are standard except for $\beta$, together with sparse conditionals and the latent Poisson decomposition. That distinction matters when comparing the model to latent Gaussian alternatives or to measure-valued gamma-process Cox-process models.

Taken together, the available results position the spatiotemporal autoregressive gamma process as a gamma-driven alternative to log-Gaussian, CAR, and ICAR-based spatiotemporal count models, with direct relevance for large count arrays, posterior prediction at new sites and times, and scalable Bayesian computation [2507.19915].

Source: https://www.emergentmind.com/topics/spatiotemporal-autoregressive-gamma-process