Answered step by step
Verified Expert Solution
Link Copied!

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 2013 to today using the following chuck on code.
library(tidyquant)
library(dplyr)
library(tidyr) # for spread function to reshape data.frame from long table to wide table
library(lubridate)
dat-tq_get(c('GM','TSLA'), get = "stock.prices", complete_cases = TRUE)
# data of different tickers are stacked together
dat %>% head()
dat-dat %>%
select(symbol,date,adjusted)%>%
spread(symbol,adjusted)
dat %>% head()
# data operation: get monthly returns
dat-dat %>%
mutate(
GM=GM/lag(GM)-1, # returns are raw monthly percentage returns not excess return
TSLA=TSLA/lag(TSLA)-1
)%>%
filter(!is.na(GM),!is.na(TSLA)) # make sure there is no missing values
View(dat)
Use the two return series to find the global minimum variance portfolio through allocating your fund between
the two assets. Answer the following questions.
1. What is the weight allocation for the first asset and the second asset?
2
2. What is the average portfolio return historically? (Hint: check with mean function).
3. What is the standard deviation of the portfolio return? (Hint: check with sd function).
4. What are the standard deviation of the first asset and the standard deviation of the second asset?
5. Is the portfolio standard deviation lower than both of the individual assets? What is the benefit of
holding multiple assets in a portfolio?
6. If the two assets span the entire investment opportunity set, i.e., 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?
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Certified Lease And Finance Professionals Handbook

Authors: Deborah Reuben, Certified Lease & Finance Professionals, Equipment Finance Industry Experts

6th Edition

171743388X, 978-1717433886

More Books

Students also viewed these Finance questions

Question

=+function g such that A[ x (0, 1): f(x) + g(x)]

Answered: 1 week ago