Efficient Frontier — Markowitz

We dive into the Markowitz efficient frontier — plotting every possible portfolio combo in expected return vs. standard deviation space to find the best bang for your risk buck.

The content below covers material from my undergrad days. You might think this is derived in a way that’s meant to be intuitive, but there’s also a version that’s derived more mathematically rigorously. After understanding it intuitively with the content below, if you want to handle it a bit more mathematically, you can always go tackle the more mathematical version :-)

(As a bit of a spoiler, if you understand it intuitively, you can’t even guess that the Efficient Frontier has the form of the “hyperbola ($\frac{x^2}{a^2} - \frac{y^2}{b^2} = -1$)” that we studied in high school. But in fact, the efficient frontier is a hyperbola :-) )

Every stock in the world

Previously I looked at a portfolio made up of two stocks. This time I’ll increase the count a bit. By how much? lol Don’t be surprised: it’s “every stock in the world.” lol

That feels like an elementary schooler going “my dad is 100 years old!!!!!” lol Anyway, for convenience I’ll call the count $n$.

Alright alright alright… here right in front of us we have $\text{stock}_1$ through $\text{stock}_n$………………

How many portfolio cases can we make using these as ingredients??????

→ Answer: a crazy ton.

And to make matters worse, $w_1$ through $w_n$ can be varied contiiiinuously. So there’s going to be an insane number of them T_T

Plotting countless portfolios

In any case, the portfolio’s expected return and return standard deviation are

The portfolio’s expected return and variance: μ_p = w_1 μ_1 + w_2 μ_2 + ⋯ + w_n μ_n, and σ_p² = w_1² σ_1² + ⋯ + w_n² σ_n² plus the covariance terms 2 w_i w_j Cov(R_i, R_j) for every pair of stocks

calculated like this, right??? Then, for each individual stock

The given inputs: μ_1, μ_2, …, μ_n, σ_1, σ_2, …, σ_n and the covariances Cov(R_1, R_2), Cov(R_1, R_3), …, Cov(R_n-1, R_n)

let’s think of values like these as all given, and here, let’s think about considering all that crazy ton of cases for (w_1, w_2, …, w_n). Of course, the condition w_1 + w_2 + ⋯ + w_n = 1 is satisfied, naturally.

So what is it exactly that I’m saying I’ll consider all of? We take the equation that’s computed like this

The same expected return and variance formulas as above

and plug in all the different weights (w_1, w_2, …, w_n) we can think of —

(0.01, 0.001, 0.0082, …, 0.00038)

in this case,

(0.00491, 0, 0.00432, …, 0.04031)

in this case,

(0.10491, 0.00498, 0.000498, …, 0.00004031)

in this case, countless cases you simply can’t count……!!!!!!

We bundle the expected value and the standard deviation that come out in each case into ordered pairs like (σ_p, μ_p): (σ_p for case 1, μ_p for case 1), (σ_p for case 2, μ_p for case 2), (σ_p for case 3, μ_p for case 3), ~~~~~~ and what I’m saying is that we’ll collect the countless data points that come out like this.

Gathering all that countless data

Hand-drawn axes, μ going up and σ going right

let’s plot countlessly many points on this coordinate axis, one by one by one. If we actually plot them

The portfolios plotted as a cloud of dots on the μ-σ axes

(Actually, I explained the logic here as above, but it seems like a lot of books explain it by continuously adding stocks to the portfolio one by one. But I think it should be fine to explain it this way too, so I said it like above, but I’m slightly worried that there might be an issue here T_T If there is, please do point it out!)

They say if we plot everything as points on this coordinate plane it looks like this (Constructing an Efficient Frontier on Finance Train).

The dominance principle

Now, let’s think about the ‘dominance principle’ for a moment. At the same $\mu$ (return) level, that is, in this part here

The same cloud with a red band marking one return level

among the portfolios belonging to the same return, here, this one

The same cloud, with a blue dot at the left end of the red band

Is there anyone who would pick a portfolio on the right side, instead of the portfolio this blue dot points to??????????

The portfolio on the right side has the same return but higher risk, so if humans were told to pick from that red range, they’d probably pick the blue portfolio!

The same at a higher return level, again with its blue dot at the left end

Of course the same holds at other return levels too. So let me put it this way: I collected just these blue ones, picked out the portfolios that dominate all the other portfolios, and bundled them into a set.

The blue dots joined into one curve along the upper-left edge of the cloud

This line we call the

The cloud with the blue curve labeled Efficient Frontier

efficient frontier, and this efficient frontier means the most efficient portfolios among all the portfolios we can make by mobilizing every stock in the world.

This Efficient Frontier was devised by Harry Max Markowitz, the American economist who received the Nobel Prize in Economics in 1990, so it’s also called Markowitz’s efficient frontier!!!

That’s as far as the Markowitz efficient frontier goes.

So, for people, which portfolio among those blue lines is the most efficient to pick?

The answer is (as I said in an earlier post) “it depends on the person”, isn’t it?

