Statistical Arbitrage: Defined & Strategies

Statistical arbitrage is a class of trading strategies that use statistical and econometric techniques to exploit historically related financial instruments’ relative mispricings.

Key Takeaways

  • Statistical arbitrage uses statistics and mathematical models to profit from relationships between financial instruments.
  • Statistical arbitrage still works as new instruments, exchanges, and financial markets create trading opportunities. Additionally, stat arb strategies that stopped working can come back into favor.
  • Statistical arbitrage strategies should carefully use leverage.
  • New technologies enable retail traders to create sophisticated, automated statistical arbitrage strategies.

Table of Contents

What Is Statistical Arbitrage?

Statistical arbitrage, also known as stat arb, refers to any trading strategy that uses statistical and econometric techniques to profit with an element of market risk reduction. Arbitrage opportunities occur both in the long-term and short term.

Gerry Bamberger developed the first arbitrage strategy using pair trades trading at Morgan Stanley in the mid-1980s.

The easiest way to understand statistical arbitrage is by example. We’ll start with a simple pairs trading strategy like the one Gerry Bamberger invented.

The price of gold affects the profitability of gold miners. If the price of gold goes up, the profitability of gold miners should increase, also. If the gold price increases quickly, either the gold miner’s stock prices must follow, or the gold price must fall.

See the gold and the gold miner’s ETF price for 2006-07 - 2007-06 below.

Gold vs. Gold Miners Statarb

Notice how both prices move together – they are correlated.

When gold prices moved up faster than gold miners, we would sell the gold miners short and buy the gold miners; when gold’s price movements fell more quickly than gold miners, we could buy gold and sell the miners. Going back in time, we could have profited from this relationship with almost zero market risk – meaning if the market went up, down, or sideways, we still made money.

Pairs trading is one of the many types of statistical arbitrage.

Types of Statistical Arbitrage

While there are multiple types of statistical arbitrage, we’ll discuss the most common:

  • Market Neutral Arbitrage
  • Cross Asset Arbitrage
  • Cross Market Arbitrage

Market Neutral Arbitrage

When a strategy has a beta of zero, which means it’s returns are not affected by the market’s price movement, it’s market-neutral. The pairs trading strategy mentioned above is a market-neutral strategy.

While trading two stocks is the most conceptually simple statistical arbitrage strategy, we’re not limited to only two stocks. Investors can use any number of financial instruments cointegrating; however, there’s only one other with a unique name – We’re trading “triplets” when we arbitrage three assets together.

We can update our pairs strategy and make it a triplet by adding oil. The price of oil is an input into the profitability of gold miners.

Gold vs. Gold Miners vs. Oil Triplets

Cross Asset Arbitrage

Cross asset arbitrage is an investment strategy that bets on the price discrepancy between a financial asset and its underlying. This can be an index and its futures, indices and their component stocks, or anything where one financial instrument represents another.

Let’s look at an ETF asset arbitrage example.

The Nasdaq 100 Index (NDX) contains the 100 largest domestic and international non-financial companies listed on the Nasdaq Stock Market based on market capitalization.

Asset Arbitrage

The Invesco Nasdaq ETF (QQQ) tracks the Nasdaq 100 index. What happens if Apple’s price is up by 1.90% on the day but the ETF fund flows are negative? Invesco will likely need to purchase or sell disproportionate amount of Apple to keep their ETF weighting representative of the index weighting.

In other words, smart statistical arbitrageurs can profit from these imbalances.

Cross Market Arbitrage

Market arbitrage simultaneously buys and sells the same financial instrument in different markets, allowing an astute investor to take advantage of price discrepancies.

Let’s see how we could potentially market arbitrage Bitcoin.

One could buy Bitcoin at the lower price on Coinbase at $34,421 and sell it immediately on Bitfinex for $34,514, making a $93 profit. Now granted, there’s more to it than this, such as exchange risk, slippage, using algorithmic trading platforms, etc. But the point remains the same, buy an asset trading at a lower price in one market and sell it for a higher price in another.

