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

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

  • November 20, 2012

    New Events  Thalesians (London) 2012 November 21: Isabel Ehrlich on "Basket Options with Smile". Abstract: Due to the distinct lack of models for basket options that remain consistent with [...]

  • November 19, 2012

    An introduction to estimating Value at Risk and Expected Shortfall, and some hints for doing it with R. Previously "The basics of Value at Risk and Expected Shortfall" provides [...]

  • November 12, 2012

    Specifics of statistical factor models and of a particular implementation of them. Previously Posts that are background for this one include: Three things factor models do Factor models of [...]