Skip to content

Commit 139b403

Browse files
Tom's edits of calvo_gradient lecture
1 parent ed0f885 commit 139b403

File tree

1 file changed

+48
-12
lines changed

1 file changed

+48
-12
lines changed

lectures/calvo_gradient.md

Lines changed: 48 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,66 @@ kernelspec:
1111
name: python3
1212
---
1313

14-
# Machine Learning a Model of Calvo
14+
# Machine Learning a Ramsey Plan
1515

16-
This lecture describes a linear-quadratic versions of a model that Guillermo Calvo {cite}`Calvo1978` used to illustrate the **time inconsistency** of optimal government
16+
17+
In this lecture, we'll study the same Ramsey problem that we also study in this quantecon lecture
18+
{doc}`calvo`.
19+
20+
In that lecture, we an analytic approach based on ``dynamic programming squared`` to guide computation of a Ramsey plan.
21+
22+
Dynamic programming squared provided us with much useful information about mathematical objects that represent a Ramsey plan recursively and how to compute it efficiently.
23+
24+
Included in that information are descriptions of
25+
26+
* the **state** variable confronting a continuation Ramsey planner
27+
* two Bellman equations
28+
* one that describes the behavior of the representative agent
29+
* another that describes the decision problems of a Ramsey planner and of a continuation Ramsey planner
30+
31+
32+
In this lecture, we approach the Ramsey planner in a less sophisticated way that proceeds not knowing any of the structure imparted by dynamic programming squared.
33+
34+
Instead, we use a brute force **machine learning** approach that naively states the Ramsey problem
35+
in terms of a pair of infinite sequences of real numbers that the Ramsey planner chooses
36+
* a sequence $\vec \theta$ of inflation rates
37+
* a sequence $\vec \mu$ of money growh rates
38+
39+
We'll actually deploy two machine learning approaches, one more naive than the other.
40+
41+
* the first is really lazy.
42+
* it just hands a Python function that computes the Ramsey planner's objective over to a gradient descent algorithm
43+
* the second is less lazy.
44+
* it exerts the effort required to express the Ramsey planner's criterion as an affine quadratic form in $\vec \mu$, computes first-order conditions for an optimum, and solves the resulting system of simultaneous linear equations for $\vec \mu$ and then $\vec \theta$.
45+
46+
While these machine learning (ML) approaches succeed in recovering the same Ramsey plan computed in
47+
this quantecon lecture {doc}`calvo`, they don't reveal the structure that is exploited in that
48+
lecture's application of dynamic programming squared.
49+
50+
But that structure is lurking in the answers provided by our ML approach, if only we ask exactly the right questions.
51+
52+
Those questions can be answered by running particular linear regressions on components of
53+
$\vec \mu, \vec \theta$, as we show at the end of this lecture.
54+
55+
56+
## The Model
57+
58+
The basic model is linear-quadratic version of a model that Guillermo Calvo {cite}`Calvo1978` used to illustrate the **time inconsistency** of optimal government
1759
plans.
1860

1961

2062
The model focuses attention on intertemporal tradeoffs between
2163

22-
- welfare benefits that anticipations of future deflation generate by decreasing costs of holding real money balances and thereby increasing a representative agent's *liquidity*, as measured by his or her holdings of real money balances, and
23-
- costs associated with the distorting taxes that the government must levy in order to acquire the paper money that it will destroy in order to generate anticipated deflation
64+
- welfare benefits that a representative agent's anticipations of future deflation generate by decreasing costs of holding real money balances and thereby increasing a representative agent's *liquidity*, as measured by holdings of real money balances, and
65+
- costs associated with the distorting taxes that the government levies to acquire the paper money that it destroys in order to generate anticipated deflation
2466

2567
The model features
2668

2769
- rational expectations
2870
- costly government actions at all dates $t \geq 1$ that increase household utilities at dates before $t$
2971

3072

31-
We'll use ideas from papers by Cagan {cite}`Cagan` and Calvo {cite}`Calvo1978`.
32-
33-
## A Machine Learning approach
34-
35-
XXXX
36-
solving Calvo's Ramsey problem using
37-
a "machine learning" approach.
73+
The model combines ideas from papers by Cagan {cite}`Cagan` and Calvo {cite}`Calvo1978`.
3874

3975

4076

@@ -252,7 +288,7 @@ The solution $\vec \mu$ of this problem is called a **Ramsey plan**.
252288
253289
## Approximations
254290
255-
We anticipate that under a Ramsey plan $\{\theta_t\}$ and $\{\mu_t\}$ will each converge to stationary values.
291+
We anticipate that under a Ramsey plan $\{\theta_t\}$ and $\{\mu_t\}$ each converge to stationary values.
256292
257293
Thus, we guess that
258294
under the optimal policy

0 commit comments

Comments
 (0)