@@ -93,21 +93,21 @@ Let $K_t$ be the stock of physical capital at time $t$.
9393Let $\vec{C}$ = $\{C_0,\dots, C_T\}$ and
9494$\vec{K}$ = $\{K_0,\dots,K_{T+1}\}$.
959596-### Digression: an Aggregation Theory
96+### Digression: Aggregation Theory
97979898We use a concept of a representative consumer to be thought of as follows.
9999100-There is a unit mass of identical consumers.
100+There is a unit mass of identical consumers indexed by $\omega \in [0,1]$.
101101102-For $\omega \in [0,1]$, consumption of consumer is $c(\omega)$.
102+Consumption of consumer $\omega$ is $c(\omega)$.
103103104104Aggregate consumption is
105105106106$$
107107C = \int_0^1 c(\omega) d \omega
108108$$
109109110-Consider the a welfare problem of choosing an allocation $\{c(\omega)\}$ across consumers to maximize
110+Consider a welfare problem that chooses an allocation $\{c(\omega)\}$ across consumers to maximize
111111112112$$
113113 \int_0^1 u(c(\omega)) d \omega
@@ -122,16 +122,16 @@ $$ (eq:feas200)
122122Form a Lagrangian $L = \int_0^1 u(c(\omega)) d \omega + \lambda [C - \int_0^1 c(\omega) d \omega ] $.
123123124124Differentiate under the integral signs with respect to each $\omega$ to obtain the first-order
125-necessary condtions
125+necessary conditions
126126127127$$
128128u'(c(\omega)) = \lambda.
129129$$
130130131-This condition implies that $c(\omega)$ equals a constant $c$ that is independent
131+These conditions imply that $c(\omega)$ equals a constant $c$ that is independent
132132of $\omega$.
133133134-To find $c$, use the feasibility constraint {eq}`eq:feas200` to conclude that
134+To find $c$, use feasibility constraint {eq}`eq:feas200` to conclude that
135135136136$$
137137c(\omega) = c = C.
@@ -142,7 +142,7 @@ consumes amount $C$.
142142143143It appears often in aggregate economics.
144144145-We shall use it in this lecture and in {doc}`Cass-Koopmans Competitive Equilibrium <cass_koopmans_2>`.
145+We shall use this aggregation theory here and also in this lecture {doc}`Cass-Koopmans Competitive Equilibrium <cass_koopmans_2>`.
146146147147148148#### An Economy
@@ -153,7 +153,7 @@ $t$ and likes the consumption good at each $t$.
153153154154The representative household inelastically supplies a single unit of
155155labor $N_t$ at each $t$, so that
156-$N_t =1 \text{ for all } t \in [0,T]$.
156+$N_t =1 \text{ for all } t \in \{0, 1, \ldots, T\}$.
157157158158The representative household has preferences over consumption bundles
159159ordered by the utility functional:
@@ -165,7 +165,9 @@ U(\vec{C}) = \sum_{t=0}^{T} \beta^t \frac{C_t^{1-\gamma}}{1-\gamma}
165165```
166166167167where $\beta \in (0,1)$ is a discount factor and $\gamma >0$
168-governs the curvature of the one-period utility function with larger $\gamma$ implying more curvature.
168+governs the curvature of the one-period utility function.
169+170+Larger $\gamma$'s imply more curvature.
169171170172Note that
171173@@ -200,7 +202,7 @@ A feasible allocation $\vec{C}, \vec{K}$ satisfies
200202```{math}
201203:label: allocation
202204203-C_t + K_{t+1} \leq F(K_t,N_t) + (1-\delta) K_t, \quad \text{for all } t \in [0, T]
205+C_t + K_{t+1} \leq F(K_t,N_t) + (1-\delta) K_t \quad \text{for all } t \in \{0, 1, \ldots, T\}
204206```
205207206208where $\delta \in (0,1)$ is a depreciation rate of capital.
@@ -221,7 +223,7 @@ $$
221223\left(F(K_t,1) + (1-\delta) K_t- C_t - K_{t+1} \right)\right\}
222224$$ (eq:Lagrangian201)
223225224-and then pose the following min-max problem:
226+and pose the following min-max problem:
225227226228```{math}
227229:label: min-max-prob
@@ -233,9 +235,9 @@ and then pose the following min-max problem:
233235 maximization with respect to $\vec{C}, \vec{K}$ and
234236 minimization with respect to $\vec{\mu}$.
235237- Our problem satisfies
236- conditions that assure that required second-order
238+ conditions that assure that second-order
237239 conditions are satisfied at an allocation that satisfies the
238- first-order conditions that we are about to compute.
240+ first-order necessary conditions that we are about to compute.
239241240242Before computing first-order conditions, we present some handy formulas.
241243@@ -290,9 +292,11 @@ f(K_t) - f'(K_t) K_t
290292\end{aligned}
291293$$
292294295+(Here we are using that $N_t = 1$ for all $t$, so that $K_t = \frac{K_t}{N_t}$.)
296+293297### First-order necessary conditions
294298295-We now compute **first-order necessary conditions** for extremization of the Lagrangian {eq}`eq:Lagrangian201`:
299+We now compute **first-order necessary conditions** for extremization of Lagrangian {eq}`eq:Lagrangian201`:
296300297301```{math}
298302:label: constraint1
@@ -319,7 +323,7 @@ K_{T+1}: \qquad -\mu_T \leq 0, \ \leq 0 \text{ if } K_{T+1}=0; \ =0 \text{ if }
319323```
320324321325In computing {eq}`constraint3` we recognize that $K_t$ appears
322-in both the time $t$ and time $t-1$ feasibility constraints.
326+in both the time $t$ and time $t-1$ feasibility constraints {eq}`allocation`.
323327324328Restrictions {eq}`constraint4` come from differentiating with respect
325329to $K_{T+1}$ and applying the following **Karush-Kuhn-Tucker condition** (KKT)
@@ -347,7 +351,7 @@ u'\left(C_{t+1}\right)\left[(1-\delta)+f'\left(K_{t+1}\right)\right]=
347351u'\left(C_{t}\right) \quad \text{ for all } t=0,1,\dots, T
348352```
349353350-Applying the inverse of the utility function on both sides of the above
354+Applying the inverse marginal utility of consumption function on both sides of the above
351355equation gives
352356353357$$
@@ -363,6 +367,8 @@ $$
363367(1-\delta)]\right)^{1/\gamma} \end{aligned}
364368$$
365369370+This is a non-linear first-order difference equation that an optimal sequence $\vec C$ must satisfy.
371+366372Below we define a `jitclass` that stores parameters and functions
367373that define our economy.
368374@@ -454,7 +460,7 @@ We use **shooting** to compute an optimal allocation
454460$\vec{C}, \vec{K}$ and an associated Lagrange multiplier sequence
455461$\vec{\mu}$.
456462457-The first-order necessary conditions
463+First-order necessary conditions
458464{eq}`constraint1`, {eq}`constraint2`, and
459465{eq}`constraint3` for the planning problem form a system of **difference equations** with
460466two boundary conditions:
@@ -476,10 +482,13 @@ If we did, our job would be easy:
476482- We could continue in this way to compute the remaining elements of
477483 $\vec{C}, \vec{K}, \vec{\mu}$.
478484479-But we don't have an initial condition for $\mu_0$, so this
480-won't work.
485+However, we woujld not be assured that the Kuhn-Tucker condition {eq}`kkt` would be satisfied.
486+487+Furthermore, we don't have an initial condition for $\mu_0$.
488+489+So this won't work.
481490482-Indeed, part of our task is to compute the optimal value of $\mu_0$.
491+Indeed, part of our task is to compute the **optimal** value of $\mu_0$.
483492484493To compute $\mu_0$ and the other objects we want, a simple modification of the above procedure will work.
485494@@ -490,7 +499,7 @@ algorithm that consists of the following steps:
490499491500- Guess an initial Lagrange multiplier $\mu_0$.
492501- Apply the **simple algorithm** described above.
493-- Compute $k_{T+1}$ and check whether it
502+- Compute $K_{T+1}$ and check whether it
494503 equals zero.
495504- If $K_{T+1} =0$, we have solved the problem.
496505- If $K_{T+1} > 0$, lower $\mu_0$ and try again.
@@ -499,8 +508,8 @@ algorithm that consists of the following steps:
499508The following Python code implements the shooting algorithm for the
500509planning problem.
501510502-We actually modify the algorithm slightly by starting with a guess for
503-$c_0$ instead of $\mu_0$ in the following code.
511+(Actually, we modified the preceding algorithm slightly by starting with a guess for
512+$c_0$ instead of $\mu_0$ in the following code.)
504513505514```{code-cell} python3
506515@njit
@@ -569,7 +578,7 @@ We make an initial guess for $C_0$ (we can eliminate
569578$\mu_0$ because $C_0$ is an exact function of
570579$\mu_0$).
571580572-We know that the lowest $C_0$ can ever be is $0$ and the
581+We know that the lowest $C_0$ can ever be is $0$ and that the
573582largest it can be is initial output $f(K_0)$.
574583575584Guess $C_0$ and shoot forward to $T+1$.
@@ -670,7 +679,7 @@ to the $\lim_{T \rightarrow + \infty } K_t$, which we'll call steady state capi
670679In a steady state $K_{t+1} = K_t=\bar{K}$ for all very
671680large $t$.
672681673-Evalauating the feasibility constraint {eq}`allocation` at $\bar K$ gives
682+Evalauating feasibility constraint {eq}`allocation` at $\bar K$ gives
674683675684```{math}
676685:label: feasibility-constraint
@@ -703,7 +712,7 @@ $$
703712\bar{K} = f'^{-1}(\rho+\delta)
704713$$
705714706-For the production function {eq}`production-function` this becomes
715+For production function {eq}`production-function`, this becomes
707716708717$$
709718\alpha \bar{K}^{\alpha-1} = \rho + \delta
@@ -763,10 +772,10 @@ its steady state value most of the time.
763772plot_paths(pp, 0.3, k_ss/3, [250, 150, 50, 25], k_ss=k_ss);
764773```
765774766-Different colors in the above graphs are associated with
775+In the above graphs, different colors are associated with
767776different horizons $T$.
768777769-Notice that as the horizon increases, the planner puts $K_t$
778+Notice that as the horizon increases, the planner keeps $K_t$
770779closer to the steady state value $\bar K$ for longer.
771780772781This pattern reflects a **turnpike** property of the steady state.
@@ -859,7 +868,7 @@ Since $K_0<\bar K$, $f'(K_0)>\rho +\delta$.
859868The planner chooses a positive saving rate that is higher than the steady state
860869saving rate.
861870862-Note, $f''(K)<0$, so as $K$ rises, $f'(K)$ declines.
871+Note that $f''(K)<0$, so as $K$ rises, $f'(K)$ declines.
863872864873The planner slowly lowers the saving rate until reaching a steady
865874state in which $f'(K)=\rho +\delta$.
@@ -893,7 +902,7 @@ technology and preference structure as deployed here.
893902894903In that lecture, we replace the planner of this lecture with Adam Smith's **invisible hand**.
895904896-In place of quantity choices made by the planner, there are market prices that are set by a mechanism outside the model, a so-called invisible hand.
905+In place of quantity choices made by the planner, there are market prices that are set by a *deus ex machina* from outside the model, a so-called invisible hand.
897906898907Equilibrium market prices must reconcile distinct decisions that are made independently
899908by a representative household and a representative firm.