Financial portfolio selection using the multifactor capital asset pricing model and imported options data

Diversification and portfolio selection are integral parts of a finance curriculum. In this article, a multifactor capital asset pricing model is fit for components of the Dow Jones Composite Index using data from Yahoo! Finance. Along with the capital asset pricing model’s Beta, other statistics that are common criteria for portfolio selection are calculated: historic standard deviation (total risk), total return, average daily return, and Sharpe and Treynor measures. Two new commands are introduced, fetchcomponents and fetchportfolio, that automate the entire process. A third new command, fetchyahoooptions, is provided to download and parse equity options data from Yahoo! Finance webpages and, optionally, to calculate the implied volatilities for the downloaded options.

Issue Date:
Publication Type:
Journal Article
DOI and Other Identifiers:
dm0070 (Other)
PURL Identifier:
Published in:
Stata Journal, Volume 13, Number 3
Page range:
Total Pages:

Record appears in:

 Record created 2017-04-01, last modified 2018-01-23

Download fulltext

Rate this document:

Rate this document:
(Not yet reviewed)