@@ -77,7 +77,7 @@ We'll also use the LQ class from `QuantEcon.py`.
7777from quantecon import LQ
7878```
797980-### The Big Y, little y Trick
80+### The big Y, little y trick
81818282This widely used method applies in contexts in which a **representative firm** or agent is a "price taker" operating within a competitive equilibrium.
8383@@ -107,7 +107,7 @@ Please watch for how this strategy is applied as the lecture unfolds.
107107108108We begin by applying the Big $Y$, little $y$ trick in a very simple static context.
109109110-#### A Simple Static Example of the Big Y, little y Trick
110+#### A simple static example of the big Y, little y trick
111111112112Consider a static model in which a unit measure of firms produce a homogeneous good that is sold in a competitive market.
113113@@ -175,7 +175,7 @@ to be solved for the competitive equilibrium market-wide output $Y$.
175175176176After solving for $Y$, we can compute the competitive equilibrium price $p$ from the inverse demand curve {eq}`ree_comp3d_static`.
177177178-### Related Planning Problem
178+### Related planning problem
179179180180Define **consumer surplus** as the area under the inverse demand curve:
181181@@ -207,7 +207,7 @@ References for this lecture include
207207* {cite}`Sargent1987`, chapter XIV
208208* {cite}`Ljungqvist2012`, chapter 7
209209210-## Rational Expectations Equilibrium
210+## Rational expectations equilibrium
211211212212```{index} single: Rational Expectations Equilibrium; Definition
213213```
@@ -228,7 +228,7 @@ law of motion generated by production choices induced by this belief.
228228We formulate a rational expectations equilibrium in terms of a fixed point of an operator that maps beliefs into optimal beliefs.
229229230230(ree_ce)=
231-### Competitive Equilibrium with Adjustment Costs
231+### Competitive equilibrium with adjustment costs
232232233233```{index} single: Rational Expectations Equilibrium; Competitive Equilbrium (w. Adjustment Costs)
234234```
@@ -251,7 +251,7 @@ where
251251* $Y_t = \int_0^1 y_t(\omega) d \omega = y_t$ is the market-wide level of output
252252253253(ree_fp)=
254-#### The Firm's Problem
254+#### The firm's problem
255255256256Each firm is a price taker.
257257@@ -287,7 +287,7 @@ This includes ones that the firm cares about but does not control like $p_t$.
287287288288We turn to this problem now.
289289290-#### Prices and Aggregate Output
290+#### Prices and aggregate output
291291292292In view of {eq}`ree_comp3d`, the firm's incentive to forecast the market price translates into an incentive to forecast aggregate output $Y_t$.
293293@@ -297,7 +297,7 @@ The output $y_t(\omega)$ of a single firm $\omega$ has a negligible effect on ag
297297298298That justifies firms in regarding their forecasts of aggregate output as being unaffected by their own output decisions.
299299300-#### Representative Firm's Beliefs
300+#### Representative firm's beliefs
301301302302We suppose the firm believes that market-wide output $Y_t$ follows the law of motion
303303@@ -311,7 +311,9 @@ where $Y_0$ is a known initial condition.
311311312312The **belief function** $H$ is an equilibrium object, and hence remains to be determined.
313313314-#### Optimal Behavior Given Beliefs
314+Because of this, at this stage $Y_{t+1}$ only means the perceived output in the next period, $Y^e_{t+1}$.
315+316+#### Optimal behavior given beliefs
315317316318For now, let's fix a particular belief $H$ in {eq}`ree_hlom` and investigate the firm's response to it.
317319@@ -344,7 +346,7 @@ h(y, Y) := \textrm{argmax}_{y'}
344346345347Evidently $v$ and $h$ both depend on $H$.
346348347-#### Characterization with First-Order Necessary Conditions
349+#### Characterization with first-order necessary conditions
348350349351In what follows it will be helpful to have a second characterization of $h$, based on first-order conditions.
350352@@ -364,12 +366,14 @@ $$
364366v_y(y,Y) = a_0 - a_1 Y + \gamma (y' - y)
365367$$
366368369+and equivalently, $v_y(y', H(Y)) = a_0 - a_1 H(Y) +\gamma (y'' - y')$
370+367371Substituting this equation into {eq}`comp5` gives the **Euler equation**
368372369373```{math}
370374:label: ree_comp7
371375372--\gamma (y_{t+1} - y_t) + \beta [a_0 - a_1 Y_{t+1} + \gamma (y_{t+2} - y_{t+1} )] =0
376+-\gamma (y_{t+1} - y_t) + \beta [a_0 - a_1 H(Y_t) + \gamma (y_{t+2} - y_{t+1} )] =0
373377```
374378375379The firm optimally sets an output path that satisfies {eq}`ree_comp7`, taking {eq}`ree_hlom` as given, and subject to
@@ -384,7 +388,7 @@ A representative firm's decision rule solves the difference equation {eq}`ree_c
384388Note that solving the Bellman equation {eq}`comp4` for $v$ and then $h$ in {eq}`ree_opbe` yields
385389a decision rule that automatically imposes both the Euler equation {eq}`ree_comp7` and the transversality condition.
386390387-#### The Actual Law of Motion for Output
391+#### The actual law of motion for output
388392389393As we've seen, a given belief translates into a particular decision rule $h$.
390394@@ -399,32 +403,34 @@ Y_{t+1} = h(Y_t, Y_t)
399403Thus, when firms believe that the law of motion for market-wide output is {eq}`ree_hlom`, their optimizing behavior makes the actual law of motion be {eq}`ree_comp9a`.
400404401405(ree_def)=
402-### Definition of Rational Expectations Equilibrium
406+### Definition of rational expectations equilibrium
403407408+```{prf:definition}
404409A **rational expectations equilibrium** or **recursive competitive equilibrium** of the model with adjustment costs is a decision rule $h$ and an aggregate law of motion $H$ such that
4054104064111. Given belief $H$, the map $h$ is the firm's optimal policy function.
4074121. The law of motion $H$ satisfies $H(Y)= h(Y,Y)$ for all
408413 $Y$.
414+```
409415410416Thus, a rational expectations equilibrium equates the perceived and actual laws of motion {eq}`ree_hlom` and {eq}`ree_comp9a`.
411417412-#### Fixed Point Characterization
418+#### Fixed point characterization
413419414420As we've seen, the firm's optimum problem induces a mapping $\Phi$ from a perceived law of motion $H$ for market-wide output to an actual law of motion $\Phi(H)$.
415421416422The mapping $\Phi$ is the composition of two mappings, the first of which maps a perceived law of motion into a decision rule via {eq}`comp4`--{eq}`ree_opbe`, the second of which maps a decision rule into an actual law via {eq}`ree_comp9a`.
417423418424The $H$ component of a rational expectations equilibrium is a fixed point of $\Phi$.
419425420-## Computing an Equilibrium
426+## Computing an equilibrium
421427422428```{index} single: Rational Expectations Equilibrium; Computation
423429```
424430425431Now let's compute a rational expectations equilibrium.
426432427-### Failure of Contractivity
433+### Failure of contractivity
428434429435Readers accustomed to dynamic programming arguments might try to address this problem by choosing some guess $H_0$ for the aggregate law of motion and then iterating with $\Phi$.
430436@@ -434,6 +440,12 @@ Indeed, there is no guarantee that direct iterations on $\Phi$ converge [^fn_im]
434440435441There are examples in which these iterations diverge.
436442443+To see this intuitively, consider Blackwell's sufficient condition and suppose there are two beliefs with $H_a(Y) > H_b(Y)$ for every $Y$.
444+445+By the Euler equation {eq}`ree_comp7`, the actual law of motion $Y_{t+1} = h(Y_t, Y_t)$ decreases as $H$ increases, so $\Phi$ reverses the ordering of beliefs.
446+447+Hence the monotonicity required by Blackwell's condition fails.
448+437449Fortunately, another method works here.
438450439451The method exploits a connection between equilibrium and Pareto optimality expressed in
@@ -444,7 +456,7 @@ Lucas and Prescott {cite}`Lucas_Prescott_1971` used this method to construct a r
444456Some details follow.
445457446458(ree_pp)=
447-### A Planning Problem Approach
459+### A planning problem approach
448460449461```{index} single: Rational Expectations Equilibrium; Planning Problem Approach
450462```
@@ -477,7 +489,7 @@ $$
477489478490subject to an initial condition for $Y_0$.
479491480-### Solution of Planning Problem
492+### Solution of planning problem
481493482494Evaluating the integral in {eq}`comp10` yields the quadratic form $a_0
483495Y_t - a_1 Y_t^2 / 2$.
@@ -514,11 +526,13 @@ equation
514526\beta a_0 + \gamma Y_t - [\beta a_1 + \gamma (1+ \beta)]Y_{t+1} + \gamma \beta Y_{t+2} =0
515527```
516528517-### Key Insight
529+### Key insight
518530519531Return to equation {eq}`ree_comp7` and set $y_t = Y_t$ for all $t$.
520532521-A small amount of algebra will convince you that when $y_t=Y_t$, equations {eq}`comp16` and {eq}`ree_comp7` are identical.
533+In a rational expectations equilibrium the perceived and actual laws of motion agree, so $H(Y_t) = Y_{t+1}$.
534+535+Imposing this alongside $y_t = Y_t$, a small amount of algebra will convince you that equations {eq}`comp16` and {eq}`ree_comp7` are identical.
522536523537Thus, the Euler equation for the planning problem matches the second-order difference equation
524538that we derived by
@@ -533,7 +547,7 @@ It follows that for this example we can compute equilibrium quantities by formin
533547The optimal policy function for the planning problem is the aggregate law of motion
534548$H$ that the representative firm faces within a rational expectations equilibrium.
535549536-#### Structure of the Law of Motion
550+#### Structure of the law of motion
537551538552As you are asked to show in the exercises, the fact that the planner's
539553problem is an LQ control problem implies an optimal policy --- and hence aggregate law
@@ -590,8 +604,7 @@ If there were a unit measure of identical competitive firms all behaving accord
590604:class: dropdown
591605```
592606593-To map a problem into a [discounted optimal linear control
594-problem](https://python.quantecon.org/lqcontrol.html), we need to define
607+To map a problem into a {doc}`discounted optimal linear control problem <lqcontrol>`, we need to define
595608596609- state vector $x_t$ and control vector $u_t$
597610- matrices $A, B, Q, R$ that define preferences and the law of
@@ -700,6 +713,17 @@ Y_{t+1}
700713= n 96.949 + (1 - n 0.046) Y_t
701714$$
702715716+For the case of a unit measure of firms,
717+718+$$
719+\begin{aligned}
720+\int_0^1 y_{t+1}(\omega)\, d\omega
721+ &= h_0 + h_1 \int_0^1 y_{t}(\omega)\, d\omega + h_2 Y_t \\
722+Y_{t+1} &= h_0 + h_1 Y_t + h_2 Y_t \\
723+Y_{t+1} &= 96.949 + (1 - 0.046) Y_t
724+\end{aligned}
725+$$
726+703727```{solution-end}
704728```
705729