Skip to content
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

correlation #6

Closed
jojogh opened this issue Feb 19, 2021 · 2 comments
Closed

correlation #6

jojogh opened this issue Feb 19, 2021 · 2 comments

Comments

@jojogh
Copy link

jojogh commented Feb 19, 2021

I noticed that when generating the scenario by multi-assets, you consider the correlations. But, seems that the correlation matrix is generated by mx.IdentityMatrix(), and this one seems not to be implemented? Right?

BTW, if you considered the correlation matrix, what method will be used to calibrate the corr matrix?

Thanks!

@montrixdev
Copy link
Owner

montrixdev commented Feb 20, 2021

Hi jojogh,
a sample correlation matrix input is considered after make mx.IdentityMatrix().

corrMatrix = mx.IdentityMatrix(2)
corrMatrix[1][0] = 0.5
corrMatrix[0][1] = 0.5

this setting is required to calibrate first as you comment.
i write a script for calibrating by historical data. you can check "correlation_test" method in "run_test_etc.py".
i think other calibration methods like EWMA or factor model should be implemented.
thank you for comment.

@jojogh
Copy link
Author

jojogh commented Feb 22, 2021

many thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants