- 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.
- 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).
- VaR.py is the python equivalent of VaR_Manual.R. The provided GoogleColab notebook executes the code.
- However, it is recommended to use either VaR_U.Rmd or Var_U.R as they offer more functionalities.
- 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.
-
Notifications
You must be signed in to change notification settings - Fork 1
Value of risk calculation for portfolios in Dhaka Stock Exchange
License
tanvird3/Value_at_Risk
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Value of risk calculation for portfolios in Dhaka Stock Exchange
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published