MinnesotaPrior#

class impulso.priors.MinnesotaPrior(*, tightness=0.1, decay='harmonic', cross_shrinkage=0.5)[source]#

Bases: ImpulsoModel

Minnesota prior for VAR coefficient shrinkage.

Parameters:
tightness#

Overall shrinkage toward prior mean. Must be > 0.

Type:

float

decay#

How coefficients shrink on longer lags.

Type:

Literal[‘harmonic’, ‘geometric’]

cross_shrinkage#

Shrinkage on other variables’ lags vs own. 0 = only own lags, 1 = equal.

Type:

float

Expand for references to impulso.priors.MinnesotaPrior

The Minnesota Prior / Usage in Impulso

The conjugate VAR: fast Bayesian estimation / When to reach for ConjugateVAR instead of the NUTS VAR / Scope

build_priors(n_vars, n_lags)[source]#

Build prior mean and standard deviation arrays for VAR coefficients.

Parameters:
  • n_vars (int) – Number of endogenous variables.

  • n_lags (int) – Number of lags.

Returns:

Dictionary with keys ‘B_mu’ and ‘B_sigma’ as numpy arrays.

Return type:

dict[str, ndarray]

model_config = {'frozen': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].