Computations of statistics with moments_varendo

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Computations of statistics with moments_varendo

Postby Lara » Mon Dec 16, 2013 10:41 am

Dear Dynare developers,
I would like to have some information on the option moments_varendo and on how the statistics are computed:
1) If I set 250,000 MH replications with mh_drop = 0.2, does it mean that statistics are computed using the 200,000 random draws generated from MH algorithm? For each draw then artificial time series (of the same length of the data) are generated, so that statistics and confidence intervals can be computed?
2) in oo._PosteriorTheoreticalMoments.dsge.correlation.mean both auto-correlation and cross-correlation are stored. Let me define two variables: y (GDP) and c (consumption). It is clear to me that oo._PosteriorTheoreticalMoments.dsge.correlation.mean.y.y stores the auto-correlations. I am expecting to see the cross-correlation between y and c in oo._PosteriorTheoreticalMoments.dsge.correlation.mean.y.c (1,1), which should be the same as in oo._PosteriorTheoreticalMoments.dsge.correlation.mean.c.y(1,1). But this is not the case (the two numbers are different). Where is the cross-correlation between c and y stored in …y.c or in …c.y?
3) When I compare the mean of the auto-correlations (as well as the other statistics) with the one produced by the stoch_simul command, they are different. Why is this the case?

Your help is greatly appreciated.
Thanks in advance,
Lara
Lara
 
Posts: 33
Joined: Tue Jan 19, 2010 7:11 pm

Re: Computations of statistics with moments_varendo

Postby jpfeifer » Tue Dec 17, 2013 2:54 pm

Quick answer:
1.) After discarding the burn-in, theoretical moments are computed from the state-space representation for options_.PosteriorSampleSize random draws from the posterior. By default, this are 1000 draws.
2.) As discussed in the manual for 4.4, these are correlations starting at lag 1, i.e. not the contemporaneous correlations that should be symmetric. This explains the difference, as you are comparing corr(y,c(-1)) with corr(c,y(-1))
Thus, you would have to compute the contemporaneous correlations from the covariance matrix.
3.) Posterior moments are the mean of the moments while stoch_simul uses the moments at the mean. Those are two different concepts. Search the forum for more information.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Computations of statistics with moments_varendo

Postby Lara » Thu Dec 19, 2013 5:06 pm

Dear Johannes,
many thanks for your reply.
Concerning point (1), given the 1,000 draws from the posterior distribution, does Dynare generate 1,000 artificial time series of the variables (one artificial time series for each draw) or a certain number of artificial time series for each draw?
Thanks in advance.
Best regards,
Lara
Lara
 
Posts: 33
Joined: Tue Jan 19, 2010 7:11 pm

Re: Computations of statistics with moments_varendo

Postby jpfeifer » Fri Dec 20, 2013 8:39 am

Dear Lara,

as I said, Dynare computes theoretical moments here (see the manual). No artifical time series are needed due to linearity. With 1000 draws, you get 1000 sets of theoretical moments.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests