How to perform Johansen cointegration test?

If a series is nonstationary in time series without a constant mean and constant variance, the regression results will be spurious. But regression results can be reliable when a linear combination of non-stationary series (dependent and independent) removes the stochastic trend and produces stationary residuals. Therefore, it is implied that variables are co-integrated. Co-integrated also assumes that there is the occurrence of stochastic non-stationary series, underlying two or more process (p).

Testing cointegration

To test cointegration, Johansen cointegration test is widely used which determines the number of independent linear combinations (k) for (m) time series variables set that yields a stationary process. The test gives the rank of cointegration.

The order of integration of a series is given by the number of times the series must be differenced in order to produce a stationary series. A series generated by the first difference is integrated of order 1 denoted as I(1). Thus, if a time series, is I(0), it is stationary; if it is I(1) then its change is stationary and its level is non-stationary. The equation for the cointegration test is given below:


Case I: When k=0, then p=m, it means variables in time series are not cointegrated.

Case II: 0 < k < m, 0 < p < m. This case indicates that variables are cointegrated.

Johansen cointegration test

There are many tests to show the long run association between the variables, one of them is the Johansen cointegration test. It is based on the maximum likelihood method and gives two main statistics:

  1. Eigen value statistic and
  2. Maximum statistic.

When the rank is zero it means there is no co-integration relationship and if the rank is one it means there is one co-integration equation and so on.

For example in our study, by using Johansen cointegration test, both Eigen value and trace statistics are used to examine the association of long-run relationship between FDI and GDP as well FDI and air pollution and water pollution indicators.

Divya Dhuria

Research analyst at Project Guru
DIvya has a keen interest in policy making and wealth management. She is a Master in Economics from Gokhale Institute of Politics and Economics. She has been trained in the econometric techniques to assess different possible economic relationships. She hascontributed to the working paper on National Rural Health Mission at Institute of economic growth, Delhi. Along with academical growth, she likes to explore and visit different places in her spare time.
Divya Dhuria

Related articles

  • Building univariate ARIMA model for time series analysis in STATA Autoregressive Integrated Moving Average (ARIMA) is popularly known as Box-Jenkins method. The emphasis of this method is on analyzing the probabilistic or stochastic properties of a single time series. Unlike regression models where Y is explained by X1 X2….XN regressor (like […]
  • How to identify ARCH effect for time series analysis in STATA? Volatility only represents a high variability in a series over time.This article explains the issue of volatility in data using Autoregressive Conditional Heteroscedasticity (ARCH) model. It will identify the ARCH effect in a given time series in STATA.
  • Lag selection and cointegration test in VAR with two variables The previous article showed that the three-time series values Gross Domestic Product (GDP), Gross Fixed Capital Formation (GFC) and Private Final Consumption (PFC) are non-stationary. Therefore they may have long-term causality. The general assumption, in this case, is that consumption […]
  • Solution for non-stationarity in time series analysis in STATA The previous article based on the Dickey Fuller test established that GDP time series data is non-stationary. This prevented time series analysis from proceeding further. Therefore, in this article possible solution to non-stationarity is explained.
  • Understanding point forecasting in STATA This article explains how to perform point forecasting in STATA, where one can generate forecast values even without performing ARIMA.


We are looking for candidates who have completed their master's degree or Ph.D. Click here to know more about our vacancies.