Question
In your Investments class, you studied or are studying the Capital Asset Pricing Model. You learned that given a set of assets, for a given
In your Investments class, you studied or are studying the Capital Asset Pricing Model. You learned that given a set of assets, for a given return there is a portfolio that attains that return with minimum risk. The set of all such portfolios is called an efficient frontier. You also learned that an investor can maximize her return per unit of risk by holding a portfolio on the Capital Market line (CML) the steepest line that starts at the risk-free portfolio and makes contact with the efficient frontier. The slope of this line is called the Sharpe Ratio and the point at which it touches (is tangent to) the efficient frontier is known as the tangency portfolio.
In this exercise, you will calculate the risk and return of two assets, construct the efficient frontier, find the tangency portfolio, and plot the CML.
Consider two assets A and B. You have observed their prices at the ends of 6 consecutive months. You also know that rate of return on a risk-free investment is 2.2%.
Asset
A B
a.
Month 1
22.00 116.10
Month 2
22.97 123.26
Month 3
23.01 131.68
Month 4
23.46 126.62
Month 5
24.88 131.30
Month 6
24.65 132.25
Store these asset prices in a 2 x 6 matrix. Calculate returns for each asset and store your result in a 2 x 5 matrix. Recall, the return on asset over a given period is its price at the end of the period, minus its price at the beginning of the period, divided by its price at the beginning of the period.
Stuart Urban
Computational Finance 2021 Fall II
b.
Compute the mean and standard deviation (volatility) of each assets return and store your results in two 2x1 vectors, one for means and one for volatilities. Compute the correlation between the asset returns using MATLABs corr() function. Use the documentation to figure out how to use it.
We will now construct long-only portfolios of assets A and B. Define a vector of portfolio weights of Asset A starting at 0 and going to 1 in increments of 0.0001. As portfolio weight is the fraction of your money that you allocate to Asset A, with the remainder going to Asset B. Calculate the expected return and volatility of portfolios containing assets A and B for each weight. Store your answers in two vectors one for expected returns, and one for volatilities.
c.
d.
e.
Find the tangency portfolio and report its portfolio weights on Assets A and B, its expected return, and its volatility. Use MATLAB to do this. Dont just look at the graph.
Hint: recall from calculus that a line is tangent to a curve at the point where the curve has the same slope as the line. For each point on the efficient frontier, approximate its slope using the change in E[R] over the change in sd[R], and compare it to the slope of the line connecting the risk-free portfolio to that point on the efficient frontier. The point at which the slopes are closest to each other is (approximately) the tangency portfolio.
Plot the efficient frontier, the capital market line, and a dot for the tangency portfolio on the same plot. Label your axes, include a legend, and give your plot a title.
Hint: If you were not able to calculate the tangency portfolio, you can plot the efficient frontier, eyeball what you think the tangency portfolio is, and use your eyeballed values to plot the CML for partial credit.
If an investor wanted to attain an expected return of 2.55%, would she need to buy the risk- free asset or borrow at the risk-free rate? Explain your answer using the graph from Part (d).
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