EconPapers    
Economics at your fingertips  
 

Modeling Univariate and Multivariate Stochastic Volatility in R with stochvol and factorstochvol

Darjus Hosszejni and Gregor Kastner

Papers from arXiv.org

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.

Date: 2019-06, Revised 2021-02
New Economics Papers: this item is included in nep-ets and nep-rmg
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (18)

Published in Journal of Statistical Software, 100(12), 1-34 (2021)

Downloads: (external link)
http://arxiv.org/pdf/1906.12123 Latest version (application/pdf)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:arx:papers:1906.12123

Access Statistics for this paper

More papers in Papers from arXiv.org
Bibliographic data for series maintained by arXiv administrators ().

 
Page updated 2025-03-22
Handle: RePEc:arx:papers:1906.12123