Modern Portfolio Theory: Optimize Your Investments with Markowitz Portfolio Selection (Machine learning implementation)

Farzana huq
7 min readJul 23, 2023

--

Don’t put your all eggs in one basket!

Source: http://majorstudy.blogspot.com/2015/09/modern-portfolio-theory-definition.html

In the world of finance and investment, certain individuals stand out for their ground breaking contributions that have shaped the industry’s trajectory. Among them is Harry Markowitz, a visionary economist and Nobel laureate, whose innovative work in portfolio selection revolutionized the way investors approach risk and returns. In this article, we pay tribute to the life and achievements of this remarkable individual, whose work has left an indelible mark on modern finance.

Early Life and Education: Harry Max Markowitz was born on August 24, 1927, in Chicago, Illinois. He demonstrated an early interest in mathematics and economics, eventually earning a Bachelor of Arts in Economics from the University of Chicago and a Master of Arts in Economics from the University of Chicago’s Booth School of Business.

The Foundation of Modern Portfolio Theory: In 1952, while pursuing his doctoral studies at the University of Chicago, Markowitz published his groundbreaking paper titled “Portfolio Selection.” In this seminal work, he introduced the concept of mean-variance analysis, which laid the foundation for Modern Portfolio Theory (MPT). MPT provides a mathematical framework for investors to optimize their portfolios by balancing risk and return.

The Nobel Prize in Economics: In 1990, Harry Markowitz, along with William F. Sharpe and Merton H. Miller, was awarded the Nobel Memorial Prize in Economic Sciences for his pioneering contributions to finance. The Nobel committee recognized his work as a cornerstone of financial economics and a tool that empowers investors to make more informed decisions.

Key Concepts of Modern Portfolio Theory:

  • Efficient Frontier: Markowitz’s work emphasized the importance of diversification to minimize risk while maximizing returns. The efficient frontier represents the set of optimal portfolios that offer the highest return for a given level of risk or the lowest risk for a targeted return.
  • Risk-Return Trade-off: Markowitz demonstrated that investors can achieve higher returns only by accepting higher levels of risk. Conversely, lower risk is associated with lower expected returns.
  • Covariance and Correlation: Markowitz’s work highlighted the significance of covariance and correlation in analyzing the relationship between asset returns. Diversifying investments with low correlations can lead to a more stable portfolio.

Markowitz’s Influence on Financial Markets:

Harry Markowitz’s contributions have had a profound impact on the field of finance. His work has influenced investment management practices, leading to the rise of mutual funds, index funds, and other diversified investment vehicles. MPT is now a fundamental concept taught in finance courses worldwide.

Machine Learning Implementation:

To create an optimized portfolio, we can use machine learning algorithms. Here, we’ll employ the Monte Carlo Simulation and the Sharpe Ratio to calculate the optimal asset weights for our portfolio.

The Markowitz portfolio selection research paper introduced Modern Portfolio Theory (MPT) using mathematical formulas to optimize investment portfolios.

  1. Asset Returns: In MPT, we represent each investment asset as a random variable, denoted by “R.” This variable represents the returns (profits or losses) we can expect from the asset. The returns are usually expressed as a probability distribution, indicating the likelihood of different outcomes.
  2. Portfolio Return: A portfolio is a combination of multiple assets. The return of a portfolio is the weighted sum of individual asset returns. If we have “n” assets with returns R1, R2, …, Rn and weights w1, w2, …, wn, the portfolio return (Rp) can be calculated as:

Rp = w1 * R1 + w2 * R2 + … + wn * Rn

3. Portfolio Risk: Risk in MPT is measured by the variance of portfolio returns. Variance quantifies how much the returns of different assets deviate from their average. A higher variance implies greater uncertainty and risk.

Portfolio Variance (σ²p) = w1² * σ²(R1) + w2² * σ²(R2) + … + wn² * σ²(Rn) + 2 * w1 * w2 * Cov(R1, R2) + … + 2 * w1 * wn * Cov(R1, Rn) + … + 2 * wn-1 * wn * Cov(Rn-1, Rn)

Here, σ²(Ri) is the variance of asset i, and Cov(Ri, Rj) represents the covariance between assets i and j. Covariance measures how the returns of two assets move together. A positive covariance indicates they move in the same direction, while a negative covariance suggests they move in opposite directions.

4. Efficient Frontier: MPT aims to find the optimal mix of assets that offers the highest expected return for a given level of risk or the lowest risk for a target level of return. By varying the portfolio weights, we can plot different combinations of risk and return. The set of all optimal portfolios forms a curve known as the efficient frontier.

5. Risk-Return Trade-off: MPT highlights the trade-off between risk and return. Investors can choose a point on the efficient frontier that aligns with their risk tolerance and investment goals. Those seeking higher returns must accept higher risk, while risk-averse investors may opt for lower returns with reduced risk.

Criticism:

