Machine Learning Approach To Regime Modeling
Machine Learning Approach To Regime Modeling
Regime Modeling
© 2021 Two Sigma. All Rights Reserved. “Two Sigma” and the “2σ” logo are registered trademarks of Two Sigma Investments, LP. twosigma.com
Introduction each of those distributions would have its own properties,
like means and volatilities. In Exhibit 1 below, we show an
Financial markets have the tendency to change their
illustrative example of how a GMM might model a single time
behavior over time, which can create regimes, or periods
series. The green Cluster 2 captures the center part of the
of fairly persistent market conditions. Investors often look
asset’s return data, while the red and blue Clusters 1 and 3
to discern the current market regime, looking out for any
capture the tails.
changes to it and how those might affect the individual
components of their portfolio’s asset allocation. Modeling Thus, the GMM is able to use a combination of normal
various market regimes can be an effective tool, as it can distributions to model both the center and the tails of an
enable macroeconomically aware investment decision- asset’s distribution. We believe this is an especially helpful
making and better management of tail risks. method for modeling financial assets, as their return
distributions can often exhibit skew with a meaningful
In this Street View, we present a machine learning-based
number of observations in the tails.
approach to regime modeling, display the historical results
of that model, discuss its output for today’s environment,
Exhibit 1: Illustrative Example of Three Gaussians that
and conclude with practical use cases of this analysis for Describe a Single Time Series
allocators.
conditions.
We want to provide the GMM with returns data from more
An alternative, more data-driven approach is letting than one asset to have a broader representation of the
historical data on assets and/or market risks delineate overall market and risks. So we will provide the GMM with
the regimes for you. A specific example of this approach the historical returns of the factors in the U.S. version of the
is a Gaussian Mixture Model (GMM), which is a type of Two Sigma Factor Lens, with most of the factor data dating
unsupervised learning method.¹ back to the early 1970s (see Appendix 1 for the start dates
by factor). Instead of modeling the distribution of a single
The GMM uses various Gaussian distributions (another
asset, like we did in Exhibit 1, we will ask the GMM to model
word for a normal, bell curve distribution) to model different
the joint distribution of all 17 factors in the lens.²
parts of the data. As a simple example, imagine we had a
single time series of an asset’s returns. As we know, returns
of financial assets do not always follow a normal distribution.
So a GMM would fit various Gaussian distributions to
capture different parts of the asset’s return distribution, and
1 “Unsupervised learning uses algorithms to analyze and cluster unlabeled datasets. These algorithms discover hidden patterns or data groupings without the need for
human intervention.” Source: https://www.ibm.com/cloud/learn/unsupervised-learning
2 We did not include the recently added Crowding equity style factor in the GMM analysis given data limitations.
2
© 2021 Two Sigma. All Rights Reserved. “Two Sigma” and the “2σ” logo are registered trademarks of Two Sigma Investments, LP.
Please see the last page of this document, which contains important disclaimer and disclosure information.
Four Market Conditions Exhibit 3: Factor Volatilities in the Four Market Conditions
3 The number of clusters is the only hyper-parameter in this model, and we used a cross-validation method to select the best number of clusters. The criterion used to
measure goodness-of-fit is the log-likelihood. We also tried using other criteria, e.g. AIC and p-value from an empirical goodness-of-fit test for multivariate distributions
(McAssey, 2013). The results are similar to using log-likelihood.
4 Factor means, volatilities, and correlations were fit using data for the period starting on the dates in Appendix 1 and ending in late 2020.
5 The factor means are estimators of the true means, so bear in mind that there are error bounds around these estimated means.
3
© 2021 Two Sigma. All Rights Reserved. “Two Sigma” and the “2σ” logo are registered trademarks of Two Sigma Investments, LP.
Please see the last page of this document, which contains important disclaimer and disclosure information.
The Interest Rates factor, representing global sovereign factors were nearly flat, indicating that the U.S. and the
bonds, exhibited a positive mean return, perhaps rest of the world experienced similar risk-adjusted returns.
demonstrating that investors flocked to lower-risk securities Finally, the Local Inflation factor exhibited a small positive
during this type of market condition. (This hypothesis is also mean return, indicating minimal benefit to a U.S. inflation
supported by the positive mean returns of the Low Risk and hedge.
Quality long-short equity style factors.) The Local Inflation
We’ll refer to Market Condition 2 as Steady State.
factor, which attempts to capture the returns of an inflation
hedge, was negative, indicating that U.S. inflation hedges
Market Condition 3: Inflation
didn’t pay off during these periods, as there was likely lower
demand and economic activity when equity markets were In Market Condition 3, the U.S.-specific Local Inflation factor
in crisis. exhibited a double-digit mean return, the highest mean
return for that factor across the four market conditions. This
In terms of the style factors, the equity styles exhibited suggests that U.S. inflation hedges were generally rewarded
mostly positive average performance, with the exception in Market Condition 3.
being Small Cap, indicating that larger cap companies do
better in this market condition. Periods like this, in which We find that the global Equity and Interest Rates factors
overall equity markets are in “crisis mode,” could affect the have small positive mean returns, underperforming most, if
viability of a small cap company more than a larger one, not all, of the other four market conditions (positive inflation
as worsening economic conditions are associated with a shocks tend to be negative for both stocks and bonds).
systematically larger decline in sales and investment for Additionally, central banks might combat higher inflation
smaller firms than larger firms.⁶ We also see that the Trend with higher interest rates, which would also serve as a
Following macro style factor exhibited a large positive headwind for bonds.
return; any directional trend in macro markets will benefit
We see that the Foreign Currency factor exhibited the
this factor, no matter whether the trend is up or down.
highest average return of any factor in this market condition,
Finally, Market Condition 1 exhibited the highest average indicating that the USD underperformed G10 currencies on
absolute correlation between the factors, although it was average. Inflation erodes purchasing power and therefore
still very close to zero. This is by design, as the factors would be expected to coincide with a weaker local currency.
are constructed to be lowly correlated with one another,
Based on the notable performance of the Local Inflation
especially over long periods. However, we do observe factor
factor, we’ll call this market condition Inflation.
correlations rising during shorter, crisis-like periods in both
this analysis and others that we’ve run in the past,⁷ though
Market Condition 4: Walking on Ice
the factor correlations don’t rise to the extreme values seen
in unresidualized asset classes. Market Condition 4 tends to occur around Crisis (and Steady
State) periods,⁸ potentially indicating market fragility. Global
Based on all these observations, we believe the most equity markets (as proxied by the Equity factor) do well here,
appropriate label for Market Condition 1 would be Crisis. but with a higher volatility than their long-term average. In
fact, the Equity factor exhibited its second highest volatility
Market Condition 2: Steady State in Market Condition 4 (the highest was in Crisis, Market
Market Condition 2 seems to cover the most normal and Condition 1). And more generally, factor volatilities were
healthy market periods, as there are no obviously large on average 1.6 percentage points higher in this market
drawdowns for any factor. Equity, Credit, and nearly every condition than their respective long-term averages.
style factor performed well on average. We see that the
mean returns for the Local Equity and Emerging Markets
6 Crouzet, Nicolas and Neil R. Mehrotra (2017). “Small and Large Firms over the Business Cycle,” Research Division Federal Reserve Bank of Minneapolis.
7 See Exhibit 5 in the Two Sigma white paper Introducing the Two Sigma Factor Lens.
8 See Appendix 2 for a detailed breakdown of which market conditions preceded and followed Market Condition 4.
4
© 2021 Two Sigma. All Rights Reserved. “Two Sigma” and the “2σ” logo are registered trademarks of Two Sigma Investments, LP.
Please see the last page of this document, which contains important disclaimer and disclosure information.
We also find that most equity style factors’ mean returns The legend at the bottom of the exhibit includes the percent
were above average, with the main exception being of time the GMM found that market condition to have the
Momentum. Additionally, these factors in particular highest probability over this 1971 - 2020 period. Steady
experienced much higher volatilities compared to their State occurred most frequently since 1971, and each of the
long-term averages (e.g., Value exhibited 18.2% volatility in other three market conditions occurred in roughly 15-20%
Market Condition 4 vs. 8.9% long-term; Momentum 19.1% of the periods.
in Market Condition 4 vs. 10.5% long-term; Low Risk 20%
Starting from the top of the exhibit, Inflation was present
in Market Condition 4 vs. 10.4% long-term). This might
exclusively in the 1970s and 1980s, as expected, since that
mean that there is reversal behavior occurring within stocks
period was characterized by relatively high inflation and
exhibiting more choppy returns.
interest rates. Over that first decade and a half, Inflation was
Overall, it looks like this market condition potentially fairly persistent (i.e., limited interruption from other market
captures risk-on market periods where bubbles might exist conditions), as it took quite a bit of time to get soaring prices
or be forming. We’ll label it Walking on Ice (WOI). for goods and services under control. We don’t see Inflation
at any point in the last decade. Perhaps it will enter the
Historical Analysis of the Four Market picture in 2021 or 2022 if inflation does not prove transitory
Conditions (more on that in the next section).
Now that we have an understanding of the various market WOI occurred mostly during the tech bubble in the late
conditions, let’s look back through history to see when each 1990s and early 2000s. Markets were fragile for a while,
occurred. This analysis will be able to tell us the extent to as the bursting of the tech bubble occurred over multiple
which there have been fairly persistent market conditions, or years. There were a handful of Crisis periods during this
regimes, throughout history. time as well, which correspond to days where the market
had relatively large drawdowns, while the WOI periods were
For any given historical period, the GMM will estimate
times where the market either temporarily reversed and/
probabilities that the market was in the four market
or experienced large volatility. WOI was also the highest
conditions. So each market condition will have a probability
probability market condition in the immediate post-crisis
for a particular period, and the four probabilities will sum
performance reversals after the Global Financial Crisis
to 100%. Exhibit 4 shows the highest probability market
(GFC) and COVID market crises, indicating that the market
condition for periods throughout history. We should note
was recovering but still in a fragile state.
that each period displayed in Exhibit 4 is independent and
identically distributed. This means the GMM evaluates each As expected, Crisis occurred during notable periods like
period completely independently, without awareness of what the stock market crash in 1987, the GFC in 2008, and the
market conditions occurred in the past or future. COVID market crisis in 2020.
Exhibit 4: Highest Probability Market Conditions We find that Steady State dominated the last decade with a
Throughout History
sprinkling of short-lived Crisis and WOI periods. This period
coincided with the “decade of the central bank” where the
Federal Reserve and its counterparts around the world
exhibited major influence over the economy and markets.
Over this time, Steady State was interrupted here and there
by some Crisis flare ups (e.g., European Sovereign Debt
Crisis in the early 2010s and the Taper Tantrum in mid-
2013), but the central banks would often step in to steady
the markets through quantitative easing and rate cuts, rarely
allowing WOI periods to form and returning markets to
Steady State.⁹
9 https://www.cnbc.com/2019/12/17/decade-of-the-central-bank-ends-as-the-fed-shifts-to-new-paradigm.html
5
© 2021 Two Sigma. All Rights Reserved. “Two Sigma” and the “2σ” logo are registered trademarks of Two Sigma Investments, LP.
Please see the last page of this document, which contains important disclaimer and disclosure information.
To wrap-up and bring this back to regimes, we can certainly Exhibit 6: Market Condition Probabilities Since the
discern patterns of fairly persistent market conditions in Beginning of 2020
Exhibit 4 (e.g., Inflation in the 1970s and 1980s, WOI in early Period: January 1, 2020 - July 9, 2021.
(the maximum daily probability was only 0.01%), which is Annualized Return
a particularly interesting result given the market’s fears of Equity 19.11%
Trend Following 11.92%
higher inflation and the high CPI prints in May and June Momentum 7.58%
2021. Local Equity 4.43%
Quality 2.86%
Exhibit 5: Highest Probability Market Conditions Since the Interest Rates 2.44%
Small Cap 0.20%
Beginning of 2020
Local Inflation -0.93%
Period: January 1, 2020 - July 9, 2021.
Emerging Markets -0.99%
Commodities -1.04%
Foreign Exchange Carry -4.34%
Foreign Currency -5.37%
Equity Short Volatility -5.41%
Fixed Income Carry -6.73%
Credit -11.33%
Value -17.30%
Low Risk -19.28%
Source: Two Sigma Factor Lens as of August 16, 2021, using daily data.
6
© 2021 Two Sigma. All Rights Reserved. “Two Sigma” and the “2σ” logo are registered trademarks of Two Sigma Investments, LP.
Please see the last page of this document, which contains important disclaimer and disclosure information.
Conclusion: Applying This Analysis to
Investment Decisions
One way to approach modeling regimes is to determine
them based on experience and knowledge of the markets.
An alternative approach (and one that Two Sigma generally
takes when solving problems) is more data-driven in nature.
The unsupervised learning method presented in this Street
View can add value by letting a large amount of historical
data determine the regimes for you. The output of this model
applied on the factors in the Two Sigma Factor Lens was four
clusters, or market conditions. We then labeled those market
conditions, based on the properties of each, as follows:
Crisis, Steady State, Inflation, and Walking on Ice (WOI).
We analyzed their behavior throughout history to identify
regimes, or periods where market conditions showed some
persistence.
7
© 2021 Two Sigma. All Rights Reserved. “Two Sigma” and the “2σ” logo are registered trademarks of Two Sigma Investments, LP.
Please see the last page of this document, which contains important disclaimer and disclosure information.
Appendix 1: Two Sigma Factor Lens Start Dates for the GMM
Factor Start Date
Equity 1/1/71
Interest Rates 1/1/71
Credit 1/1/71
Commodities 1/5/72
Emerging Markets 12/22/72
Foreign Currency 1/5/71
Local Inflation 1/1/71
Local Equity 1/4/71
Equity Short Volatility 7/1/86
Fixed Income Carry 5/9/91
Foreign Exchange Carry 1/6/72
Trend Following 3/26/92
Low Risk 1/4/71
Momentum 1/4/71
Quality 1/4/71
Value 1/4/71
Small Cap 1/4/71
8
© 2021 Two Sigma. All Rights Reserved. “Two Sigma” and the “2σ” logo are registered trademarks of Two Sigma Investments, LP.
Please see the last page of this document, which contains important disclaimer and disclosure information.
Important Disclosure Information
This report is prepared and circulated for informational and educational purposes only and is not an offer to sell or the solicitation of an offer to buy any
securities or other instruments. The information contained herein is not intended to provide, and should not be relied upon for investment, accounting, legal,
tax or other advice. This report does not purport to advise the recipient personally concerning the nature, potential, value or suitability of any particular
sector, geographic region, security, portfolio of securities, transaction, investment strategy or other matter. No consideration has been given to the specific
investment needs or risk-tolerances of any recipient. The recipient is reminded that an investment in any security is subject to a number of risks including the
risk of a total loss of capital, and that the discussion herein does not contain a list or description of relevant risk factors. The recipient hereof should make an
independent investigation of the information described herein, including by consulting its own tax, legal, accounting and other advisors. This report does not
constitute any form of invitation or inducement by Two Sigma Investments, LP or its affiliates (“Two Sigma”) to engage in investment activity. Past performance
is no guarantee of future results.
The views expressed herein are not necessarily the views of Two Sigma. Such views (i) may be historic or forward-looking in nature, (ii) reflect significant
assumptions and subjective judgments of the author(s) of this report, and (iii) are subject to change without notice. The use of pronouns such as “we” and
“our” are references to the authors of this report only (and/or methodologies or assumptions utilized by the authors in this report only). Two Sigma may have
market views or opinions that materially differ from those discussed, and may have a significant financial interest in (or against) one or more of such positions
or theses.
By their receipt, the recipient of this report acknowledges the disclaimers contained within this report and, in particular, acknowledges that this report and
the data contained within this report are provided on an “as is” basis. Two Sigma, its employees, information providers (including, without limitation Barra,
LLC), and any other third party involved in or related to the making or compiling of this report or the data contained within this report make no representation
or warrant of any kind, either express or implied, with respect to this report or the data (or the results to be obtained by the use thereof). Two Sigma, its
employees, information providers (including, without limitation Barra, LLC) and any other third party involved in or related to the making or compiling of this
report or the data, expressly disclaim any and all implied warranties of originality, accuracy, completeness, non-infringement, merchantability and fitness for
a particular purpose.
As a recipient of this report, you assume the entire risk of any use you may make of this report or of the data. In no event shall Two Sigma, its employees,
information providers (including, without limitation Barra, LLC) or any third party involved in or related to the making or compiling this report or the data, be
liable to the recipient or any other third party, for any direct or indirect damages, including, without limitation, any lost profits, lost savings or other incidental or
consequential damages, arising out of your use or your inability to use the report or the data, regardless of the form of action, even if Two Sigma, its employees,
any of their information providers (including, without limitation Barra, LLC), or any other third party involved in or related to the making or compiling of this
report or the data has been advised of, or otherwise might have anticipated the possibility of such damages.
This report may include certain statements and projections regarding the anticipated future performance of various securities, sectors, or geographic regions.
These forward-looking statements are inherently subject to significant business, economic and competitive uncertainties and contingencies, many of which
are beyond Two Sigma’s control. Factors which could cause actual results to differ materially from those anticipated include, but are not limited to: competitive
and general business, economic, market and political conditions from those expected; changes in the legal, regulatory and legislative environments in global
markets; and the ability of management to effectively implement certain strategies. Words like “believe,” “expect,” “anticipate,” “promise,” “plan,” and other
expressions or words of similar meanings, as well as future or conditional verbs such as “will,” “would,” “should,” “could,” or “may” are generally intended to
identify forward-looking statements.
References in this report to third-party content or websites do not imply any endorsement by the third party of this report; nor do they imply any endorsement
by this firm of the third-party content or website. As noted, Barra, LLC’s analytics and data (www.barra.com) were used in preparation of this information.
Copyright 2021 Barra, LLC. All Rights Reserved. In addition, some of the images and other material used herein may otherwise be protected by copyright
and/or trademark. If so, such copyrights and/or trademarks may be owned by the entity that created the material and, where relevant, are used purely for
identification and comment as fair use under international copyright and/or trademark laws. Use of such an image, copyright or trademark does not imply any
association with such organization (or endorsement of such organization) by Two Sigma, nor vice versa.
© 2021 Two Sigma | All Rights Reserved | “Two Sigma” and the “2σ” logo are registered trademarks of Two Sigma Investments, LP.
Important Notice to Venn Subscribers: This document is not an offer to, or solicitation of, any potential clients for Venn or otherwise for the provision of
investment management, advisory or any other services. Nothing in this document should be considered a representation of how the Two Sigma Factor
Lens may be used on Venn or about Venn or the Two Sigma Factor Lens in any respect. Importantly, any use by Venn of the Two Sigma Factor Lens may differ
materially from any content, research or methodologies discussed herein. This document is subject to change without notice.
9
© 2021 Two Sigma. All Rights Reserved. “Two Sigma” and the “2σ” logo are registered trademarks of Two Sigma Investments, LP.
Please see the last page of this document, which contains important disclaimer and disclosure information.