Modeling Univariate and Multivariate Stochastic Volatility in R with stochvol and factorstochvol
arXiv:1906.12123 · doi:10.18637/jss.v100.i12
Abstract
Stochastic volatility (SV) models are nonlinear state-space models that enjoy increasing popularity for fitting and predicting heteroskedastic time series. However, due to the large number of latent quantities, their efficient estimation is non-trivial and software that allows to easily fit SV models to data is rare. We aim to alleviate this issue by presenting novel implementations of four SV models delivered in two R packages. Several unique features are included and documented. As opposed to previous versions, stochvol is now capable of handling linear mean models, heavy-tailed SV, and SV with leverage. Moreover, we newly introduce factorstochvol which caters for multivariate SV. Both packages offer a user-friendly interface through the conventional R generics and a range of tailor-made methods. Computational efficiency is achieved via interfacing R to C++ and doing the heavy work in the latter. In the paper at hand, we provide a detailed discussion on Bayesian SV estimation and showcase the use of the new software through various examples.
References in corpus (3)
Cited by in corpus (4)
- Forecasting macroeconomic data with Bayesian VARs: Sparse or dense? It depends!
- On the joint volatility dynamics in dairy markets
- Sophisticated and small versus simple and sizeable: When does it pay off to introduce drifting coefficients in Bayesian VARs?
- Introducing shrinkage in heavy-tailed state space models to predict equity excess returns