Coder Social home page Coder Social logo

tanvird3 / value_at_risk Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 9 MB

Value of risk calculation for portfolios in Dhaka Stock Exchange

Home Page: https://colab.research.google.com/drive/1LoKE-x7iq1bdcIxDX2rh91gGJZJqwnzx?usp=sharing

License: MIT License

R 60.95% Python 39.05%
dhaka-stock-exchange portfolios risk risk-calculation

value_at_risk's Introduction

Value of risk calculation for portfolios in Dhaka Stock Exchange

Code Explanation

  1. Data can be retrieved either from DSE website or from downloaded file. Variance Covariance method is implemented by default, other methods can also be incorporated by changing parameters.
  2. VaR_U.Rmd is an R Notebook and generates a html page with the outputs, VaR_U.R is an R code file and writes outputs to an .xlsx file. VaR_Manual.R contains codes for calculating VaR manually (without utiliing built-in functions).
  3. VaR.py is the python equivalent of VaR_Manual.R. The provided GoogleColab notebook executes the code.
  4. However, it is recommended to use either VaR_U.Rmd or Var_U.R as they offer more functionalities.
  5. We have to provide portfolio information in the form of port.xlsx, the file should have Instrument names in the first column, Market Values in the second and Cost Price in the third column. The column names should be 'Instrument', 'MKT_VAL' and 'Cost' respectively.

value_at_risk's People

Contributors

tanvird3 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

zahidsqldba07

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.