PYTHON
[|]
#Part 12

All Weather Portfolio (of ETFs) with Crypto

Discover the All Weather Portfolio's performance and optimised allocations, alongside the influence of cryptocurrencies like Bitcoin, in this comprehensive analysis. Gain insights for crafting robust investment strategies to navigate changing market conditions.

There is a related introductory article on Practical Portfolio Optimisation - please read it carefully to understand the 'philosophy' of Portfolio Optimisation and major underlying principles.
Discussion in Telegram
Screencasts on Youtube
Articles on Medium
Code on Github
Author: Daria Isaak
Data Analyst
Author: Ivan Brigida
Data Analyst and Financial Enthusiast
NOT INVESTMENT ADVICE
The Content is for informational purposes only, you should not construe any such information or other material as legal, tax, investment, financial, or other advice.

Intro

During periods of financial uncertainty, preserving capital becomes a key focus. Ray Dalio's All Weather Portfolio, renowned for its approach to portfolio optimization, is designed around asset classes that have shown resilience in various economic conditions. Its construction aims for diversification, enabling steady growth with minimal drawdowns. In the following article, we will reconstruct the All Weather Portfolio and examine it alongside alternative methods of weight allocation.
Executive Summary
Dive into the strategic depths of the All Weather Portfolio, skilfully engineered by Bridgewater Associates with a 55% allocation to bonds, 30% to US stocks, and 15% to hard assets and commodities. Meticulously dissecting its emphasis on diversification and correlation, this article navigates the portfolio's resilience across economic conditions.

Through precise analysis with a 7 years timeframe, employing Mean-Variance and Sharpe optimisation, this study quantifies portfolio performance. Notably, Sharpe-optimised portfolios outperform the All Weather Portfolio with an Annualised Return of 5.4%, Shapre Ratio of 0.61, and Annualised Volatility of 9.2%.

Breaking new ground, the article introduces Bitcoin, revealing its transformative role within portfolios. Inclusion of Bitcoin (BTC-USD), even with a modest 3% allocation, elevates the Sharpe-optimised portfolio's Annualised Return to 8% and Sharpe Ratio to 0.88. This underscores the potential benefits of diversifying with cryptocurrencies.

Summary of Results

  • The All Weather Portfolio Remains a Viable Option
    A testament to its enduring strength, the All Weather Portfolio proves that classics are never out of fashion, delivering 5-7% in average return over 10-20 years.
    01
  • Unveiling Better Returns with Sharpe-Optimised Portfolio
    This analysis showcases superior returns and an optimised risk-reward balance compared to the All Weather Portfolio, utilising the Sharpe Ratio optimisation approach based on the last 7 years of data.
    02
  • Bitcoin Integration: Elevating Performance in Sharpe-Optimised Portfolio
    By adding Bitcoin to a Sharpe-Optimised Portfolio, returns have been notably improved.
    03
  • Bitcoin's Indicator Role in the Crypto Landscape
    Bitcoin's dominance in the cryptocurrency market makes it a symbol for the entire sector of crypto, but an investor may want to mix in other cryptocurrencies for a better performance when risk tolerance is high.
    04
  • The Ongoing Quest for Optimal Asset Allocation
    Determining the most effective asset allocation for a portfolio remains a complex and evolving puzzle. Despite employing advanced techniques such as Sharpe optimization and exploring new avenues like Bitcoin, the pursuit of the perfect allocation persists as a multifaceted challenge.
    05

The All Weather Portfolio and Its Evolution: Diversification, Allocation, and Crypto Integration

The All Weather Portfolio, developed by Ray Dalio's Bridgewater Associates, is designed to perform well in any economic condition, including inflation, deflation, or stagflation. It emphasizes diversification and correlation, containing various asset classes to avoid putting all investments in one basket. The portfolio consists of 55% bonds, 30% US stocks, and 15% hard assets and commodities. The aim is to use diversification to smooth returns and lower drawdowns, making it a balanced option for investors. This structure allows the All Weather Portfolio to mitigate risk and provide stability for investors.

