Finding the Tangency Portfolio and Combining It with a Risk-Free Asset
Summary
The document discusses a portfolio optimization problem with several risky assets, a covariance matrix, and different rates for risk-free lending and borrowing. The questioner has computed a minimum-variance portfolio and tries to use covariance-matrix calculations on asset excess returns to find risky-asset weights for a target return. That approach normalizes the weights, but does not in itself identify the portfolio with the maximum Sharpe ratio.
The answer recommends finding the risky market or tangency portfolio by maximizing its excess return per unit of volatility. An investor then combines that portfolio with the risk-free asset, choosing the allocation to meet a desired expected return. The response expresses this allocation as a weighted mix of the tangency portfolio and the risk-free asset. It does not give the exact analytic weights or an implementation procedure, and it does not resolve how distinct lending and borrowing rates affect the optimization when an investor borrows.
Key ideas
- The minimum-variance portfolio and the maximum-Sharpe tangency portfolio solve different optimization problems.
- The tangency portfolio is found by maximizing excess return divided by portfolio volatility.
- Investors can target a return by combining the tangency portfolio with a risk-free asset.
- Different borrowing and lending rates complicate the allocation and are not fully addressed in the answer.
Tags
Full text
# Portfolio Optimization - n risky assets
# Portfolio Optimization - n risky assets
I'm currently implementing a CAPM model in Excel:
- A portfolio of n risky assets when n=6 (in this case)
- A riskless borrowing rate of 8% and riskless lending rate of 3%
- I'm given the expected return and standard deviation for each risky asset.
The first task was to create a minimum variance portfolio. I did this using the following array formula: {=MMULT(MINVERSE(Cov),TRANSPOSE(I))/SUM(MMULT(MINVERSE(Cov),TRANSPOSE(I)))}
Cov is my 6x6 covariance matrix and I is just a 1x6 array of ones. I could have created I as a 6x1 array and avoided the TRANSPOSE() altogether.
I'm currently stuck on the next task which is to incorporate the riskless asset into the mix and determine the optimal weights for each risky asset given a desired rate of return.
My approach was as follows:
- Calculate the excess returns by subtracting the 3% riskless lending rate from the expected return for each risky asset. Store these values in a 1x6 array called XsRtn
- Execute the array formula to determine the 6 weights: {=MMULT(MINVERSE(Cov),TRANSPOSE(XsRtn))/SUM(MMULT(MINVERSE(Cov),TRANSPOSE(XsRtn)))}
- Sum up the 6 weights to find the weight of the tangent portfolio. If this weight > 1 then investor is net borrower so they will borrow at 8% to bring total weight to 1. Otherwise, the investor lends the excess cash at 3% riskless.
This method appeared to work fine until I realised that the individual weights of the risky assets comprising the tangent portfolio does not change when I change the relevant inputs (expected returns on each individual stock). This cannot be correct as the tangent portfolio mix should change as I move along the tangent curve.
PS - I've already given thought to the idea of using LaGrange Multipliers but it wasn't practical. Matrices are much easier to implement. Also, we're not allowed to use Solver.
Any advice? Thanks for reading.
## Answer by emcor (score 3, accepted)
https://quant.stackexchange.com/a/14483
You have to find the market portfolio, which is the portfolio with maximum Sharpe Ratio:
$$S^*(w)=\frac{R_p(w)-R_f}{\sigma_p(w)}$$
So calculate this ratio and maximize it (I think there is also an exact analytic expression for the market portofolio weights).
Then investors will mix this optimal "best" Market portfolio with the riskfree asset based on their desired return, so you get the investor portfolio weights $w$ for desired return $R^*$ by solving:
$$R^*=w\cdot R_m+(1-w)R_f$$
where $R_m$ being the market portfolio's return and $R_f$ the riskfree asset's return.Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.