Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Cointegration is not the same as correlation

By Ernest P. Chan, Ph.D.


November 6, 2006
A reader asked me recently why I believe that energy stock prices (e.g. XLE) are
correlated with crude oil futures front-month contract (QM). Actually I dont believe they
are necessarily correlated I only think they are cointegrated.
What is the difference between correlation and cointegration? If XLE and QM were
really correlated, when XLE goes up one day, QM would likely go up also on the same
day, and vice versa. Their daily (or weekly, or monthly) returns would have risen or
fallen in synchrony. But thats not what my analysis was about. I claim that XLE and
QM are cointegrated, meaning that the two price series cannot wander off in opposite
directions for very long without coming back to a mean distance eventually. But it
doesnt mean that on a daily basis the two prices have to move in synchrony at all.
Two hypothetical graphs illustrate the differences. In the first graph, stock A and stock B
are correlated. You can see that their prices move in the same direction almost everyday.
Stocks A and B are correlated
72

Daily Prices

70
Stock A

68

66

64
0

10

15

20

25

30

35

40

45

Days

68

Daily Prices

66

64
Stock B
62

60
0

10

15

20

25
Days

Now consider stock A and stock C.

30

35

40

45

Stocks A and C are cointegrated


73

72

71

Short A-C spread

70

Buy cover A-C spread

Daily Prices

69

Sell A-C spread

68

67

66

65

64

Buy A-C spread


63

10

Stock A
Stock C
15

20

25

30

35

40

45

Days

Stock C clearly doesnt move in any correlated fashion with stock A: some days they
move in same direction, other days opposite. Most days stock C doesnt move at all! But
notice that the spread in stock prices between C and A always return to about $1 after a
while. This is a manifestation of cointegration between A and C. In this instance, a
profitable trade would be to buy A and short C at around day 10, then exit both positions
at around day 19. Another profitable trade would be to buy C and short A at around day
31, then closing out the positions around day 40.
Cointegration is the foundation upon which pair trading (statistical arbitrage) is built. If
two stocks simply move in a correlated manner, there may never be any widening of the
spread. Without a temporary widening of the spread in either direction, there is no
opportunity to short (or buy) the spread, and no reason to expect the spread to revert to
the mean either.
For further reading:
Alexander, Carol (2001). Market Models: A Guide to Financial Data Analysis. John
Wiley & Sons.
Dr. Ernest P. Chan is a quantitative consultant who helps his clients implement
automated, statistical trading strategies using Matlab. His office is located in Toronto
and can be reached through www.epchan.com.

You might also like