Portfolio Optimization in R, a previous error.

December 25, 2011

(This article was first published on Adventures in Statistical Computing, and kindly contributed to R-bloggers)

I realized that I made a mistake in the calculation of the market weight portfolio from the previous post.  I hold constant the portfolio weights through time. These should be adjusted after each day as prices change.  The market portfolio requires no re-balancing.  What I have is, in essence, a re-balancing back to the original weights at the end of each day.

The equal weight portfolio is OK.  As we assume no transaction costs, it can be re-balanced daily.  In fact, the constant weight is the key assumption of this portfolio, so it SHOULD be re-balanced daily.

The optimal portfolio model also has the same issue.  We are implicitly re-balancing each day.  Our assumption in the optimization was holding for the entire period.

I will make the corrections and post results and updated code.  Being the holiday season, it might take a few days longer than normal.

Merry Christmas!

To leave a comment for the author, please follow the link and comment on their blog: Adventures in Statistical Computing.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Tags: , ,

Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)