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.
翻译:蒸汽挥发模型(SV)是非线性国家空间模型,在安装和预测 hesteroskedasic时间序列方面越来越受欢迎,然而,由于潜伏数量众多,其有效估计是非三重的,使SV模型容易与数据相匹配的软件很少。我们的目标是通过在两个R包中提供四个SV模型的新应用来缓解这一问题。包含和记录了几个独特的特点。与以前的版本相比,Stochvo现在能够处理线性平均模型、重尾型SV和具有杠杆作用的SV。此外,我们最近引入了满足多变性SV的因子。两套软件都通过传统的R通用通用软件和一系列量制方法提供了一个方便用户的界面。通过对R至C++的接口和在后一个包中进行繁重的工作实现了兼容效率。我们手头的文件详细讨论了Bayesian SV估计,并通过各种实例展示新软件的使用。