Skip to content

Is there any stock limit for Efficient frontier  #45

Closed

Description

@gautam1858

Can I use 500 stocks for Portfolio optimization to calculate weights (like recommend gamma value, in the docs it says for 20 stocks gamma value is 1, what if we use 500 stocks ) ?

We tried with gamma value as 100 for 500 stocks but 80% of the tickers were assigned zero.

Can you please help us with this ?

Activity

  1. robertmartin8 commented on Aug 29, 2019

    @robertmartin8
    Collaborator

    Hi,

    There are a number of choices to increase the number of nonzero weights:

    • set a minimum weight in the EfficientFrontier constructor, e.g weight_bounds = (1e-3, 1).
    • try with larger and larger gammas. Gamma essentially pulls the weights towards the equal-weight portfolio.
    • average the efficient frontier weights with the equal-weight portfolio.

    Ultimately, this concentration of weights is an inherent issue with efficient frontier optimisation.

    Best,
    Robert

  2. added
    question
    on Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions