Questions tagged [cointegration]

Cointegration is often used in statistical abitrage as a way to identify how to combine some tradable instrument to obtain a *mean reverting* one.

Filter by
Sorted by
Tagged with
51
votes
6answers
23k views

How are correlation and cointegration related?

In what ways (and under what circumstances) are correlation and cointegration related, if at all? One difference is that one usually thinks of correlation in terms of returns and cointegration in ...
29
votes
6answers
16k views

What is the intuition behind cointegration?

What is the intuition behind cointegration? What does the Dickey-Fuller test do to test for it? Ideally, a non-technical explanation would be appreciated. Say you need to explain it to an investor ...
25
votes
1answer
2k views

How do different methods and techniques used in pairs trading compare?

I was going through the paper of Avellaneda (2008) on stat arb and I found it interesting that he uses asset returns vs. their respective ETFs to compute the s-score. I am wondering if anyone has ...
22
votes
1answer
12k views

How to interpret the eigenmatrix from a Johansen cointegration test?

I ran a Johansen cointegration test on 3 instruments, A B and C. The results that I got are: ...
18
votes
4answers
769 views

Variable Selection in factor models

Let's say you have a dependent variable and many independent variables. What are the preferred metrics for sorting and selecting variables based on explanatory power? Let's say you are not concerned ...
16
votes
5answers
3k views

Are two identical time series cointegrated?

I did cointegration test on two identical time series, and the result shows that they are not cointegrated, but intuitively, I think they are. Can anyone share some thoughts on this? Thanks!
16
votes
1answer
908 views

Meta-view of different time-series similarity measures?

While I spend most of my StackExchange time on MathematicaSE, I'm in the business and follow the questions and answers on this site with great interest. Recently questions like the following (and ...
12
votes
1answer
1k views

Why does the following data fail my cointegration test?

I have some closing price data for two Australian banks which track each other very closely. http://dl.dropbox.com/u/12337149/stat/CBA.csv http://dl.dropbox.com/u/12337149/stat/WBC.csv Code from ...
12
votes
1answer
815 views

Alternative ways to understand time-varying comovement between two time-series?

I have been looking into ways to better understand how the dependencies/correlations/etc between two time series can vary over time. I first thought about using a Kalman/particle filter over a ...
11
votes
2answers
783 views

Imposing Restrictions on Cointegrating Vectors, R example

The code given below estimates a VEC model with 4 cointegrating vectors. It is a reproducible code, so just copy and paste into your R console (or script editor). ...
10
votes
2answers
2k views

Why does this Co-integrated basket look too good to be true?

You need quantmod & tseries in R to run this: ...
10
votes
2answers
2k views

What does the cointegration coefficient represent in pairs trading when cointegrating log stock prices?

In Pairs Trading by Vidyamurthy, on page 83 (and throughout the book), the author describes an elementary example of trading with log prices. The long run equilibrium of the basic portfolio is given ...
9
votes
1answer
28k views

How to interpret results of Johansen Test?

I have two time-series a & b. The objective is to find out whether two series are cointegrated or not. I am using Johansen Test in R to find this out. I am using urca package of R. Here is the ...
9
votes
2answers
837 views

How do I incorporate time-variability in a pair trading framework?

Recently I have been looking at pair trading strategies from a cointegration perspective, as described in chapter 5 of Carol Alexander's Market Risk Analysis volume 2. As most quantitative finance ...
8
votes
1answer
694 views

Should cointegration be tested using close or adjusted close prices?

When doing cointegration tests should I use the adjusted close price or just close price for the time series? The dividend of each stock is on different dates and can cause jumps in the data.
8
votes
1answer
4k views

Cointegrating relationships - Johansen in R

I read the posts, How to interpret results of Johansen Test? and How to interpret the eigenmatrix from a Johansen cointegration test? But still I am quite confused by the output. I have a project with ...
7
votes
1answer
632 views

Does Chan use the wrong state transition model in his Kalman filter code?

In his book, Algorithmic Trading: Winning Strategies and Their Rationale, Ernie Chan shows how to use a Kalman filter to improve the returns of a cointegrated portfolio. Recall that the state equation ...
7
votes
4answers
1k views

