ECON 490 Homework 1 Spring 2016: Due: Feb 3 (Wed) 8am
ECON 490 Homework 1 Spring 2016: Due: Feb 3 (Wed) 8am
Spring 2016
Submission
Please read the course material (slides and lecture note) provided in
the course webpage.
1
1 Part I: Review Questions
Consider the following (actual) monthly adjusted closing price data for Star-
bucks stock over the period December 2011 through December 2012:
1. Using the data in the table, what is the simple monthly return between
the end of December, 2011 and the end of January 2012? If you invested
$10,000 in Starbucks at the end of December 2011, how much would
the investment be worth at the end of January 2012?
5. Using the data in the table, compute the actual simple annual return
between December 2011 and December 2012. If you invested $10,000
2
in Starbucks at the end of December 2011, how much would the in-
vestment be worth at the end of December 2012? Compare with your
result in part (3).
6. Using the data in the table, compute the actual annual continuously
compounded return between December 2011 and December 2012. Com-
pare with your result in part (4). Convert this continuously com-
pounded return to a simple return (you should get the same answer
as in part 5).
1. Import the data in the …le sbuxPrices.csv using the R function read.csv()
into the data.frame object sbux.df. Follow the commands in econ490lab1.r
to manipulate the data.
3
3 Part III. How to get data from Yahoo
To get data from Yahoo! do the following for each series to be downloaded:
1. Go to http://…nance.yahoo.com/
2. In the Get Quotes box type the symbol of the stock for which you want
data. For example, the symbol for Microsoft is MSFT. If you do not
know the ticker symbol use the symbol lookup link at the right of the
box.
3. The recent quote for your stock as well as a wealth of other information
will be presented on a new page. To get historical prices, click the
historical prices link on the upper left panel of the page.
4. A new page will open and you will be able to specify the date ranges
for the data to be downloaded and the frequency of the data (daily,
weekly or monthly).
5. After setting the date and frequency information, click the get prices
button. This brings up a table with your speci…ed data.
6. At the bottom of the displayed table click on Download to Spreadsheet.
This will bring up a Save As dialogue box. Specify a name for the
…le and save to disk. Each …le will contain 6 columns (as in the table
below). For monthly data, the column labeled Open gives the opening
price at the beginning of the month, the column labeled High gives the
highest price during the month, the column labeled Low gives the lowest
price during the month, the column labeled Close gives the closing
price during the month and the column labeled Volume gives the total
monthly volume. The open and the close data have been adjusted
for dividends and stock splits. Use the (adjusted) close data for your
analysis.
7. After downloading your data …le, you need to reverse the time ordering
of the data. To reverse the time ordering of the data do the following.
Open the .csv …le containing your data in Excel. Highlight all of the
data (including the column headers). Then select Data/Sort which
brings up the Sort dialogue box. In the Sort by box choose Date, click
the Ascending option and the OK box. Your data will be sorted from
the earliest date to the latest date.