Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mlysy/svcommon

Fast inference for a common-factor stochastic volatility model
https://github.com/mlysy/svcommon

Last synced: 2 months ago
JSON representation

Fast inference for a common-factor stochastic volatility model

Awesome Lists containing this project

README

        

# svcommon: Fast Inference for Common-Factor Stochastic Volatility Models

*Martin Lysy*

[![R-CMD-check](https://github.com/mlysy/svcommon/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/mlysy/svcommon/actions/workflows/R-CMD-check.yaml)

---

### Description

Provides various tools for estimating the parameters of the common-factor multivariate stochastic volatility model of [Fang et al (2020)](https://onlinelibrary.wiley.com/doi/full/10.1002/cjs.11536) and extensions. In particular, the complete-data likelihood implementation scales linearly in the number of assets, and latent volatilities are efficiently marginalized using the Laplace approximation in the R package [**TMB**](https://CRAN.R-project.org/package=TMB) with very high accuracy. Combined with a carefully initialized block coordinate descent algorithm, maximum likelihood estimation can be conducted two orders of magnitude faster than with alternative parameter inference algorithms.

### Installation

Install the R package [**devtools**](https://CRAN.R-project.org/package=devtools) and run
```r
devtools::install_github("mlysy/svcommon", INSTALL_opts = "--install-tests")
```

### Usage

Please see package example code in `vignette("svcommon")`.