Consider 3 assets $r_1,r_2,r_3$ respectively. Covariance matrix and expected return is given by
$C=$ \begin{bmatrix} 2 & 1 & 0 \\ 1 & 2 & 1 \\ 0 & 1 & 2 \\ \end{bmatrix}
and $\mu=$ \begin{bmatrix} 0.4\\ 0.4 \\ 0.8 \\ \end{bmatrix}
(i) Find the minimum variance portfolio.
Just by using $w^* = \frac{1 C^{-1}}{1 C^{-1} 1^T} = [0.5\text{ } 0.5\text{ } 0.5]$
(ii) Find a 2nd efficient portfolio.
$w^* = \frac{ C^{-1} \mu}{1^T C^{-1} \mu} = [\frac{1}{2}\text{ } \frac{-1}{3}\text{ } \frac{5}{6}]$
(iii) If the risk free rate is 0.2, find the market portfolio comprising of 1 risk free rate and 3 risky assets, thus find an efficient portfolio of risky assets.
I don't know how to proceed here. I tried
$w = \frac{C^{-1}(\mu - r_f.1)}{b-cr_f}$ where $b= 1^T C^{-1} \mu$ and $c=\mu ^T C^{-1} \mu$ but I need 4 weights.
Part (i) and (ii) are correctly done. I just need the optimal weights. My problem is in (iv) where I need to find an optimal weight for the risky and risk free asset. Short selling is allowed.
Note that
$C^{-1}=$ \begin{bmatrix} 3/4 & -2/4 & 1/4 \\ -2/4 & 4/4 & -2/4\\ 1/4 & -2/4 & 3/4 \\ \end{bmatrix}
The answer to (iii) is (0.6 0.2 -0.2 0.4) and (0 $\frac{1}{3}$ $\frac{-1}{3}$ $\frac{2}{3})$