# What is a stationarity test and how to do it?

By Riya Jain & Priya Chetty on February 12, 2020

Stationarity in the stationarity test is a property of time series which states that the value of the variable doesn’t change with time i.e. variation in time does not serve as a factor that brings changes in the value of a variable.

For example, stock market prices are though are highly volatile in nature, these fluctuations are bounded by time. This means that stock prices rise over a period of time, whether the business is actually performing better or not.  However, if a person wants to check the impact of that business’s financial performance on its stock prices, they will have to first ensure that the stock price data is stationary. If it is non-stationary then the results will be biased because of the presence of variation in price due to the time factor. Therefore by making sure that the data is stationary, the person makes sure that the impact is tested purely, i.e. taking only financial performance and stock price as the factors. Thus, for analyzing the economic growth of a country or financial market performance, it is essential to de-trend the data.

In order to have a true analysis of the nature of variables, accurate prediction and forecasting, and acquire information about the true status of the relationship between the variables. It is required that data should be free from the effect of trends and seasonality.

Stationarity can be detected from a graph or a chart. The three graphs below show the trend of a variable over a period of time.

The above graphs show that only Figure (b) is stationary as here the data is not affected by the time, However, Figure (a) shows an upward trend and Figure (c) shows a downward trend. Thus, they are not stationary.

## Different types of stationarity tests

The second and more popular and accurate way of checking stationarity is through statistical testing. There are different tests available for this purpose. The table below depicts some of the most popular ones.

## Understanding optimal stationarity test

Though most studies use the ADF test for stationarity check, still it is suggested that a combination of ADF and KPSS tests should be used. This helps in strengthening the results of the hypothesis test.

Suppose stationarity for the aggregate output of India from 2000 to 2015 needs to be tested in EViews then the Results of the ADF level test are:

While the result of the KPSS test is

The ADF statistic can be rejected by comparing the Test Statistic with the critical values i.e. as 0.159465 > (-3.959148), (-3.081002), and (-2.681330), thus the null hypothesis of having unit root in GDP is not rejected. This could also be done by comparing the p-value i.e. 0.9594 with the significance level considered for the study i.e. 0.01, 0.05, or 0.10.

Offer ID is invalid

The KPSS Statistic results has LM Statistic as 0.505599 which is greater than critical values at 5% and 10% level i.e. 0.505599 > 0.463000 and 0.347000 but less than the critical value at 1% significance level i.e. 0.505599 < 0.739000. Hence, for the former case, the null hypothesis of having trend stationery in GDP is rejected but for the latter case, the null hypothesis is not rejected and at a 1% level of significance, GDP has an existence of trend stationarity.

## Understanding the results

As the above example depict different results thus the derivation of stationarity is considered at the level where both results are the same i.e.

• If the ADF model rejects the null hypothesis, and KPSS do not reject; Stationarity Exist.
• If ADF does not reject the Null Hypothesis while KPSS does reject; Unit Root Exists.
• If ADF and KPSS reject the null hypothesis; Heteroscedasticity is impacting the results.
• If ADF and KPSS do not reject the null hypothesis; Data does not have enough observations.

Hence, for the above case at 5% and 10% levels of significance stationarity does not exist while at 1% level of significance, the number of observations considered for the study is less. Thus, to derive stationarity at a 1% level of significance, more observations need to be included in the analysis.

In order to remove unit root/ non-stationarity from the data, the model is transformed using the differencing technique i.e. current observation is subtracted from its consecutive observation. This subtraction of observation is called lag transformation. The order of differencing though depends on the derivation of stationarity; however, the optimal level of lag could be determined using SIC or AIC method.

ADF results for 1-year lagged GDP

KPSS results for 1-year Lagged GDP

The results show that at a 5% level of significance, the ADF test statistic is less than the critical value i.e. (-3.788118) < (-3.119910) and the KPSS LM statistic is also less than the critical value i.e. 0.355437 < 0.463000. In fact, p-value of ADF is 0.0159 < 0.05, the significance level. Hence, at a 5% level of significance, the ADF Null Hypothesis is rejected while the KPSS null hypothesis is not rejected. This shows that the 1st order difference of GDP does not have a unit root and is stationary in nature.

I am a management graduate with specialisation in Marketing and Finance. I have over 12 years' experience in research and analysis. This includes fundamental and applied research in the domains of management and social sciences. I am well versed with academic research principles. Over the years i have developed a mastery in different types of data analysis on different applications like SPSS, Amos, and NVIVO. My expertise lies in inferring the findings and creating actionable strategies based on them.

Over the past decade I have also built a profile as a researcher on Project Guru's Knowledge Tank division. I have penned over 200 articles that have earned me 400+ citations so far. My Google Scholar profile can be accessed here

I now consult university faculty through Faculty Development Programs (FDPs) on the latest developments in the field of research. I also guide individual researchers on how they can commercialise their inventions or research findings. Other developments im actively involved in at Project Guru include strengthening the "Publish" division as a bridge between industry and academia by bringing together experienced research persons, learners, and practitioners to collaboratively work on a common goal.

I am a Senior Analyst at Project Guru, a research and analytics firm based in Gurugram since 2012. I hold a master’s degree in economics from Amity University (2019). Over 4 years, I have worked on worked on various research projects using a range of research tools like SPSS, STATA, VOSViewer, Python, EVIEWS, and NVIVO. My core strength lies in data analysis related to Economics, Accounting, and Financial Management fields.

17 thoughts on “What is a stationarity test and how to do it?”