Machine Learning Portfolio Optimization: Hierarchical Risk Parity and Modern Portfolio Theory

Total Page:16

File Type:pdf, Size:1020Kb

Machine Learning Portfolio Optimization: Hierarchical Risk Parity and Modern Portfolio Theory Master’s Degree in Corporate Finance Department of Business and Management - Chair of Risk Management Machine Learning Portfolio Optimization: Hierarchical Risk Parity and Modern Portfolio Theory SUPERVISOR Professor Francesco Cerri CO - SUPERVISOR Professor Marco Vulpiani CANDIDATE Luca Bechis 709261 ACADEMIC YEAR 2019 ‒ 2020 Machine Learning Portfolio Optimization: Hierarchical Risk Parity and Modern Portfolio Theory To Eugenio 1 Machine Learning Portfolio Optimization: Hierarchical Risk Parity and Modern Portfolio Theory Table of Contents Introduction .......................................................................................................................................................... 4 1.THE DEVELOPMENT OF MODERN PORTFOLIO THEORY ................................................................. 8 1.1. Markowitz Portfolio Theory .......................................................................................................................... 8 1.1.1. The Mean-Variance portfolio model ...................................................................................................... 9 1.1.2. The efficient frontier ............................................................................................................................ 13 1.2. The Capital Asset Pricing Model (CAPM)……………………………………………………………… .. 16 1.2.1. A graphical representation of the CAPM…………………………………………………………… .. 18 1.2.2. Critiques of the Capital Asset Pricing theory ....................................................................................... 20 1.3. The Traditional Risk-Based Approaches ..................................................................................................... 22 1.3.1. Risk-based portfolio properties ............................................................................................................ 25 1.3.2. The equally risk contribution portfolio strategy (ERC) ........................................................................ 26 1.3.3. The naïve portfolio strategy – Equally weighted allocation (EW) ...................................................... 29 1.3.4. The global minimum variance strategy (GMV) .................................................................................. 31 1.3.5. The maximum diversification portfolio (MDP) .................................................................................. 33 1.3.6. The maximum sharpe ratio portfolio (MSP) ....................................................................................... 35 1.3.7. The inverse volatility portfolio (IV) .................................................................................................... 35 1.3.8. Market-capitalization portfolio-cap-weighted (MCWP) ..................................................................... 36 1.4. Portfolio Performance Evaluation Techniques ............................................................................................ 37 1.4.1. Sharpe ratio ........................................................................................................................................... 37 1.4.2. Sortino ratio .......................................................................................................................................... 38 1.4.3. Treynor ratio ......................................................................................................................................... 39 1.4.4. Value at risk and the expected shortfall ................................................................................................ 40 1.4.5. The maximum drawdown ..................................................................................................................... 48 1.5. Efficient Frontier Optimization in Python: Maximum Sharpe Ratio vs Minimum Volatility ..................... 49 2. THE HIERARCHICAL RISK PARITY PORTFOLIO OPTIMIZATION ............................................... 63 2.1. The Hierarchical Structure ........................................................................................................................... 63 2.2. The Problem with Quadratic Programming: The Critical Line Algorithm (CLA) ...................................... 64 2.2.1. The framework ..................................................................................................................................... 65 2.2.2. A practical application of the critical line algorithm ........................................................................... 67 2.3. The Hierarchical Risk Parity Portfolio ........................................................................................................ 78 2 Machine Learning Portfolio Optimization: Hierarchical Risk Parity and Modern Portfolio Theory 2.3.1. Tree clustering ...................................................................................................................................... 79 2.3.2. Quasi-diagonalization ........................................................................................................................... 84 2.3.3. Recursive bisection ............................................................................................................................... 86 2.4. The HRP Portfolio Optimization in Python: A Practical Application ......................................................... 90 3. EMPIRICAL HIERARCHICAL RISK PARITY PORTFOLIO ANALYSIS .......................................... 98 3.1. Data Description .......................................................................................................................................... 98 3.1.1. The choice of the index: the Dow Jones Industrial Average ................................................................ 98 3.1.2. The all ETFs portfolio ........................................................................................................................ 105 3.2. Methodology .............................................................................................................................................. 108 3.3 Empirical Results ........................................................................................................................................ 112 3.3.1. The Dow Jones Index portfolio results ............................................................................................... 114 3.3.2. The ETF portfolio results ................................................................................................................... 129 Conclusions ...................................................................................................................................................... 132 Executive Summary ....................................................................................................................................... 135 Bibliography ..................................................................................................................................................... 147 Sitography ........................................................................................................................................................ 152 3 Machine Learning Portfolio Optimization: Hierarchical Risk Parity and Modern Portfolio Theory INTRODUCTION The Portfolio allocation strategy and construction is perhaps one of the most challenging and frequent issues in the asset management industry. Every day, millions of investors around the world seek to maximize their investment in order to achieve their most important financial goals: investing for retirement, buying a house, paying for college or simply earning returns in excess of a particular market benchmark. They try to build up portfolios today that can deliver the financial outcomes they need in the future. A brilliant 24 years old economist, Harry Markowitz, with the publication of his famous paper “Portfolio Selection” in 1952, marked a milestone in the portfolio theory by introducing the mean-variance portfolio allocation approach. Regarded the father of Modern Portfolio Theory (MPT), Markowitz was the first scholar recognizing that various levels of risks are associated with different optimal portfolios depending on the investor’s risk-return preferences. His mean- variance approach was revolutionary since it provided scholars and asset managers with an intuitive quantitative framework to adopt. Before Markowitz work, investment managers usually considered the optimal portfolio as the one achieving the highest expected return. Since it is enormously difficult to optimally allocate a portfolio with the highest expected return, investors should reconsider distributing their resources across alternative investments to build a more diversified portfolio. Furthermore, Markowitz argued that investors, when allocating their wealth, should be interested in only two distinct yet interrelated elements: the expected return of an investment and the risk of the same. According to the mean-variance environment, everyone faces a trade-off when constructing his/her optimal portfolio. Indeed, there is a one to one direct relationship between the variance and the return of an investment. Risk-averse investors would be willing to give up a bit of return in change of safer portfolios, while risk-seeking people want to maximize the expected return no matter the variance. Markowitz argued that the only efficient portfolios are those that for any given amount of volatility, have the highest possible
Recommended publications
  • CHAPTER 16 ESTIMATING EQUITY VALUE PER SHARE in Chapter 15, We Considered How Best to Estimate the Value of the Operating Assets of the Firm
    1 CHAPTER 16 ESTIMATING EQUITY VALUE PER SHARE In Chapter 15, we considered how best to estimate the value of the operating assets of the firm. To get from that value to the firm value, you have to consider cash, marketable securities and other non-operating assets held by a firm. In particular, you have to value holdings in other firms and deal with a variety of accounting techniques used to record such holdings. To get from firm value to equity value, you have to determine what should be subtracted out from firm value – i.e, the value of the non-equity claims in the firm. Once you have valued the equity in a firm, it may appear to be a relatively simple exercise to estimate the value per share. All it seems you need to do is divide the value of the equity by the number of shares outstanding. But, in the case of some firms, even this simple exercise can become complicated by the presence of management and employee options. In this chapter, we will measure the magnitude of this option overhang on valuation and then consider ways of incorporating the effect into the value per share. The Value of Non-operating Assets Firms have a number of assets on their books that can be categorized as non- operating assets. The first and obvious one is cash and near-cash investments – investments in riskless or very low-risk investments that most companies with large cash balances make. The second is investments in equities and bonds of other firms, sometimes for investment reasons and sometimes for strategic ones.
    [Show full text]
  • Growth, Profitability and Equity Value
    Growth, Profitability and Equity Value Meng Li and Doron Nissim* Columbia Business School July 2014 Abstract When conducting valuation analysis, practitioners and researchers typically predict growth and profitability separately, implicitly assuming that these two value drivers are uncorrelated. However, due to economic and accounting effects, profitability shocks increase both growth and subsequent profitability, resulting in a strong positive correlation between growth and subsequent profitability. This correlation increases the expected value of future earnings and thus contributes to equity value. We show that the value effect of the growth-profitability covariance on average explains more than 10% of equity value, and its magnitude varies substantially with firm size (-), volatility (+), profitability (-), and expected growth (+). The covariance value effect is driven by both operating and financing activities, but large effects are due primarily to operating shocks. One implication of our findings is that conducting scenario analysis or using other methods that incorporate the growth-profitability correlation (e.g., Monte Carlo simulations, decision trees) is particularly important when valuing small, high volatility, low profitability, or high growth companies. In contrast, for mature, high profitability companies, covariance effects are typically small and their omission is not likely to significantly bias value estimates. * Corresponding author; 604 Uris Hall, 3022 Broadway, New York, NY 10027; phone: (212) 854-4249; [email protected].
    [Show full text]
  • Careers in Quantitative Finance by Steven E
    Careers in Quantitative Finance by Steven E. Shreve1 August 2018 1 What is Quantitative Finance? Quantitative finance as a discipline emerged in the 1980s. It is also called financial engineering, financial mathematics, mathematical finance, or, as we call it at Carnegie Mellon, computational finance. It uses the tools of mathematics, statistics, and computer science to solve problems in finance. Computational methods have become an indispensable part of the finance in- dustry. Originally, mathematical modeling played the dominant role in com- putational finance. Although this continues to be important, in recent years data science and machine learning have become more prominent. Persons working in the finance industry using mathematics, statistics and computer science have come to be known as quants. Initially relegated to peripheral roles in finance firms, quants have now taken center stage. No longer do traders make decisions based solely on instinct. Top traders rely on sophisticated mathematical models, together with analysis of the current economic and financial landscape, to guide their actions. Instead of sitting in front of monitors \following the market" and making split-second decisions, traders write algorithms that make these split- second decisions for them. Banks are eager to hire \quantitative traders" who know or are prepared to learn this craft. While trading may be the highest profile activity within financial firms, it is not the only critical function of these firms, nor is it the only place where quants can find intellectually stimulating and rewarding careers. I present below an overview of the finance industry, emphasizing areas in which quantitative skills play a role.
    [Show full text]
  • Global Trends in Mid-Market Private Equity Investing
    Investment Perspectives MARCH 2021 GLOBAL TRENDS IN MID-MARKET PRIVATE EQUITY INVESTING GLOBAL TRENDS IN MID-MARKET PRIVATE EQUITY INVESTING | 1 We are delighted to share our aspects in the management of There are macro developments that perspective and insights on some of portfolio companies: workers’ give us reason to be optimistic. In the major industry trends influencing safety, cost control, and supply chain December 2020, within days of the our private equity business, and what maintenance. In particular, managers, transition period deadline, a new this means for 2021 and beyond. with the support of a banking Brexit deal was agreed between the system that showed more flexibility EU and the UK, removing significant As we reflect on 2020, it is clear that compared to the last recession along uncertainty and volatility from the this was a year of two halves. Private with a greater role of private credit market. As the global vaccine rollout equity deal-making fell sharply as capital as a buffer, particularly in the gathers pace and life returns to the pandemic took hold. Sponsors middle market, ensured portfolio some form of normality, increased quickly turned their attention to their companies implemented important consumer spending will have a portfolios rather than commit to new measures aimed at safeguarding direct benefit on consumer-facing investment opportunities. Indeed, liquidity. In addition, managers businesses, albeit gradually, which there were winners, such as tech and have taken full advantage of simulates the performance of healthcare companies that benefitted programs made available by national companies coming out of a recession. from healthy capital markets and the governments, including tax breaks, History shows that this is an excellent IPO window, and losers, such as travel social security safety-nets and other time to invest.
    [Show full text]
  • The Option to Stock Volume Ratio and Future Returns$
    Journal of Financial Economics 106 (2012) 262–286 Contents lists available at SciVerse ScienceDirect Journal of Financial Economics journal homepage: www.elsevier.com/locate/jfec The option to stock volume ratio and future returns$ Travis L. Johnson n, Eric C. So Stanford University, Graduate School of Business, 655 Knight Way Stanford, CA 94305, United States article info abstract Article history: We examine the information content of option and equity volumes when trade Received 15 November 2010 direction is unobserved. In a multimarket asymmetric information model, equity Received in revised form short-sale costs result in a negative relation between relative option volume and future 11 November 2011 firm value. In our empirical tests, firms in the lowest decile of the option to stock Accepted 28 November 2011 volume ratio (O/S) outperform the highest decile by 0.34% per week (19.3% annualized). Available online 17 May 2012 Our model and empirics both indicate that O/S is a stronger signal when short-sale costs JEL classification: are high or option leverage is low. O/S also predicts future firm-specific earnings news, G11 consistent with O/S reflecting private information. G12 & 2012 Elsevier B.V. All rights reserved. G13 G14 Keywords: Short-sale costs Options Trading volume Return predictability 1. Introduction creates additional incentives to generate private informa- tion. In this way, trades in derivative markets may provide In recent decades, the availability of derivative secu- more refined and precise signals of the underlying asset’s rities has rapidly expanded. This expansion is not limited value than trades of the asset itself.
    [Show full text]
  • The Effect of Portfolio Size on the Financial Performance of Portfolios of Investment Firms in Kenya
    THE EFFECT OF PORTFOLIO SIZE ON THE FINANCIAL PERFORMANCE OF PORTFOLIOS OF INVESTMENT FIRMS IN KENYA PRESENTED BY MBOGO PETER KIMANI: D61/61748/2010 A Research Project Submitted in Partial Fulfillment of the Requirements for the Degree of Master of Business Administration (MBA), School of Business, University of Nairobi. AUGUST 2012 DECLARATION This research project is my original work and has not been submitted for the award of a degree in any other university. Signed: …………..……………………………….. Date: ………………………… Mbogo Peter Kimani Reg. No.: D61 /61748/2010 This research project has been submitted for examination with my approval as university supervisor. Signed: …………………………………………… Date: ………………………… Dr. Josiah Aduda Lecturer, Department of Finance and Accounting ii DEDICATION I dedicate this work to my wife and my children for their support during its preparation. Your patience and encouragement as I stayed away for long, either in class throughout the weekends, or in the field was really touching. iii ACKNOWLEDGEMENT A major research project like this is never the work of anyone alone. The contributions of many different people, in their different ways, have made this possible. First, I would like to thank God for the wisdom and perseverance that HE has bestowed upon me during this research project, and indeed, throughout my life. Second, I offer my sincerest gratitude to my supervisors; Dr. Josiah Aduda and Mr. Mirie Mwangi who have supported me throughout this research project with their patience and knowledge whilst allowing me the room to work in my own way. I appreciate the odd hours we spent discussing the reports. I wish to thank the respondents who participated in this study.
    [Show full text]
  • COMMON FACTORS in CORPORATE BOND RETURNS Ronen Israela,C, Diogo Palharesa,D and Scott Richardsonb,E
    Journal Of Investment Management, Vol. 16, No. 2, (2018), pp. 17–46 © JOIM 2018 JOIM www.joim.com COMMON FACTORS IN CORPORATE BOND RETURNS Ronen Israela,c, Diogo Palharesa,d and Scott Richardsonb,e We find that four well-known characteristics (carry, defensive, momentum, and value) explain a significant portion of the cross-sectional variation in corporate bond excess returns. These characteristics have positive risk-adjusted expected returns and are not subsumed by traditional market premia or respective equity anomalies. The returns are economically significant, not explained by macroeconomic exposures, and there is some evidence that mispricing plays a role, especially for momentum. 1 Introduction predict returns in other markets, yet researchers have not studied the viability of all these charac- Corporate bonds are an enormous—and grow- teristics to predict returns in credit markets. The ing—source of financing for companies around characteristics are carry, quality, momentum, and the world. As of the first quarter of 2016, there value (Koijen et al., 2014 for carry; Frazzini and was $8.36 trillion of U.S. corporate debt out- Pedersen, 2014 for quality; Asness et al., 2013 for standing, and from 1996 to 2015 corporate bond momentum and value). Our contribution includes issuance grew from $343 billion to $1.49 trillion (i) applying these concepts to credit markets; (ii) (Securities Industry and Financial Markets Asso- studying them together in a way that shines light ciation). Surprisingly little research, however, has on their joint relevance or lack thereof; (iii) eval- investigated the cross-sectional determinants of uating their economic significance by examining corporate bond returns.
    [Show full text]
  • Do Investors Trade Too Much?
    Do Investors Trade Too Much? By TERRANCE ODEAN* Trading volume on the world’s markets should be in real markets, it is difficult to test seems high, perhaps higher than can be ex- whether observed volume is too high. plained by models of rational markets. For ex- If trading is excessive for a market as a ample, the average annual turnover rate on the whole, then it must be excessive for some New York Stock Exchange (NYSE) is currently groups of participants in that market. This paper greater than 75 percent1 and the daily trading demonstrates that the trading volume of a par- volume of foreign-exchange transactions in all ticular class of investors, those with discount currencies (including forwards, swaps, and spot brokerage accounts, is excessive. transactions) is roughly one-quarter of the total Alexandros V. Benos (1998) and Odean annual world trade and investment flow (James (1998a) propose that, due to their overconfi- Dow and Gary Gorton, 1997). While this level dence, investors will trade too much. This paper of trade may seem disproportionate to inves- tests that hypothesis. The trading of discount tors’ rebalancing and hedging needs, we lack brokerage customers is good for testing the economic models that predict what trading vol- overconfidence theory of excessive trading be- ume in these market should be. In theoretical cause this trading is not complicated by agency models trading volume ranges from zero (e.g., relationships. Excessive trading in retail broker- in rational expectation models without noise) to age accounts could, on the other hand, result infinite (e.g., when traders dynamically hedge in from either investors’ overconfidence or from the absence of trading costs).
    [Show full text]
  • An Active Approach to Value Investing Investing in Value
    An active approach to value investing Investing in value • Value shares are cheap relative to the company’s fundamentals such as book value and cash flow • Value investing exploits the anomaly that investors shun companies that may be Inexpensive equities struggling in the short term while overpaying have earned The value for companies exhibiting recent growth a higher factor return than • Benjamin Graham and David Dodd made expensive value investing famous in the 1930s in their shares book Security Analysis • Academic research from the 1970s established the value factor • More recent famous value investors include Warren Buffett Value is one of the many factors an investor can choose to target. Factors are the underlying exposures that explain and influence an investment’s return. Investing in shares with low valuations is known as value Active investing. This is a well-documented active investment Vanguard Global Value Factor UCITS ETF follows an active approach that has been shown to outperform over the long investment strategy. It does not track an index nor does it term. It invests in shares that are considered inexpensive use market capitalisation weights to determine a share’s compared with their company fundamentals. For example, position in the portfolio. equities with low share prices relative to the company’s book value, cash flow or earnings are often considered Portfolio managers use quantitative models to assess value shares. a share’s suitability and build the portfolio. The models determine an equity’s value characteristics and assign a Vanguard Global Value Factor UCITS ETF is a global equity value factor score.
    [Show full text]
  • Investment Analysis and Portfolio Management
    LEONARDO DA VINCI Transfer of Innovation Kristina Levišauskait÷ Investment Analysis and Portfolio Management Leonardo da Vinci programme project „Development and Approbation of Applied Courses Based on the Transfer of Teaching Innovations in Finance and Management for Further Education of Entrepreneurs and Specialists in Latvia, Lithuania and Bulgaria ” Vytautas Magnus University Kaunas, Lithuania 2010 Investment Analysis and Portfolio Management Table of Contents Introduction …………………………………………………………………………...4 1. Investment environment and investment management process…………………...7 1.1 Investing versus financing……………………………………………………7 1.2. Direct versus indirect investment …………………………………………….9 1.3. Investment environment……………………………………………………..11 1.3.1. Investment vehicles …………………………………………………..11 1.3.2. Financial markets……………………………………………………...19 1.4. Investment management process…………………………………………….23 Summary…………………………………………………………………………..26 Key-terms…………………………………………………………………………28 Questions and problems…………………………………………………………...29 References and further readings…………………………………………………..30 Relevant websites…………………………………………………………………31 2. Quantitative methods of investment analysis……………………………………...32 2.1. Investment income and risk………………………………………………….32 2.1.1. Return on investment and expected rate of return…………………...32 2.1.2. Investment risk. Variance and standard deviation…………………...35 2.2. Relationship between risk and return………………………………………..36 2.2.1. Covariance……………………………………………………………36 2.2.2. Correlation and Coefficient of determination………………………...40
    [Show full text]
  • HOW SHOULD BETA INFLUENCE INVESTMENT DECISIONS? by Jordan Gaglione Submitted in Partial Fulfillment of the Requirements for Depa
    HOW SHOULD BETA INFLUENCE INVESTMENT DECISIONS? By Jordan Gaglione Submitted in partial fulfillment of the requirements for Departmental Honors in the Department of Finance Texas Christian University Fort Worth, Texas May 4, 2015 ii HOW SHOULD BETA INFLUENCE INVESTMENT DECISIONS Project Approved: Supervising Professor: Steven Mann, Ph.D. Department of Finance Larry Lockwood, Ph.D. Department of Finance Stacy Landreth Grau, Ph. D. Department of Marketing iii Abstract In the highly competitive field of finance, investors are constantly trying to invest in stocks and other assets to outperform their peers and various benchmarks. At the center of modern portfolio theory is beta, a necessary component to calculate a stock’s expected return and the subject of debate within academia. This paper strives to demonstrate that beta is somewhat when making investment decisions and that while investors should look elsewhere for more relevant factors to make investment decisions, beta can be useful in estimating a stock’s risk. This paper will also analyze both the practitioner and academic uses of beta and how theoretical uses of beta have evolved over time as well as calculate beta’s predictive ability. iv Table of Contents Introduction ........................................................................................................... 1 Buffett’s Strategy Defined ..................................................................................... 3 What is Beta? ......................................................................................................
    [Show full text]
  • Price-To-Book's Growing Blind Spot
    osamresearch.com Price-to-Book’s Growing Blind Spot RESEARCH BY CHRIS MEREDITH, CFA: NOVEMBER 2016 OSAM RESEARCH TEAM Value has broadly been accepted as an investing style and, historically, portfolios formed on cheap valuations have outperformed expensive portfolios. Jim O’Shaughnessy Chris Meredith, CFA But value comes in many flavors, and the factor(s) you choose to measure Scott Bartone, CFA cheapness can determine your long-term success. In particular, several Travis Fairchild, CFA operating metrics of value, such as earnings and EBITDA, have outperformed Patrick O’Shaughnessy, CFA the more traditional price-to-book (P/B) factor. A possible reason for the limited Ehren Stanhope, CFA efficacy of price-to-book is because of the increase in shareholder transactions, Manson Zhu, CFA primarily through the increase in share repurchases. Valuation factors have the benefit of being simple, but can also have flaws. Price-to-sales has the benefit of measuring against revenue, which is difficult to manipulate, but it doesn’t take margins into account. Price-to-earnings (P/E) measures against the estimated economic output of the company, but also contains estimated expenses that can be manipulated by managers. EBITDA-to-enterprise-value (EBITDA/EV) has the benefit of including operating cost structures, but it misses payments to bondholders and the government. Even with these flaws, the factors are effective in practice. Figure 1 shows the quintile spreads of two factors within a universe of U.S. Large Stocks from 1964 through 2015.1 Price-to-book is perhaps the most widely used valuation Figure 1: Quintile Spreads —P/E and EBITDA/EV factor in the investing industry.
    [Show full text]