Coder Social home page Coder Social logo

Comments (10)

dcajasn avatar dcajasn commented on May 23, 2024

Hi, not by now, when I implement that feature I will release and example.

from riskfolio-lib.

 avatar commented on May 23, 2024

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.

dcajasn avatar dcajasn commented on May 23, 2024

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.

 avatar commented on May 23, 2024

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.

dcajasn avatar dcajasn commented on May 23, 2024

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.

 avatar commented on May 23, 2024

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.

dcajasn avatar dcajasn commented on May 23, 2024

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.

dcajasn avatar dcajasn commented on May 23, 2024

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.

 avatar commented on May 23, 2024

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.

dcajasn avatar dcajasn commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.