We start with designing the All Weather Portfolio with the help of with the following ETFs (the detailed analysis can be found here) :
It is important to mention that the original "All Weather Portfolio" doesn't include crypto assets as a class. Crypto is a relatively new investment option, and not all conservative investors comfortable allocating funds to it.

Given that the asset weights for the All Weather Portfolio have already been determined, we proceed directly to testing the portfolio's performance over the specified time period, from January 1, 2018, to October 15, 2024 (current date). This timeframe has been selected to include cryptocurrencies (for comparison with other portfolios) and is long enough to provide meaningful average growth metrics.

For comparative analysis, we are employing the classic Mean-Variance optimization approach, using Sharpe ratio optimization. To determine the optimal weights for the Sharpe-optimized portfolio, we analyze data from January 1, 2010, to January 1, 2018, and then test the performance over the same period as the All Weather Portfolio (January 1, 2018, to October 15, 2024). The core idea is that, by selecting a different timeframe (e.g., the last five years) or adjusting for varying risk appetites, we might discover 'more optimal' portfolios.

Moreover, to enhance and potentially strengthen the strategy, we are incorporating cryptocurrencies into the portfolio. This innovative addition aims to explore new investment possibilities, leveraging the dynamic and evolving nature of the cryptocurrency market.

Visualizing the All Weather Portfolio: Asset Allocation and Performance Statistics Over the Last Year

As previously stated the analysis begins by setting the start and end dates, specifically from January 1, 2018, to October 15, 2024. Next, we download the data from Yahoo Finance with the focus on the 'Adj Close' prices for the following assets:

  • Gold (GLD)
  • The iShares S&P GSCI Commodity-Indexed Trust (GSG)
  • The iShares 3-7 Year Treasury Bond ETF (IEI)
  • The iShares 20+ Year Treasury Bond ETF (TLT)
  • The Vanguard Total Stock Market ETF (VTI).
A pie chart of the portfolio's composition is created using the rp.plot_pie function from Riskfolio-lib, providing a visual representation of the investment allocation among the different asset classes. This visualisation aids in understanding how the portfolio is balanced.
Finally, we use vectorbt library to assess the portfolio's performance. The year frequency is set to 252 business days (commonly used to represent trading days in a year), and the portfolio's returns are analysed using the vbt.returns method. Various statistical measures can be obtained from this function, helping investors understand the risk and reward profile of the All Weather Portfolio.


All Weather Portfolio Performance output:

An Overview on YouTube

Sharpe optimisation

Before diving in Sharpe optimisation, we strongly recommend you to get yourself familiar with the Practical Portfolio Optimisation concepts that are covered in the following article here.

Now we continue with a classic Mean-Variance approach. To calculate the optimal portfolio, the code employs different methods to estimate expected returns and the covariance matrix based on historical data. Then, it proceeds to optimise the portfolio using the classic model and Mean-Variance (MV) approach. The objective function is set to maximise the Sharpe ratio, and the risk-free rate is defined as zero.

We calculate the new weights based on the historical data of our five assets (GLD, GSG, IEI, TLT, VTI) from January 1, 2010, to January 1, 2018:

Surprisingly, we have observed a significant shift in our new portfolio allocation. The largest portion of the portfolio is now allocated to IEI (iShares 3-7 Year Treasury Bond ETF), which comprises approximately 66.3%, a substantial increase from the previous 15%. Meanwhile, VTI (Vanguard Total Stock Market ETF) has seen a notable reduction, now representing 24.1% of the portfolio, down from 30%. Commodities, specifically GLD (Gold) and GSG (iShares S&P GSCI Commodity-Indexed Trust), have been entirely removed from the portfolio. This is likely due to the poor performance of commodities over the last seven years, but if we optimize for a longer or different time period, this asset class might re-emerge.

