0/0 eigenvalues problem

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.

0/0 eigenvalues problem

Postby lrljack » Tue Oct 04, 2016 8:02 pm

Hallo All:

I am running a multi-asset allocation model. I encounter the problem of "0/0 eigenvalues". I attach my mod file, the steady state file, and the parameter mat file here. Can you help me to overcome my problems? Actually, I do not want "mu" to be essentially 0. Since r7 is 0, I think lambda7 may be 0.

Thanks!
Attachments
dynarehelplrljack.zip
(7.8 KiB) Downloaded 39 times
lrljack
 
Posts: 2
Joined: Tue Oct 04, 2016 2:40 pm

Re: 0/0 eigenvalues problem

Postby jpfeifer » Tue Oct 04, 2016 8:30 pm

I would focus on the steady state. There are differences in many orders of magnitude for the variables. 10^6 vs 10^(-17) might yield numerical issues when inverting matrices. Is it intended that mu and lambda are essentially 0 in steady state? While you use a steadystate file to compute the steady state, that one essentially just runs a numerical solver. There might be multiple solutions and the one that you currently find yields numerical problems. You should have some intuition whether the steady state you currently have makes sense economically.
------------
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: 0/0 eigenvalues problem

Postby lrljack » Wed Oct 05, 2016 1:22 pm

Thank you professor. After checking the variance-covariance matrix of the returns, i.e. "sig2", I find that the values are too small. Therefore, I multiply it by 10^4 and the problem disappears. The economic interpretation may be: the variance-covariance matrix is based on values of 100*returns (e.g. instead of using 0.02, the agent use 2). What are your suggestions?
lrljack
 
Posts: 2
Joined: Tue Oct 04, 2016 2:40 pm

Re: 0/0 eigenvalues problem

Postby jpfeifer » Fri Oct 07, 2016 3:58 pm

If your model is linear or approximated with order=1, then you can just scale everything.
------------
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 6 guests