(please refer to Portfolio Variance and Covariance Matrix (Corporate Finance I Studied #9))

Since the shape of each person’s utility indifference curve will be different, that is, since the degree to which they’re tolerant of risk will be different

Two hand-drawn sketches of blue indifference curves touching the frontier at the best point, with μ_1 and σ_1 marked in the upper one and μ_2 and σ_2 in the lower one

the portfolio that maximizes utility on that curve will be different depending on the shape of each person’s indifference curve.

What Markowitz overlooked

But here’s the thing. Actually, we can maximize utility even more.

That is, Markowitz was overlooking one thing. If we think just a little more about the thing he overlooked, we can maximize utility even more.

What he overlooked — never mentioned once above — was the ‘risk-free asset’.

Above, risk-free assets weren’t considered, but in the world, risk-free assets like ‘government bonds’ clearly exist. Considering this risk-free asset, we can increase utility a bit more.

How do we increase it!!!!!!!

To understand this, we first need to take a quick look at how the expected return and return standard deviation of a portfolio that includes a risk-free asset are calculated. Hmm…. I agonized a lot over how to phrase this to connect with the earlier content…. I’ll explain it like this.

You know those optimal portfolios we derived above? Let’s call those portfolios “risky”. It means a portfolio containing only risky assets. Let’s say the expected return of this ‘risky’ portfolio is μ_risky, and the standard deviation of its returns is σ_risky.

And to this ‘risky’ portfolio, we’ll add a ‘risk-free’ portfolio made up only of risk-free assets. The expected return of this ‘risk-free’ portfolio is μ_risk-free, and its risk is σ_risk-free, but since its name is risk-free, its risk will be σ_risk-free = 0 ~~

So the expected return of this newly composed “risky + risk-free” portfolio

Μ_risky+risk-free = w_risky μ_risky + w_risk-free μ_risk-free

will be determined like this~~~~~ But this risk…. since σ_risk-free = 0 it’ll come out as

Σ_risky+risk-free as the square root of w_risky² σ_risky² + w_risk-free² σ_risk-free² + w_risky w_risk-free σ_risky σ_risk-free ρ, which reduces to the square root of w_risky² σ_risky², that is w_risky σ_risky

That is, the risk of a portfolio made up of a risk-free asset and a risky asset is proportional to the investment ratio of the risky asset.

Risky + risk-free on the coordinate plane

Let’s take the above story to the coordinate plane.

The efficient frontier on μ-σ axes, labeled that earlier efficient frontier

This is that efficient frontier from before, and here let’s pick one portfolio whose expected return is μ_risky and whose return standard deviation is σ_risky. And we need to pick one risk-free portfolio too

The frontier with the risky portfolio (σ_risky, μ_risky) on the curve and the risk-free portfolio (σ_rf, μ_rf) on the μ axis

Let’s say we picked them like this!!

And now, for the many cases of $w_{\text{risky}}$, $w_{\text{risk-free}}$ investment ratios of the combined “risky + risk-free” portfolio, we’ll calculate each corresponding

Μ_risky+risk-free = w_risky μ_risky + w_risk-free μ_risk-free

Σ_risky+risk-free = w_risky σ_risky

First, simply, ① all-in on the risk-free asset ($w_{\text{risk-free}} = 1$ = 100%), zero investment ratio on the risky asset, and ② zero on the risk-free asset, all-in on the risky asset ($w_{\text{risky}} = 1$ = 100%): in these cases, that point will be plotted here.

The two end cases marked on the graph: point 1 is the risk-free portfolio and point 2 the risky one

Obvious, righttt….?? lol

Yup yup, now then: let’s say $w_{\text{risky}} = w_{\text{risk-free}}$ = 50% = 0.5, so it’s invested 50% each. Using the equation we derived above..,,,,,,,,, we can calculate it, and a result that’s commonsensically obvious comes out.

Point 3 added on the μ axis, level with the midpoint of the two returns

This is the explanation for point ③.

With half in each: μ_risky+risk-free = ½ μ_risky + ½ μ_risk-free = (μ_risky + μ_risk-free)/2

The ‘midpoint’ of $\mu_{\text{risky}}$ and $\mu_{\text{risk-free}}$ comes out as the result, so I plotted point 3 like that above.

The graph with points 3 and 4 marked

Point 4 works by the same principle.

With half in each: σ_risky+risk-free = ½ σ_risky = (σ_risky + σ_risk-free)/2

It can be made as the midpoint of the standard deviations of the risky and risk-free assets. So I marked point 4’s position like that

Point 5 added at the midpoint return and the midpoint risk

That is, when $w_{\text{risky}} = w_{\text{risk-free}} = 0.5$, the point that represents the identity of the ‘risky + risk-free’ portfolio is this point 5 here.

So then, let’s just try the case when

W_risk-free = 1/4, w_risky = 3/4

and the case when

W_risk-free = 3/4, w_risky = 1/4

……. Let’s just do it, then; when it’s

W_risk-free = 1/4, w_risky = 3/4

The expected return and the risk of the mix worked out step by step for a quarter-weighted case

W_risk-free = 3/4, w_risky = 1/4

The expected return and the risk of the mix worked out step by step for the other quarter-weighted case

The graph with green dots at the quarter points between the risk-free point and the risky point

For the above two cases, I’ve colored the identity of the “risky + risk-free” portfolio with green dots!!!!! After dividing into 4 parts, a weight of 3 on risky & a weight of 1 on risk-free; after dividing into 4 parts, a weight of 1 on risky & a weight of 3 on risk-free. I think if you think about it this way, it should make sense that the points are plotted at the locations of those green dots.

In conclusion, if we consider all $w_{\text{risky}}$ & $w_{\text{risk-free}}$ and build a set of $(\sigma, \mu)$ for the “risky + risk-free” portfolio, then unlike the shape of Markowitz’s efficient frontier

The straight line joining the risk-free point and the risky point

it becomes a straight line.

The Capital Market Line

Then let’s go over one term. The “straight line” that can be achieved by combining risky and risk-free assets, like just now, is called the “Capital Market Line (CML)” (strictly, that name is for the line through the market portfolio; with any other risky portfolio it’s a capital allocation line, CAL).

Since this capital market line unconditionally passes through the point (0, μ_risk-free) and the point (σ_risky, μ_risky), we can also derive it formally. The line passing through two points: first, its slope is (μ_risky − μ_risk-free)/σ_risky and its y-intercept is (0, μ_risk-free), so following the equation

Y = slope · x + (y-intercept)

exactly, we can write it as follows!!!!!

Μ = ((μ_risky − μ_risk-free)/σ_risky) σ + μ_risk-free

Ah… but here’s the thing.

I drew the red line only up to that point above, but actually the red line isn’t limited only up to there,

The red line extended beyond the risky point, hatched

the extension line is also possible. If you borrow more money at the risk-free rate (borrow more) and put your investment ratio in the risky asset above 100%, then the extension of the line is also possible???? That’s why.

The New Efficient Frontier

Now, by the way, up to the point of deriving this line, what;;;;; for;;;;;;; do you remember why I derived this line…? Yeah…. to find a ‘portfolio set that maximizes utility more’ than the efficient frontier is why I’ve been doing stuff like the above, and given that we’ve discussed this, this line is the “risky + risk-free” portfolio set that maximizes utility more.

Why?!?!?!?!?!?!?! Can a “risky + risk-free” portfolio that’s shaped like this maximize utility more?

Blue indifference curves and the black frontier, with no risk-free asset

Before, when we weren’t considering the risk-free asset, the most efficient portfolio set we could choose was only this black line, and under this scope we kept maaaaximizing our utility function and we could pick 1 portfolio that maximizes the utility function the most~ The logic was something like this.

The frontier and four straight lines from the risk-free point, numbered 1 to 4, with the red line 4 the steepest

But, once we additionally consider the risk-free asset, we found out that the portfolio set we can form with the world’s (financial) investment assets is not only Markowitz’s efficient frontier, but lines 1, 2, 3, and 4 can allllll be portfolios that exist in the world, so now there are even more cases where I can bring my utility function up against it.

But, while 1, 2, 3, 4 are all possible, there’s no need to try them all, and there’s no need to try with Markowitz’s efficient frontier either.

Because line 4 ‘dominates’ the efficient frontier, lines 1, 2, and 3.

In other words,

An indifference curve U_1 touching the frontier, with the risk-free return μ_rf marked on the μ axis

before considering the risk-free asset, we’d have achieved the maximum utility $U_1$ using some portfolio that maximizes utility on Markowitz’s efficient frontier like this, but once we consider the risk-free asset

The same graph with the red line and a higher indifference curve U_2

we can find a portfolio that maximizes utility with a larger $U_2$ than that, that’s the deal~

So now in the picture above, you can erase everything other than line 4, it doesn’t matter.

Only line 4 left, the New Efficient Frontier

Erase everythinggg and leave only this line, and to distinguish this line from Markowitz’s efficient frontier, we call this line the “New Efficient Frontier”. (They also call Markowitz’s efficient frontier the ‘previous efficient frontier’ in contrast with this~)

I feel like I explained super easy content at needlessly great length…

Anyway…. now the long-awaited CAPM. I’ll continue in the very next posting! hehe


Heads-up. The figures here are the original notes, slips and all. A few things to watch for:

  • In the first risk formula of the risky + risk-free mix, the cross term needs a factor 2: $2w_{risky}w_{rf}\sigma_{risky}\sigma_{rf}\rho$. It vanishes anyway because $\sigma_{rf} = 0$, so the result $w_{risky}\sigma_{risky}$ stands.
  • Under $w_{rf} = \frac{1}{4}$, $w_{risky} = \frac{3}{4}$, the worked lines are those of the other case: they should read $\mu = \frac{1}{4}\mu_{rf} + \frac{3}{4}\mu_{risky} = \frac{\mu_{rf} + 3\mu_{risky}}{4}$ and $\sigma = \frac{3}{4}\sigma_{risky}$, which the last line already has.

Comments

Discussion happens via GitHub Discussions. You'll need a GitHub account to comment.