---
title: Bayesian Spillover Graphs (BSG)
url: https://www.emergentmind.com/topics/bayesian-spillover-graphs-bsg
type: topic
---

# Bayesian Spillover Graphs (BSG)

Bayesian Spillover Graphs (BSG) are a principled framework for learning, quantifying, and visualizing dynamic spillover effects within multivariate time series and panel data. By integrating Bayesian time series modeling with forecast error variance decomposition (FEVD) or similar structural tools, BSG provides interpretable, horizon-dependent network representations of how shocks to one subsystem propagate across others, while yielding posterior-credible quantification of systemic risk, node-level influence, and transient versus equilibrium network behavior. In contrast with classical Granger-causality graphs or static structure learning, BSG uniquely tailors edge weights to explain multi-horizon prediction variability and supports rigorous uncertainty assessment [2203.01912], [2310.17473].

## 1. Bayesian Backbone and Modeling of Dynamic Systems

The BSG framework for time series originates from the Bayesian vector autoregression (VAR) model. For a zero-mean, stationary $d$-dimensional time series $\mathbf{z}_t \in \mathbb{R}^d$, a VAR($p$) is defined as
\[
\mathbf{z}_t = \phi_1 \mathbf{z}_{t-1} + \cdots + \phi_p \mathbf{z}_{t-p} + \mathbf{a}_t, \quad \mathbf{a}_t \stackrel{\mathrm{iid}}{\sim} \mathcal{N}(\mathbf{0}, \Sigma_a),
\]
where $\phi_j$ are autoregressive matrices and $\Sigma_a$ is the error covariance. Estimation employs conjugate Normal–Inverse–Wishart priors for $(\beta, \Sigma_a)$ with fully tractable posterior updates. This Bayesian paradigm enables the sampling of model parameters, providing the foundation for spillover quantification with posterior-credible intervals [2203.01912].

In the spatial autoregressive (SAR–SV) extension, panel data $y_t \in \mathbb{R}^n$ are modeled with multi-layer time-varying network weights $W_{k,t}$, individual exposure coefficients $\rho_j$, and stochastic volatility in structural shocks. The observed process can be written as
\[
A_t y_t = X_t \beta + \epsilon_t, \quad \epsilon_t|\Sigma_t \sim \mathcal{N}_n(0, \Sigma_t),
\]
where $A_t = I_n - R W_t^*$, with $W_t^*$ a convex combination of $K$ network layers and $R = \operatorname{diag}(\rho_1, ..., \rho_n)$ [2310.17473].

## 2. Forecast-Error Variance Decomposition and Graph Construction

In BSG for time series, the forecasting power of each node $k$ on another node $j$ after $h$ steps is determined via FEVD. Under stationarity, the VAR is written as a moving-average:
\[
\mathbf{z}_t = \sum_{i=0}^\infty \psi_i \mathbf{a}_{t-i},\quad \psi_0=I,\, \psi_i = \sum_{j=1}^p \phi_j \psi_{i-j}.
\]
The $h$-step FEVD for node $j$'s variance from shocks to node $k$ is
\[
w_{h,jk} = \frac{1}{\sigma_{kk}} \frac{\sum_{i=0}^{h-1} [\psi_i \Sigma_a]_{jk}^2}{\sum_{i=0}^{h-1} [\psi_i \Sigma_a \psi_i^\top]_{jj}},
\]
normalized as
\[
s_{h}^{k \to j} = 100 \frac{w_{h,jk}}{\sum_{\ell=1}^d w_{h,j\ell}},\quad 0\leq s_{h}^{k\to j}\leq 100.
\]
The BSG at horizon $h$ is the directed, weighted graph with edges $s_h^{k\to j}$, interpreted as the percentage of node $j$'s forecast error variance due to shocks from node $k$ at that horizon.

For SAR-based BSG, graph construction derives from the spatial multiplier $S_t = (I_n - R W_t^*)^{-1}$. Directed edge weights at time $t$ are
\[
w_{i \to j, t} = s_{ji, t},\quad i\neq j,
\]
optionally normalized by the jth-column sum [2310.17473]. Both models compute edge weights for each posterior sample, yielding credible intervals for spillover strengths.

## 3. Horizon Hyperparameter, Spillover Equilibrium, and Temporal Resolution

The forecast-horizon parameter $h$ provides interpretive control over temporal relationships. Small $h$ recapitulates short-term (e.g., one-step Granger-like) effects; large $h$ or $h\to\infty$ reflects long-run or equilibrium spillover structure. In practice, $h$ is increased until edge weights $\bar s_h^{k\to j}$ stabilize within a numeric tolerance $\varepsilon$, yielding a data-driven definition of the system's equilibrium spillover network [2203.01912].

