Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Pull the daily stock returns of GM and TSLA from 2 0 1 3 to today using the following chuck on code. library ( tidyquant
Pull the daily stock returns of GM and TSLA from to today using the following chuck on code.
librarytidyquant
librarydplyr
librarytidyr # for spread function to reshape data.frame from long table to wide table
librarylubridate
dattqgetcGM'TSLA' get "stock.prices", completecases TRUE
# data of different tickers are stacked together
dat head
datdat
selectsymboldate,adjusted
spreadsymboladjusted
dat head
# data operation: get monthly returns
datdat
mutate
GMGMlagGM # returns are raw monthly percentage returns not excess return
TSLATSLAlagTSLA
filterisnaGMisnaTSLA # make sure there is no missing values
Viewdat
Use the two return series to find the global minimum variance portfolio through allocating your fund between
the two assets. Answer the following questions.
What is the weight allocation for the first asset and the second asset?
What is the average portfolio return historically? Hint: check with mean function
What is the standard deviation of the portfolio return? Hint: check with sd function
What are the standard deviation of the first asset and the standard deviation of the second asset?
Is the portfolio standard deviation lower than both of the individual assets? What is the benefit of
holding multiple assets in a portfolio?
If the two assets span the entire investment opportunity set, ie the market only has the two assets
and the weighted sum of the two assets with all possible weight allocations, is this global minimum
variance portfolio on the efficient market frontier?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started