osr reproducing initial values as optimal values

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.

osr reproducing initial values as optimal values

Postby monsoon » Sun Apr 03, 2016 6:59 am

hi,
I have a simulated model and now I am trying to derive the optimal policy rule. I ran the optimal simple rule in dynare as suggested in the guide but it reproduced the initial values of the parameters as the optimal parameter which is absurd.

OPTIMAL SIMPLE RULE


OSR: Initial value of the objective function: 2.40758

-----------------
-----------------
f at the beginning of new iteration, 2.4075798109
Norm of dx 0
----
Improvement on iteration 1 = 0.000000000
improvement < crit termination
zero gradient

OPTIMAL VALUE OF THE PARAMETERS:

phi_p 1.8

phi_y 0.5

Objective function : 2.40758

Can anyone please suggest what is the issue?
Many thanks.
Attachments
utility_opt_10.mod
(9.26 KiB) Downloaded 127 times
monsoon
 
Posts: 35
Joined: Mon Nov 09, 2015 4:47 am

Re: osr reproducing initial values as optimal values

Postby jpfeifer » Tue Apr 05, 2016 6:25 pm

You need to check your model. I tried how different values for the parameters affect the moments of the objective variables using
Code: Select all
stoch_simul(order=1,irf=0,nocorr) pie r_ib;

and there is no movement. Given that the variance of these variables does not move when you change phi_p, it is hardly unusual when the optimizer returns the starting values as the parameter seems to be not identified.
------------
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: osr reproducing initial values as optimal values

Postby Da Y. » Thu Nov 24, 2016 12:39 am

Hi,
I have a follow up question. I am actually getting the same problem. The optimized parameters values are the same as the original values.
Prof. jpfeifer could you please tell me what you mean by "check your model" what should one check exactly?
More specifically, for my case I am looking for optimized parameters that can maximize welfare.
Using different values of the parameters gives me slightly different variances of the variables.
Thank you for your help.
D.Y.
Da Y.
 
Posts: 2
Joined: Thu Nov 24, 2016 12:20 am

Re: osr reproducing initial values as optimal values

Postby jpfeifer » Thu Nov 24, 2016 1:53 pm

Without the mod-file, this is hard to say. Have you tried the unstable version with a different optimizer?
------------
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: osr reproducing initial values as optimal values

Postby Da Y. » Thu Nov 24, 2016 5:55 pm

Thank you for your quick response.
I just tried the unstable version, I get the same thing. .
I searched more on the forum. I found few more examples.
I think I have a wrong the optim_weight block.
My understanding is that if for example I have
r = (yh/yh_s)^Gamma1*(qh/qh_s)^Gamma2;
the optim_weight is :
optim_weight;

yh Gamma1;
qh Gamma2;
end;

osr_params Gamma1 Gamma2;
osr;

Where is my mistake at that point? do I need any other variable?
unfortunately, I can't post the file, it is a join work. I am not allowed.
Please help me with a description on how to write that part I think it will change something.
Thank you so much again.
Da Y.
 
Posts: 2
Joined: Thu Nov 24, 2016 12:20 am

Re: osr reproducing initial values as optimal values

Postby jpfeifer » Thu Nov 24, 2016 8:23 pm

Then simply send me the files via email or PM.
------------
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