Get negative variance of variables in DYNARE++!

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.

Get negative variance of variables in DYNARE++!

Postby zhaoningru » Wed Dec 31, 2014 7:26 am

I wrote a model by myself and run it in DYNARE++. Unfortunately, I got negative variance for several variables. They are all close to zero. I guess this happened because of round error in underlying computation. Actually, their variances should be zero. Also, I think I have to do the simulation (dynare_simul) to get the correct variance for variables in my model. Am I correct? please help me!
zhaoningru
 
Posts: 21
Joined: Sat Mar 29, 2014 8:16 pm

Re: Get negative variance of variables in DYNARE++!

Postby jpfeifer » Thu Jan 08, 2015 9:25 pm

Yes, variances should either be 0. Due to numerical error, they can be up to plus/minus 10^-8 or so. When simulating series and computing variances, they cannot be negative.
------------
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 12 guests