Markowitz’s Modern Portfolio Theory (MPT) has received widespread acclaim in the field of finance, but it is not without its critics. Some of the criticisms include the reliance on certain assumptions that may not hold true in real-world scenarios, the need for extensive historical data for accurate estimations, sensitivity to input changes, and potential over-diversification, diluting potential alpha. Critics also point out MPT’s failure to account for extreme events and argue that markets may not always be fully efficient. Despite these criticisms, MPT has profoundly impacted the finance world, providing valuable insights into diversification and risk management. It has influenced investors and portfolio managers for generations. However, it is essential to use MPT judiciously, acknowledging its limitations and integrating it with other approaches to form well-informed investment strategies. As the famous quotes by Nassim Nicholas Taleb, Warren Buffett, John Maynard Keynes, and Benjamin Graham suggest, understanding and applying MPT require a balanced perspective, considering both its strengths and weaknesses.

Warren Buffett: Diversification Is ‘Protection Against Ignorance’

Nassim Nicholas Taleb, author of “The Black Swan”: “The idea that you can actually have a statistical measure for risk is nonsense. People think that if you measure risk, you have tamed it. But risk doesn’t obey normal rules.”

Markowitz portfolio selection research paper revolutionized investment theory by mathematically demonstrating how to construct diversified portfolios to achieve the best risk-return trade-off. Investors can now make more informed and rational decisions when building their investment portfolios by applying the concepts of variance, covariance, and the efficient frontier.

The Markowitz portfolio selection research paper, published by Harry Markowitz in 1952, introduced a ground breaking concept called Modern Portfolio Theory (MPT). MPT is a mathematical framework that helps investors make smarter decisions about how to allocate their money among different assets like stocks and bonds.

Before MPT, investors used to pick individual assets based on their potential returns and risks without considering how these assets interact with each other. However, Markowitz realized that combining assets in a thoughtful way could help investors achieve better results.

Imagine you have a basket of different fruits, and you want to create a delicious and nutritious fruit salad. You wouldn’t just pick random fruits without considering their flavours and nutritional value. Instead, you would carefully select a mix of fruits that complement each other, offering a balance of flavours and nutrients. Similarly, MPT aims to create a well-balanced investment portfolio by combining assets that have different expected returns and risks.

In the paper, Markowitz introduced a mathematical formula to calculate the optimal mix of assets in a portfolio. This formula takes into account the historical performance of each asset and how they move together. By diversifying the portfolio with assets that have low or negative correlations, investors can reduce the overall risk while potentially increasing the expected return.

Let’s put it in simple terms, If you put all your money in just one asset, like a single stock, you are taking a big risk because its value can go up or down significantly. But if you spread your money across multiple assets that don’t all move in the same direction, the ups and downs of one asset can be balanced by others, reducing the overall risk.

MPT revolutionized the way investors think about building their portfolios. It taught them the importance of diversification and understanding the trade-off between risk and return. Today, MPT remains a fundamental concept in finance and is widely used by investors, financial advisors, and portfolio managers to create well-structured and efficient investment portfolios.

So, next time you think about investing your money, remember Markowitz’s brilliant idea of creating a fruit salad-like portfolio — a mix of assets that work together to give you a tasty and well-balanced investment journey.

References:

  1. Markowitz, H.M. (March 1952). “Portfolio Selection”. The Journal of Finance. 7 (1): 77–91. doi:10.2307/2975974. JSTOR 2975974.
  2. ^ Portfolio Selection, Harry Markowitz — The Journal of Finance, Vol. 7, №1. (Mar., 1952), pp. 77–91
  3. https://en.wikipedia.org/wiki/Modern_portfolio_theory
  4. Low, R.K.Y.; Faff, R.; Aas, K. (2016). “Enhancing mean–variance portfolio selection by modeling distributional asymmetries” (PDF). Journal of Economics and Business. 85: 49–72. doi:10.1016/j.jeconbus.2016.01.003.
  5. ^ Rachev, Svetlozar T. and Stefan Mittnik (2000), Stable Paretian Models in Finance, Wiley, ISBN 978–0–471–95314–2.
  6. ^ Risk Manager Journal (2006), “New Approaches for Portfolio Optimization: Parting with the Bell Curve — Interview with Prof. Svetlozar Rachev and Prof.Stefan Mittnik” (PDF).
  7. ^ Doganoglu, Toker; Hartz, Christoph; Mittnik, Stefan (2007). “Portfolio Optimization When Risk Factors Are Conditionally Varying and Heavy Tailed” (PDF). Computational Economics. 29 (3–4): 333–354. doi:10.1007/s10614–006–9071–1. S2CID 8280640.

If you enjoy reading stories like these and want to support me as a writer, consider signing up to become a Medium member. It’s $5/month, giving you unlimited access to thousands of stories on Medium, written by thousands of writers. If you sign up using my link https://medium.com/@fhuqtheta, I’ll earn a small commission.

--

--

Farzana huq

My area of interest are Insurance and tech , Deep learning, Natural language processing, Data mining, Machine learning, algorithmic trading, quantum computing.