This blog article is taken from our book [1].

In most entry-level materials on pairs trading such as in [2], a mean reverting basket is usually constructed by this relationship:

, where is the price of asset at time t, the price of asset at time t, and the price of the mean reverting asset to trade. One way to find is to use cointegration. There are numerous problems in this approach as detailed in [1]. To mention a few: the identified portfolios are dense; executions involve considerable transaction costs; the resultant portfolios behave like insignificant and non-tradable noise; cointegration is too stringent and often unnecessary a requirement to satisfy.

This article highlights one important problem: it is much better to work in the space of (log) returns than in the space of prices. Therefore, we would like to build a mean reverting portfolio using a similar relationship to (eq. 1) but in returns rather than in prices.

**The Benefits of Using Log Returns**

When we compare the prices of two assets, [… TODO …]

**A Model for a Mean Reverting Synthetic Asset**

Let’s assume prices are log-normally distributed, which is a popular assumption in quantitative finance, esp. in options pricing. Then, prices are always positive, satisfying the condition of “limited liability” of stocks. The upside is unlimited and may go to infinity. [5] We have:

is the return for asset between times 0 and t; likewise for asset .

Instead of applying a relationship, e.g., cointegration (possible but not a very good way), to the pair on prices, we can do it on returns. This is possible because, just like prices, the returns at time t are simply random walks, hence series. We have (dropping the time subscript):

Of course, the is a different coefficient; the a different white noise.

**Remove the Common Risk Factors**

Let’s consider this scenario. Suppose the oil price suddenly drops by half (as is developing in the current market). Exxon Mobile (XOM), being an oil company, follows suit. American Airlines (AAL), on the other hand, can save cost on fuel and may rise. The naive (eq. 3) will show a big disequilibrium and signal a trade on the pair. However, this disequilibrium is spurious. Both XOM and AAL are simply reacting to the new market/oil regime and adjust their “fair” prices accordingly. (Eq. 3) fails to account for the common oil factor to both companies. Mean reversion trading should trade only on idiosyncratic risk that are not affected by systematic risks.

To improve upon (eq. 3), we need to remove systematic risks or common risk factors from the equation. Let’s consider CAPM. It says:

The asset return, , and , are normally distributed random variables. The average market return, , and the risk free rate, , are constants.

Substituting (eq. 4) into the L.H.S. of (eq. 3) and grouping some constants, we have:

To simply things:

where is a constant.

(Eq. 5) removes the market/oil effect from the pair. When the market simply reaches a new regime, our pair should not change its value. In general, for multiple n asset, we have:

For multiple n asset, multiple m common risk factors, we have:

**Trade on Dollar Values**

It is easy to see that if we use (eq. 1) to trade the pair, to long (short) , we buy (sell) 1 share of and sell (long) share of . How do we trade using (eqs. 3, 5, 6, 7)? When we work in the log-return space, we trade for each stock, , the number of shares worth of . That is, we trade for each stock number of shares, where is the current price of stock .

Let’s rewrite (eq. 3) in the price space.

The R.H.S. is

Using the relationship , we have

Dropping the constant, we have:

That is, we buy shares of at price and shares of at price . We can easily extend (eq. 8) to account for the general cases: we trade for each stock number of shares.

References:

- Numerical Methods in Quantitative Trading, Dr. Haksun Li, Dr. Ken W. Yiu, Dr. Kevin H. Sun
- Pairs Trading: Quantitative Methods and Analysis, by Ganapathy Vidyamurthy
- Identifying Small Mean Reverting Portfolios, Alexandre d’Aspremont
- Developing high-frequency equities trading models, Infantino
- The Econometrics of Financial Markets, John Y. Campbell, Andrew W. Lo, & A. Craig MacKinlay

Interesting. Could you explain why “As the log of a white noise is still a white nose, we can write the last equation as…”?

Hi i can not register on your site, look like registration is broken

nick fish55

How so? We see people registering every day. What error message did you see?

Thank you, Li. Can I ask two question?

1. In the real world, how can we quantify the “oil” systematic risk level?

2. Assume we trade a log return pair. when we observe a return spike, we entered our position. When shall we exit our position? The return pair may drop to mean level at immediate next period.

Dear Haksun,

where can i find your reference?

Numerical Methods in Quantitative Trading, Dr. Haksun Li, Dr. Ken W. Yiu, Dr. Kevin H. Sun

You may find Chapter 1 here:

http://numericalmethod.com/numerical-methods-in-quantitative-trading/

The book has not be finished.