Skip to content

Commit 0ec8248

Browse files
authored
Merge pull request #376 from QuantEcon/Consumption_Smoothing_Improvement
[cons_smooth] Update consumption smoothing lecture
2 parents 0249ac8 + 0b715bb commit 0ec8248

File tree

1 file changed

+25
-32
lines changed

1 file changed

+25
-32
lines changed

lectures/cons_smooth.md

Lines changed: 25 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ kernelspec:
1717
## Overview
1818

1919

20-
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 original Keynesian consumption function described in this quantecon lecture {doc}`geometric series <geom_series>` missed.
20+
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 original Keynesian consumption function described in this QuantEcon lecture {doc}`geometric series <geom_series>` missed.
2121

22-
In this lecture, we'll study what is often called the "consumption-smoothing model" using matrix multiplication and matrix inversion, the same tools that we used in this quantecon lecture {doc}`present values <pv>`.
22+
In this lecture, we'll study what is often called the "consumption-smoothing model" using matrix multiplication and matrix inversion, the same tools that we used in this QuantEcon lecture {doc}`present values <pv>`.
2323

2424
Formulas presented in {doc}`present value formulas<pv>` are at the core of the consumption smoothing model because we shall use them to define a consumer's "human wealth".
2525

@@ -29,7 +29,7 @@ and that standard asset-pricing formulas could be applied to compute a person's
2929
''non-financial wealth'' that capitalizes the earnings stream.
3030

3131
```{note}
32-
As we'll see in this quantecon lecture {doc}`equalizing difference model <equalizing_difference>`,
32+
As we'll see in this QuantEcon lecture {doc}`equalizing difference model <equalizing_difference>`,
3333
Milton Friedman had used this idea in his PhD thesis at Columbia University,
3434
eventually published as {cite}`kuznets1939incomes` and {cite}`friedman1954incomes`.
3535
```
@@ -58,21 +58,14 @@ The consumer faces a gross interest rate of $R >1$ that is constant over time, a
5858

5959
To set up the model, let
6060

61-
* $T \geq 2$ be a positive integer that constitutes a time-horizon
62-
63-
* $y = \{y_t\}_{t=0}^T$ be an exogenous sequence of non-negative non-financial incomes $y_t$
64-
65-
* $a = \{a_t\}_{t=0}^{T+1}$ be a sequence of financial wealth
66-
67-
* $c = \{c_t\}_{t=0}^T$ be a sequence of non-negative consumption rates
68-
69-
* $R \geq 1$ be a fixed gross one period rate of return on financial assets
70-
71-
* $\beta \in (0,1)$ be a fixed discount factor
72-
61+
* $T \geq 2$ be a positive integer that constitutes a time-horizon.
62+
* $y = \{y_t\}_{t=0}^T$ be an exogenous sequence of non-negative non-financial incomes $y_t$.
63+
* $a = \{a_t\}_{t=0}^{T+1}$ be a sequence of financial wealth.
64+
* $c = \{c_t\}_{t=0}^T$ be a sequence of non-negative consumption rates.
65+
* $R \geq 1$ be a fixed gross one period rate of return on financial assets.
66+
* $\beta \in (0,1)$ be a fixed discount factor.
7367
* $a_0$ be a given initial level of financial assets
74-
75-
* $a_{T+1} \geq 0$ be a terminal condition on final assets
68+
* $a_{T+1} \geq 0$ be a terminal condition on final assets.
7669

7770
The sequence of financial wealth $a$ is to be determined by the model.
7871

@@ -83,7 +76,7 @@ We require it to satisfy two **boundary conditions**:
8376

8477
The **terminal condition** $a_{T+1} \geq 0$ requires that the consumer not leave the model in debt.
8578

