Two related stocks have log prices that wander far from their starting levels over the years, yet one particular combination of the two keeps returning to the same band. Is that combination a dependable source of profit, and what exactly does a statistical model of it say? This lesson fixes a convention for the order of integration, builds two nonstationary series whose common trend cancels in one combination, derives the error-correction relation of an autoregressive spread together with its forecast moments, and separates the stationary spread from any trading guarantee.
Key terms
Integration order
Definition Dates are integers. A process is integrated of order zero, written I(0), if it is covariance stationary with an autocovariance function that satisfies and has positive long-run variance
Under the summability condition, for the mean of consecutive values, which is why is called the long-run variance. A process is integrated of order one, I(1), if its first difference is I(0), and more generally I() if differences give an I(0) process. The positive long-run variance makes the order unique. The difference of an I(0) process has autocovariances , whose sum is , so it is not I(0), and in particular the level of an I(1) process is not I(0). These conditions fix the short-memory meaning used in this lesson, and other texts use other conventions.
In plain words An I(0) series fluctuates around a fixed mean with dependence that dies out fast enough for averages to settle. An I(1) series wanders like a random walk, while its changes are I(0). Differencing a series that was already I(0) does not give another I(0) series under this convention.
Example A random walk with independent, identically distributed increments of mean and variance is I(1), since has long-run variance . Started at it has . White noise with variance is I(0), but its difference has autocovariances at lag and at lags , with sum , so is not I(1). An AR(1) process with and white noise innovations of variance is I(0) with long-run variance . For and its variance is and its long-run variance is .
Common trend
Definition A common trend is an I(1) component shared by several series. In the first constructed model of this lesson, is a random walk started at with independent, identically distributed increments of mean and variance , and and are independent, identically distributed sequences with mean and variances and , the three sequences being mutually independent. The log series are
Both carry the trend , with loadings and , and and grow linearly in , so neither level is covariance stationary. The difference has , and for , so its long-run variance is , and in the same way has long-run variance . Both and are therefore I(1). Systems of more series can have several common trends and several independent cointegrating relations, and in the standard representation of a linear I(1) system of series with independent cointegrating vectors there are common trends. That representation is further study.
In plain words One random walk drives both series, so both wander, and they wander in a fixed proportion. The extra noise in each series is short-lived and does not stop the wandering.
Example Take the constructed values , and in squared log units. After periods, and , and both keep growing. The difference of has and lag-one autocovariances from the shared noise terms, and these cancel the extra when the autocovariances are summed, which leaves the long-run variance .
Cointegration
Definition Two I(1) series and are cointegrated if some nonzero vector makes an I(0) process. Such a vector is a cointegrating vector. It is defined only up to a nonzero factor, and a normalization such as fixes it. In the common-trend model,
an independent, identically distributed sequence, hence I(0), with variance by independence. So is a cointegrating vector, and up to a factor it is the only one. Indeed , and when its difference has long-run variance , so the combination is I(1). Cointegration is a statement about the levels and their stochastic trend. A high sample correlation of two levels does not establish it, and two independent random walks, which are not cointegrated, have a sample correlation of levels that does not settle at zero as the sample grows.
In plain words Each series wanders, but one weighted difference of them does not, because its weights cancel the shared trend exactly. The weights belong to the model. With market data they have to be estimated.
Example With and , the spread has variance at every date, while the variances of the levels grow without bound. The factor enters the variance squared, so would be wrong. For contrast, in a simulation of pairs of independent random walks with standard normal increments and steps each, the absolute sample correlation of the levels exceeded in about percent of the pairs.
Stationary spread
Definition In a second constructed model, is a random walk of log prices with independent, identically distributed increments of positive, finite variance, , and the spread follows
The innovations are independent and identically distributed with mean and variance , and the whole sequence is independent of . Let be the information generated by and for , so that is known at and is independent of . The stationary solution is
which converges in mean square because , and its variance is
The spread is I(0), and has long-run variance , so and are I(1) and cointegrated with the vector . For a horizon , the forecast and its conditional variance are
When the conditional variance is below for every and approaches it as grows. At the spread is a random walk, the denominator vanishes and no stationary solution exists.
In plain words Each period the spread keeps the fraction of its current value and receives a fresh shock. Old shocks fade, so its variance stays finite, and a forecast from a known current value is pulled toward zero while its uncertainty grows toward the stationary variance.
Example Take the constructed values and . The stationary variance is . From , the ten-step forecast is with conditional variance
slightly below . If the innovations are moreover normal, so that has standard deviation , the next spread exceeds the current value exactly when , which has probability . A mean-reverting spread can move further away in the next step.
Error correction
Definition In the stationary-spread model, subtract the level identity from , and subtract from both sides of the spread recursion, which gives . Replacing by gives the error-correction relation
The coefficient of the lagged deviation is the adjustment coefficient, and means it lies strictly between and . The relation follows from the two identities alone, with no separate assumption that prices move toward each other. Because has mean and is independent of and together,
When the expected change of the spread is negative, and when it is positive. For the expected next spread also has the opposite sign, so the correction overshoots. A realized innovation can still push the spread further from zero. In larger systems the link between cointegration and error correction is the Granger representation theorem, which is further study.
In plain words Each period the spread is expected to close the fraction of its current gap. The level moves by twice the move of , plus that expected correction, plus a new shock, so correction describes conditional means, not a guaranteed path.
Example Take and , and suppose the next period brings and . The relation gives
so the spread changes by and . Before was seen, the expected spread was , and the gap between the realized and the forecast is exactly the innovation.
Statistical arbitrage
Definition Statistical arbitrage is a name for trading strategies whose expected profit rests on a statistical model, for example positions that bet on a stationary spread moving back toward its mean. It is not an arbitrage in the pricing sense, which needs zero or negative initial cost, a nonnegative payoff in every state and a positive payoff with positive probability, because a spread position can lose money. Assessing such a strategy takes its wealth process, built from holdings in shares of instruments with currency prices and , a cash account with its financing, rebalancing that satisfies the self-financing condition, and costs and margin. A coefficient in a relation between log prices is not a number of shares. With and , a position short one currency unit of the second instrument and long two currency units of the first, rebalanced to these values every period, earns over one period, before dividends, financing and costs,
where the approximation is the first-order Taylor expansion of the exponential. The exact result depends on both log changes, not only on the spread.
In plain words A stationary spread is a model statement about a combination of log prices. Money is made or lost by actual positions in actual instruments, which can move against the trade, cost money to trade and hold, and need financing.
Example In the update of the previous card, and , so the spread fell by . The short-spread position earns per currency unit of the short leg before dividends, financing and costs, not exactly . Losses are possible as well. If the innovations are normal and independent of , then for every value of a large enough innovation makes the one-period result negative, so the position loses with positive probability and is not an arbitrage.
Check yourself
- A constructed spread follows with independent, identically distributed innovations of mean and variance . Find the stationary variance. The spread is today. Find the two-step forecast and its conditional variance.
Show the answer
Since , the stationary variance is
The two-step forecast is . The conditional variance adds the two future shocks with weights and , so it is , which agrees with and lies below the stationary variance .
- In a constructed model and , where is a random walk and the noises are independent of each other and of , with variances and . A colleague argues that is stationary because both series share . Find the cointegrating combination with coefficient on and its variance, and check the colleague’s claim.
Show the answer
The trend cancels when the coefficient of is , since
Its variance is , because the factor enters squared. Using is a common mistake. The colleague’s combination is , which keeps twice the random walk, so its variance grows linearly in time and it is I(1), not stationary. Sharing a trend is not enough. The weights have to match the loadings.
- An estimated spread model has . What is the adjustment coefficient in the error-correction relation, and what are the expected change and the expected value of the next spread when the current spread is ? Is this spread stationary? What changes if instead ?
Show the answer
The adjustment coefficient is . The expected change is , so the expected next spread is . The correction overshoots and changes the sign of the expected spread, yet the spread is stationary because , with stationary variance . At the adjustment coefficient is , so the error-correction term disappears and the spread is a random walk. Its variance given a starting value equals after periods, the formula has a zero denominator, and with innovations independent of the two series are not cointegrated at all, so the model gives no basis for expecting the spread to return.