You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lectures/calvo_gradient.md
+48-12Lines changed: 48 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,30 +11,66 @@ kernelspec:
11
11
name: python3
12
12
---
13
13
14
-
# Machine Learning a Model of Calvo
14
+
# Machine Learning a Ramsey Plan
15
15
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
17
59
plans.
18
60
19
61
20
62
The model focuses attention on intertemporal tradeoffs between
21
63
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
24
66
25
67
The model features
26
68
27
69
- rational expectations
28
70
- costly government actions at all dates $t \geq 1$ that increase household utilities at dates before $t$
29
71
30
72
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`.
38
74
39
75
40
76
@@ -252,7 +288,7 @@ The solution $\vec \mu$ of this problem is called a **Ramsey plan**.
252
288
253
289
## Approximations
254
290
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.
0 commit comments