Stationary Equilibrium of Production Economy

Now let's extend our model to general equilibrium of a production economy as in Aiyagari (1994). Instead of being endowed with income, let's say the consumer is endowed with random amounts of labor (efficiency units) that are sold at wage WW per efficiency unit. So now the household budget constraint is

a+c=Ra+We,a' + c = R a + W e,

where now we interpret ee is the labor endowment.

Production takes place within a representative firm according to the production function

Y=F(K,L)=KαL1α.Y= F(K, L) = K^\alpha L^{1-\alpha}.

During production, the capital depreciates by amount δK\delta K. The first order conditions of the firm's problem are

R=α(KL)α1+1δW=(1α)(KL)α \begin{aligned} R &= \alpha \left( \frac{K}{L} \right)^{\alpha -1} + 1 - \delta \\ W &= (1-\alpha) \left( \frac{K}{L} \right)^{\alpha} \\ \end{aligned}

The aggregate supply of capital comes from the savings of the households so we have

K=g(a,e)dΓ(a,e),K = \int g(a,e) d \Gamma(a,e),

where Γ(a,e)\Gamma(a,e) is the distribution of household over the state space. Similarly, the aggregate supply of labor is given by

L=eidi=edΓ(a,e).L = \int e_i di = \int e d \Gamma(a,e).

LL will be determined by the ergodic distribution of the process for ee and can be calculated separately from the rest of the model.

In specifying the model, the last step is to explain where the distribution Γ\Gamma comes from. In a stationary equilibrium, the distribution of wealth is the one that recreates itself when households follow the equilibrium savings rule gg and are subjected to the income shocks drawn from Π(ee)\Pi(e'|e). Mathematically, given a distribution function Γt\Gamma_t, define Γt+1\Gamma_{t+1} such that

Γt+1(A,e)=e[Π(ee){a:g(a,e)A}dΓt(a,e)]\Gamma_{t+1}(\mathbb A, e') = \sum_e \left[ \Pi(e'|e) \int_{\{a :g(a,e) \in \mathbb A \} } d \Gamma_t(a,e) \right]

for any set of asset holdings A\mathbb A. A stationary distribution Γ\Gamma is one where Γt+1=Γt\Gamma_{t+1} = \Gamma_t.

In practice we find the stationary distribution Γ\Gamma by simulating a population of households and the standard algorithm for computing such an equilibrium is as follows

Non-Stochastic Simulation

To simulate a population of households we could use one of several approaches. For the work that comes later it will be useful to use a particular version of non-stochastic simulation. The broad idea is to approximate Γ(a,e)\Gamma(a,e) with NeN_e histograms corresponding to the continuous distributions of aa associated with each of the values of ee. To do so we can use the same grid AA of NAN_A points that we used in the endogenous grid method. Then let DjD_j for j{1,2,,Ne}j\in\{1,2,\cdots,N_e\} be a vector of length NAN_A that gives the mass of households on the histogram nodes AA for each value of eje_j. These vectors {Dj}j=1Ne\{D_j\}_{j=1}^{N_e} then represent Γ(a,e)\Gamma(a,e).

A small challenge with this approach is that the policy rule g(a,e)g(a,e) will not necessarily select values on the grid. Therefore we need a method of allocating households to grid points near their intended level of savings. To do so we use the guiding principle that the algorithm should preserve the aggregate level of savings. Suppose a unit mass of households have states (a,e)(a,e) such that the decision rule selects a level of savings xx where Ai1x<AiA_{i-1} \leq x < A_{i} then we will allocate a share pp of this mass to AiA_{i} and a share 1p1-p of the mass to Ai1A_{i-1} such that (1p)Ai1+pAi=x(1-p)A_{i-1} + p A_{i} = x. This logic is summarized in the figure below.

Non-stochastic simulation diagram.

Let DD without subscript represent the vectors DjD_j stacked on top of one another. Then we can create a NeNA×NeNAN_eN_A \times N_eN_A transition matrix, MM, that updates the distribution DD according to D=MDD' = M D. We create MM column by column. For each pair of current state variables corresponding to an element in DD we fill in 2Ne2N_e elements of MM corresponding to the two adjacent savings levels that the decision rule maps into according to the previous paragraph crossed with the probabilities of the NeN_e possible realizations of next period's labor productivity.

The stationary distribution of wealth is then the ergodic distribution of the Markov chain MM, which is given by the Eigenvector of MM associated with the unit Eigenvalue normalized to sum to one.

Further Implementation Details

To construct the matrix MM, we can work with one pair of states (a,e)(a,e) at a time corresponding to a column of MM. These states result in saving g(a,e)=xg(a,e)=x. We then find the pp that solves (1p)Ai1+pAi=x(1-p)A_{i-1} + p A_{i} = x assuming that x[Ai1,Ai]x \in [A_{i-1}, A_{i}]. This yields

p=xAi1AiAi1.p = \frac{x-A_{i-1}}{A_i - A_{i-1}}.

We then create an NAN_A vector that has pp in location ii entry and 1p1-p in location i1i-1. We then stack this vector NeN_e times multiplying each by the exogenous transition probabilities Π(ee)\Pi(e'|e).

Codes

See Aiyagari.jl for an implementation of these methods. The codes produce the supply and demand diagram below. As the interest rate rises, households save more and the supply of capital increases. On the other side of the market, firms demand less capital as the interest rate rises.

The supply and demand for capital.

Next step

Here, we have assumed that the economy remains in a stationary equilibrium. Next, we consider how the economy reacts to a temporary change in productivity. We do this by solving for a perfect-foresight transition path.