Understanding the behavior of a system of time series, and in particular how the interrelate, is an important topic in several fields. Cointegration analysis is a powerful tool for uncovering relationships and long term deterministic and stochastic trends in such a system.