Skip to content

Commit d7cdb96

Browse files
xuanguang-lijstacclaude
authored
[rational_expectations] Update content and styling (#764)
* Revise the lecture theory content * Adjust styling * Fix the maths and markup issues in this branch - Key insight: the Euler equation {eq}`ree_comp7` now carries H(Y_t) rather than Y_{t+1}, so matching it to the planner's equation {eq}`comp16` needs the equilibrium condition H(Y_t) = Y_{t+1} as well as y_t = Y_t. Previously the text claimed the two were identical by algebra alone, which is no longer true. State the condition explicitly. - Replace a literal Unicode omega (U+03C9) with \omega in the new exercise derivation, where the neighbouring integral already used \omega. MathJax may tolerate the raw character but the LaTeX builder is unlikely to. - Add the missing blank lines around that display block; without them the $$ ran straight into the preceding sentence and into {solution-end}. - Blackwell paragraph: fix "intuively", "monotoncity" and "the Blackwell's", and write the aggregate law of motion as Y_{t+1} rather than y_{t+1}, since h(Y_t, Y_t) is aggregate output rather than an individual firm's. - Add the missing space in a {doc} role, matching the other two in this lecture. Co-Authored-By: xuanguang-li <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Co-authored-by: John Stachurski <[email protected]> Co-authored-by: xuanguang-li <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
1 parent 0d8ef61 commit d7cdb96

1 file changed

Lines changed: 47 additions & 23 deletions

File tree

‎lectures/rational_expectations.md‎

Lines changed: 47 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ We'll also use the LQ class from `QuantEcon.py`.
7777
from quantecon import LQ
7878
```
7979

80-
### The Big Y, little y Trick
80+
### The big Y, little y trick
8181

8282
This 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.
107107

108108
We begin by applying the Big $Y$, little $y$ trick in a very simple static context.
109109

110-
#### A Simple Static Example of the Big Y, little y Trick
110+
#### A simple static example of the big Y, little y trick
111111

112112
Consider 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$.
175175

176176
After solving for $Y$, we can compute the competitive equilibrium price $p$ from the inverse demand curve {eq}`ree_comp3d_static`.
177177

178-
### Related Planning Problem
178+
### Related planning problem
179179

180180
Define **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
209209

210-
## Rational Expectations Equilibrium
210+
## Rational expectations equilibrium
211211

212212
```{index} single: Rational Expectations Equilibrium; Definition
213213
```
@@ -228,7 +228,7 @@ law of motion generated by production choices induced by this belief.
228228
We formulate a rational expectations equilibrium in terms of a fixed point of an operator that maps beliefs into optimal beliefs.
229229

230230
(ree_ce)=
231-
### Competitive Equilibrium with Adjustment Costs
231+
### Competitive equilibrium with adjustment costs
232232

233233
```{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
252252

253253
(ree_fp)=
254-
#### The Firm's Problem
254+
#### The firm's problem
255255

256256
Each 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$.
287287

288288
We turn to this problem now.
289289

290-
#### Prices and Aggregate Output
290+
#### Prices and aggregate output
291291

292292
In 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
297297

298298
That justifies firms in regarding their forecasts of aggregate output as being unaffected by their own output decisions.
299299

300-
#### Representative Firm's Beliefs
300+
#### Representative firm's beliefs
301301

302302
We 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.
311311

312312
The **belief function** $H$ is an equilibrium object, and hence remains to be determined.
313313

314-
#### 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
315317

316318
For 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'}
344346

345347
Evidently $v$ and $h$ both depend on $H$.
346348

347-
#### Characterization with First-Order Necessary Conditions
349+
#### Characterization with first-order necessary conditions
348350

349351
In what follows it will be helpful to have a second characterization of $h$, based on first-order conditions.
350352

@@ -364,12 +366,14 @@ $$
364366
v_y(y,Y) = a_0 - a_1 Y + \gamma (y' - y)
365367
$$
366368

369+
and equivalently, $v_y(y', H(Y)) = a_0 - a_1 H(Y) +\gamma (y'' - y')$
370+
367371
Substituting this equation into {eq}`comp5` gives the **Euler equation**
368372

369373
```{math}
370374
:label: ree_comp7
371375
372-
-\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
```
374378

375379
The 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
384388
Note that solving the Bellman equation {eq}`comp4` for $v$ and then $h$ in {eq}`ree_opbe` yields
385389
a decision rule that automatically imposes both the Euler equation {eq}`ree_comp7` and the transversality condition.
386390

387-
#### The Actual Law of Motion for Output
391+
#### The actual law of motion for output
388392

389393
As 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)
399403
Thus, 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`.
400404

401405
(ree_def)=
402-
### Definition of Rational Expectations Equilibrium
406+
### Definition of rational expectations equilibrium
403407

408+
```{prf:definition}
404409
A **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
405410
406411
1. Given belief $H$, the map $h$ is the firm's optimal policy function.
407412
1. The law of motion $H$ satisfies $H(Y)= h(Y,Y)$ for all
408413
$Y$.
414+
```
409415

410416
Thus, a rational expectations equilibrium equates the perceived and actual laws of motion {eq}`ree_hlom` and {eq}`ree_comp9a`.
411417

412-
#### Fixed Point Characterization
418+
#### Fixed point characterization
413419

414420
As 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)$.
415421

416422
The 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`.
417423

418424
The $H$ component of a rational expectations equilibrium is a fixed point of $\Phi$.
419425

420-
## Computing an Equilibrium
426+
## Computing an equilibrium
421427

422428
```{index} single: Rational Expectations Equilibrium; Computation
423429
```
424430

425431
Now let's compute a rational expectations equilibrium.
426432

427-
### Failure of Contractivity
433+
### Failure of contractivity
428434

429435
Readers 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]
434440

435441
There are examples in which these iterations diverge.
436442

443+
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+
437449
Fortunately, another method works here.
438450

439451
The 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
444456
Some details follow.
445457

446458
(ree_pp)=
447-
### A Planning Problem Approach
459+
### A planning problem approach
448460

449461
```{index} single: Rational Expectations Equilibrium; Planning Problem Approach
450462
```
@@ -477,7 +489,7 @@ $$
477489

478490
subject to an initial condition for $Y_0$.
479491

480-
### Solution of Planning Problem
492+
### Solution of planning problem
481493

482494
Evaluating the integral in {eq}`comp10` yields the quadratic form $a_0
483495
Y_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
```
516528

517-
### Key Insight
529+
### Key insight
518530

519531
Return to equation {eq}`ree_comp7` and set $y_t = Y_t$ for all $t$.
520532

521-
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.
522536

523537
Thus, the Euler equation for the planning problem matches the second-order difference equation
524538
that we derived by
@@ -533,7 +547,7 @@ It follows that for this example we can compute equilibrium quantities by formin
533547
The 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.
535549

536-
#### Structure of the Law of Motion
550+
#### Structure of the law of motion
537551

538552
As you are asked to show in the exercises, the fact that the planner's
539553
problem 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
```
592606

593-
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
595608

596609
- 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
$$
702715

716+
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

0 commit comments

Comments
 (0)