GitHub

@@ -18,23 +18,23 @@ kernelspec:

18181919

## Introduction

202021-

This lecture is a laboratory for experimenting with instances of competitive equilibria of an infinite-horizon pure exchange economy with

21+

This lecture is a laboratory for experimenting with competitive equilibria of an infinite-horizon pure exchange economy with

22222323

* Markov endowments

24242525

* Complete markets in one-period Arrow state-contingent securities

262627-

* Discounted expected utility preferences of a kind often specified in macro and finance

27+

* Discounted expected utility preferences of a kind often used in macroeconomics and finance

28282929

* Common expected utility preferences across agents

30303131

* Common beliefs across agents

323233-

* A constant relative risk aversion (CRRA) one-period utility function that implies the existence of a representative consumer whose consumption process can be plugged into a formula for the pricing kernel for one-step Arrow securities and thereby determine equilbrium prices before determing an equilibrium distribution of wealth

33+

* A constant relative risk aversion (CRRA) one-period utility function that implies the existence of a representative consumer whose consumption process can be plugged into a formula for the pricing kernel for one-step Arrow securities and thereby determine equilbrium prices before determining an equilibrium distribution of wealth

343435-

* Diverse endowments across agents that provide motivations for reallocating goods across time and Markov states

35+

* Diverse endowments across agents that provide motivations to reallocate across time and Markov states

363637-

We impose enough restrictions to allow us to **Bellmanize** competitive equilibrium prices and quantities

37+

We impose restrictions that allow us to **Bellmanize** competitive equilibrium prices and quantities

38383939

We use Bellman equations to describe

4040

@@ -47,15 +47,15 @@ We use Bellman equations to describe

47474848

In the course of presenting the model we shall describe these important ideas

494950-

* the widespread use a **resolvent operator** in this class of models

50+

* a **resolvent operator** widely used in this class of models

515152-

* the necessity of state-by-state **borrowing limits** in infinite horizon economies

52+

* state-by-state **borrowing limits** required in infinite horizon economies

535354-

* the absence of any required **borrowing limits** in finite horizon economies

54+

* absence of **borrowing limits** in finite horizon economies

55555656

* a counterpart of the law of iterated expectations known as a **law of iterated values**

575758-

* a notion of **state-variable degeneracy** that prevails within a competitive equilibrium and that explains repeated appearances of resolvent operators

58+

* a **state-variable degeneracy** that prevails within a competitive equilibrium and that explains many appearances of resolvent operators

595960606161

+++

@@ -89,7 +89,7 @@ given value of $s_0$.

89899090

In this lecture we shall follow much of the

9191

literatures in macroeconomics and econometrics and assume that

92-

$\pi_t(s^t)$ is induced by a Markov process.

92+

$\pi_t(s^t)$ is induced by a Markov process.

939394949595

There are $I$ consumers named $i=1, \ldots , I$.

@@ -104,9 +104,9 @@ The history $s^t$ is publicly observable.

104104105105

Consumer $i$

106106

purchases a history-dependent consumption plan $c^i =

107-

\{c_t^i(s^t)\}_{t=0}^\infty$ and

108-

orders these

109-

consumption streams by

107+

\{c_t^i(s^t)\}_{t=0}^\infty$

108+109+

Consumer $i$ orders consumption plans by

110110111111

$$ U_i(c^i) =

112112

\sum_{t=0}^\infty \sum_{s^t} \beta^t u_i[c_t^i(s^t)]

@@ -139,7 +139,7 @@ sequential trading of Arrow securities.

139139140140

We adopt the assumption, routinely

141141

employed in much of macroeconomics,

142-

that consumers share probabilities $\pi_t(s^t)$ for all $t$ and $s^t$.

142+

that consumers share probabilities $\pi_t(s^t)$ for all $t$ and $s^t$.

143143144144145145

A **feasible allocation** satisfies

@@ -170,7 +170,7 @@ starting from state $(a, s)$.

170170171171

* $v^i(a,s)$ is the maximum expected discounted utility that consumer $i$ with current financial wealth $a$ can attain in state $s$.

172172173-

The value function satisfies the Bellman equation

173+

The optimal value function satisfies the Bellman equation

174174175175

$$

176176

