Lo and MacKinlay’s variance ratio test

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

babu
Posts: 3
Joined: Sat Dec 27, 2008 6:47 am

Lo and MacKinlay’s variance ratio test

Postby babu » Sat Dec 27, 2008 7:06 am

i am a new user of eviews i have a problem i want to perform Lo and MacKinlay’s variance ratio test and multiple variance ratio (MVR) Chow and Denning test

is it possible to perform this test by using this software .if yes would you please help me in this regard how can i perform these tests.

thanks with kind regard

arshad

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

Re: Lo and MacKinlay’s variance ratio test

Postby EViews Glenn » Mon Dec 29, 2008 11:39 am

At the moment, EViews doesn't have built-in procedures for variance ratio tests. (I will note that this is a feature that is on our list of things to look at for upcoming versions of EViews.)

For now, however, it is not particularly difficult to compute the moments for the test statistic using the @mean and @varp or @sumsq functions. Under the heteroskedastic null, the distribution of the test statistic is normally distributed, so finding the p-value is straightforward.

Here's a snippet of code that I just whipped up for this case. You can put in a program and then run it. Here %X is the name of the series of interest, and we set the comparison lag !q to be 4. I note that you say you are a new user of EViews. This snippet uses some of the programming constructs that are described in the manual. It's probably worth a quick perusal to get a sense for what we are doing here...

Code: Select all

' Lo and MacKinlay 1989, JEMA, p. 203-238.

' get name of series to test and the lag
%x = "x1"
!q = 4

' (3) and (4)
series xdiff_1 = {%x} - {%x}(-1)
series xdiff_1_demean = xdiff_1 - @mean(xdiff_1)
scalar var_1 = @varp(xdiff_1_demean)
!nq = @obs(xdiff_1_demean)

' (5)
series xdiff_!q = {%x}  - {%x}(-!q)
series xdiff_!q_demean = xdiff_!q - !q*@mean(xdiff_1)
scalar var_!q = @sumsq(xdiff_!q_demean) / (!q*!nq)

' (6b)
scalar Mr_!q = (var_!q / var_1) - 1
scalar Mr_!q_se = @sqrt(2*(2*!q - 1)*(!q-1)) / (@sqrt(!nq) * @sqrt(3*!q))
scalar Mr_!q_adj = Mr_!q  / Mr_!q_se
scalar Mr_!q_pval = @cnorm(-@abs(Mr_!q_adj))

The results will be in the scalars "Mr_4" and "Mr_4_pval". Note that I'm computing the centered ratio in Mr_4.

You can add the unbiased adjustments described in Lo and MacKinlay (7a) and (7b) without too much difficulty. If, however, you want to allow for a heteroskedastic or weakly dependent null, it will be more difficult, since you'll need to compute a weighted sum of the estimated autocorrelation variances.

Adding Chow and Denning to the mix adds an additional layer of complexity.

In short, computing the variance ratio test is pretty straightforward for the heteroskedastic, single comparison case, but is a bit tricky for more general calculations. Perhaps someone else has already done some work on this or cares to expand on what I've done above.

babu
Posts: 3
Joined: Sat Dec 27, 2008 6:47 am

Re: Lo and MacKinlay’s variance ratio test

Postby babu » Mon Dec 29, 2008 1:57 pm

Thanks Dear you really did hard work for me.i am very thankful to you


Return to “Estimation”

Who is online

Users browsing this forum: Google [Bot] and 40 guests