#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
L06: Tangency portfolios
Lecture overview
Given a set of risky assets, what is the best portfolio we can construct with them? Assuming we are mean-variance optimizers, this amounts to finding the set of weights that gives us the portfolio with the maximum Sharpe ratio (i.e. the portfolio that gives us the best expected return per unit of risk). We start by learning how to do this for the special case when we only have two risky assets and then move on to the general case with an arbitrary (“N”) number of assets. These maximum Sharpe ratio portfolios are also called optimal risky portfolios or tangency portfolios.
- The special case: Portfolio optimization with two risky assets
- The investment opportunity set
- Tangency portfolio
- The general case: Portfolio optimization with an arbitrary number risky assets
- Matrix representation
- Tangency portfolio
Besides learning the mechanics of building optimal risky portfolios, another key lesson from this lecture is that the optimal risky portfolio does not depend on who the investor is (i.e. it does not depend on their risk aversion). What depends on their risk aversion is the proportion of their funds they should invest in this optimal risky portfolio. We touched on this in the previous lecture, and we will talk about it in much more detail in the following lecture.
Portfolio optimization with two risky assets
We start with the simples possible case, when we have only two risky assets that we want to combine in an optimal portfolio. Call those assets A and B, and assume we have already estimated their expected returns (\(E[R_A]\) and \(E[R_B]\)), their standard deviations (\(\sigma_A\) and \(\sigma_B\)) and their covariance (\(COV[R_A, R_B]\) sometimes denoted \(\rho_{AB}\)).
The only thing we have to decide is what proportion of the portfolio consists of asset A (call this \(w_A\)), because this will give us the proportion in asset B: \(w_B = 1 - w_A\). As mentioned above, this amounts to finding the \(w_A\) that gives us the portfolio with the highers possible Sharpe ratio. Before we do this (in Section 2.2.) we first construct a large number of portfolios for different values of \(w_A\) to get a better sense of how these portfolios look like from a mean-variance perspective.
The investment opportunity set
The investment opportunity set for a given collection of assets is the set of ALL the possible portfolios you can construct with those assets. This is an infinite set but we can get a good idea of what the investment opportunity set looks like by just building a small subset of portfolios and plotting them in mean-volatility space.
In the special case with only two risky assets A and B, using the notation above, for any choice of weights (\(w_A\), \(w_B\)) we obtain a different portfolio P. Recall that the expected return and variance of the resulting portfolio P are given by:
\[E[R_P] = w_A E[R_A] + w_B E[R_B]\]
\[Var[R_P] = w_{A}^2 Var[R_A] + w_{B}^2 Var[R_B] + 2 w_A w_B Cov[R_A, R_B]\]
where \(w_B = 1 - w_A\) and the portfolio standard deviation is \(\sigma_P = \sqrt{Var[R_P]}\)
Example
You want to invest in Facebook (FB) and Netflix (NFLX) but are not sure how much to invest in each. You have estimated that the expected returns of FB and NFLX are 10% and 15% respectively, their standard deviations are 20% and 25% respectively and their covariance is 0.02. Construct 21 different portfolios of FB and NFLX by starting out with a weight of 0% in FB and progressively increasing it by 5% until you reach a portfolio with 100% in FB. For each portfolio, estimate its expected return and standard deviation of future returns and plot it in mean-volatility space.
Optimal risky portfolio (tangency portfolio)
The combination between two risky assets A and B that gives us the maximum Sharpe ratio is obtained by setting
\[w_A = \frac{(E[R_A] - R_f) \sigma_{B}^2 - (E[R_B] - R_f)Cov[R_A, R_B]}{(E[R_A] - R_f) \sigma_{B}^2 + (E[R_B] - R_f) \sigma_{A}^2 - (E[R_A] - R_f + E[R_B] - R_f)Cov[R_A, R_B]}\]
and \(w_B = 1 - w_A\).
The reason why we also call this optimal risky portfolio the “tangency portfolio” is because its capital allocation line (CAL) intersects the investment opportunity set of A and B (see the curve we plotted in the previous example) at only one point (i.e. the CAL is tangent to the investment opportunity set).
Example
Using the data from the previous example, find the optimal combination of FB and NFLX. Assume that the risk-free rate is 0.1%.
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
Portfolio optimization with an arbitrary number of risky assets
We now move on the general case where we have an arbitrary number of assets N, and we want to find the combination (set of weights) that gives us the portfolio with the highest Sharpe ratio. Call these assets 1, 2, …, N and assume we have already estimated their expected returns, standard deviations, and covariances between any two assets.
Matrix notation
To make the formulas more manageable, we assemble our inputs (expected returns, variances and covariances) into matrices.
Let \(\mu\) be the Nx1 vector of expected returns:
\[\mu = \begin{pmatrix} E[R_1] \\ E[R_2] \\ ... \\ E[R_N] \end{pmatrix}\]
And \(\Sigma\) the variance-covariance matrix of future returns. In row \(i\) and column \(j\) this matrix contains the covariance between the returns of assets \(i\) and \(j\). Note that when \(i = j\) (on the diagonal) this equals the variance of asset \(i\).
\[\Sigma = \begin{pmatrix} Var[R_1] & Cov[R_1, R_2] & ... & Cov[R_1, R_N] \\ Cov[R_2, R_1] & Var[R_2] & ... & Cov[R_2, R_N] \\ ... & ... & ... & ... \\ Cov[R_N, R_1] & Cov[R_N, R_2] & ... & Var[R_N] \end{pmatrix}\]
Tangency portfolio with N risky assets
Let \(\mu^e\) be the vector of risk premia on our N assets:
\[\mu^e = \begin{pmatrix} E[R_1] - R_f \\ E[R_2] - R_f \\ ... \\ E[R_N] - R_f \end{pmatrix}\]
and \(\mathbf{1^{T}}\) be the transpose of a vector of N ones: \(\mathbf{1^{T}} = (1, 1, ..., 1)\).
Then the vector \(W_{tan}\) of weights that gives us the tangency portfolio (i.e. portfolio with the maximum Sharpe ratio) is given by:
\[W_{tan} = \frac{\Sigma^{-1}\mu^e }{ \mathbf{1^{T}}\Sigma^{-1}\mu^e }\]
where \(\Sigma^{-1}\) is the inverse of the variance-covariance matrix \(\Sigma\)
Real-World Application
You want to invest in the FANG stocks (Facebook, Apple, Netflix, and Google) but you are not sure how much to invest in each. Download monthly price data on the FANG stocks over the past 5 years (January 2018 to December 2022) and calculate monthly returns. Use these data to estimate the optimal weights you should use for the four stocks. Assume that the risk-free rate is 0.1%.
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#