non-stationary data to stationary

For econometric discussions not necessarily related to EViews.

Moderators: EViews Gareth, EViews Moderator

pfeffer
Posts: 1
Joined: Fri Nov 15, 2013 9:36 am

non-stationary data to stationary

Postby pfeffer » Fri Nov 15, 2013 9:48 am

Hi there,

I have some data which is the daily return from the S&P500 index calculated from the 1% most extreme increase in the price. I caculated the return by taking Pt=(pt/pt-1)-1. I also calculated data from the 2,5% extreme and 5%. For the most I can do an ADF and have the data as stationary and there after do a regression analysis. Although on the odd ocassion I get an ADF saying non-stationary with 50% probability. The questions is if it is possible to make the non-stationary data stationary without getting inferior data. I've tried to log the data with bad results as it doesn't make it stationary. So my question is whether it's possible to make this non-stationary data stationary somehow without, getting inferior data and results. Or it's just better to present the data as non-stationary and therefore no regression analysis is done hence spurious?

Thanks in advance

Simon

BobJ
Posts: 14
Joined: Wed Nov 19, 2008 11:36 pm

Re: non-stationary data to stationary

Postby BobJ » Mon Apr 14, 2014 5:33 am

I've never heard on non-stationary asset returns. You must be interpreting/performing the ADF in the wrong way. Returns are just like first differincing. They would make the price series stationary. Log differencing the price series is another option (you get continuously compounded returns). It is not advisable to run a regression with non-stationary variables, you can get spurious results.

Mimo
Posts: 8
Joined: Mon Mar 10, 2014 10:35 am

Re: non-stationary data to stationary

Postby Mimo » Tue Apr 22, 2014 6:59 am

Hello,

i am trying to learn how to use Eviews and along with it also statistics.

I am currently trying to convert the non-stationary data to stationary, but after i go through the process, then dhe result is the variable DY (new seriesm, of 1st difference) with NA values. What i am not getting is, why there are no values in the differenced variable?

Can anyone maybe help me here?

Best,

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: non-stationary data to stationary

Postby EViews Glenn » Tue Apr 22, 2014 10:26 am

There are many things that could be happening but without seeing your data and the exact steps you are doing it is difficult to say. Could you post your data here and describe what you did?

Mimo
Posts: 8
Joined: Mon Mar 10, 2014 10:35 am

Re: non-stationary data to stationary

Postby Mimo » Thu Apr 24, 2014 7:47 am

100
96.43337420992959
96.22840639276665
96.69729349595629
100.4905191547895
105.7859339235774
110.9855525554616
115.8702886041815
130.7678366895695
126.3059164280364
114.0432058948166
100.9337491586102
93.44226832702295
101.0003378975999
96.0896144891812
86.15804649363639
82.27965495226396
84.38417697990551
84.61395560434235
89.66375989413505
94.49600519169238
90.45617827287471
87.37786302163845
92.54786143019649
106.9217817627356
114.9718773008566
114.9718773008566
96.85716013683512
98.44835440566249
103.0435553515281
105.2704801138903
105.2704801138903


After Unit Root Test,i have to take the 1st difference to turn the data into stationary. After i get the 1st difference, i want to genr series by equation, and what i get is: :series: with NA values.

The same happens when i try to write down the genr equation on the top bar of the workfile, and try to pres enter so that the new genr series shows up in the workfile, but nothing happens. How can i save the new data of 1st or 2nd difference in my workfile?
The data i am using are normalized (index 1980=100). Do i maybe have to use absolute values instead?

Related to this again, i am a bit confused with the stationarity and seasonality.
Which method from Eviews 7 is best to check for both stationarity and seasonality, and which method is best to deseasonalize and stationarize (if i may name it like this)?

''I think i have entered a forest without an ax'' :?
Attachments
Screenshot 2014-04-24 16.35.12.png
Screenshot 2014-04-24 16.35.12.png (114.96 KiB) Viewed 21201 times
Screenshot 2014-04-24 16.34.43.png
Screenshot 2014-04-24 16.34.43.png (138.75 KiB) Viewed 21201 times

startz
Non-normality and collinearity are NOT problems!
Posts: 3796
Joined: Wed Sep 17, 2008 2:25 pm

Re: non-stationary data to stationary

Postby startz » Thu Apr 24, 2014 8:17 am

Try

Code: Select all

temp = d(used_extraction) used_extraction = used_extraction - temp
Although I believe what you are computing is

Code: Select all

used_extraction = used_extraction(-1)
which is probably not what you intend.

Mimo
Posts: 8
Joined: Mon Mar 10, 2014 10:35 am

Re: non-stationary data to stationary

Postby Mimo » Thu Apr 24, 2014 9:41 am

thank you so much startz.
Because i already lost the used extraction values (have only NA values now), i tried with another variable (used/cap) and the result i got is: check file attached.

Does this mean that i have to do the same for all my variables one by one, until i get the stationary versions, and then can continue with analysis and model development?
Attachments
Screenshot 2014-04-24 18.35.59.png
Screenshot 2014-04-24 18.35.59.png (95.16 KiB) Viewed 21187 times

startz
Non-normality and collinearity are NOT problems!
Posts: 3796
Joined: Wed Sep 17, 2008 2:25 pm

Re: non-stationary data to stationary

Postby startz » Thu Apr 24, 2014 10:31 am

I'm really not sure what you're trying to do, but if you want to first difference a variable X use

Code: Select all

series firstDifferenceX = D(X)
and then work with the variable firstDifferenceX without further adjustments.

Mimo
Posts: 8
Joined: Mon Mar 10, 2014 10:35 am

Re: non-stationary data to stationary

Postby Mimo » Thu Apr 24, 2014 10:50 am

all i am trying to do is: converting all variables into stationary, as all of them are non-stationary. Some of them require 2nd difference, even.
i will try to find it also in the eviews users guide. ;-)
thanks again!
p.s. my lucky time to learn more about eviews, statistics and econometrics. Huhhhhh

Vivianlfzhang
Posts: 1
Joined: Tue Jan 26, 2016 10:28 am

Re: non-stationary data to stationary

Postby Vivianlfzhang » Tue Jan 26, 2016 10:35 am

I have a similar question for non-stationary data transformation. I do not understand why temp=d(x) and then x=x-temp. I thought d(x) returns the first difference of x so why bother to subtract it from x? Thanks

Qurat
Posts: 3
Joined: Sat Feb 13, 2016 11:01 am

Re: non-stationary data to stationary

Postby Qurat » Sun Feb 14, 2016 12:13 am

i am working on the impact of exchange rate on returns. for returns i took stock prices and convert them to return by applying formula = LN(pt/pt-1). than i took these returns to eviews and apply ADF at level and my series were found stationary at level. now plz help me whether to treat it stationary at level or at 1st difference. i am confuse because by taking returns we are converting data at 1st difference.


Return to “Econometric Discussions”

Who is online

Users browsing this forum: No registered users and 2 guests