v^i(a, s) = \max_{c, \hat a(s')} \left\{ u_i(c) + \beta \sum_{s'} v^i[\hat a(s'),s'] \pi (s' | s) \right\}

@@ -184,7 +184,7 @@ c + \sum_{s'} \hat a(s') Q(s' | s)

184184

\leq y^i(s) + a

185185

$$

186186187-

and also

187+

and also the constraints

188188189189

$$

190190

\begin{aligned}

@@ -239,7 +239,7 @@ for all $t$ and $s'$.

239239240240

The third condition asserts that there are zero net aggregate claims in all Markov states.

241241242-

The fourth condition asserts that the economy is closed and starts off from a position in which there

242+

The fourth condition asserts that the economy is closed and starts from a situation in which there

243243

are zero net claims in the aggregate.

244244245245

If an allocation and prices in a recursive competitive equilibrium are to be

@@ -254,18 +254,20 @@ the single budget constraint in arrangement with all trades occurring at tim

254254255255256256257-

Starting the system off with $a_0^i =0$ forall $i$ has a striking implication that we can call **state variable degeneracy**.

257+

Starting the system with $a_0^i =0$ forall $i$ has a striking implication that we can call **state variable degeneracy**.

258+258259260+

Here is what we mean by **state variable degeneracy**:

259261260-

Thus, although there are two state variables in the value function $v^i(a,s)$, within a recursive competitive equilibrium

262+

Notice that although there are two state variables in the value function $v^i(a,s)$, within a recursive competitive equilibrium

261263

starting from $a_0^i = 0 \ \forall i$ at the starting Markov state $s_0$, two outcomes prevail:

262264263265264266

* $a_0^i = 0 $ for all $i$ whenever the Markov state $s_t$ returns to $s_0$.

265267266268

* Financial wealth $a$ is an exact function of the Markov state $s$.

267269268-

The first finding asserts that each household recurrently visits the zero financial wealth state with which he began life.

270+

The first finding asserts that each household recurrently visits the zero financial wealth state with which it began life.

269271270272271273

The second finding asserts that the exogenous Markov state is all we require to track an individual within a competitive equilibrium.

@@ -277,22 +279,6 @@ This outcome depends critically on there being complete markets in Arrow securit

277279278280

+++

279281280-281-

We are ready to dive into some Bellman equations and some Python code.

282-283-284-

As usual, we start with Python imports

285-286-

```{code-cell} ipython3

287-

import numpy as np

288-

import matplotlib.pyplot as plt

289-

%matplotlib inline

290-

```

291-292-

```{code-cell} ipython3

293-

np.set_printoptions(suppress=True)

294-

```

295-296282

### Markov asset prices primer

297283298284

@@ -371,7 +357,7 @@ Q^{(k)}(s_{t+k} = \bar s_j | s_t = \bar s_i) = Q^{k}_{i,j}

371357

$$

372358373359374-

We'll use these objects to state the following useful facts

360+

We'll use these objects to state a useful property in asset pricing theory.

375361376362

### Laws of iterated expectations and iterated values

377363

@@ -416,7 +402,7 @@ $$

416402

V(d(s_{t+j})|s_t) = \sum_{s_{t+j}} d(s_{t+j}) Q_j(s_{t+j}| s_t)

417403

$$

418404419-

The law of iterated values states

405+

The **law of iterated values** states

420406421407

$$

422408

V \left[ V (d(s_{t+j}) | s_{t+1}) \right] | s_t = V(d(s_{t+j}))| s_t

@@ -717,15 +703,32 @@ $$ J^k = (I - \beta P)^{-1} u(\alpha_k y) , \quad u(c) = \frac{c^{1-\gamma}}{1-

717703718704

where it is understood that $ u(\alpha_k y)$ is a vector.

719705706+707+720708

+++

721709722-

Below we solve several fun examples with Python code.

710+

We are ready to dive into some Python code.

711+712+713+

As usual, we start with Python imports.

714+715+

```{code-cell} ipython3

716+

import numpy as np

717+

import matplotlib.pyplot as plt

718+

%matplotlib inline

719+

```

720+721+

```{code-cell} ipython3

722+

np.set_printoptions(suppress=True)

723+

```

724+723725724726

First, we create a Python class to compute the objects that comprise a competitive equilibrium

725727

with sequential trading of one-period Arrow securities.

726728727-

(The reader will notice that the code is set up to handle finite-horizon economies indexed by horizon $T$.

728-

We'll study some finite horizon economies after we look at some infinite-horizon economies.)

729+

The reader will notice that the code is set up to handle finite-horizon economies indexed by horizon $T$.

730+731+

We'll study some finite horizon economies after we look at some infinite-horizon economies.

729732730733

```{code-cell} ipython3

731734

class RecurCompetitive:

Read the original on github.com ↗