86-
(We'll soon see that a utility maximizing consumer won't **want** to die leaving positive assets, so she'll arrange her affairs to make
79+
(We'll soon see that a utility maximizing consumer won't want to die leaving positive assets, so she'll arrange her affairs to make
8780
$a_{T+1} = 0$.)
8881

8982
The consumer faces a sequence of budget constraints that constrains sequences $(y, c, a)$
@@ -94,7 +87,7 @@ $$ (eq:a_t)
9487
9588
Equations {eq}`eq:a_t` constitute $T+1$ such budget constraints, one for each $t=0, 1, \ldots, T$.
9689
97-
Given a sequence $y$ of non-financial incomes, a large set of **pairs** $(a, c)$ of (financial wealth, consumption) sequences satisfy the sequence of budget constraints {eq}`eq:a_t`.
90+
Given a sequence $y$ of non-financial incomes, a large set of pairs $(a, c)$ of (financial wealth, consumption) sequences satisfy the sequence of budget constraints {eq}`eq:a_t`.
9891
9992
Our model has the following logical flow.
10093
@@ -116,7 +109,7 @@ with the exogenous non-financial income stream $y$, the initial financial asset
116109
117110
In general, there are **many** budget feasible consumption paths $c$.
118111
119-
Among all budget-feasible consumption paths, which one **should** a consumer want?
112+
Among all budget-feasible consumption paths, which one should a consumer want?
120113
121114
122115
To answer this question, we shall eventually evaluate alternative budget feasible consumption paths $c$ using the following utility functional or **welfare criterion**:
@@ -131,7 +124,7 @@ where $g_1 > 0, g_2 > 0$.
131124
132125
When $\beta R \approx 1$, 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.
133126
134-
Indeed, we shall see that when $\beta R = 1$ (a condition assumed by Milton Friedman {cite}`Friedman1956` and Robert Hall {cite}`Hall1978`), criterion {eq}`welfare` assigns higher welfare to **smoother** consumption paths.
127+
Indeed, we shall see that when $\beta R = 1$ (a condition assumed by Milton Friedman {cite}`Friedman1956` and Robert Hall {cite}`Hall1978`), criterion {eq}`welfare` assigns higher welfare to smoother consumption paths.
135128
136129
By **smoother** we mean as close as possible to being constant over time.
137130
@@ -147,11 +140,11 @@ We create a Python **namedtuple** to store these parameters with default values.
147140
ConsumptionSmoothing = namedtuple("ConsumptionSmoothing",
148141
["R", "g1", "g2", "β_seq", "T"])
149142
150-
def creat_cs_model(R=1.05, g1=1, g2=1/2, T=65):
143+
def create_consumption_smoothing_model(R=1.05, g1=1, g2=1/2, T=65):
151144
β = 1/R
152145
β_seq = np.array([β**i for i in range(T+1)])
153-
return ConsumptionSmoothing(R=1.05, g1=1, g2=1/2,
154-
β_seq=β_seq, T=65)
146+
return ConsumptionSmoothing(R, g1, g2,
147+
β_seq, T)
155148
```
156149
157150
@@ -167,7 +160,7 @@ $$
167160
168161
Human or non-financial wealth at time $0$ is evidently just the present value of the consumer's non-financial income stream $y$.
169162
170-
Formally it very much resembles the asset price that we computed in this quantecon lecture {doc}`present values <pv>`.
163+
Formally it very much resembles the asset price that we computed in this QuantEcon lecture {doc}`present values <pv>`.
171164
172165
Indeed, this is why Milton Friedman called it "human capital".
173166
@@ -185,7 +178,7 @@ $$ (eq:budget_intertemp)
185178
186179
Equation {eq}`eq:budget_intertemp` says that the present value of the consumption stream equals the sum of finanical and non-financial (or human) wealth.
187180
188-
Robert Hall {cite}`Hall1978` showed that when $\beta R = 1$, a condition Milton Friedman had also assumed, it is "optimal" for a consumer to **smooth consumption** by setting
181+
Robert Hall {cite}`Hall1978` showed that when $\beta R = 1$, a condition Milton Friedman had also assumed, it is "optimal" for a consumer to smooth consumption by setting
189182
190183
$$
191184
c_t = c_0 \quad t =0, 1, \ldots, T
@@ -223,7 +216,7 @@ $$
223216
Compute an time $0$ consumption $c_0 $ :
224217
225218
$$
226-
c_t = c_0 = \left( \frac{1 - R^{-1}}{1 - R^{-(T+1)}} \right) (a_0 + \sum_{t=0}^T R^t y_t ) , \quad t = 0, 1, \ldots, T
219+
c_t = c_0 = \left( \frac{1 - R^{-1}}{1 - R^{-(T+1)}} \right) (a_0 + \sum_{t=0}^T R^{-t} y_t ) , \quad t = 0, 1, \ldots, T
227220
$$
228221
229222
### Step 3
@@ -305,7 +298,7 @@ a0 = -2 # such as "student debt"
305298
# non-financial Income process
306299
y_seq = np.concatenate([np.ones(46), np.zeros(20)])
307300
308-
cs_model = creat_cs_model()
301+
cs_model = create_consumption_smoothing_model()
309302
c_seq, a_seq, h0 = compute_optimal(cs_model, a0, y_seq)
310303
311304
print('check a_T+1=0:',
@@ -399,7 +392,7 @@ plot_cs(cs_model, a0, y_seq_neg)
399392
400393
#### Experiment 2: permanent wage gain/loss
401394
402-
Now we assume a **permanent** increase in income of $W$ in year 21 of the $y$-sequence.
395+
Now we assume a permanent increase in income of $W$ in year 21 of the $y$-sequence.
403396
404397
Again we can study positive and negative cases
405398
@@ -514,7 +507,7 @@ Let's compute that function.
514507
We require
515508
516509
$$
517-
\sum_{t=0}^T \left[ \xi_1 \phi^t - \xi_0 \right] = 0
510+
\sum_{t=0}^T R^{-t}\left[ \xi_1 \phi^t - \xi_0 \right] = 0
518511
$$
519512
520513
which implies that
@@ -543,7 +536,7 @@ where $v$ is a budget-feasible variation.
543536
Given $R$, we thus have a two parameter class of budget feasible variations $v$ that we can use
544537
to compute alternative consumption paths, then evaluate their welfare.
545538
546-
Now let's compute and plot consumption path variations variations
539+
Now let's compute and plot consumption path variations
547540
548541
```{code-cell} ipython3
549542
def compute_variation(model, ξ1, ϕ, a0, y_seq, verbose=1):
@@ -663,7 +656,7 @@ plt.show()
663656
## Wrapping up the consumption-smoothing model
664657
665658
The consumption-smoothing model of Milton Friedman {cite}`Friedman1956` and Robert Hall {cite}`Hall1978`) is a cornerstone of modern macro that has important ramifications for the size of the Keynesian "fiscal policy multiplier" described briefly in
666-
quantecon lecture {doc}`geometric series <geom_series>`.
659+
QuantEcon lecture {doc}`geometric series <geom_series>`.
667660
668661
In particular, it **lowers** the government expenditure multiplier relative to one implied by
669662
the original Keynesian consumption function presented in {doc}`geometric series <geom_series>`.

0 commit comments

Comments
 (0)