Tag: quant

Fat Tails, Expected Shortfall

No matter how you slice it, there is no escaping tail events in investing. It is the nature of the beast and every attempt you make eliminating the risk results in you giving up a significant portion of your returns. But given two investment opportunities, how do you go about figuring out which one is more susceptible to tail events?

Expected shortfall (ES) is a risk measure that can be used to estimate the loss during tail-events. The “expected shortfall at q% level” is the expected return on the portfolio in the worst q% of cases. ES estimates the risk of an investment in a conservative way, focusing on the less profitable outcomes. For high values of q it ignores the most profitable but unlikely possibilities, while for small values of q it focuses on the worst losses. Typically q is 5% and in formulae, p (= 100% – q) is often used as a substitute.

ES of Weekly Returns

Here’s a dilemma that most investors face: Mid-caps have given higher returns in the past compared to large-caps. But, how do their tail-risks compare?

Turns out, ES of the NIFTY MIDCAP 150 TR index is -6.73% vs. NIFTY 50 TR’s -5.65%. This is how much an investor would have lost in the worst 5% of weeks since 2011.

Sampling

In our previous post, we showed how strata-sampling can be used to make sure that you don’t end up ignoring tail-risk in your simulations. By definition, tail-events are rare. So, the differences are subtle.

Tactical Allocation

Reducing tail-risk is one of the biggest draws of tactical allocation. Anything that reduces deep drawdowns has the effect of keeping investors faithful to their investment process.

One way to setup a tactical allocation strategy is to use a Simple Moving Average (SMA) to decide between equity and bond allocations. Different SMA look-back periods will result in different levels of risk and reward. From an ES point of view, here’s how things for NIFTY shakes out:

Since 1999
Since 2010

Using an SMA and re-balancing weekly significantly reduces tail-risk.

How far back should you go?

The problem with tail-events is that there aren’t enough of them to build an effective model. There’s always a temptation to use as much data as possible so that these events find sufficient representation. However, markets evolve, regulatory structures change and past data stop being representative.

For example, if you run a tactical allocation back-test with all the data that is available, you’ll conclude that shorter the SMA, the better:

However, if you remove 2008 and its aftermath and look only are the data from 2011 onward, you get a different picture:

While metrics like ES and strategies like SMA are useful, the data that they are presented will give different results based on the regime that they are drawn from.

Risk management is a continuous process and cannot be reduced to single number.

Fat Tails, Sampling

While developing a model, historical data alone may not be sufficient to test its robustness. One way to generate test data is to re-sample historical data. This “re-arrangement” of past time-series can then be fed to the model to see how it behaves.

The problem with sampling historical market data is that it may not sufficiently account for fat-tails. Typically, a uniform sample is taken. The problem with this is it under-represents the tails. This leads to models that work on average but blow up on occasion. Something you’d like to avoid.

One way to overcome this problem is through stratified sampling. You chop the data into intervals and use their frequencies to probability weight the sample. This preserves the original distribution in the sample.

Notice the skew and the tails in the “STRAT” densities for both NIFTY and MIDCAP indices. This distribution is far more likely to result in a robust model compared to the one that just uses uniform sampling.

You can check out the R-code here.

90 days of Minimum Volatility

We had discussed portfolios optimized for minimum volatility back in January (see: Low Volatility: Stock vs. Portfolio) and had setup Themes that track such strategies. Broadly, these fall into ETL (Expected Tail Loss) and Min-Var (Minimum Variance) optimized portfolios that either take in the entire universe of stocks or only those that have a high momentum score. So, we have Minimum Expected Tail Loss, Minimum Variance, Momentum (Min-ETL) and Momentum (Min-Variance).

We expect optimized portfolios of momentum stocks to perform better during market up-trends. During bears, we expect them to have lower drawdowns than the market. The Corona Virus Panic put these portfolios in through the wringer. Glad to report that they came out largely unscathed.

Minimum Volatility Portfolios vs. NIFTY 50

Our back-tests showed that optimized momentum portfolio would under-perform “raw” momentum during up-trends but should have lower drawdowns during down-trends.

Momentum: Optimized vs. raw

Optimized momentum portfolios saved the investor about 3-4% in drawdowns compared to the “raw” momentum portfolio. May not sound like much in this instance but think about the cumulative effect over multiple market corrections when you invest for the long-term.

Overall, optimized portfolios delivered what they promised.

WhatsApp us at +91-80-26650232 if you are interested in knowing more about these strategies.