In multilayer, time-varying BSG, the graph may also vary through time $t$ relative to exogenous covariates or evolving network topologies, yielding dynamic families of BSGs indexed by both $h$ and $t$ [2310.17473].

## 4. Inference Algorithms and Uncertainty Quantification

Parameter inference in BSG is Gibbs-style MCMC. For the VAR approach:
1. Sample posterior draws $\{(\beta^{(m)}, \Sigma_a^{(m)})\}$ alternately.
2. For each draw and candidate $h$, compute $\psi_i^{(m)}$, $w_{h,jk}^{(m)}$, and $s_h^{(m), k\to j}$.
3. Average over $m$ for posterior means and quantify credible intervals (e.g., highest posterior density) for each edge [2203.01912].

In SAR–SV BSG, block-Gibbs or slice sampling is used for $\beta$, latent volatilities $h_{j,t}$, network weights $\delta$, and exposures $\rho$. The edge weights $w_{i \to j, t}$ are computed at each MCMC iteration, and their empirical distribution defines posterior mean and uncertainty at all time points [2310.17473].

This comprehensive propagation of posterior uncertainty through all graph weights and node scores enables credible interval estimation for all systemic risk and influence metrics.

## 5. Systemic Risk, Influence, and Vulnerability Metrics

The BSG induces natural systemic risk and node importance measures:
- **Total $h$-spillover index**: $S_h = \sum_{j\neq k} s_h^{k\to j}$, summarizing overall network connectedness.
- **Vulnerability (sink) score** for node $j$: $V_h(j) = \sum_{k\neq j} s_h^{k\to j}$, representing the fraction of $j$'s forecast error variance due to others.
- **Influence (source) score** for node $k$: $I_h(k) = 100 \frac{\sum_{j\neq k} s_h^{k\to j}}{S_h}$, quantifying the share of systemic spillover originating from $k$.

Analogous decompositions for direct, indirect, and total spillover effects are specified in dynamic SAR-based BSG via the spatial multiplier $S_t$, separating contributions from own shocks vs. propagated (network) shocks [2310.17473]. These metrics inherit full Bayesian uncertainty quantification.

## 6. Empirical Comparisons and Application Domains

Synthetic studies for VAR-based BSG (e.g., $d=20$, various network topologies and noise configurations) show that BSG yields near-perfect normalized discounted cumulative gain (NDCG@20 $\approx 0.96$–$0.99$) in ranking true source or sink nodes, significantly outperforming dynamic Bayesian network (DBN) and graphical VAR (GVAR) baselines (typical NDCG 0.71–0.90), particularly under correlated errors and complex network structure [2203.01912]. BSG accurately recovers influencer and sink structure in both linear and nonlinear (e.g., Lotka–Volterra) data.

As a real-world demonstration, VAR-based BSG mapped PM2.5 spillovers during the 2019 Kincade wildfire across Northern California, delineating sources (Sonoma County; influence $\sim$41% with 95% HPDI [17.9%, 62.7%]) and vulnerable sinks (Alameda, Contra Costa, etc.), clarifying both direct and indirect transmission pathways for environmental risk and supporting the design of public-health interventions [2203.01912].

Multilayer SAR–SV BSG has been applied to international stock returns and volatility for the G7, revealing distinct roles of cooperative versus conflictual network ties, exposure heterogeneity (e.g., U.S. vs. EU members), and dynamic patterns of direct/indirect spillovers across time and economic shocks [2310.17473].

## 7. Extensions and Scope of the BSG Framework

BSG encompasses both stationary vector autoregressive and panel spatial autoregressive settings, supporting a range of structural assumptions:
- **Multi-horizon, multi-layer, and time-varying graphs**: BSG can model evolving network dependencies, allowing for covariate-driven or exogenously observed edge evolution [2310.17473].
- **Structural and observation noise sophistication**: Inclusion of stochastic volatility or non-Gaussian error models supports robust inference in volatile environments.
- **Multimodal uncertainty quantification**: BSG's use of posterior sampling provides distributional—rather than pointwise—systemic risk estimands, supporting decision-making under uncertainty.

A distinctive property is interpretability: edge weights in BSG are directly tied to the FeVD or SAR structure, providing a natural causal and predictive decomposition. Current implementations, sample code, and applications can be found at https://github.com/gdeng96/bsg [2203.01912].

---

**Key references:**  
- Bayesian Spillover Graphs for Dynamic Networks [2203.01912]  
- Bayesian SAR model with stochastic volatility and multiple time-varying weights [2310.17473]

Source: https://www.emergentmind.com/topics/bayesian-spillover-graphs-bsg