Modern Portfolio Theory | Introduction To Financial Python on QuantConnect (2024)

Introduction

The Modern Portfolio Theory (MPT) suggests how investors should spread their wealth across various assets to minimize risk and maximize return.

This chapter is mathematically intense, so don't feel demoralized if you don't understand it on your first reading.

Risk Aversion

In portfolio theory, the riskiness of an asset is often measured by the variance (or standard deviation) of its returns. Risk-averse investors do not want their wealth to fluctuate wildly.

Risk aversion can be illustrated with a simple example. Which of the following assets do you prefer?

  • Asset A pays $200 or $0 with 50% probability each.
  • Asset B pays $400 or −$200 (i.e. you lose $200) with 50% probability each.

The expected payouts of A and B are:

The standard deviation of their payouts are:

If you are an risk seeker, you may choose asset B, because you can potentially get a higher payout. MPT assumes that investors prefer asset A since both assets have the same expected payout, but asset A has less risk.

Portfolio

Suppose we invest some fraction of our wealth in n risky assets (labelled 1 to n), and the remainder in a riskless asset such as cash in a bank account.

Clearly since our wealth comprises all those assets.

Let be the respective asset returns, then our portfolio return is

Alternatively, we can eliminate to get

Our expected portfolio return is

Note that since the riskless return is known with certainty, by definition.

Correlation

Before computing portfolio risk, we need to first understand covariance and correlation. They measure the linear relationship between two random variables.

The covariance of two random variables X and Y is defined as

The correlation of X and Y, which is always between −1 and 1, is their covariance after being standardized:

Risk

Now we are ready to compute portfolio risk, as measured by the variance of portfolio returns:

Recall that if c is a known constant, so the term involving the riskless return can be omitted. It will be convenient to use sigma notation:

So we have a squared sum of n terms. How do we expand it?

If we expand the brackets on the right hand side, every term has the form where i and j can be 1, 2, ... , or n.

Therefore

The last step arises from the definition of covariance. The only thing left is to express portfolio risk in matrix notation:

where

Intuition

How can we make sense of portfolio risk? Consider a simple case with a riskless asset and only n = 2 risky assets.

Portfolio risk can be reduced by choosing two assets that are negatively correlated. This is the benefit of diversification.

Mean-Variance Analysis

We now try to find a portfolio that minimizes risk and maximizes return.

The chart below has risk (standard deviation of returns) on the horizontal axis and expected return on the vertical axis. The 10 black points represent individual stocks, while each green / blue point is a portfolio of stocks:

Modern Portfolio Theory | Introduction To Financial Python on QuantConnect (1)

Notice that all points (i.e. stocks and portfolios) are enclosed by a hyperbola, known as the efficient frontier.

All portfolios on the efficient frontier have the maximum expected return for a given level of risk, if we only consider portfolios of risky stocks. Can we achieve higher returns by including a riskless asset? Yes.

Capital Market Line

The black line on the chart is the Capital Market Line (CML). It is tangent to the efficient frontier and cuts the vertical axis at the riskfree return. The point of tangency represents the so-called market portfolio.

Every point on the CML represents a portfolio comprising the market portfolio and riskless asset in some proportion. Why?

Suppose some fraction w of a CML portfolio is the market portfolio, and the remainder (1 − w) is the riskless asset. Then its expected return is

Since there is only n = 1 risky asset, the variance of the CML portfolio return is

Taking square roots, we deduce that a CML portfolio's risk is proportional to the market portfolio's weight:

This equation can be used to eliminate w in the calculation of expected return:

This proves that when is plotted against , we will obtain a straight line: the CML.

Portfolio Selection

Why is the CML significant? For any given level of risk, CML portfolios have a higher return than those on the efficient frontier, so investors should select any of them according to their risk tolerance.

Risk-averse investors may give the riskless asset a larger weight in their portfolio. Risk-seeking investors may borrow money (i.e. sell the riskless asset) to invest >100% of their wealth in the market portfolio.

Regardless of their risk tolerances, all investors should hold the same stocks in the same proportion in the market portfolio. In other words, they should not pick stocks according to their risk tolerance.

Diversification

What happens to the efficient frontier and hence the CML if we have only 3 stocks (IBM, GE, and PFE) instead of 10?

Modern Portfolio Theory | Introduction To Financial Python on QuantConnect (2)

Since we have fewer stocks to choose from, it's not too surprising that our maximum expected return is lower for any level of risk. This demonstrates why diversification is often said to be a "free lunch" in investing.

Summary

In this chapter we have learnt about the modern portfolio theory. It recommends investors to spread their wealth across many asset classes to maximize returns while minimizing risk. In the next chapter, we will introduce the Capital Asset Pricing Model.

Algorithm

Mean-variance analysis is used to optimize portfolios with several strategies. Here we treat Dow 30 stocks as strategy and designed an algorithm to test mean-variance analysis:


Modern Portfolio Theory | Introduction To Financial Python on QuantConnect (3)

Try the world leading quantitative analysis platform today

