MinnesotaPrior#
- class impulso.priors.MinnesotaPrior(*, tightness=0.1, decay='harmonic', cross_shrinkage=0.5)[source]#
Bases:
ImpulsoModelMinnesota prior for VAR coefficient shrinkage.
tightness is always held fixed at the value supplied; there is no estimation path for it. That is the deliberate contrast with
NIWPrior, whoseselectflag estimates the tightness by marginal likelihood — the independent-Normal coefficient prior used here has no closed-form marginal likelihood to maximise, so the shrinkage stays a modelling choice rather than an estimand.- Parameters:
- tightness#
Overall shrinkage toward prior mean. Must be > 0. Always fixed, never estimated from the data.
- Type:
- 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:
- build_priors(n_vars, n_lags)[source]#
Build prior mean and standard deviation arrays for VAR coefficients.
- model_config = {'frozen': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].