Page 1 of 1

About optimal policy in Dynare

PostPosted: Fri Feb 13, 2015 8:13 am
by flumas22
Dear Dynare users,

I have some questions regarding optimal policy computation in Dynare:
1. Is it possible to compute optimal policy under commitment in a timeless perspective in Dynare? If yes, how? If I'm right the ramsey_policy command gives us optimal policy which is time inconsistent.
2. I tried to compute optimal policy using the command ramsey_policy. The model I use is linear - variables are expressed as percentage deviations from ss. The objective function I use is: y^2 + lambda*pi^2 with discount factor equal 1.
The procedure works well, but in the end I get the following results:

Approximated value of planner objective function
- with initial Lagrange multipliers set to 0: NaN
- with initial Lagrange multipliers set to steady state: NaN

What does it mean? Is there any problem?

3. Is there any way to compare the welfare losses achieved under optimal policy (ramsey_policy command with objective function y^2 + lambda*pi^2 and discount factor equal 1) and under optimal simple rule (osr command with objective function var(y)+ lambda*var(pi))?

In the following paper (see page 18, Table1)
https://www.ecb.europa.eu/pub/pdf/scpwps/ecbwp600.pdf

authors simply read the variances and insert them into loss function, say var(y)+ lambda*var(pi), and compare the results? Is it correct?

Thank you in advance for all your answers.

Regards,

Jan

Re: About optimal policy in Dynare

PostPosted: Sun Apr 12, 2015 1:49 pm
by jpfeifer
1. Dynare does not support the timeless perspective of Woodford. As far as I know, there is not operational definition of this concept that can be generally used.
2. Yes, there must be a problem. Note that using a linear model with a quadratic objective in the Ramsey command is generally not OK. It only works for efficient steady states. Otherwise, you will get spurious welfare rankings as discussed in e.g. Benigno/Woodford'd work.
3. No, I don't think the two are equivalent. One is a sum of unconditional variances, the other of undiscounted conditional variance (I am not even sure the latter converges without discounting). But given the Dynare output, It should be easily possible to derive their values.

Re: About optimal policy in Dynare

PostPosted: Fri Apr 24, 2015 11:32 am
by Enthusiast
Dear Johannes,

could you please clarify what kind of welfare analysis can I generally perform with a log-linearized model? Since the model is linear I cannot do second order approximation, but can I calculate optimal Ramsey policy then?

Thank you!

Re: About optimal policy in Dynare

PostPosted: Sun Apr 26, 2015 8:29 am
by jpfeifer
In general, this is only possible if you are working with a model that has a non-distorted steady state, i.e. where due to (close to) optimality the second order terms evaluate to 0. Please take a look at e.g. Woodford 2002 - Inflation Stabilization and Welfare.

Re: About optimal policy in Dynare

PostPosted: Sun Apr 26, 2015 10:49 am
by econ86
Dear Mr Pfeifer,

I'm also interested in computing optimal policy using the command ramsey_policy in Dynare.

Let me give a concrete example. Suppose we use a well-known DSGE model developed by Adolfson et al. 2007: Bayesian estimation of an open economy DSGE model with incomplete pass-through.

The features of this model are the following:
- model is log-linearized - variables are expressed as percentage deviations from SS, that is x_hat for a generic variable x
- in SS x_hat =0 (by definition)
- etc.

My objective function is linear-quadratic of the following form: L = lambda*y_hat^2 + pi_hat^2.

My question is: can I use the command ramsey_policy in the context of this model (i.e. Adolfson et al. 2007)?

Re: About optimal policy in Dynare

PostPosted: Tue Apr 28, 2015 5:26 am
by jpfeifer
My understanding is that this is not possible. The optimal policy depends on some cross-derivatives that would be absent due to the model already being linear. As far as I remember, their model has a distorted steady state so that the naive linear quadratic approach you are trying will result in wrong results.

Re: About optimal policy in Dynare

PostPosted: Tue Apr 28, 2015 5:49 am
by theta23
Jpfeifer,

a related question - is it also not possible to use osr in such a model?

Re: About optimal policy in Dynare

PostPosted: Tue Apr 28, 2015 5:51 am
by jpfeifer
That is possible, but not Ramsey.