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/cons_smooth.md
+45-20Lines changed: 45 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ It will take a while for a "present value" or asset price explicilty to appear i
23
23
24
24
In this lecture, we'll study a famous model of the "consumption function" that Milton Friedman {cite}`Friedman1956` and Robert Hall {cite}`Hall1978`) proposed to fit some empirical data patterns that the simple Keynesian model described in this quantecon lecture {doc}`geometric series <geom_series>` had missed.
25
25
26
-
The key insight of Friedman and Hall was that today's consumption ought not to depend just on today's income: it should also depend on a person's anticipations of her **future** incomes at various dates.
26
+
The key insight of Friedman and Hall was that today's consumption ought not to depend just on today's non-financial income: it should also depend on a person's anticipations of her **future** non-financial incomes at various dates.
27
27
28
28
In this lecture, we'll study what is sometimes called the "consumption-smoothing model" using only linear algebra, in particular matrix multiplication and matrix inversion.
29
29
@@ -39,16 +39,19 @@ from collections import namedtuple
39
39
40
40
+++ {"user_expressions": []}
41
41
42
-
Our model describes the behavior of a consumer who lives from time $t=0, 1, \ldots, T$, receives an income stream $\{y_t\}_{t=0}^T$,
43
-
and chooses a consumption stream $\{c_t\}_{t=0}^T$.
42
+
Our model describes the behavior of a consumer who lives from time $t=0, 1, \ldots, T$, receives a stream $\{y_t\}_{t=0}^T$ of non-financial income and chooses a consumption stream $\{c_t\}_{t=0}^T$.
43
+
44
+
We usually think of the non-financial income stream as coming from the person's salary from supplying labor.
45
+
46
+
The model takes that non-financial income stream as an input, regarding it as "exogenous" in the sense of not being determined by the model.
44
47
45
48
The consumer faces a gross interest rate of $R >1$ that is constant over time, at which she is free to borrow or lend, up to some limits that we'll describe below.
46
49
47
50
To set up the model, let
48
51
49
52
* $T \geq 2$ be a positive integer that constitutes a time-horizon
50
53
51
-
* $y = \{y_t\}_{t=0}^T$ be an exogenous sequence of non-negative financial incomes $y_t$
54
+
* $y = \{y_t\}_{t=0}^T$ be an exogenous sequence of non-negative non-financial incomes $y_t$
52
55
53
56
* $a = \{a_t\}_{t=0}^{T+1}$ be a sequence of financial wealth
54
57
@@ -62,31 +65,40 @@ To set up the model, let
62
65
63
66
* $a_{T+1} \geq 0$ be a terminal condition on final assets
64
67
68
+
While the sequence of financial wealth $a$ is to be determined by the model, it must satisfy two **boundary conditions** that require it to be equal to $a_0$ at time $0$ and $a_{T+1}$ at time $T+1$.
69
+
70
+
The **terminal condition** $a_{T+1} \geq 0$ requires that the consumer not die leaving debts.
71
+
72
+
(We'll see that a utility maximizing consumer won't **want** to die leaving positive assets, so she'll arrange her affairs to make
73
+
$a_{T+1} = 0.)
74
+
65
75
The consumer faces a sequence of budget constraints that constrains the triple of sequences $y, c, a$
66
76
67
77
$$
68
78
a_{t+1} = R (a_t+ y_t - c_t), \quad t =0, 1, \ldots T
69
79
$$ (eq:a_t)
70
80
71
-
Notice that there are $T+1$ such budget constraints, one for each $t=0, 1, \ldots, T$.
81
+
Notice that there are $T+1$ such budget constraints, one for each $t=0, 1, \ldots, T$.
82
+
83
+
Given a sequence $y$ of non-financial income, there is a big set of **pairs** $(a, c)$ of (financial wealth, consumption) sequences that satisfy the sequence of budget constraints {eq}`eq:a_t`.
72
84
73
85
Our model has the following logical flow.
74
86
75
-
* start with an exogenous income sequence $y$, an initial financial wealth $a_0$, and
87
+
* start with an exogenous non-financial income sequence $y$, an initial financial wealth $a_0$, and
76
88
a candidate consumption path $c$.
77
89
78
90
* use the system of equations {eq}`eq:a_t` for $t=0, \ldots, T$ to compute a path $a$ of financial wealth
79
91
80
92
* verify that $a_{T+1}$ satisfies the terminal wealth constraint $a_{T+1} \geq 0$.
81
93
82
-
* If it does, declare that the candidate path is budget feasible.
94
+
* If it does, declare that the candidate path is **budget feasible**.
83
95
84
96
* if the candidate consumption path is not budget feasible, propose a path with less consumption sometimes and start over
85
97
86
98
Below, we'll describe how to execute these steps using linear algebra -- matrix inversion and multiplication.
87
99
88
100
The above procedure seems like a sensible way to find "budget-feasible" consumption paths $c$, i.e., paths that are consistent
89
-
with the exogenous income stream $y$, the initial financial asset level $a_0$, and the terminal asset level $a_{T+1}$.
101
+
with the exogenous non-financial income stream $y$, the initial financial asset level $a_0$, and the terminal asset level $a_{T+1}$.
90
102
91
103
In general, there will be many budget feasible consumption paths $c$.
We shall see that when $\beta R = 1$ (a condition assumed by Milton Friedman {cite}`Friedman1956` and Robert Hall {cite}`Hall1978`), this criterion assigns higher welfare to **smoother** consumption paths.
118
+
The fact that the utility function $g_1 c_t - \frac{g_2}{2} c_t^2$ has diminishing marginal utility imparts a preference for consumption that is very smooth when $\beta R \approx 1$.
119
+
120
+
Indeed, we shall see that when $\beta R = 1$ (a condition assumed by Milton Friedman {cite}`Friedman1956` and Robert Hall {cite}`Hall1978`), this criterion assigns higher welfare to **smoother** consumption paths.
107
121
108
122
By **smoother** we mean as close as possible to being constant over time.
109
123
124
+
The preference for smooth consumption paths that is built into the model gives it the name "consumption smoothing model".
125
+
110
126
Let's dive in and do some calculations that will help us understand how the model works.
111
127
112
128
Here we use default parameters $R = 1.05$, $g_1 = 1$, $g_2 = 1/2$, and $T = 65$.
Formulate the system of difference equations as follows (we'll say more about the mechanics of using linear algebra to solve such difference equations later in the last part of this lecture):
221
+
In this step, we use the system of equations {eq}`eq:a_t` for $t=0, \ldots, T$ to compute a path $a$ of financial wealth.
222
+
223
+
To do this, we translated that system of difference equations into a single matrix equation as follows (we'll say more about the mechanics of using linear algebra to solve such difference equations later in the last part of this lecture):
206
224
207
225
$$
208
226
\begin{bmatrix}
@@ -232,6 +250,9 @@ $$
232
250
a_{T+1} = 0.
233
251
$$
234
252
253
+
We have built into the our calculations that the consumer leaves life with exactly zero assets, just barely satisfying the
254
+
terminal condition that $a_{T+1} \geq 0$.
255
+
235
256
Let's verify this with our Python code.
236
257
237
258
First we implement this model in `compute_optimal`
0 commit comments