Market Arbitrage

Risks of Statistical Arbitrage

Statistical arbitrage models contain both systemic and idiosyncratic investing risks. All use past relationships to predict the future, and these relationships can change based on changes in the economy. Additionally, each type of statistical arbitrage strategy carries strategy risk. Also, securities that stop cointegrating can cointegrate once again.

In our pairs example above, between May 23, 2006, and July 14, 2008, gold prices (GLD) and gold miners (GDX) cointegrate with 99% probability. But what seemed like a certainty stopped working. Why?

That brings us to the triplets example – oil prices started to climb, putting pressure on the gold miner’s profitability while simultaneously breaking the pairs trading strategy. Adding oil to the pair improves the results, but nothing is a sure thing in the market – except for maybe taxes and bankruptcies?

Another risk of statistical arbitrage strategies is overconfidence. Going back to our pairs trading example, if it’s cointegrating at 99% probability and you apply leverage, what happens when it stops working seemingly out of nowhere? Don’t be the next Long Term Capital Management.

Leverage Bankruptcy

Additionally, profitable statistical arbitrage strategies are in high demand as who wouldn’t want near riskless profits? The challenge is that once enough players discover the statistical relationship, the profits are often “arbitraged” away.

While the model breaking down is the primary risk, there are many risks with each type of statistical arbitrage.

With pairs trading strategies, a company could go bankrupt or shift its product mix, breaking a pair – I don’t advise pair trading individual stocks but more on that later. Cross market arbitrage, especially with Bitcoin, carries a significant exchange default “hack” risk. And Cross asset arbitrage contains unique risks such as stock delisting. There is always frequency risk, too. Higher frequency strategies incur significant trading costs and portfolio turnover.

Additionally, while the market risk is reduced from arbitrage strategies, it’s important to check for correlation between arbitrage strategies, portfolios, and positions during the portfolio construction process.

The best defense to these risks is always to assume the model could fail at any point in time and fully understand each arbitrage strategy’s individual risks and the overall risks in the context of your portfolios.

Does Statistical Arbitrage Still Work?

While the performance of the more common statistical arbitrage strategies has declined or become non-existent, new statistical arbitrage strategies regularly appear; furthermore, many financial instruments can come in and out of cointegration.

For instance, the gold, gold miner, and oil triplet previously discussed have gone in and out of cointegration.

Let’s take a step back and think about why statistical arbitrage works.

From a market-neutral strategy perspective, there are fundamental economic relationships that hold. We’ve discussed one with the price of gold and gold miners, but there are plenty of others.

This brings me to another point. As I mentioned above, I’m not particularly eager to pair trade stocks. The reason is that the relationships are often tenuous and fall about. Additionally, idiosyncratic risk can obliterate the cointegration. Instead, I prefer to trade cointegrating ETFs.

Additionally, anything new generally can be arbitraged. This includes new markets and securities.

Statistical Arbitrage Analysis Techniques

Statistical arbitrage models rely on finding patterns in the data using statistical and mathematical models.

An analyst would typically use either Matlab, R, or Python to analyze the data using these models. While the others are excellent options, you’ll only find code in Python code on Analyzing Alpha.

And while I suggest you understand the underlying statistical concepts before you start trading them live, all three languages enable you to use statistical models without understanding the underlying math.

Suppose you’re an algorithmic trader and plan on creating a statistical arbitrage strategy. In that case, the first step is to perform data manipulation to remove incorrect values, check for outlying data, and order the bits and bytes in a useful manner.

For instance, if you don’t account for splits, dividends, and other corporate actions, you may accidentally assume that a pair trade is cointegrating when in fact, it is not.

So assuming you have the data exactly how you want it, what are your options? Well, there’s a lot so let’s cover a few of the most common:

  • Time Series Analysis
  • Principal Component Analysis
  • Autoregression
  • Volatility Modeling

Time Series Analysis

Developing mathematical models that provide likely descriptions of the sample data is the primary aim of time series analysis. We want to know the “why” behind a time series, and we do this by decomposing the time series into its constituent components.

