-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New feature: Value at Risk (VaR) #106
New feature: Value at Risk (VaR) #106
Conversation
We want to compute the value at risk (VaR) of the portfolio over the selected period of time (the 'freq' variable).
Awesome :) I'll probably have a closer look at it over the weekend. Just some minor things for now:
and with that, you should update the release number references in README.md and README.tex.md as well (but that is now automated, read more about below)
To automate the above 2 steps, I recently added some scripts to the repo. You can run That way, you don't have to worry about my CDO and can only focus on the new features you are interested in. Btw, thank you once again for your hard work. Hope you are learning more and more about finance that way. :) |
Forgot to mention, you'd have to install isort first. I added it to requirements_dev.txt a few days ago. So you can simply install it with |
UPDATE:
Apologies for spamming you with messages and most of them were bugged ;) |
Thanks, Frank. I'll go over these steps soon. Yes, I'm learning more about finance this way. Thank you so much! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few questions (for my own understanding), and a few minor changes.
Overall very good and I'm grateful for this addition.
I'd like to add one more request: Could you also please add this to one of the examples with a bit of text, like you did for the beta parameter? |
converting string into f string Co-authored-by: Frank Milthaler <fmilthaler@users.noreply.github.com>
Thank you for the review and the improvements. Please feel free to ask for any clarification/double-check. It is useful for me as well since I am not a field expert myself : )
Sure, I'll go over it asap. All the best |
Very good, and thank you very much for adding the new feature to the example Example-Analysis. :) |
The Value at Risk (VaR) is a way to evaluate the risk of a portfolio. It measures the potential loss that a portfolio can have over a certain period with a specified confidence level. With respect to the beta parameter, variance, etc., VaR uses a probability distribution, and it assumes that returns are normally distributed. Using the variance-covariance method, we want to compute the portfolio's value at risk (VaR) over the selected period (the 'freq' variable). The Monte Carlo approach is left for further development. --------- Co-authored-by: Frank Milthaler <fmilthaler@users.noreply.github.com>
The Value at Risk (VaR) is a way to evaluate the risk of a portfolio. It measures the potential loss that a portfolio can have over a certain period with a specified confidence level. With respect to the beta parameter, variance, etc., VaR uses a probability distribution, and it assumes that returns are normally distributed.
Using the variance-covariance method, we want to compute the portfolio's value at risk (VaR) over the selected period (the 'freq' variable). The Monte Carlo approach is left for further development.