American TV does cointegration

October 18, 2010

Fringe provides an excellent example of cointegration.  This is a television show in which there are two adjacent universes.  The universes are almost alike but not exactly.

Now, everyone knows that history is chaotic.  If a butterfly does an extra flap of its wings, then that difference spreads out to change subsequent events everywhere.  But the Fringe universes stay largely in step.  Decades ago a building was built in one universe, but not the other; a company was founded in one, but not the other.  Yet the universes are not diverging.

That’s cointegration.

I’m doubtful that Clive Granger and colleagues invented cointegration to help out the science fiction industry.  More likely they saw either something in the economic world that the mathematics couldn’t handle, or a hole in the mathematics.  They may or may not have had thoughts of a Nobel prize (achieved, 2003).  Hitting mainstream culture would have been just a pipe dream.

An economic example

Take the case of a company that has two classes of shares — common and preferred, say.  The price histories of those share classes are going to be cointegrated.

The shares are essentially the same except for voting rights and perhaps a few other details.  Their prices are going to move together.  Not exactly together: there will be differences due to large trades and other random events.  But if the prices drift too far apart, then someone is going to take advantage of that discrepancy.

More technical explanation: Two time series are cointegrated if each is not stationary (and hence “integrated”), but there is a linear combination of them that is stationary.

In our example, the difference in prices will be a stationary series.

R implementation

Packages that include functions related to cointegration include:

  • vars
  • urca
  • tsDyn
  • tseries

There are additional packages that contain tests for cointegration.  I’m unaware of any additional packages that are more useful in terms of cointegration than that.  Please correct me if I’ve missed anything.

Bernhard Pfaff has a book: Analysis of Integrated and Cointegrated Time Series with R.

Epilogue

My wife is quietly amused that she has got me to watch a science fiction show.  She hooked me with Walter, the scientist.  The science that he does — as far as I can tell — is complete nonsense.  (I think that’s why they call it science fiction.)  However, Walter is the picture of a real scientist.

[Republished from yesterday due to a hardware failure.]

Subscribe to the Portfolio Probe blog by Email

Latest posts

Leave a Reply

  1. […] American TV does cointegration is about cointegration.  It is also about the Fringe television series.  I would have thought that Fringe geeks would relish this post which explains an otherwise unintuitive aspect of the show.  Apparently not. […]

Related posts

  • October 22, 2013

    What I've learned from updating the blogroll. New entries The easy option is to go to The Whole Street which aggregates lots of quant finance blogs. Somehow Bookstaber missed [...]

  • October 14, 2013

    What good are the skewness and kurtosis of portfolios? Previously The post "Cross-sectional skewness and kurtosis: stocks and portfolios" looked at skewness and kurtosis in portfolios.  The key difference [...]

  • October 7, 2013

    Get data that fit before you fit data. Why verify? Garbage in, garbage out. How to verify The example data used here is daily (adjusted) prices of stocks.  By [...]