Session Ready
Exercise

The efficient frontier

Using the fact that all efficient portfolios can be written as a convex combination of two efficient portfolios, you can compute efficient portfolios as convex combinations of the global minimum variance portfolio and the efficient portfolio calculated in the previous exercise:

$$ z = \alpha *m + (1-\alpha)*x $$

for values of \(\alpha\) being between \(-1\) and \(1\), with \(m\) the vector of portfolio weights of the global minimum variance portfolio and with \(x\) the vector of portfolio weights of the efficient portfolio that was calculated in the previous exercise.

Instructions
100 XP

Run the code. It uses the efficient.frontier() function to calculate the expected returns and standard deviation of the portfolios lying on the curve. Afterwards, it makes a plot of the efficient frontier curve via plot(). Set the colors of the dots to blue, the lwd argument to 2, and make sure that the stock names are displayed.