VolatilityPrior#
- class cultivars.bayes.priors.VolatilityPrior(*, mu=(0.0, 10.0), phi=(20.0, 1.5), sigma2=(2.5, 0.025))[source]#
The Kim-Shephard-Chib prior on a stationary log-AR(1) volatility law.
\(h_{t+1} = \mu + \phi (h_t - \mu) + \sigma \eta_t\) carries three hyperparameters, and every model in the package whose volatility follows this law – the univariate stochastic-volatility model, the volatility-identified SVAR, the factor stochastic-volatility model – states its prior through this one record: Gaussian on
mu, Beta on \((\phi + 1) / 2\), inverse-gamma onsigma2. The defaults are Kim, Shephard and Chib’s (1998), which put the persistence near0.86a priori and keep the innovation variance small; a model that pinsmufor identification says so and leaves that entry unread.- Variables:
- Raises:
SpecificationError – If a field is not a pair of finite numbers, or if a variance, Beta parameter, shape, or rate is not positive.
Note
“Rate” is the rate of the gamma distribution on the precision \(1 / \sigma^2\), which is the scale of the inverse-gamma itself: the density is proportional to \((\sigma^2)^{-(\mathrm{shape} + 1)} \exp(-\mathrm{rate} / \sigma^2)\).
See also
VolatilityPrior– the public name of this class.
References
Kim, S., Shephard, N., & Chib, S. (1998). Stochastic volatility: Likelihood inference and comparison with ARCH models. The Review of Economic Studies, 65(3), 361-393.
Attributes#
|
|
|
|
|
|
The prior mean of the persistence, \(2a / (a + b) - 1\). |
|
Prior mean of |