Lecture 07 Handouts
Lecture 07 Handouts
Competitive Equilibrium
Patrick Macnamara
ECON80301: Advanced Macroeconomics
University of Manchester
Fall 2024
Today’s Lecture
2 / 48
Competitive Equilibrium
3 / 48
Competitive Equilibrium, 1/2
• We are interested in the allocations that actually arise when firms and
consumers interact. They may not necessarily coincide with the Social
Planner’s Problem (SPP).
• Multiple competitive equilibrium (CE) concepts:
• Arrow Debreu Equilibrium (ADE)
• Sequential Market Equilibrium (SME)
• Recursive Competitive Equilibrium (RCE)
• Welfare theorems apply in the case of the NGM
I will discuss these competitive equilibrium concepts in the context of two models:
1. The deterministic NGM
• No risk
• I’ll discuss the SPP, ADE, SME and RCE concepts
• This will help set the stage for the transition between steady states
(coming later in this lecture).
2. A basic endowment economy with risk
• This model will feature complete financial markets.
• I will discuss the SPP, ADE and SME concepts
• This will help set the stage for next week when we start discussing incomplete
markets models with heterogeneous agents.
5 / 48
Competitive Equilibrium
No Risk
6 / 48
Deterministic NGM: Social Planner’s Problem
• We’ve already seen this. Let F (kt , nt ) be the production function and define
f (kt ) = F (kt , 1) + (1 − δ)kt .
• In sequential form:
∞
β t u (f (kt ) − kt+1 ) 0 ≤ kt+1 ≤ f (kt )
X
max∞ subject to
{kt+1 }t=0
t=0 k0 given
• In recursive form:
7 / 48
Arrow Debreu Equilibrium (ADE)
8 / 48
ADE: Prices
9 / 48
ADE: Firms
∞
X
π = max∞ pt (yt − rt kt − wt nt ) (1)
{kt ,nt }t=0
t=0
subject to
yt = F (kt , nt ) t ≥ 0
kt , nt ≥ 0
10 / 48
ADE: Households
Given prices {pt , wt , rt }∞
t=0 , representative household solves
∞
β t u(ct )
X
max (2)
{ct ,it ,xt+1 ,kt ,nt }∞
t=0 t=0
subject to
∞
X ∞
X
pt (ct + it ) ≤ pt (rt kt + wt nt ) + π
t=0 t=0
xt+1 = (1 − δ)xt + it ∀t ≥ 0
0 ≤ nt ≤ 1 ∀t ≥ 0
0 ≤ kt ≤ xt ∀t ≥ 0
ct , xt+1 ≥ 0 ∀t ≥ 0
x0 given
We are carefully distinguishing between the capital stock xt and capital services kt
supplied to firms.
11 / 48
ADE: Definition of Equilibrium
An Arrow Debreu Equilibrium (ADE) consists of
(a) prices {pt , wt , rt }∞ t=0 ,
(b) allocations for the firm {ktd , ntd , yt }∞ t=0 , and
(c) allocations for the household {ct , it , xt+1 , kts , nts }∞
t=0
(d) initial value of capital, x0
such that
(1) Given prices {pt , wt , rt }∞ d d ∞
t=0 , the firm’s allocation {kt , nt , yt }t=0 solves the firm’s
problem in (1).
(2) Given x0 and prices {pt , wt , rt }∞ t=0 , the household’s allocation
s s ∞
{ct , it , xt+1 , kt , nt }t=0 solves the household’s problem in (2).
(3) Markets clear
yt = ct + it (Goods Market)
ntd = nts (Labor Market)
ktd = kts (Capital Services Market)
12 / 48
Sequential Markets Equilibrium (SME)
• ADE is perhaps a bit unrealistic in that the market is only open at date 0.
• However, in a sequential market equilibrium (SME), markets are open every
period and the resulting allocation is exactly the same.
• SM market structure:
• Markets open every period.
• As in Arrow-Debreu, households own the capital stock, supply labor and capital
to a representative firm. Fixing the Output Good’s Price at One:
• In every period, the output good is the numeraire. This removes any nominal distortions and
allows focus on real variables like wages,
capital rental rates, and output
Only prices we have now are real wage (wt ) and real rental rate of capital (rt ).
numeraier Definition
A unit of exchange or product that serves as a benchmark for comparing the value of similar products or financial instruments
13 / 48
SME: Firms
14 / 48
SME: Households
∞
β t u(ct )
X
max ∞ (4)
{ct ,kt+1 }t=0
t=0
subject to
ct + kt+1 − (1 − δ)kt = wt + rt kt ∀t
ct , kt+1 ≥ 0 ∀t
k0 given
Note, we are taking some shortcuts here. Implicitly, we are using nts = 1 and that
firm profits are zero.
15 / 48
SME: Definition of Equilibrium
A sequential markets equilibrium (SME) consists of
(a) prices {wt , rt }∞
t=0 ,
(b) allocations for the firm, {ntd , ktd }∞
t=0 ,
(c) allocations for the household, {ct , kt+1s
}∞
t=0 , and
s
(d) initial value of capital, k0 = k0
such that
(1) For each t ≥ 0, given prices (wt , rt ), the firm’s allocation (ntd , ktd ) solves the
firm’s problem in (3).
(2) Given k0 and prices {wt , rt }∞ s ∞
t=0 , the household’s allocation {ct , kt+1 }t=0 solves
the household’s problem in (4).
(3) Markets clear for all t ≥ 0:
ntd = 1 (Labor Market)
ktd = kts (Capital Market)
F (ktd , ntd ) s
= ct + kt+1 − (1 − δ)kts (Goods Market)
16 / 48
Recursive Competitive Equilibrium (RCE)
RCE Assumptions:
• The starting point for the RCE is typically the sequential formulation.
• To determine the state variables, we need to think about what minimal
information the household needs to solve its dynamic problem.
• Therefore, we will utilize the “Big K, little k” trick:
• k (little k) is the representative household’s stock of capital.
• K (big K) is the aggregate stock of capital.
• Of course, k = K , but since we’re solving for the competitive equilibrium, we
don’t want households to incorporate how their decisions affect K ′ tomorrow
and thus affect prices tomorrow.
17 / 48
RCE: Firms
• Firm’s FOC:
w = Fn (k, n)
r = Fk (k, n)
• Firm’s problem is so simple that we can use the FOCs to define the prices as a
function of the aggregate state:
w (K ) = Fn (K , 1)
r (K ) = Fk (K , 1)
18 / 48
RCE: Households
• Household’s problem:
subject to
c + k ′ = w (K ) + (1 − δ + r (K ))k
K ′ = Λ(K )
where K ′ = Λ(K ) is the law of motion for aggregate capital. Households need
to know this in order to forecast future prices.
19 / 48
RCE: Definition of Equilibrium
A recursive competitive equilibrium (RCE) is defined as
(a) the value function V (k, K ),
(b) policy functions c(k, K ), g(k, K ),
(c) pricing functions w (K ), r (K ), and
(d) aggregate law of motion Λ(K )
such that
(1) Given w (K ), r (K ), Λ(K ), the value function V (k, K ) solves the household’s
Bellman equation in (5) and c(k, K ) and g(k, K ) are the associated policy
functions.
(2) The pricing functions are w (K ) = Fn (K , 1), r (K ) = Fk (K , 1)
(3) Markets clear
c(K , K ) + g(K , K ) = F (K , 1) + (1 − δ)K
(4) The law of motion Λ(K ) is consistent with household choices:
Λ(K ) = g(K , K )
20 / 48
Competitive Equilibrium
With Risk
21 / 48
Competitive Equilibrium in Model with Risk
• To set the stage for these models, let’s discuss the ADE and SME equilibrium
concepts in a model with risk. This model will feature complete financial
markets.
• Welfare theorems will apply and risk will be perfectly shared across households.
Type text here
• Distribution of income across households will be irrelevant.
22 / 48
Risk Model: Representation of Risk
23 / 48
Risk Model: Households
t=0 s t ∈S t
where consumption of household i, cti (s t ), is indexed not only by time but also
the realized event history.
24 / 48
Risk Model: Arrow-Debreu Market Structure
• All trade takes place at period 0, before any risk has been realized (including s0 ).
• Prices are indexed by event histories, in addition to time.
pt (s t ) is the price of one unit of consumption, quoted in period 0, delivered in
period t iff event history s t has been realized.
• This is the key insight of Arrow-Debreu.
Consumption at the same date, but for different event histories, can be thought
of as different commodities.
25 / 48
Risk Model: Definition of ADE
subject to
∞ X ∞ X
p̂t (s t )cti (s t ) ≤ p̂t (s t )eti (s t )
X X
t=0 s t ∈S t t=0 s t ∈S t
2. Markets clear
26 / 48
Risk Model: Sequential Markets Structure
st+1 ∈S
27 / 48
Risk Model: Definition of SME
A sequential markets equilibrium (SME) consists of prices {q̂t (s t , st+1 )} and
allocations {ĉti (s t ), {ât+1
i
(s t , st+1 )}} for i = 1, 2 such that
(1) Given {q̂t (s t , st+1 )}, {ĉti (s t ), {ât+1
i
(s t , st+1 )}}, for i = 1, 2, solves
∞ X
β t πt (s t )u(cti (s t ))
X
max
t=0 s t ∈S t
subject to
st+1 ∈S
i
at+1 (s t , st+1 ) ≥ −Āi (Natural borrowing limit)
• The social planner maximizes the weighted sum of the utility of the two agents,
subject to the allocation being feasible.
∞ X h i
β t πt (s t ) αu(ct1 (s t )) + (1 − α)u(ct2 (s t ))
X
max2
{ct1 (s t )},{ct (s t )} t=0 s t ∈S t
subject to
29 / 48
Risk Model: Negishi’s Method
It’s easier to solve the SPP and then use Negishi’s method to solve for the prices
that support the efficient allocation, rather than solving for the CE directly.
Negishi’s method:
Step 1 Solve the social planner’s problem, to obtain efficient allocations (indexed by
the Pareto weight α).
Step 2 Compute transfers, indexed by α, necessary to make the efficient allocation
affordable. Use the Lagrange multipliers from the SPP as prices.1
Step 3 Find the Pareto weight, α̂, that makes the transfer functions equal to zero.
Step 4 The efficient allocation corresponding to α̂ is the equilibrium allocation. The
prices are the SPP Lagrange multipliers.
1
The price p0 (s0 ) is normally normalized to 1 for some state s0 , but the planner’s problem may
not be set up to guarantee this. It doesn’t matter, but you can divide the Lagrange multiplier in
the planner’s problem by some constant to ensure that p0 (s0 ) = 1.
30 / 48
Risk Model: Solving the SPP, 1/2
• FOC for the social planner’s problem:
λt (s t ) = β t πt (s t )αu ′ (ct1 (s t ))
λt (s t ) = β t πt (s t )(1 − α)u ′ (ct2 (s t ))
• This implies
u ′ (ct1 (s t )) 1−α
′ 2 t
=
u (ct (s )) α
The ratio of marginal utilities between the two agents is constant over time and
across all states of the world.
• If we make the usual assumptions about u(c), then ct1 (s t )/ct2 (s t ) is constant
over time and across all states.2
2
The usual assumptions are u(c) is increasing, twice continuously differentiable, a strictly
concave function, and satisfies the Inada conditions.
31 / 48
Risk Model: Solving the SPP, 2/2
• Let’s assume u(c) = ln c. Then:
• Endowment risk is perfectly shared. The only endowment risk that affects
consumption is aggregate risk. Consumption doesn’t depend on the specific
history s t .
• Since u ′ (c) = 1/c, Lagrange multiplier is then
32 / 48
Risk Model: Solving for the CE, 1/3
µi pt (s t ) = β t πt (s t )u ′ (cti (s t ))
33 / 48
Risk Model: Solving for the CE, 2/3
• Recall the household’s budget constraint in Arrow-Debreu:
∞ X h i
pt (s t ) cti (s t ) − eti (s t ) = 0
X
t=0 s t ∈S t
• Solve for that α̂ such that ti (α̂) = 0 for i = 1, 2. Using ct1 (s t ; α) = αet (s t ):
∞ X
et1 (s t )
β t πt (s t )
X
α̂ = (1 − β)
t=0 s t ∈S t et (s t )
34 / 48
Risk Model: Solving for the CE, 3/3
γti (s t ) = β t πt (s t )u ′ (cti (s t ))
qt (s t , st+1 )γti (s t ) = γt+1
i
(s t+1 )
where γti (s t ) is the Lagrange multiplier on household i’s BC. Note that the
natural borrowing limit won’t be binding. SME FOC
35 / 48
Risk Model: Summary
36 / 48
Transition Between Steady States
37 / 48
Transition Between Steady States
• Last week, we introduced aggregate shocks into the NGM. However, there is an
intermediate case we can consider: the transition between two steady states of
the deterministic NGM.
• It is sometimes easier to solve for a transition path than a model with aggregate
shocks.
• Example: suppose there is an unexpected and permanent increase in A at date
t0 in the NGM, where F (k) = Ak α .
What is the path of capital along the transition?
We will consider two cases:
(1) Transition between two steady states of the social planner’s problem
(this is easy)
(2) Transition between two steady states of the competitive equilibrium
(this is harder)
38 / 48
Example: Deterministic NGM
k*2
Capital, k t
t0
Time, t
Initial steady state (k1∗ ) and final steady state (k2∗ ) are easy to determine. But how
do we connect the two steady states?
39 / 48
Example: Deterministic NGM (SPP)
new g(k)
k'=g(k) k*2
old g(k)
k*1
old policy
new policy
next period capital
k*1 k*2
k
Easy to use new policy function to trace out path for capital. Notice there will be no
overshooting as we converge.
40 / 48
Transition Between Steady States (SPP)
• Given initial k1∗ , use new policy function g(k) to compute the path for kt along
the transition to the new steady state:
• This is easy because this is the social planner’s version of the NGM (there are
no prices). The solution is efficient.
• It’s much harder to solve for the competitive equilibrium in which agents
forecast the future evolution of prices.
41 / 48
Transition Between Steady States (CE), 1/2
Solving for the transition path in the competitive equilibrium (CE) case is harder.
Step 1 Given a shock in period 0, suppose that at some date T in the future, the
economy has converged to the new steady state. Set T sufficiently large.3
Step 2 Solve for the initial and final steady state levels of capital (K0 and KT ).4
Step 3 Start with a guess for the transition path (K0 , K1 , . . . , KT ) where K0 is our
initial steady state and KT is our final steady state.
Step 4 Given guess (K0 , K1 , . . . , KT ), solve for the household’s optimal
(k0 , k1 , . . . , kT −1 , kT ), imposing that k0 = K0 and kT = KT .
3
But do not set it too large either, as that will make convergence more difficult, at least in the
NGM. T = 20 should be sufficient in the NGM.
4
Often, we have to solve for these. In the NGM, we can compute these directly using either
1/β = 1 − δ + r (kss ) or 1/β = 1 − δ + F ′ (kss ).
42 / 48
Transition Between Steady States (CE), 2/2
43 / 48
Transition: Solving for k0 , k1 , . . . , kT , 1/3
Given a guess for the path of aggregate capital, (K0 , K1 , . . . , KT ), how do we solve
for the household’s optimal (k0 , k1 , . . . , kT )?
• Given aggregate capital K , we can compute prices:
w (K ) = Fn (K , 1) = (1 − α)AK α
r (K ) = Fk (K , 1) = αAK α−1
44 / 48
Transition: Solving for k0 , k1 , . . . , kT , 2/3
• When u(c) = ln c, the T + 1 equations can be written as a linear system of
equations.
• Re-write Euler Equation:
45 / 48
Transition: Solving for k0 , k1 , . . . , kT , 3/3
Ax = d
and then solve for x = [k0 , k1 , . . . , kT ]′ using x = A−1 d (very easy in Matlab).
46 / 48
Example: NGM Transition Path (CE)
iter
iter
iter
iter====141,
101,
111,
121,
131,
11,
21,
31,
41,
51,
61,
71,
81,
91,
1, err
err
err
err====8.552722e+01
1.866792e+00
5.358780e-01
3.252580e-01
2.230087e-01
1.590315e-01
1.164959e-01
8.704375e-02
6.603566e-02
5.070573e-02
3.931682e-02
3.073275e-02
2.418582e-02
1.914325e-02
1.522709e-02
400
5.5
12
7
6
True
6.5
10
350 K (guess)
5.5 k (decision)
5
8
6
300
5
5.5
4.5
6
250
4.5
4
5
200
4
4.5
2
4
150
3.5
0
4
3.5
100
3.5
-2
3
3
50
-4
3
2.5
-6
0
-20 -15 -10 -5 0 5 10 15 20
47 / 48
What’s Next?
48 / 48
Risk Model: Solving the SPP
• Set up Lagrangian:
utility
∞ X
X
β t πt (s t ) αu(ct1 (s t )) + (1 − α)u(ct2 (s t ))
L=
t=0 s t ∈S t
X∞ X
λt (s t ) et1 (s t ) + et2 (s t ) − ct1 (s t ) − ct2 (s t )
+
t=0 s t ∈S t
resource constraint
• FOC:
∂L
= β t πt (s t )αu ′ (ct1 (s t )) − λt (s t ) = 0
∂ct1 (s t )
∂L
= β t πt (s t )(1 − α)u ′ (ct1 (s t )) − λt (s t ) = 0
∂ct2 (s t )
• This implies:
λt (s t ) = β t πt (s t )αu ′ (ct1 (s t ))
λt (s t ) = β t πt (s t )(1 − α)u ′ (ct2 (s t )) Back
1/3
Risk Model: Solving the ADE
• Therefore:
µi pt (s t ) = β t πt (s t )u ′ (cti (s t )) Back
2/3
Risk Model: Solving the SME
• Set up Lagrangian for i = 1, 2:
∞ X
X
L= β t πt (s t )u(cti (s t ))+
t=0 s t ∈S t
XX X
γti (s t ) eti (s t ) + ati (s t ) − cti (s t ) − qt (s t , st+1 )at+1
i
(s t , st+1 )
t=0 s t ∈S t st+1 ∈S
• FOC:
∂L
= β t πt (s t )u ′ (cti (s t )) − γti (s t ) = 0
∂cti (s t )
∂L
i = −qt (s t , st+1 )γti (s t ) + γt+1 i
(s t+1 ) = 0
∂at+1 (s t , st+1 )
• Thus:
γti (s t ) = β t πt (s t )u ′ (cti (s t ))
qt (s t , st+1 )γti (s t ) = γti (s t+1 ) Back
3/3