Sign Up

Previous: Linear Algebra Next: Market Risk

Modern Portfolio Theory | Introduction To Financial Python on QuantConnect (2024)

FAQs

Does modern portfolio theory still work? ›

His work on Modern Portfolio Theory (MPT) remains relevant today. A Review of Financial Studies paper shows how to calibrate mean-variance inputs when designing a portfolio to deliver performance in line with ex-ante expected values – a rare feat for optimised portfolios. The process is called the 'Galton' correction.

What are the criticism of Markowitz's portfolio theory? ›

One limitation is that the theory is based on a series of perfect assumptions that do not hold true in reality. Another criticism is that the framework of the theory is static and assumes that assets are normally distributed, which is not the case during financial crises or pandemics.

What is the equation for the modern portfolio theory? ›

The Modern Portfolio Theory Equation

The return of the portfolio can be written as: R p = ∑ i = 1 n w i R i This equation tells you that the total return of your portfolio is the weighted sum of the return of each asset.

What are the 2 key ideas of modern portfolio theory? ›

At its heart, modern portfolio theory makes (and supports) two key arguments: that a portfolio's total risk and return profile is more important than the risk/return profile of any individual investment, and that by understanding this, it is possible for an investor to build a diversified portfolio of multiple assets ...

What is better than modern portfolio theory? ›

Modern portfolio theory is a prescriptive theoretical model that shows what asset class mix would produce the greatest expected return for a given risk level. Behavioral finance instead focuses on correcting for the cognitive and emotional biases that prevent people from acting rationally in the real world.

Why doesn't modern portfolio theory work? ›

As such, MPT assumes that markets impact one's investments, but it does not take into account the impact the investments make on the market, the authors contend. Such impact tends to be unintentional, taking the form of index effects, super-portfolio effects, or risk-on/risk-off market effects.

What are the weaknesses of MPT? ›

Another limitation of MPT is its heavy reliance on historical data to estimate expected returns, volatilities, and correlations of assets. While historical data can provide valuable insights into asset performance, it fails to capture the dynamics of rapidly changing markets and unexpected events.

What are the disadvantages of modern portfolio theory? ›

Disadvantages of Modern Portfolio Theory

The disadvantages of MPT are as follows: Assumes a normal distribution: MPT presupposes that returns are normally distributed, which does not always hold in the real world, especially during periods of market stress.

What are the strength and weakness of the Markowitz approach? ›

Advantages: Reduces collective risks, maximizes profitability. Disadvantages: Theoretical model, limitations in practical cases. The advantages of using the Markowitz portfolio optimization include balancing risk and return, while the disadvantages include a higher risk for higher returns.

What is the modern portfolio theory in a nutshell? ›

The Modern Portfolio Theory judges the prudence of a particular investment on how it fits in with the rest of the portfolio. The objective is to manage risk to determine the appropriate level of risk in light of the objectives of the particular trust.

What is the modern portfolio theory simplified? ›

The Modern Portfolio Theory (MPT) refers to an investment theory that allows investors to assemble an asset portfolio that maximizes expected return for a given level of risk. The theory assumes that investors are risk-averse; for a given level of expected return, investors will always prefer the less risky portfolio.

What was one of the main conclusions of modern portfolio theory? ›

Modern portfolio theory (MPT) argues that it's possible to design an ideal portfolio that will provide the investor maximum returns by taking on the optimal amount of risk. In particular, MPT advocates diversification of securities and asset classes or the benefits of not putting all your eggs in one basket.

Is modern portfolio theory relevant in today's world why? ›

Modern portfolio theory has had a marked impact on how investors perceive risk, return, and portfolio management. The theory demonstrates that portfolio diversification can reduce investment risk. In fact, modern money managers routinely follow its precepts.

What is modern portfolio theory and what is wrong with it? ›

One main criticism of MPT is that portfolios are assessed on variance, rather than downside risk. Quick definition: variance is a measure of the volatility (or dispersion) of returns over time. The challenge of MPT is that two different portfolios could show the same variance levels, but for different reasons.

What are the limitations of Markowitz modern portfolio theory? ›

Shortcomings in Mean-Variance Optimization:

- The Markowitz model optimizes portfolios based solely on mean and variance. It doesn't consider higher moments (skewness and kurtosis) or other risk measures. - investors may have preferences beyond risk and return, such as downside risk, drawdowns, or tail risk.

Top Articles
Latest Posts
Article information

Author: Gregorio Kreiger

Last Updated:

Views: 6218

Rating: 4.7 / 5 (57 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Gregorio Kreiger

Birthday: 1994-12-18

Address: 89212 Tracey Ramp, Sunside, MT 08453-0951

Phone: +9014805370218

Job: Customer Designer

Hobby: Mountain biking, Orienteering, Hiking, Sewing, Backpacking, Mushroom hunting, Backpacking

Introduction: My name is Gregorio Kreiger, I am a tender, brainy, enthusiastic, combative, agreeable, gentle, gentle person who loves writing and wants to share my knowledge and understanding with you.