Giter Site home page Giter Site logo

yatshunlee / caviar Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 2.0 30.93 MB

Measure market risk by CAViaR model

License: BSD 3-Clause "New" or "Revised" License

Jupyter Notebook 98.43% Python 1.57%
risk-management caviar market-risk quantitative-finance quantitative-trading value-at-risk volatility-modeling quantile-regression backtesting var-forecasting dqtest dynamic-quantile-test var-backtesting

caviar's Introduction

Evaluate CAViaR by Quantile Regression

This is a group project of SDSC6013 Topics in Financial Engineering and Technology at City University of Hong Kong (CityU). We built a value-at-risk model directly modeling the quantile return directly by referring the paper CAViaR: Conditional Autoregressive Value at Risk by Regression Quantiles by Engle and Manganelli (2004).

Disclaimer

As I found the original optimization approach is computational costly, I have modified a bit the box constraints as well as the starting approach (the initial guess/start of the estimated parameters). For details, you may want to take a look on the documentation (you may also easily change the setting back accordingly in the source code) or the presentation.pdf about the experiments and results. Although the differences are insignificant, please use the package caviar with caution.

Known Issues

You are welcome to report bug in https://github.com/yatshunlee/CAViaR-Project/issues. :)

Quick Summary

We constructed two libraries: caviar and var_tests to model the value at risk and backtest the VaR estimate. For presentation, we constructed a dashboard to showcase how it can be possibly applied. If you are looking for some inspiration, we strongly suggest to take a look of the documentation below and the code in notebook-example.

Libraries:

  1. CAViaR Model caviar
  2. VaR Test var_tests

Demo Application:

Documentation:

Main Author(s) / Maintainer(s) of caviar and var_tests:

  1. Jasper Lee

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.