For instance, is the price data seasonal, is it trending, etc. Time series analysis allows us to answer these questions. See the below decomposition of Apple’s price history, which we can see is in an uptrend and is also seasonal.

Apple Price

Again, we’re only trying to gain a conceptual understanding of each of these techniques.

Principal Component Analysis

Principal component analysis (PCA) reduces dataset dimensionality, increases interpretability, and minimizes information loss. It does so by creating new uncorrelated variables that successively maximize variance.

Said another way, data can often have many features, some important and some not. The idea is to distill the data down to the essential items and analyze from there.

Autoregression

Autoregression is a time series model that uses historical observations as input to a regression equation to predict the next step’s value. This is why it’s called autoregression – it “regresses against itself” as it uses data from the same input at previous time steps.

\[y_t = b + c_1 * x_{t-1} + c_2 * x_{t-2}\]

Where b is the bias, c are coefficients, and x are the lagged time series steps.

Volatility Modeling

Volatility modeling attempts to forecast volatility to predict future returns. Often volatility models try to predict quantiles or absolute returns.

Stochastic volatility (SV) and GARCH are two well-known models used in predicting volatility for financial time series.

Statical Arbitrage Trading Strategies

Let’s walk through two market-neutral trading strategies.

If you’re familiar with Python and want to try your hand at creating a pair or triplet trading strategy, please see the Analyzing Alpha GitHub repo, demonstrating statistically significant mean reversion trading strategies.

This code is part of a series I created for Alpaca, which is an API-first brokerage.

Pairs Trading Strategy Walkthrough

We’ll now turn our gold and gold miner relationship into a pair trading strategy.

As we’ve discussed, pairs trading is a market-neutral strategy often implemented at hedge funds and investment banks attempting to profit from a stationary time series relationship.

Here are the steps we’ll follow:

  1. Find a cointegrating pair
  2. Create a synthetic asset
  3. Profit!

You’re sitting at your desk at the beginning of May 2007 and hypothesize that gold and gold miners should be cointegrating. You would check TradingView, assuming it existed back then, to perform a quick inspection of the two stocks.

You liked what you saw, so you test for cointegration using a Cointegrated Augmented Dicky-Fuller (CADF) test in Python for the past year.

The CADF outputs that the two price series are cointegrating between 95-99% probability over that period of time and with the following formula:

\[SyntheticAsset: 1.0 * GLD + -1.19 * GDX\]

In other words, for every GLD you buy, you sell 1.19 GDX. A synthetic asset is just a fancy term for taking a long position and a short position in multiple securities simultaneously.

Instead of trading this every day, raking up transaction costs, you’re smart and decide to use Bollinger Bands and trade only when the synthetic asset gets “significantly” different from the norm.

You will take a short position when the market prices go above the top Bollinger band and establish a long position when the prices go below the Bollinger band. If a long or short touches the basis line at any time, you close your position by removing both from your portfolio.

So how did you do for the next year?

Pairs Trading Strategy Results

Nice job! You profited using a market-neutral pairs trading strategy more often used by hedge funds than retail traders. You decide for the next pairs trade to use traditional technical analysis techniques and leverage to juice your returns even further while remembering that models can break at any time.

Triplets Trading Strategy Example

While a CADF test works for pairs trading, it does not work for triplet and multiple-asset arbitrage. For this, you’ll need the Johansen test.

The good news is that the only change you need to make is trading out the CADF function for the Johansen function.

There are also other mean reversion trading elements when exploiting an arbitrage opportunity, such as identifying how long it should take for a spread to revert to the mean. This is called the half-life of the mean, and for that, I highly recommend reading my favorite books on statistical arbitrage.

Statistical Arbitrage Books

If you’re interested in learning more about statistical arbitrage, I have two favorite books that I think are “significant’.

leo

Leo Smigel

Based in Pittsburgh, Analyzing Alpha is a blog by Leo Smigel exploring what works in the markets.