Code Monkey home page Code Monkey logo

volatility-garch-var's Introduction

Volatility Modeling: GARCH and Value-at-Risk

Simulate and estimate volatility by GARCH with/without leverage, riskmetriks. VaR compute and test on VaR Violation. These codes use the package rugarch for Volatitly models.

Code files

  1. Financial_Econometrics.R: clean, summarize, and plot the daily return data
  2. garch_simulation.R: simulate and compare the performance of different GARCH models under different distribution
  3. interval_graph.R: compare the estimated intervals of coefficient from different set-up of simulation
  4. garch_estimate.R: GARCH and Value-ar-Risk estimate on daily return data + diagnostics in-sample/out-sample

1. GARCH IN SIMULATIONS

To understand more details about the performance and mechanism of GARCH, we start with the simulation under different set-ups and distribution of error. We use nlminb() for the maximum lilekihood methods in GARCH.
alt tag

2. GARCH

Several models would be applied: GARCH and GARCH-with leverage (eGARCH, TGARCH, APARCH). By AIC and BIC, GARCH(2,1) and eGARCH(2,1) outperforms.

There are six models: (GARCH, eGARCH) x ("ged", "norm", "std"). They would be assessed in both in-sample and out-sample set.

3. VaR

We compute the VaR in-sample and out-sample (given theorerical distibutrion). Then create the hit sequence $H_t$ and conduct 3 tests in the behavior of VaR violations.

volatility-garch-var's People

Contributors

anhdanggit avatar hoangtran26 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.