Comments (10)
Hi, not by now, when I implement that feature I will release and example.
from riskfolio-lib.
I think is good to have this feature asap if you want to further increase the visibility and outreach of the package because industry people usually work with their own covariance matrix. De Prado's research was very influential on this.
from riskfolio-lib.
Hi, well by now is not my priority to include that feature. Now I'm focus on other features like additional hierarchical clustering techniques, NCO model and relaxed risk parity.
from riskfolio-lib.
Up to you. Sound interesting additions. But my advice is that people would care more about a feature having a user-specified covariance because this is at the heart of all portfolio max problems. In practice, people first try to remove as much of the noise in the covariance matrix as possible by applying their own customised techniques before they use any optimisation routine.
Anyways, looking forward to these new features then.
from riskfolio-lib.
Covariance is only the heart of Markowitz related models. HRP and HERC use naive risk parity and only need covariance when risk measure is variance. For covariance case, Riskfolio-Lib has options to reduce noise, for example we can use shrinkage methods like ledoit-wolf, oas and oracle; also you can use ewma methods to increase the weights of last observations in estimated covariance.
from riskfolio-lib.
Correct. But read De Prado's Asset Management on the covariance matrix. I am only telling you my opinion that between those priorities my sense is that the industry would rather prefer to have the feature with a user-specified covariance matrix, rather than other features you mentioned.
But again, up to you. You did an excellent job so far and thanks for the library.
from riskfolio-lib.
I know that some people prefer to build their own covariance matrix, in Portfolio object there is that option but not in HCPortfolio object. I will try to add this feature when I implement NCO (something like factors_stats, blacklitterman_stats, blfactors_stats and custom cov) but it's not my priority for now. As Riskfolio-Lib is my hobby, in most cases the features that I add are models that seems interesting to me from the mathematical perspective.
from riskfolio-lib.
Hi @msh855, I implement the option to use custom covariance in hierarchical clustering portfolios. Update your Riskfolio-Lib version to the latest to try the new features.
from riskfolio-lib.
Thanks for letting me know. Though covariance matrices may not change anything to a hierarchical clustering portfolio because such methods construct clusters based on the relative distance between assets which different covariances may not affect much. So, clustering and hence optimal shares are likely to be the same across different covariance matrices. I have tried this in the past and indeed the portfolio was robust to covariance matrices. But happy to investigate again based on your RiskFolio capabilities.
from riskfolio-lib.
Hi @msh855, custom covariance could affect hierarchical portfolios in two ways:
- If the distance metric is covariance-based, the custom covariance change the distance metric and the hierarchical structure.
- In the optimization process, custom covariance change the inter and intra cluster variance calculations.
from riskfolio-lib.
Related Issues (20)
- Error:object arrays are not supported in optimization using constraints HOT 12
- Ver. 4.1.1. does not load HOT 9
- Negative CAGR HOT 2
- Allowing sht (to allow short ) in the HCPortfolio NCO method HOT 3
- risk parity portfolio comparison to R HOT 1
- Reports.excel_report() can't deal with multiple portfolio HOT 1
- Pandas 2.0 HOT 5
- [Feature Request] Add Treynor Black Model for Portfolio Optimization Feature HOT 1
- Optimization without return streams HOT 1
- Custom weights Contrain HOT 1
- module 'riskfolio.external.cppfunctions' has no attribute 'kurtosis_matrix' HOT 1
- Riskfolio > 4.0 bug in HRP constraints HOT 5
- example not working HOT 7
- Plotting erros HOT 1
- Constraint violation HOT 2
- LaTeX legend with ParserError HOT 3
- Constraints in Riskfolio does not work HOT 1
- Conditional Portfolio Allocation Constraints HOT 1
- Can online portfolio problems be solved? HOT 1
- Tutorial 18-AttributeError: 'NoneType' object has no attribute 'to_numpy'-- pls. look into HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riskfolio-lib.