Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
4,061
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.90 KB | None | 0 0
  1. Towards Data Science
  2. DATA SCIENCE
  3. MACHINE LEARNING
  4. PROGRAMMING
  5. VISUALIZATION
  6. AI
  7. JOURNALISM
  8. MORE
  9. CONTRIBUTE
  10. DIY Ray Dalio ETF: How to build your own Hedge Fund strategy with risk parity portfolios
  11. Thársis Souza, PhD
  12. Thársis Souza, PhD
  13. Follow
  14. Sep 3 · 10 min read
  15. Check out our Open Source Live Book project for the code used in this Article.
  16.  
  17. 7 November 2018; Ray Dalio, Bridgewater Associates on Centre Stage during day two of Web Summit 2018 at the Altice Arena in Lisbon, Portugal. Photo by David Fitzgerald/Web Summit via SportsfilePhoto by David Fitzgerald /Sportsfile. Image adapted by OpenQuants.com.
  18. Earlier this month, Bloomberg published a news article about the launch of a new Risk Parity ETF in the US. The RPAR Risk Parity ETF plans to allocate across asset classes based on risk. The fund would be the first in the U.S. to follow this quantitative approach, allotting more money to securities with lower volatility according to Bloomberg.
  19. [The RPAR Risk Parity ETF is] kind of like Bridgewater does, but they just do it for the wealthiest institutions in the world. The idea here is to build something that would work for everybody. — Alex Shahidi, former relationship manager at Dalio’s Bridgewater Associate and creator of the RPAR Risk Parity ETF. Bloomberg.
  20. The “risk parity” approach was popularized by Ray Dalio’s Bridgewater Associates — the largest hedge fund by assets under management ($132.8 billions) — with the creation of the All Weather asset allocation strategy in 1996. “All Weather” is a term used to designate funds that tend to perform reasonably well during both favorable and unfavorable economic and market conditions. Today, several managers have employed “All Weather” concepts under a risk parity approach.
  21.  
  22. Ray Dalio while giving a speech at the 10th anniversary celebration of charity Grameen America. Metropolitan Museum of Art, September 23 2017. Attribution: Grameen America [CC BY 3.0].
  23. A risk parity portfolio seeks to achieve an equal balance between the risk associated with each asset class or portfolio component. In that way, lower risk asset classes will generally have higher notional allocations than higher risk asset classes.
  24. Risk Parity is about Balance. The best way to achieve reliable balance is to design a portfolio based on a fundamental understanding of the environmental sensitivities inherent in the pricing structure of asset classes. This is the foundation of the All Weather approach — Bridgewater.
  25. Risk parity strategies suffered in recent history (2010–2017) as the bull market has pushed stocks to a record high hence favoring equity-concentrated portfolios. However, the increase in market volatility since 2018, the emergency of geo-political and trade-war risks as well as the growth in haven assets like Gold have created conditions that strengthen the case for diversified portfolios. This is demonstrated in Fig. 3.1 which shows that the S&P risk parity strategy has returned almost 10% over the last 12 months (Aug/2018 — Aug-2019), more than double the S&P 500 index of U.S. stocks.
  26.  
  27. Fig. 3.1 S&P 500 index versus S&P Risk Parity Index. Source: Bloomberg.
  28. But how can we build a risk parity portfolio? How would it perform against a traditional mean-variance model?
  29. In this Article,
  30. We will show how you can build your own Risk Parity portfolio
  31. We will create and compare the performance of two indices:
  32. A FAANG Risk Parity Index of FAANG companies with equal risk balance
  33. A FAANG Tangency Portfolio Index of FAANG companies with weights such that return/risk ratio is optimal
  34. By the end of this Article, you will be able to create your own risk parity fund inspired by Ray Dalio’s All Weather approach. We also provide code to reproduce results as part of our Open Source Live Book Initiative.
  35.  
  36. Risk Parity Portfolio — The Ray Dalio Approach
  37. A risk parity portfolio denotes a class of portfolios whose assets verify the following equalities (Vinicius and Palomar 2019):
  38.  
  39. where f is a positively homogeneous function of degree one that measures the total risk of the portfolio and w is the portfolio weight vector. In other words, the marginal risk contributions for every asset in a risk parity portfolio are equal. A common choice for f is the standard deviation of the portfolio, a common proxy for volatility, i.e.,
  40.  
  41. where Σ is the covariance matrix of assets.
  42. In practice, risk and portfolio managers have risk mandates they follow or bounds for marginal risk contributions at the asset, country, regional or sector levels. Hence, a natural extension of the risk parity portfolio is the so-called risk budget portfolio, in which the marginal risk contributions match preassigned quantities (Vinicius and Palomar 2019). Mathematically,
  43.  
  44. Tangency Portfolio — The Markowitz Approach
  45. Mean variance optimization is a commonly used quantitative tool part of Modern Portfolio Theory that allows investors to perform allocation by considering the trade-off between risk and return.
  46.  
  47. In 1990, Dr. Harry M. Markowitz shared The Nobel Prize in Economics for his work on portfolio theory.
  48. In a mean-variance framework, the objective is to minimize portfolio risk σ² subject to a baseline expected rate of return μ_b as follows:
  49.  
  50. where m is the vector of expected returns for the portfolio assets.
  51. We will obtain an optimal (min risk) portfolio for each target rate of return μ_b thus forming an efficient frontier. Each point in the efficient frontier in Fig. 3.4 is a portfolio with an optimal combination of securities that minimized risk given a level of risk (standard deviation). The dots below the efficient frontier are portfolios with inferior performance. They either offer the same returns but with higher risk, or they offer less return for the same risk.
  52.  
  53. Figure 3.4: Efficienty Frontier. Attribution: ShuBraque (CC BY-SA 3.0)
  54. But how can we choose a portfolio from the efficient frontier? One approach is to choose the most efficient portfolio from a risk/return standpoint, i.e., the portfolio with the highest Sharpe ratio (ratio between excess return and portfolio standard deviation). This portfolio is called the tangency portfolio and it’s located at the tangency point of the Capital Allocation Line and the Efficient Frontier.
  55. We will implement both the parity risk and the tangency portfolio in the next section.
  56. Optimizing FAANG: Ray Dalio versus Markowitz
  57. Single Portfolio
  58. We will consider log-returns of adjusted prices for FAANG companies, i.e., the stocks identified by the following tickers: FB, AMZN, AAPL, NFLX and GOOG.
  59. We can use the packages riskParityPortfolio and fPortfolio to build a FAANG risk parity and tangency portfolios, respectively. We will first consider FAANG returns from 2018 to build the portfolios as follows:
  60.  
  61. Fig. 3.5 shows the portfolio weights obtained for both the Parity and the Tangency portfolios. We observe that the Tangency portfolio concentrates the weights between Amazon and Netflix with both companies having nearly the same weight while Facebook, Apple and Google are left out of the portfolio. On the other hand, the Parity portfolio presents a well-balanced distribution of weights among the FAANG companies with all company weights around 20%. Apple and Google have weights a little over 20% while Netflix is the company with the lowest weight (15%).
  62.  
  63. Figure 3.5: Portfolio weights for parity and tangency FAANG portfolios considering returns from 2018.
  64. Fig. 3.6 compares the (covariance) risk budget of the Parity and Tangency portfolios obtained. As expected, we observe that the Parity portfolio has a risk budget equally distributed among the portfolio assets. On the other hand, the Tangency portfolio concentrates the risk between Amazon and Netflix with the latter corresponding to over 56% of the risk budget of the portfolio.
  65.  
  66. Figure 3.6: Portfolio covariance risk budget for parity and tangency FAANG portfolios considering returns from 2018.
  67. The Ray Dalio FAANG Index
  68. What would be the performance of a “Ray Dalio FAANG Index”, i.e., a portfolio composed of FAANG companies and rebalanced to match a corresponding Risk Parity portfolio? Would it beat a corresponding Tagency portfolio?
  69. To answer these questions, we will consider a portfolio of FAANG companies in the time period from 2014–01–01 and 2019–09–01 and build two indices:
  70. Risk Parity Index: Rebalances portfolio weights quarterly setting the weights according to a risk parity portfolio;
  71. Tangency Portfolio Index: Rebalances portfolio weights quarterly setting weights according to a Tangency portfolio.
  72. We first define our rebalance dates by constructing a rolling window of 12-month width and a 3-month step-size as follows:
  73. library(fPortfolio)
  74. faang.returns.xts<-faang.returns["2014-01-01/2019-09-01"]
  75. rWindows<-rollingWindows(faang.returns.xts, period="12m",
  76. by="3m")
  77. Our rebalance dates are the following:
  78. print(rWindows$to)
  79. ## GMT
  80. ## [1] [2014-12-31] [2015-03-31] [2015-06-30] [2015-09-30] [2015-12-31]
  81. ## [6] [2016-03-31] [2016-06-30] [2016-09-30] [2016-12-31] [2017-03-31]
  82. ## [11] [2017-06-30] [2017-09-30] [2017-12-31] [2018-03-31] [2018-06-30]
  83. ## [16] [2018-09-30] [2018-12-31] [2019-03-31] [2019-06-30]
  84. Next, we calculate risk parity portfolio weights at each rebalance date considering returns in a 12-month window as follows:
  85.  
  86. We now calculate quarterly weights for FAANG tangency portfolios. We leverage the fPortfolio package to calculate a rolling tangency portfolio as follows:
  87.  
  88. Fig. 3.8 shows the portfolio weights obtained for parity risk and tangency portfolios. We observe that the risk parity weights are quite stable over time with Netflix having a slightly under-weighting compared to the other portfolio constituents. On the other hand, the tangency portfolio weights vary considerably throughout the time period considered, which can impose challenges in its maintenance as its turnover can be quite high. The tangency portfolio overweights Apple and Amazon across many rebalance dates and it underweights Google in all rebalance dates.
  89.  
  90.  
  91. Figure 3.8: Portfolio weights for (A) FAANG risk parity portfolios and (B) FAANG tangency portfolios.
  92. We will use the time series of FAANG companies and the time series of risk parity and tangency portfolio weights to calculate the returns of the risk parity and tangency portfolio indexes as follows:
  93.  
  94. Fig. 3.9 shows the performance summary for the risk parity index versus the tangency portfolio index. Surprisingly, the FAANG risk parity index outperforms the FAANG tangency portfolio index considerably with a cumulative return of 169.48% versus 109.65% from the tangency portfolio index. The FAANG risk parity index also has a relatively lower drawdown across most of the period analyzed.
  95.  
  96. Figure 3.9: Performance summary for the risk parity index versus the tangency portfolio index
  97. Tables 3.1 and 3.2 show the calendar returns for the risk parity and tangency portfolio indexes, respectively. Interestingly, in years where the tangency portfolio index had positive cumulative return, the risk parity index yielded less returns than the tangency portfolio index. Conversely, in years where the tangency portfolio index had negative cumulative return, the risk parity index showed superior performance than the tangency portfolio index. In that way, the risk parity index showed “not as good” but also “not as bad” yearly returns compared to the tangency portfolios.
  98.  
  99.  
  100. Fig. 3.10 shows the performance summary in a rolling 252-day window. Again, we observe that the risk parity index presents a superior performance compared to the tangency portfolio index. The risk parity index has higher annualized return, lower standard deviation and superior Sharpe ratio in most of the period analyzed compared to the tangency portfolio index. As presented in Tab. 3.3, the risk parity index has a total of 23.71% annualized return, 22.55% standard deviation and 1.051 Sharpe-ratio versus 17.22% annualized return, 26.42% standard deviation and 0.652 Sharpe-ratio from the tangency portfolio index.
  101.  
  102. Figure 3.10: Performance summary in a rolling 252-day window for the risk parity index versus the tangency portfolio index
  103.  
  104. Discussion and Conclusion
  105. What mix of assets has the best chance of delivering good returns over time through all economic environments?
  106. That was the question posed by Bridgewater Associates before creating the All Weather funds with concepts today popularized in the so-called risk parity strategies.
  107. The traditional approach to asset allocation often tolerates higher concentration of risk with the objective to generate higher longer-term returns. Bridgewater argues that this approach has a serious flaw:
  108. If the source of short-term risk is a heavy concentration in a single type of asset, this approach brings with it a significant risk of poor long-term returns that threatens the ability to meet future obligations. This is because every asset is susceptible to poor performance that can last for a decade or more, caused by a sustained shift in the economic environment — Bridgewater.
  109. In this Article, we introduced the concept of risk parity portfolios and compare it against a mean-variance model. We provided a simple practical example by constructing a FAANG risk parity index and comparing its performance against a FAANG tangency index, which selects the portfolio from the mean-variance efficient frontier with optimal Sharpe-ratio.
  110. The risk parity index presented higher annualized return, lower standard deviation and superior Sharpe ratio in most of the period analyzed compared to the tangency portfolio index. Of course, results should be taken with caution.
  111. In practice, both the risk parity and mean-variance approaches are employed in larger portfolios potentially across multiple asset classes. Those methodologies strive when there are assets that are uncorrelated in the portfolio which can increase the potential for diversification. Further, modern portfolio optimization strategies can be much more complex with a variety of objective functions and constraints. Our objective in this article was to give you a head start. Feel free to check out the source code in our github project and implement your own strategies!
  112.  
  113. References
  114. Vinicius, Ze, and Daniel P. Palomar. 2019. RiskParityPortfolio: Design of Risk Parity Portfolios. https://CRAN.R-project.org/package=riskParityPortfolio.
  115. Investing
  116. Finance
  117. Money
  118. Data Science
  119. Economy
  120. 338 claps
  121.  
  122. Thársis Souza, PhD
  123. WRITTEN BY
  124. Thársis Souza, PhD
  125. Follow
  126. Data Science, Finance and Alternative Data. www.openquants.com
  127. Towards Data Science
  128. Towards Data Science
  129. Follow
  130. Sharing concepts, ideas, and codes.
  131. See responses (1)
  132. Discover Medium
  133. Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
  134. Make Medium yours
  135. Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
  136. Become a member
  137. Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade
  138. About
  139. Help
  140. Legal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement