Negative variance in 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.

Negative variance in moments_varendo?

Postby britney0109 » Tue Mar 25, 2014 2:28 pm

Hi everyone,

I use the moments_varendo command in estimation to compute the posterior theoretical moments of my observable variables. Everything works fine, but when I looked in detail at the theoretical posterior variance of some of my observables, I found that the HPD lower bound is always zero. By computing the lower bound myself using oo_.PosteriorTheoreticalMoments.dsge.covariance.density.y_obs.y_obs (or by just looking at the density of the posterior variance), I realized that even though the mean is positive the variance (of the theoretical variance of my observable variable) is so large that the lower percentiles are negative. Dynare seems to check this and thus in oo_.PosteriorTheoreticalMoments.dsge.covariance.deciles.y_obs.y_obs and oo_.PosteriorTheoreticalMoments.dsge.covariance.HPDinf.y_obs.y_obs these values are automatically set to zero.

My question is how to interpret this finding? Is there something wrong in my estimation which results in the large posterior variances (of the variances) and thus the negative values? My expectation would have been to get a posterior distribution for the variance with a positive support (given that the variance is some squared form of the posterior of the parameters and the structural variances). Why is this not the case?

Hints are greatly appreciated!
britney0109
 
Posts: 6
Joined: Mon Dec 10, 2012 3:13 pm

Re: Negative variance in moments_varendo?

Postby jpfeifer » Tue Mar 25, 2014 2:42 pm

Do you use Dynare 4.4.2? Is there shock correlation in your model?
------------
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: Negative variance in moments_varendo?

Postby britney0109 » Tue Mar 25, 2014 2:47 pm

Yes, this is Dynare 4.4.2. The shocks are uncorrelated.
britney0109
 
Posts: 6
Joined: Mon Dec 10, 2012 3:13 pm

Re: Negative variance in moments_varendo?

Postby jpfeifer » Wed Mar 26, 2014 8:49 am

Then please provide me with the mod-file and the data.
------------
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: Google [Bot] and 3 guests