The most intriguing aspect of these changes is the complete exclusion of TLT (iShares 20+ Year Treasury Bond ETF) from the adjusted portfolio. This decision can be explained by a clear rationale: TLT has experienced low returns and high volatility due to its longer duration, which makes it highly sensitive to fluctuations in Federal Reserve interest rates. This sensitivity was particularly evident during the Fed's rate cut in 2019 and the subsequent rate hikes in 2022.
We can evaluate the performance of this new Sharpe-optimized portfolio over the time frame from JJanuary 1, 2018, to October 15, 2024:

Efficient Frontier Construction

As an investor, you may be willing to take on more risk in pursuit of higher potential profits, even if it means your risk/return ratio is not optimal, as was the case with the portfolio in the previous section (based on the Sharpe ratio). To accommodate this, we need a more flexible approach known as the "Efficient Frontier."

The efficient frontier represents a set of optimal portfolios that offer the highest expected return for a given level of risk. By examining the frontier, we can see the combination of assets with their associated return and volatility. Moving along the frontier from left to right reveals the best asset combinations based on the desired return while minimizing volatility.

The first graph illustrates the portfolio with the maximum risk-adjusted return. It highlights the specific point on the efficient frontier that offers the best return in relation to the assumed level of risk (this maximises the Sharpe ratio - symbolised by ⭐). The second graph serves the purpose of comprehending the composition of the efficient frontier itself. This graph showcases the manner in which asset weights shift as we traverse the frontier. This visualization offers insights into the adjustments of different risk levels achieved through varying asset allocations. Each 'optimal' point ranging from 1 to 50 on the first graph corresponds to a vertical 'cross-section' on the second graph, indicating the optimal asset allocation for that particular point."
In the world of investments, the idea that higher exposure to stocks heightens risk is a well-established concept. Stocks, due to their inherent volatility, are susceptible to market shifts, economic changes, and company-specific problems. While stocks historically offer greater returns, their volatility can lead to significant losses during market declines. This can be seen in the Efficient Frontier's Assets Structure, where an increased risk is associated with a higher fraction of VTI in our Portfolio.

Integrating Bitcoin into Portfolio Optimisation

Without a doubt, cryptocurrencies have emerged as a notable addition to the financial landscape, becoming an essential component in many people's lives. As proof, we can observe a rise in the quantity of cryptocurrency exchange-traded funds (ETFs), particularly in the European market. Consequently, when considering the construction of an optimized portfolio, it is necessary to evaluate the potential inclusion of this new asset class. However, questions arise: Could the addition of cryptocurrencies enhance the overall performance of the portfolio? Or might their known volatility undermine the benefits typically gained through diversification?

To address these questions, our research focuses on a selection of eight leading cryptocurrencies, ranked by market capitalisation. This approach excludes both newly launched coins and stablecoins, concentrating on a more stable and proven segment of the cryptocurrency market.

The cryptocurrencies selected for our study include 'ADA', 'BNB', 'BTC', 'DOGE', 'ETH', 'LTC', 'TRX', and 'XRP'. These choices reflect a range of market capitalisations and are representative of diverse approaches within the cryptocurrency space. In the accompanying graph, it becomes evident that 'BTC', 'ETH', and 'XRP' stand out as having substantially higher market capitalisations compared to the other selected cryptocurrencies.

This distinction in market capitalisation highlights the varying degrees of acceptance, investment, and utilisation across these cryptocurrencies. 'BTC', as the pioneering cryptocurrency, along with 'ETH', have established themselves as dominant players in the market. This contrasts sharply with the remaining cryptocurrencies in our selection, which, while significant, have not reached the same level of market penetration.
Further correlation analysis between Bitcoin ('BTC') and other selected cryptocurrencies reveals a significant positive relationship, with correlation coefficients ranging from 0.43 with 'XRP' to 0.92 with 'ETH'.
This suggests that adding small amounts of lesser-known cryptocurrencies that are less correlated with BTC could significantly enhance the overall portfolio’s risk-return profile.
This high correlation and relatively synchronised movement (normalized) indicate a shared response to market events and similar investor behavior across these cryptocurrencies. It may also reflect unique characteristics of each cryptocurrency, influencing the degree of correlation with Bitcoin (in this article we skip for now cointegration relations and casualty for simplicity).

The evidence detailed above supports the rationale for updating our Sharpe Portfolio to incorporate Bitcoin as a representative of the broader cryptocurrency sector. Recognising the correlations and behaviors associated with Bitcoin in relation to other cryptocurrencies, its inclusion serves as a strategic adjustment to capture the dynamics of this growing asset class.

So now in addition to our Sharpe MV optimisation assets (GLD, GSG, IEI, TLT, VTI) we include Bitcoin. And same as before - we calculate the new weights based on the historical data of our six assets (GLD, GSG, IEI, TLT, VTI, BTC) from January 1, 2018, to October 15, 2024:
In the updated Sharpe-optimised extended All Weather Portfolio, the allocation to Bitcoin is just 7%, taking share from the bonds etf (IEI), and increasing stocks exposure (VTI from 24 to 29%).
This modest inclusion of Bitcoin reflects a cautious approach, balancing the potential benefits of this cryptocurrency with the existing diversification strategy.
Let's once again construct an efficient frontier composed of 50 'points'. Each point corresponds to a different portfolio along the risk spectrum, ranging from a smallest standard deviation of <5% (point 1) to the largest at +75% (point 50). Each point represents the optimal portfolio with the highest expected return for a given level of risk. As previously, the ⭐ marker designates the point on the efficient frontier with the highest Sharpe ratio. We extract the asset weights from this specific asset combination.

It's important to note that both axes now have larger values. The maximum expected return has increased to 120%, in contrast to the classic All Weather Portfolio's 14%, while the highest expected standard deviation is now 75%, previously 15%. It's evident that the deviation grows rapidly with the expected returns. Consequently, the portfolio with the optimal Sharpe ratio (where we optimize the expected return/deviation ratio) is positioned towards the beginning, especially when the allocation to cryptocurrencies is relatively small. This precaution prevents an undue inflation of the risk metrics.
Full assets' allocation among the efficient frontier can be found on this graph below. As we can see a higher return associated with a higher volatility and as a result the bigger portion of BTC in our updated Sharpe Portfolio.
In contrast to our earlier findings, the asset carrying the highest risk in this scenario is now a cryptocurrency (BTC-USD), shifting from stocks (VTI) as observed previously. This shift explains the notable allocation towards cryptocurrency when risk escalates (moving from 0 to point 50) on the graph. However, it's important to note that this increased cryptocurrency exposure doesn't necessarily lead to substantial returns, as indicated by the 'optimal' Sharpe-optimised point (⭐) which doesn't feature a significant cryptocurrency weight.

Integrating other Cryptocurrencies into Portfolio Optimization

Lastly, we will incorporate all 8 cryptocurrencies into the portfolio optimisation to observe the impact on an All Weather Portfolio (i.e. we add 8 cryptocurrencies to the original 5 asset classes and find the star point "Max Risk Adjusted Return Portfolio" using Mean-Variance optimization).

To begin, we will create familiar graphs depicting the efficient frontier and asset allocation:
Both the expected risk and volatility experience a significant surge, potentially resulting in an anticipated return as high as 3000%. However, this heightened return comes hand in hand with a substantial standard deviation of 600% in the extreme scenario (point 50).

Curiously, the ETF with stocks (VTI) is now perceived as a comparatively secure investment within points 1-15. Conversely, commodities (GSG) play some role too, persisting until point 5. The riskiest combinations from points 25 to 50 are exclusively comprised of crypto assets such as ADA-USD and XRP-USD, and a some portion of bonds TLT (20+ year Treasury Bond ETF)

It remains noteworthy that the optimally Sharpe-optimised portfolio remains situated quite close to the leftmost lower-variance points, where the crypto allocation is still limited. However, this allocation is larger than the previous case ("All Weather + BTC-USD") where only 7% was allocated to Bitcoin. In this iteration, BTC-USD constitutes 3.5%, and XRP-USD accounts for 2.1%, totalling 5.6% of the portfolio allocated on crypto.

Overall Comparison

Now, let's delve into the comprehensive performance analysis of the four portfolios we've constructed over the timeline spanning from January 1, 2018, to October 15, 2024: the All Weather Portfolio with static weights, the Sharpe-optimized portfolio, the updated Sharpe-optimized portfolio that includes Bitcoin, and the enhanced Sharpe-optimized portfolio that encompasses 8 cryptocurrencies.

As depicted in the graph below, it's evident that Sharpe-optimized portfolios consistently with crypto outperform the All Weather Portfolio (optimized or not). The Sharpe-optimized portfolio with BTC (which holds a conservative crypto allocation of 7% of the total portfolio) demonstrates superior returns on any given day after 2021. On the other hand, the riskier Sharpe-optimized portfolio with 8 cryptocurrencies (comprising a more aggressive mix of multiple cryptos, accounting for 5.6% of the portfolio) led the portfolios for the majority of days since 2021, though it had deeper drawdowns in 2019 and 2020.
The table below provides detailed information regarding the performance of all four portfolios:
As evident from the daily graph above, the clear frontrunner appears to be the 'Sharpe-optimised All Weather portfolio with BTC.' This assumption holds true: the portfolio boasts a good annualised return of 8.05%, significantly surpassing the base All Weather Portfolio with 5.4% annual growth. Furthermore, it achieves the highest Sharpe and Sortino ratios.

However, while both Sharpe-optimised portfolios (with crypto) outshine the All Weather Portfolio in terms of performance, it's important to recognise that this trend may not persist over a more extended timeline.

Sharpe-optimized portfolios are designed to automatically allocate weights that maximize the Sharpe ratio, favoring assets with either substantial excess returns or low volatility. Conversely, the All Weather Portfolio is strategically designed to ensure steady growth by meticulously selecting assets that excel across diverse economic cycles and inflation scenarios.

Hence, the underperformance of the All Weather Portfolio within this specific timeframe could be somewhat deceiving. A more comprehensive testing period becomes imperative to accurately evaluate the strengths and weaknesses of this strategy
Conclusion
This study has explored various investment strategies, focusing on the All Weather Portfolio, Sharpe-optimised portfolios, and a modified Sharpe-optimised portfolio including cryptocurrencies.

The All Weather Portfolio is tailored to perform consistently in diverse economic scenarios, resulting in conservative returns.

The Sharpe-optimised portfolios aimed to strike a balance between risk and reward, yielding higher returns, especially when Bitcoin was integrated. However, these strategies might be more susceptible to unforeseen market shifts.

The addition of Bitcoin proved an intriguing experiment, boosting returns without introducing excessive unpredictability, underscoring the potential of cryptocurrency inclusion in investment strategies.

In summary, the All Weather Portfolio remains a sound strategy in 2024, ideal for those seeking measured and stable growth. It offers a balanced option, shielding investors from potential economic disruptions. Alternatively, for those open to adaptability and keen on leveraging current market trends, Sharpe-optimized portfolios, with or without cryptocurrency, present an appealing alternative, showcasing superior performance over the analyzed period. The ultimate choice should align with an investor's risk tolerance, goals, and economic perspective, as the optimal strategy hinges on these personalised factors.

Do you find the article useful?

Do you like the content?
Consider to make a donation
Whether you're grateful for the content, or you wish to support one of the ideas in the wishlist (published on the BuyMeACoffee page)

Leave your feedback on the article

For example, is it easy to understand?
For example, could you run the code?
For example, do you have idea to improve the article ?

Here you'll find the best articles from PythonInvest. Only useful digests, no spam.