Open amoghkulkarnifr opened 8 months ago
Hello @amoghkulkarnifr ,
Thanks for reporting this bug.
For reference, the covariance matrix and the asset returns are:
[0.0003555555555555556, 0.0008] [0.0008, 0.0028666666666666667]
[-0.7999999999999999, -0.4999999999999999]
Unfortunately, I put the public version of this lib on hiatus on my side, because I am focusing on its big brother > https://portfoliooptimizer.io/
So, if your personal project is compatible with the use of a Web API, I would encourage you to have a look to the API doc -> https://docs.portfoliooptimizer.io/index.html
(I confirmed that Portfolio Optimizer Web API is working with your example, the endpoint is -> https://docs.portfoliooptimizer.io/index.html#post-/portfolio/analysis/mean-variance/efficient-frontier)
Otherwise, please understand that I will need some time to have a look at this bug.
Cheers,
Roman
Thank you for your reply, @lequant40.
I completely understand if this takes some time to get resolved, as I saw that the repo was not under active development recently. Just thought of reporting the bug regardless.
I also looked into https://portfoliooptimizer.io briefly, although wasn't sure if the free tier would be sufficient for my use case. (Sorry - would have loved to go for the premium tier, but in a bit of a cash crunch lately :(( )
Nonetheless, thanks again for your attention to this. Phenomenal work on this library overall. Hoping to see it being usable in the future.
For reference, the covariance matrix and the asset returns are:
[0.0003555555555555556, 0.0008] [0.0008, 0.0028666666666666667]
[-0.7999999999999999, -0.4999999999999999]
By the way, I did get the same values for the covariance matrix and asset returns on my side, so that part of the library is working as expected.
Hello @lequant40, I'm trying to use this library for a personal project and it's proving a very valuable learning exercise for understanding the relevant concepts in Portfolio Optimization space. Thanks a lot for making this resource open source!
I was hoping to get some clarification on a bug I'm running into while using method
meanVarianceEfficientFrontierPortfolios
from lib/allocation/mean-variance.js. Here are the details -Describe the bug Getting the following error while using the method
meanVarianceEfficientFrontierPortfolios
-To Reproduce I am trying to run this method on dummy data, like so -
and got the aforementioned error.
Expected behavior
meanVarianceEfficientFrontierPortfolios
method should return n portfolios (n=10 in this case) when called.I would really appreciate it if you could look into this and provide some information. Thanks!