# Comparing welfare - Ramsey vs Taylor rule

**URL:** <https://forum.dynare.org/t/comparing-welfare-ramsey-vs-taylor-rule/6191>\
**Category:** Optimal Policy\
**Created:** [5 May 2017 20:49 UTC](https://forum.dynare.org/t/comparing-welfare-ramsey-vs-taylor-rule/6191 "2017-05-05T20:49:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![zolnier](https://forum.dynare.org/letter_avatar_proxy/v4/letter/z/e8c25b/32.png) [@zolnier](https://forum.dynare.org/u/zolnier)\
**Post date:** [5 May 2017 20:49 UTC](https://forum.dynare.org/t/comparing-welfare-ramsey-vs-taylor-rule/6191/1 "2017-05-05T20:49:35Z")

</div>

Hello,

I have a quick question about the possibility to compare welfare that we get from a second order approximation with the planner objective value from a Ramsey policy.

In the case of a Taylor rule I have specified the welfare recursively as

```auto
Welf = Util + \beta*Welf(+1)
```

From the output of Dynare I have understood that you could then either look at the stochastic steady state computed as

```auto
W_pos=strmatch('y',M_.endo_names,'exact');
oo_.dr.ys(W_pos)+0.5*oo_.dr.ghs2(oo_.dr.inv_order_var(W_pos))     
```

which is the Constant in the Policy and Transition Functions, or the theoretical mean found in

```auto
oo_.mean
```

as the welfare mesures. My question is then, which one of these is comparable to the planner objective value that is reported when the initial Lagrange multipliers are set to steady state? As far as I’ve understood it is the first way of doing it, but that yields the odd result that welfare is superior in a world governed by a simple Taylor rule compared to the Ramsey policy which is why I ask this question.

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [8 May 2017 10:02 UTC](https://forum.dynare.org/t/comparing-welfare-ramsey-vs-taylor-rule/6191/2 "2017-05-08T10:02:27Z")

</div>

The first one would be conditional welfare, i.e. the welfare being in steady state. The mean welfare in contrast would be unconditional welfare.  
The output from Ramsey would be conditional welfare. However, an important difference is that Ramsey takes the shocks in period 0 as known. Therefore, the uncertainty correction only applies from period 1 onwards, while in your manual computation it would start at time 0. Put differently, the uncertainty correction only gets weight beta instead of 1.  
You may want to look into

```auto
evaluate_planner_objective.m
```

---

<div class="post-metadata">

**Author:** ![zolnier](https://forum.dynare.org/letter_avatar_proxy/v4/letter/z/e8c25b/32.png) [@zolnier](https://forum.dynare.org/u/zolnier)\
**Post date:** [9 May 2017 19:37 UTC](https://forum.dynare.org/t/comparing-welfare-ramsey-vs-taylor-rule/6191/3 "2017-05-09T19:37:34Z")

</div>

Thank you for your reply Prof. Pfeifer.

Then it was as I suspected with the conditional welfare.

If I have understood the code in

```auto
evaluate_planner_objective.m
```

correctly then it is line 74 that is of interest

```auto
Wss = beta*Wuu*M.Sigma_e(:)/(1-beta);
```

and the solution would be to either remove the \beta from this line or to add \beta to my manual computation for a proper comparison to be made.

(The odd welfare ranking was an unrelated problem that has been solved.)

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [10 May 2017 13:50 UTC](https://forum.dynare.org/t/comparing-welfare-ramsey-vs-taylor-rule/6191/4 "2017-05-10T13:50:41Z")

</div>

Yes, that is the line and the solution you suggest also seems correct. I am glad you solved the issue with the welfare ranking.

---

<div class="post-metadata">

**Author:** ![zolnier](https://forum.dynare.org/letter_avatar_proxy/v4/letter/z/e8c25b/32.png) [@zolnier](https://forum.dynare.org/u/zolnier)\
**Post date:** [11 May 2017 14:34 UTC](https://forum.dynare.org/t/comparing-welfare-ramsey-vs-taylor-rule/6191/5 "2017-05-11T14:34:54Z")

</div>

Then all is well in the world. Thank you very much for the help professor.

---

<div class="post-metadata">

**Author:** ![RaffaelRusso](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/57b2e6/32.png) [@RaffaelRusso](https://forum.dynare.org/u/RaffaelRusso)\
**Post date:** [28 February 2020 19:22 UTC](https://forum.dynare.org/t/comparing-welfare-ramsey-vs-taylor-rule/6191/6 "2020-02-28T19:22:13Z")

</div>

Dear Professor Pfeifer, I am a bit confused with how to compare welfare measures.

- Consider Welf\_Ramsey the value of Welfare we obtain in evaluate\_planner\_objective from a model running under ramsey\_policy(planner\_discount=.99,order=1,instruments=R).

- Consider now Welf\_Rule = U(C,N) + beta\*Welf\_Rule(+1) the welfare of the same model but with a simple rule for nominal interest rate (running with order=2 set)…

If we take  
**W\_pos=strmatch(‘Welf\_Rule’,M\_.endo\_names,‘exact’);**  
**outvalue= oo\_.dr.ys(W\_pos)+0.5\*oo\_.dr.ghs2(oo\_.dr.inv\_order\_var(W\_pos));**

then outvalue is the conditional welfare of the second model.

As I understood from this post \*\*these two values: Welf\_Ram and outvalue are _not_ directly comparable. Or are they?  
Should we first divide Welf\_Ram by .99 before comparing both values?

In my model, If I divide Welf\_Ram by .99, it becomes larger than outvalue (in modulus), which is counterintuitive, since ramsey policy should be better (i.e. lower in modulus) than simple rules…

For example, I have a model where Welf\_Ramsey= -377.88 and outvalue= -378.15  
if I divide Welf\_Ramsey by beta (where beta=.99) the I get -381.7 which is higher than outvalue and therefore precludes that Ramsey implementation is worse than a simple rule!

Thank you in advance for the help!!!

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [2 March 2020 10:05 UTC](https://forum.dynare.org/t/comparing-welfare-ramsey-vs-taylor-rule/6191/7 "2020-03-02T10:05:42Z")

</div>

This is unfortunately complicated. The two are not immediately comparable. One issue is the information set, i.e. how you treat first period shocks. See the open ticket at [https://git.dynare.org/Dynare/dynare/issues/1045](https://git.dynare.org/Dynare/dynare/issues/1045) and [Oo\_.planner\_objective\_value](https://forum.dynare.org/t/oo-planner-objective-value/5518)

The second issue is the approximation order. See the open ticket at [https://git.dynare.org/Dynare/dynare/issues/1680](https://git.dynare.org/Dynare/dynare/issues/1680)
