AR(1) ARMA(1,0)

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

Tartaglia
Posts: 7
Joined: Sat Apr 23, 2011 3:01 pm

AR(1) ARMA(1,0)

Postby Tartaglia » Sat Apr 23, 2011 3:20 pm

Hi everyone,

I generated a sample of 500 standard nomally distributed random variables, Z_t, and now I am trying to generate the following process:

X_t=0.8X(-1)-1+Z_t

Before, I have already generated a MA(2) process with series:

series Y_t=Z+2*Z_t(-1)+Z_t(-2)

and I tried to proceed in a similar fashion for X_t:

series X_t=0.8X(-1)-1+Z_t

However all the entries are empty. I have created the process X_t in Matlab already without problems, but here it does not seem to work.

Can anyone help?

Thank you,
Tartaglia

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

AR(1) ARMA(1,0)

Postby EViews Gareth » Sat Apr 23, 2011 3:46 pm

Did you set the first value of X to a seed value?

Tartaglia
Posts: 7
Joined: Sat Apr 23, 2011 3:01 pm

Re: AR(1) ARMA(1,0)

Postby Tartaglia » Sat Apr 23, 2011 4:07 pm

I did not, do you mean to set X_0 equal to 0 (or a random value)?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

AR(1) ARMA(1,0)

Postby EViews Gareth » Sat Apr 23, 2011 4:14 pm

Indeed.

Tartaglia
Posts: 7
Joined: Sat Apr 23, 2011 3:01 pm

Re: AR(1) ARMA(1,0)

Postby Tartaglia » Sat Apr 23, 2011 4:20 pm

I am not quite sure how to do that, since X does not exist yet.

Tartaglia
Posts: 7
Joined: Sat Apr 23, 2011 3:01 pm

Re: AR(1) ARMA(1,0)

Postby Tartaglia » Sat Apr 23, 2011 4:30 pm

I just tried to fill the whole series with zeros and set the first value to 1, using
series X_tc=0
X_tc.fill(l) 1 2

which gives me a whole series full of zeros, and an error message, that there is a syntax error in the 'fill' line.

Tartaglia
Posts: 7
Joined: Sat Apr 23, 2011 3:01 pm

Re: AR(1) ARMA(1,0)

Postby Tartaglia » Sat Apr 23, 2011 4:43 pm

I just tried the following commands:

series X_tc=0
series X_tc(+1)=0.8*X_tc+Z_t

which seemed to work as far as creating the series. Does this represent my actual series though?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: AR(1) ARMA(1,0)

Postby EViews Gareth » Sat Apr 23, 2011 4:54 pm

The standard way to do it would be this:

Code: Select all

series x_tc = 0 smpl @first+1 @last x_tc = 0.8*x_tc(-1) + z_t smpl @all

Tartaglia
Posts: 7
Joined: Sat Apr 23, 2011 3:01 pm

Re: AR(1) ARMA(1,0)

Postby Tartaglia » Sat Apr 23, 2011 5:04 pm

I see. would both approaches give me the same result (I just plotted both and they look very similar).

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

AR(1) ARMA(1,0)

Postby EViews Gareth » Sat Apr 23, 2011 5:21 pm

With yours, xt depends on the lagged values of zt.

Tartaglia
Posts: 7
Joined: Sat Apr 23, 2011 3:01 pm

Re: AR(1) ARMA(1,0)

Postby Tartaglia » Sat Apr 23, 2011 5:32 pm

Oh of course, I missed that (getting late here), thanks so much for your quick help!!


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests