Optimal simple rule

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.

Optimal simple rule

Postby S_V » Sat Apr 22, 2017 6:19 pm

Dear Prof. Pfeifer,

I would like to find the value of a parameter (phiP) which minimizes the variance of consumption using osr. However, Dynare is unable to find a solution. I wondered if there was something I may be doing wrong? When I make some minor changes to the osr weights, I get astronomical values of phiP which I would like to lie between -1 and 1.

Can I also ask whether there is some way I could find the optimal value of this parameter which maximizes intertemporal utility?

Please find attached a zip file. The file to run is the run.m file which should in turn run cycle_irf.

Many thanks
Attachments
Forum.zip
(1.26 MiB) Downloaded 60 times
S_V
 
Posts: 26
Joined: Tue Nov 15, 2016 11:38 am

Re: Optimal simple rule

Postby jpfeifer » Tue Apr 25, 2017 6:23 pm

1. What do you mean with
Code: Select all
Dynare is unable to find a solution

When I run the code with the unstable version, I get
OPTIMAL VALUE OF THE PARAMETERS:

phiP 22373.3

Objective function : 1.62781e-05

which is a solution

2. It is not unheard of that optimal parameters may be infinity (essentially full stabilization). In those cases, people often restrict the parameter range. In the unstable version, you can use
Code: Select all
osr_param_bounds;
phiP, -1, 1;
end;


3. What do you mean with
find the optimal value of this parameter which maximizes intertemporal utility

You want a welfare function that is maximized using that parameter?
------------
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: Optimal simple rule

Postby S_V » Tue Apr 25, 2017 9:07 pm

Many thanks Prof. Pfeifer.

I think that was my problem, I used the stable version. I will try with the unstable version and I am sure all should be fine then. Thanks for letting me know about the bounds as well. I wasn't aware of that feature.

With regards to 3), I meant is there a way to find the value of the parameter phiP which maximizes welfare (I already have a welfare function)?
S_V
 
Posts: 26
Joined: Tue Nov 15, 2016 11:38 am

Re: Optimal simple rule

Postby jpfeifer » Wed Apr 26, 2017 5:04 pm

Regarding 3, that is not available as a boxed solution. The problem is that this only makes sense in a model with order=2, because otherwise stochastics is not going to affect the mean of welfare. But it can be easily implemented in Dynare if necessary
------------
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 8 guests