Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 1 ( 5 0 points ) Consider the log - returns of 8 popular stocks including 'AAPL', 'AMZN', 'GOOGL', 'META', ' MSFT ' ,
Problem points
Consider the logreturns of popular stocks including 'AAPL', 'AMZN', 'GOOGL', 'META',
MSFTNFLX 'NVDA' and TSLA', from to
The price data can be acquired using the following code:
from pandasdatareader inport data as pdr
import yfinance as yf
yfpdroverride
stocks AAPL 'AMZN', 'GOOGL', 'META', MSFTNFLX 'NVDA', 'TSLA'
prices pdrgetdatayahoostocks start endAdj C
a Compute the logreturns of the stocks and divide the data into training and test.
Consider the Markowitz's MeanVariance Portfolio MVP formulated as
subject
where is the expected value mean and is the covariance matrix of the logreturns on
the training data Choose evenly spaced values of in logarithmic scale
using nplogapace and plot the efficient frontier, or the curve of expected return
versus volatility where is the solution to
b Design the IVP, GMVP MDCP and MSRP portfolios based on the training insample
data. You may use the cvxpy package for portfolio optimization.
c Compute the insample expected retum and volatility for each of the designed portfolios
and plot them on the return volatility tradeoff curve. Which portfolios are on the efficient
frontier? Which portfolio has the highest insample Sharpe ratio? Can you choose a proper
value of via the MVP portfolio to achieve the same performance?
d Plot the weight allocation of the assets on training data for each portfolio similar to the
figure below and compare with the EWP portfolio.
e Compute the outofsample annualized Sharpe ratio, annualized return and annualized
volatility for the designed portfolios and compare with the EWP. Which portfolio scheme
would you choose then? You may use the empyrical module.
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