cointegration applied to Portfolio Construction & Risk management

There are all sorts of applications of cointegration to generating alpha on mean-reverting timeseries: comparing spot vs. futures, bond spreads, identifying mean-reverting residuals, etc. But there ...
7
votes
2answers
696 views

Choosing the time-frame to test for cointegration

Is there a technique to choose the time-frame for a cointegration test (eg Augmented Dickey-Fueller's)?
7
votes
1answer
796 views

How to determine ratios for mean-reverting basket

Suppose I have a basket of 3 securities A, B, and C. I believe that the basket is cointegrated and I want to create a mean-reverting trade. I fit the model: $\log(A)=\beta_b*\log(B)+\beta_c*\log(C)+\...
6
votes
3answers
2k views

What are the applications of cointegration?

We have had several posts on cointegration, and I must admit that I have only seen them mentioned here and there but I have no real experience using this concept. My question is pretty simple: how do ...
6
votes
3answers
1k views

How to normalize Futures data(different leverage) for cointegration test?

For example I want to construct 2 time series, one for ES and the other for NQ and test for cointegration. ES one point equal to 50$. NQ one point equal to 20$. If I have the following data: ES[0]=...
6
votes
2answers
256 views

Co-integration constraints of coint(X,Z) given coint(X,Y) and coint(Y,Z)?

The Augmented Dickey-Fuller Test can be used to measure how well ranked certain pairs are against others for co-integration. So then say we have a known co-integration between ...
5
votes
1answer
557 views

What is the correct procedure to choose the lag when preforming Johansen cointegration test?

When preforming Johansen cointegration test for 2 time series (the simple case) you need to decide the lag you want to use. Doing the test for different lag levels returns different results: for some ...
4
votes
1answer
732 views

Is there a measure for the 'degree' of cointegration

Is there a standard (or maybe even intuitive?) way of ranking pairs of cointegrated time series so that one could make statements like the following: ...
4
votes
1answer
1k views

Pairs trade CDS contracts using cointegration

Recently I have looked at some sovereign CDS spreads (of the Nordic countries to be precise) and have tested for cointegration in the levels (i.e. untransformed) and logs of the spreads. Tests ...
4
votes
2answers
1k views

How to select optimal look back period for statistical arbitrage?

Is it possible to estimate the optimal look back period for OLS from which we test if residuals are stationary? Almost all papers that I read use random look back periods of 100 days, 252 days, 500 ...
4
votes
2answers
1k views

Cointegration trading: Ignoring pairs that aren't economically related

Cointegration trading question What's the state of the art when it comes to choosing proper subsets of stocks/assets where cointegrating relationships aren't ignored as (likely to be) spurious? For ...
4
votes
1answer
649 views

What's the practical difference between the Johansen vs Engle-Granger tests for cointegration?

For the two-variable case, what are the practical differences between using the Engle-Granger procedure versus the Johansen test for cointegration? Is one universally more powerful than the other? ...
4
votes
2answers
4k views

Cointegration tests

I'm trying to figure out how to perform cointegration tests in R between 2 time series. I'm using po.test from the package ...
4
votes
2answers
333 views

Cointegration and Ratio Pair Trading

I'm having some confusion doing Engle-Granger Cointegration test and then trade the ratio. Methodology: Run an OLS fit for A and B price time series without a constant. Therefore, $\hat{Y} = \gamma \...
3
votes
2answers
598 views

Need help on cointegration

I tried to test stock pairs for pairs trading. There are two questions I am not sure. I am not using ADF to test the log difference between two stocks. But I also see people using Johansen test. What'...
3
votes
2answers
672 views

Entry and exit points for very short mean-reverting timeseries

I have a model specifying a cointegration relationship on a number of transaction-level timeseries. I would like to specify entry and exit points for trades where these points ideally would be just ...
3
votes
1answer
222 views

How do you decide what time frame you're going to use when testing for cointegration?

I've been fiddling around with different time frames when doing tests for cointegration between two timeseries, and I've realized that the dates that you use for your start/stop of the test will ...
3
votes
1answer
993 views

R Outputs from Johansen test. Linear combination still not stationary?

I am trying to see if house price is cointegrated with interest rate, per capita income and rental vacancy rate and got the following output from ca.jo in R: ...
3
votes
1answer
661 views

Using cointegration to prove that a long-short strategy is market neutral (in CAPM sense)

I am trying to prove that a long-short strategy invested according to the cointegrated relationship from Engle-Granger's. So essentially I'm trying to show that the return $r_{XY}$ of the portfolio (X ...
3
votes
0answers
111 views

What is the logic of the eigenvectors of the Johanson cointegration test determining hedge ratios?

Reading Algorithmic Trading: Winning Strategies and Their Rationale, Ernie Chan and there is a short section about the Johanson test for cointegration where it is mentioned that the eigenvectors ...
3
votes
0answers
152 views

Why does the presence of cointegration solve the problem of spurious correlation? [closed]

Many of us are familiar with the connection between spurious correlation and its relationship to cointegration. Granger explains in his seminal 1974 paper "Spurious Regressions in Econometrics" how ...
3
votes
0answers
212 views

Assets cointegration: optimal inventory for futures market

I'm interested in HFT cointegration stratagies, and recently found interesting article "Algorithmic Trading of Co-Integrated Assets" The article describes mean-reversion strategy for N-assets. ...
3
votes
0answers
1k views

Philips-Ouliaris test for cointegration

I'm trying to implement cointegration tests using the R urca package. I've figured out the Johansen test (ca.jo), but I'm having trouble with the Philips-Ouliaris test (ca.po). I have two questions: ...
2
votes
2answers
113 views

Are there any papers about cointegration consisting of time series of more than two assets?

Are there any papers about cointegration consisting of time series of more than two assets ? I wonder if there could be any trading strategy for three assets case.
2
votes
3answers
2k views

Dou you have an example of implementing Engle-Granger 2-step cointegration?

Does anyone know where to find an example of implementing Engle-Granger 2-step cointegration? Python's ideal, but any language will do. I've skimmed and read many articles, but understand little ...
2
votes
1answer
2k views

ADF test in R yielding perfect cointegration. How is this possible?

I am using the famous conintegrated pairs tutorial to just different stocks for cointegration. The adf.test yeilds perfect cointegration, which I feel must be incorrect. Here is why: When I run adf....
2
votes
1answer
379 views

Pair trading based on cointegration - equity line

I'm preparing a project at my Uni where I have to make a simple pair trading strategy using cointegration between two stocks. I'm stuck on the equity line calculation. I have prepared opening and ...
2
votes
3answers
860 views

Cointegration pair trading - how to test a trading rule using Monte Carlo?

I am doing a research exercise where I have two price series $X_t, Y_t$ which I regress against each other and test for cointegration. Once I confirm that they are cointegrated (using CADF or ...
2
votes
1answer
2k views

Johansen Cointegration Test

I just performed a Johansen Co-integration test on two stocks. The results I get are: ans = r0 r1 t1 true false I am using Matlab. Can ...
2
votes
1answer
237 views

Replicating the short part of a long-short trade using inverse ETFs

I devised a pair trading strategy going long XXX and short B*YYY. B is the quantity of shares of YYY I need to short. The problem is I can’t go short on YYY, but there is an inverse ETF for YYY ...
2
votes
1answer
211 views

Trend in Cointegration relationship

I was estimating a long-run relationship of exchange rate and purchasing power parity. The residual of the long-run relation which should be $I(0)$, but it is only $I(0)$ when I introduce trend in ...
2
votes
1answer
561 views

Stepwise Cointegration

This is more of a general question at this point, but if my thought process makes sense I will follow up with an R implementation. I have read a number of papers on cointegration analysis for pairs ...
2
votes
0answers
34 views

Cointegration between prices and dividends. How do I get the following expression?

Actually, I have two questions: 1. Let us assume that expected returns are constant. Then, we have the following expression for how the prices should be determined, provided that the operators are ...