# 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.

92 questions
Filter by
Sorted by
Tagged with
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: ...
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 ...
374 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 ...
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 ...
955 views

### Cointegration Test: Residual is stationary but not random?

I am testing cointegration relationship on various pairs of stocks by this following these steps. Test for I(1) on a pair of stocks, says X and Y, using Dickey-Fuller test. If both time series are ...
524 views

### Cointegration tests: how do you accurately test the necessity of time trends in the Johansen and Engle-Granger Test?

Is there a correct and up to date procedure? I just run the equation in VEC form and test the significance of the time trends? What are the possible problems that I should be aware of?
99 views

### Cointegration and variance of time series

Given that $X_t , Y_t$ are two cointegrated random processes, what can we say about the relationship between variance of the two increments $var(X_{t+h}-X_t)$ , $var(Y_{t+h}-Y_t)$ for a given $h>0$...
972 views

### matlab interpretation of johansen cointegration test

I need some help understanding the results of Johansen Cointegration test run on MATLAB. I am quite new to econometrics and do not fully comprehend what MATLAB has come up with. I would be really in ...
150 views

### Different ways to identify a co-integrated series?

I have been reading and trying out stuff until I am totally confused and back to square one. Could someone please explain the difference between the two methods suggested below? Suppose I have 10 ...
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 ...
763 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 ...
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 ...
654 views

### Simulate non-stationary time series with cointegration

how can I simulate/generate two non-stationary time series (with unit root) so that they can be also cointegrated (using R or Matlab). Thanks in advance.
338 views

### High correlation will help detect spurious regression over cointegration?

I'm analyzing two financial time series with Johansen method. A high Correlation coefficient using the Pearson method will help me to detect spurious cointegration models to avoid? If this is not ...
236 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 ...
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 ...
255 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 ...
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 ...
373 views

### pairs trading or long short strategy given volatility of the stocks

Suppose I have 2 stocks and the only thing I know about them is their volatility and that they cointegrate. Let's say vol of stock A is 25% and B is 20%. Will I be able to find a hedge ratio only ...
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....
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 ...
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 ...
983 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: ...
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 ...
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: ...
649 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 ...
309 views

### Modelling long run relationship between dividend and earnings

I am working on a paper where I have to model the long run relationship between earnings and dividends. I have downloaded the raw data from shillers website. I have converted the series to log(...
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 ...
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 ...
889 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 ...
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 ...
765 views

### Two prices pass the cointegration test but there is a trend. How to check stationarity?

Below is a spread built with two ETFs that pass the cointegration test i.e. Adjusted Dickey Fuller, adfTest(type="nc") in R's fUnitRoots with a p-value < 0.01. The red line is the trendline. What ...
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 ...
667 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 ...
685 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)?
1k views

### A gentle introduction to cointegration [duplicate]

Possible Duplicate: What is the intuition behind cointegration? Although having a postgrad degree in mathematics, I haven't used any maths 'in anger' for quite a few years now, so I am quite ...
723 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: ...
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]=...
685 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.
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 ...