+ Reply to Thread
Results 1 to 12 of 12

Creating Random Portfolios from list of assets

  1. #1
    Registered User
    Join Date
    10-19-2010
    Location
    Cape Town South Africa
    MS-Off Ver
    Excel 2003
    Posts
    5

    Creating Random Portfolios from list of assets

    Hi there,

    This is my first post (hopefully of many).

    I need assistance in creating 100 random portfolios from a list of 10 assets. I have the return history of the 10 assets and I'm able to calculate the mean and standard deviation of each asset as well as the covariance/correlation between each of the 10 assets. I want to choose to portfolio with the least variance as well the portfolio with the lowest and highest return.

    Would it also be possible to introduce a limit that constrains the maximum allocation to each asset at 25%?

    Many thanks for any assistance on this matter.

    Regards,
    Grant Hogan

  2. #2
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: Creating Random Portfolios from list of assets

    Grant - you want to upload a sample sheet? It will help define the problem more clearly.

    Cheers

  3. #3
    Registered User
    Join Date
    10-19-2010
    Location
    Cape Town South Africa
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Creating Random Portfolios from list of assets

    Hi Amit, thank you very much for your assistance.

    My apologies for not attaching any of the information. Please see information attached.

    I have calcuated the Return (annualised return) and Risk (annualised standard deviation) and correlation matrix of the assets.

    Regards,
    Grant
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-19-2010
    Location
    Cape Town South Africa
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Creating Random Portfolios from list of assets

    The portfolio weights also need to sum to 100%.

  5. #5
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: Creating Random Portfolios from list of assets

    Grant,

    please see attached.

    The sheet creates one random portfolio at a time. I've added in a macro to calculate values for 100 random portfolios and copy-paste the results.

    To limit the allocation to 25% to anyone portfolio, I've used the allocation for the 18th portfolio as the balancing figure.

    Let me know if you have questions.

    Cheers


    PS: if you are looking for the efficient frontier, there may be better ways to do this than building 100 random portfolios.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-19-2010
    Location
    Cape Town South Africa
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Creating Random Portfolios from list of assets

    Hi Amit, thanks very much for the attached, extremely helpful. Thank you also for your advice on creating efficient frontier.

    I have in the past used software that optimizes a portfolio and creates an efficient frontier based on mean-variance optimization. The attached spread sheet is great because in this exercise I'm not really that interested in the best risk adjusted or highest return portfolios only, moreover, I'm interested in looking the dispersion of the various portfolios that could have been constructed (the very best to the very worst and getting a sense of what relative performance could have been).

    Again, thank you very much. I will definitely endeavour to assist you and others as much I can.

    Regards,
    Grant

  7. #7
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: Creating Random Portfolios from list of assets

    Most welcome. All the best with the exercise.

    Please change the title to say [SOLVED] in the title of this thread.

    And please click on "* Add reputation" below if this was helpful. :-)

    Cheers

  8. #8
    Registered User
    Join Date
    10-19-2010
    Location
    Cape Town South Africa
    MS-Off Ver
    Excel 2003
    Posts
    5

    Smile Re: Creating Random Portfolios from list of assets SOLVED

    Re: Creating Random Portfolios from list of assets SOLVED

  9. #9
    Registered User
    Join Date
    08-01-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    1

    Re: Creating Random Portfolios from list of assets

    Apologies if I am being thick.... but I downloaded the spreadsheet and although I can run the macro, I can't access the code so that I can recycle it in my own file....
    Is it hidden/protected?

    - Edit: sorry I found the code, was being rather thick, overnight work, etc.
    Last edited by trenator; 08-01-2015 at 06:27 AM. Reason: I was being thick, sorry, tried to delete post

  10. #10
    Registered User
    Join Date
    07-31-2020
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    6
    Created a more appropriate new thread for the query
    Last edited by ScorpionHaven; 10-12-2020 at 03:33 AM. Reason: Created a more appropriate new thread for the query

  11. #11
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Creating Random Portfolios from list of assets

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

  12. #12
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Creating Random Portfolios from list of assets

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Quang PT

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Creating a list of random #s with bounds
    By mljs54 in forum Excel General
    Replies: 2
    Last Post: 03-18-2011, 01:14 PM
  2. Creating random list from a master list
    By Railwayhouse in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-11-2010, 11:45 PM
  3. Solver - creating portfolios
    By Tonii in forum Excel General
    Replies: 3
    Last Post: 09-24-2006, 06:52 PM
  4. Optimising portfolios with solver?
    By Oana in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2005, 06:05 AM
  5. How do I find random number in list of random alpha? (Position is.
    By jlahealth-partners in forum Excel General
    Replies: 0
    Last Post: 02-08-2005, 02:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1