Low Volatility: Stock vs. Portfolio

Lower the Risk, Higher the Returns?

Typically, investors expect higher returns from high risk investments compared to low risk ones. However, realized returns are the opposite of what they expect.

High Beta vs. Low Vol

This anomaly, where lower risk systematically results in higher returns, has spawned a number of “betting against beta” strategies. A common approach is to rank a universe of stocks by volatility and create a portfolio off the top-N. However, this approach could lead to a highly volatile portfolio if relative correlations are not considered.

1+1 = 0

Here are two stocks with their volatility plotted against time:

correlated low-vol stocks

If you create a portfolio off these two stocks, what happens to portfolio volatility?

A portfolio made off low-vol stocks can be high vol

In the worst case scenario, where all the volatilities are correlated, portfolio volatility can end up being a sum of all component volatility.

If low-vol stocks can create a high-vol portfolio, can high-vol stocks create a low-vol portfolio? Yes! It all depends on how the volatilities are correlated.

inversely correlated high-vol stocks

In the best case scenario, portfolio volatility can be a very low constant value if the components are inversely correlated.

a low-vol portfolio created off volatile components

It doesn’t matter if individual volatilities are high or low. What matters is the correlation of volatilities.

Portfolio Optimization

A simple ranking of stocks will not help in creating a low-vol portfolio. What we need is a holistic approach that considers the correlation of volatilities and optimizes the entire portfolio.

One way to go about this is to use gradient descent. Start with a random portfolio and go in the direction that minimizes variance (min-var) or expected tail loss (min-ETL)

min-var and min-ETL backtest

With a monthly rebalance, the chances of the portfolio getting trapped in a local-minima are low. And the backtest looks promising.

Investing in Low-Volatility Portfolios

Equity investors can map our Minimum Variance and Minimum ETL Themes to their portfolios to gain exposure to these low-vol strategies.

Factor Momentum Everywhere

Earlier this year, AQR had published a paper that showed momentum behavior also exists in equity factors (like value, quality, etc.) and not just in vanilla equities.

In this article, the authors document robust momentum behavior in a large collection of 65 widely-studied, characteristic-based equity factors around the globe. They show that, in general, individual factors can be reliably timed based on their own recent performance. A time series “factor momentum” portfolio that combines timing strategies of all factors earns an annual Sharpe ratio of 0.84. Factor momentum adds significant incremental performance to investment strategies that employ traditional momentum, industry momentum, value, and other commonly studied factors. Their results demonstrate that the momentum phenomenon is driven in large part by persistence in common return factors and not solely by persistence in idiosyncratic stock performance.

Factor Momentum Everywhere – Tarun Gupta, Bryan T. Kelly (AQR)

We put this idea to the test by constructing a long-only portfolio with five of the strongest factors – Momentum, Quality, Low-volatility, Value and Small-cap. The strategy was to go long whatever factor had the best returns over the last 12-months. We also looked at going long the best factor from the previous month. In both cases, the portfolio was re-balanced every month.

The representative indices and ETFs used for this back-test can be perused from the code: factor-momentum-india.ipynb and factor-momentum-US.ipynb

Results

The strategy using a 12-month formation period was a disappointment. There was no discernible improvement over a buy-and-hold of the large-cap index.

India (12-month Formation)
US (12-month Formation)

However, the one-month formation period widely out-performed the large-cap benchmark.

India (1-month Formation)
US (1-month Formation)

Needless to say, shorter the look-back period, larger the number of trades. So we added another back-test that averaged factor returns over 6-through-12 months to check if there was an acceptable middle-ground. Turns out, there is.

India (6..12-month Formation)
US (6..12-month Formation)

Forward Test

We setup US portfolios back in May this year when we first got to know about this paper. The 12-month and the 6…12-month formation period portfolios can be found here and here. They both seem to have out-performed SPY and MTUM so far.

We constructed the Factor Momentum 6-12 Theme for Indian equities that tracks the last strategy outlined above but given the lack of liquidity in factor ETFs, it trades the underlying stocks directly.

Investing in Factor Momentum

Indian investors can use brokers like TD Ameritrade or Interactive Brokers to invest in US stocks. The trades are posted on the slack channel mentioned on the pages linked above. You can execute the trades yourself by monitoring the messages on the channel.

If you are interested in executing this strategy on Indian equities, talk to us!

Related:
Factor Holding Periods for Excess Returns
Funding Your Dollar Dreams

Questions? Slack me!