BVARSVResult#

class cultivars.multivariate.large_dim.volatility.BVARSVResult(*, endog, names, order, trend, prior_label, coefficients, deterministic, beta_mean, sigma_u, beta_draws, sigma_draws, h_draws, impact_draws, vol_of_vol, resid, fittedvalues, nobs, n_draws, n_burn, thin)[source]#

A fitted stochastic-volatility BVAR: one system, a path of covariances.

The family’s shared propagation surface, with the covariance read at the end of the sample: sigma_u and the covariance draws are Sigma_T = A^{-1} diag(exp h_T) A^{-T}, the covariance relevant for what comes next, and the predictive propagates each draw’s log-variance random walk forward from there. The full history lives in h_draws and volatility_path().

The triangular factorization is taken in the order of names at estimation time, so – as for the TVP-SV model – the recursive ordering is a structural declaration already made; orthogonalized responses inherit it.

Variables:
  • prior_label (str) – Short description of the prior estimated under.

  • h_draws (NDArray[double]) – (S, nobs, k) kept log-variance path draws.

  • impact_draws (NDArray[double]) – (S, k, k) kept draws of the unit-lower A^{-1}.

  • vol_of_vol (NDArray[double]) – (k,) posterior mean random-walk variances of the log volatilities.

  • n_draws (int) – Total sampler iterations.

  • n_burn (int) – Burn-in discarded.

  • thin (int) – Post-burn thinning.

Attributes#

endog

The observed panel.

names

Variable labels, in column order.

order

Autoregressive order.

trend

Deterministic specification.

prior_label

coefficients

(p, k, k) lag stack at the posterior mean.

deterministic

(n_det, k) deterministic block at the posterior mean.

beta_mean

(w, k) full posterior mean coefficient matrix.

sigma_u

(k, k) posterior mean innovation covariance -- for a heteroskedastic member, the covariance its own docstring names.

beta_draws

(S, w, k) coefficient draws.

sigma_draws

(S, k, k) covariance draws, one per kept draw.

h_draws

impact_draws

vol_of_vol

resid

Residuals at the posterior mean.

fittedvalues

One-step means at the posterior mean.

nobs

Effective sample size.

n_draws

n_burn

thin

k_endog

Number of endogenous variables.

n_kept

Posterior draws retained.

observed

The effective sample the replications are shaped like, (nobs, k).

stable_share

Posterior probability that the system is stable.

Methods#

convergence(*chains[, include, exclude, ...])

Assess the sampler's convergence over the retained draws.

credible_interval(equation, regressor)

One coefficient's posterior summary: 16th percentile, mean, 84th.

forecast([steps, seed])

The posterior predictive: parameter and shock uncertainty.

forecast_paths([steps, seed])

The posterior predictive's raw simulated paths, one per kept draw.

irf([horizon, orthogonalized, cumulative, ...])

Posterior mean impulse responses.

irf_bands([horizon, orthogonalized, ...])

Posterior bands of the impulse responses.

posterior_replications([n_replications, seed])

Replicated effective samples, one per posterior draw used.

simulate([n, seed, burn, draw])

A fresh sample path from the fitted system at the posterior mean or at one draw.

summary()

The estimation summary, renderable as text, HTML, or a dataframe.

volatility_path(name)

One equation's posterior innovation standard deviation path.