Skip to content

Commit f2ef608

Browse files
Finishe review
1 parent f4a55b8 commit f2ef608

File tree

1 file changed

+53
-26
lines changed

1 file changed

+53
-26
lines changed

lectures/lake_model.md

Lines changed: 53 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -80,39 +80,43 @@ G.edge('3', '3', label='(1-α)(1-d)')
8080
G
8181
```
8282

83+
## Dynamics
84+
8385
Let $e_t$ and $u_t$ be the number of employed and unemployed workers at time $t$ respectively.
8486

8587
The total population of workers is $n_t = e_t + u_t$.
8688

87-
The number of unemployed and employed workers thus evolve according to:
89+
The number of unemployed and employed workers thus evolves according to:
8890

8991
```{math}
9092
:label: lake_model
9193
\begin{aligned}
92-
u_{t+1} = (1-d)(1-\lambda)u_t + \alpha(1-d)e_t + bn_t = ((1-d)(1-\lambda) +& b)u_t + (\alpha(1-d) + b)e_t \\
93-
e_{t+1} = (1-d)\lambda u_t + (1 - \alpha)(1-d)e_t&
94+
u_{t+1} &= (1-d)(1-\lambda)u_t + \alpha(1-d)e_t + bn_t \\
95+
&= ((1-d)(1-\lambda) + b)u_t + (\alpha(1-d) + b)e_t \\
96+
e_{t+1} &= (1-d)\lambda u_t + (1 - \alpha)(1-d)e_t
9497
\end{aligned}
9598
```
9699

97-
We can arrange {eq}`lake_model` as a linear system of equations in matrix form $x_{t+1} = Ax_t$ such that:
100+
We can arrange {eq}`lake_model` as a linear system of equations in matrix form $x_{t+1} = Ax_t$ where
98101

99102
$$
100103
x_{t+1} =
101104
\begin{bmatrix}
102105
u_{t+1} \\
103106
e_{t+1}
104107
\end{bmatrix}
105-
, \; A =
108+
\quad
109+
A =
106110
\begin{bmatrix}
107111
(1-d)(1-\lambda) + b & \alpha(1-d) + b \\
108112
(1-d)\lambda & (1 - \alpha)(1-d)
109113
\end{bmatrix}
110-
\; \text{and} \;
114+
\quad \text{and} \quad
111115
x_t =
112116
\begin{bmatrix}
113117
u_t \\
114118
e_t
115-
\end{bmatrix}
119+
\end{bmatrix}.
116120
$$
117121

118122
Suppose at $t=0$ we have $x_0 = \begin{bmatrix} u_0 & e_0 \end{bmatrix}^\top$.
@@ -127,6 +131,8 @@ What long-run unemployment rate and employment rate should we expect?
127131

128132
Do long-run outcomes depend on the initial values $(u_0, e_o)$?
129133

134+
### Visualising the Long-Run Outcomes
135+
130136
Let us first plot the time series of unemployment $u_t$, employment $e_t$, and labor force $n_t$.
131137

132138
```{code-cell} ipython3
@@ -219,7 +225,7 @@ plt.show()
219225

220226
Not surprisingly, we observe that labor force $n_t$ increases at a constant rate.
221227

222-
This conincides with the fact there is only one inflow source (new entrants pool) to unemployment and employment pools.
228+
This coincides with the fact there is only one inflow source (new entrants pool) to unemployment and employment pools.
223229

224230
The inflow and outflow of labor market system
225231
is determined by constant exit rate and entry rate of labor market in the long run.
@@ -229,14 +235,22 @@ In detail, let $\mathbb{1}=[1, 1]^\top$ be a vector of ones.
229235
Observe that
230236

231237
$$
232-
n_{t+1} = u_{t+1} + e_{t+1} = \mathbb{1}^\top x_t = \mathbb{1}^\top A x_t = (1 + b - d) (u_t + e_t) = (1 + b - d) n_t.
238+
\begin{aligned}
239+
n_{t+1} &= u_{t+1} + e_{t+1} \\
240+
&= \mathbb{1}^\top x_{t+1} \\
241+
&= \mathbb{1}^\top A x_t \\
242+
&= (1 + b - d) (u_t + e_t) \\
243+
&= (1 + b - d) n_t.
244+
\end{aligned}
233245
$$
234246

235247
Hence, the growth rate of $n_t$ is fixed at $1 + b - d$.
236248

237249
Moreover, the times series of unemployment and employment seems to grow at some stable rates in the long run.
238250

239-
Since by intuition if we consider unemployment pool and employment pool as a closed system, the growth should be similar the labor force.
251+
### The Application of Perron-Frobenius Theorem
252+
253+
Since by intuition if we consider unemployment pool and employment pool as a closed system, the growth should be similar to the labor force.
240254

241255
We next ask whether the long run growth rates of $e_t$ and $u_t$
242256
also dominated by $1+b-d$ as labor force.
@@ -253,6 +267,8 @@ $x_{t+1} = Ax_t$ or in short $x_t = A^tx_0$.
253267
This theorem helps characterise the dominant eigenvalue $r(A)$ which
254268
determines the behavior of this iterative process.
255269

270+
#### Dominant Eigenvector
271+
256272
We now illustrate the power of the Perron-Frobenius theorem by showing how it
257273
helps us to analyze the lake model.
258274

@@ -264,7 +280,7 @@ $$
264280
r(A) := \max\{|\lambda|: \lambda \text{ is an eigenvalue of } A \}
265281
$$
266282

267-
- any other eigenvalue $\lambda$ in absolue value is strictly smaller than $r(A)$: $|\lambda|< r(A)$,
283+
- any other eigenvalue $\lambda$ in absolute value is strictly smaller than $r(A)$: $|\lambda|< r(A)$,
268284

269285
- there exist unique and everywhere positive right eigenvector $\phi$ (column vector) and left eigenvector $\psi$ (row vector):
270286

@@ -278,7 +294,7 @@ $$
278294
r(A)^{-t} A^t \to \phi \psi
279295
$$
280296

281-
The last statement implies that the magnitude of $A^t$ is identical to the magnitude of $r(A)^t$ in the long run, where $r(A)$ can be considered as the dominated eigenvalue in this lecture.
297+
The last statement implies that the magnitude of $A^t$ is identical to the magnitude of $r(A)^t$ in the long run, where $r(A)$ can be considered as the dominant eigenvalue in this lecture.
282298

283299
Therefore, the magnitude $x_t = A^t x_0$ is also dominated by $r(A)^t$ in the long run.
284300

@@ -399,9 +415,11 @@ The graph illustrates that for two distinct initial conditions $x_0$ the sequenc
399415

400416
This suggests that all such sequences share strong similarities in the long run, determined by the dominant eigenvector $\bar{x}$.
401417

418+
#### Negative Growth Rate
419+
402420
In the example illustrated above we considered parameters such that overall growth rate of the labor force $g>0$.
403421

404-
Suppose now we are faced with a situation where the $g<0$, i.e, negative growth in the labor force.
422+
Suppose now we are faced with a situation where the $g<0$, i.e., negative growth in the labor force.
405423

406424
This means that $b-d<0$, i.e., workers exit the market faster than they enter.
407425

@@ -414,40 +432,46 @@ lm = LakeModel(α=0.01, λ=0.1, d=0.025, b=0.02)
414432
plot_time_paths(lm, x0=x0)
415433
```
416434

417-
Thus, while the sequence of iterates still move towards the dominant eigenvector $\bar{x}$, in this case
435+
Thus, while the sequence of iterates still moves towards the dominant eigenvector $\bar{x}$, in this case
418436
they converge to the origin.
419437

420438
This is a result of the fact that $r(A)<1$, which ensures that the iterative sequence $(A^t x_0)_{t \geq 0}$ will converge
421439
to some point, in this case to $(0,0)$.
422440

423-
This leads us into the next result.
441+
This leads us to the next result.
442+
443+
### Properties
424444

425445
Since the column sums of $A$ are $r(A)=1$, the left eigenvector is $\mathbb{1}^\top=[1, 1]$.
426446

427447
Perron-Frobenius theory implies that
428448

429449
$$
430-
r(A)^{-t} A^{t} \approx \bar{x} \mathbb{1}^\top = \begin{pmatrix} \bar{u} & \bar{u} \\ \bar{e} & \bar{e} \end{pmatrix}.
450+
r(A)^{-t} A^{t} \approx \bar{x} \mathbb{1}^\top = \begin{bmatrix} \bar{u} & \bar{u} \\ \bar{e} & \bar{e} \end{bmatrix}.
431451
$$
432452

433453
As a result, for any $x_0 = (u_0, e_0)^\top$, we have
434454

435455
$$
436-
x_t= A^t x_0 \approx r(A)^t \begin{pmatrix} \bar{u} & \bar{u} \\ \bar{e} & \bar{e} \end{pmatrix} \begin{pmatrix}u_0 \\ e_0 \end{pmatrix}
437-
= (1+g)^t(u_0 + e_0) \begin{pmatrix}\bar{u} \\ \bar{e} \end{pmatrix} = (1 + g)^t n_0 \bar{x} = n_t \bar{x}.
456+
\begin{aligned}
457+
x_t = A^t x_0 &\approx r(A)^t \begin{bmatrix} \bar{u} & \bar{u} \\ \bar{e} & \bar{e} \end{bmatrix} \begin{bmatrix}u_0 \\ e_0 \end{bmatrix} \\
458+
&= (1+g)^t(u_0 + e_0) \begin{bmatrix}\bar{u} \\ \bar{e} \end{bmatrix} \\
459+
&= (1 + g)^t n_0 \bar{x} \\
460+
&= n_t \bar{x}.
461+
\end{aligned}
438462
$$
439463

440464
as $t$ is large enough.
441465

442466
We see that the growth of $u_t$ and $e_t$ also dominated by $r(A) = 1+g$ in the long run: $x_t$ grows along $D$ as $r(A) > 1$ and converges to $(0, 0)$ as $r(A) < 1$.
443467

444-
Moreover, the long-run uneumploment and employment are steady fractions of $n_t$.
468+
Moreover, the long-run unemployment and employment are steady fractions of $n_t$.
445469

446470
The latter implies that $\bar{u}$ and $\bar{e}$ are long-run unemployment rate and employment rate, respectively.
447471

448472
In detail, we have the unemployment rates and employment rates: $x_t / n_t = A^t n_0 / n_t \to \bar{x}$ as $t \to \infty$.
449473

450-
To illustate the dynamics of the rates, let $\hat{A} := A / (1+g)$ be the transition matrix of $r_t := x_t/ n_t$.
474+
To illustrate the dynamics of the rates, let $\hat{A} := A / (1+g)$ be the transition matrix of $r_t := x_t/ n_t$.
451475

452476
The dynamics of the rates follow
453477

@@ -461,7 +485,10 @@ Observe that the column sums of $\hat{A}$ are all one so that $r(\hat{A})=1$.
461485
One can check that $\bar{x}$ is also the right eigenvector of $\hat{A}$ corresponding to $r(\hat{A})$ that $\bar{x} = \hat{A} \bar{x}$.
462486

463487
Moreover, $\hat{A}^t r_0 \to \bar{x}$ as $t \to \infty$ for any $r_0 = x_0 / n_0$, since the above discussion implies
464-
$$r_t = \hat{A}^t r_0 = (1+g)^{-t} A^t r_0 = r(A)^{-t} A^t r_0 \to \begin{pmatrix} \bar{u} & \bar{u} \\ \bar{e} & \bar{e} \end{pmatrix} r_0 = \begin{pmatrix} \bar{u} \\ \bar{e} \end{pmatrix}. $$
488+
489+
$$
490+
r_t = \hat{A}^t r_0 = (1+g)^{-t} A^t r_0 = r(A)^{-t} A^t r_0 \to \begin{bmatrix} \bar{u} & \bar{u} \\ \bar{e} & \bar{e} \end{bmatrix} r_0 = \begin{bmatrix} \bar{u} \\ \bar{e} \end{bmatrix}.
491+
$$
465492

466493
This is illustrated below.
467494

@@ -504,11 +531,11 @@ To provide more intuition for convergence, we further explain the convergence be
504531

505532
Suppose that $\hat{A} = P D P^{-1}$ is diagonalizable, where $P = [v_1, v_2]$ consists of eigenvectors $v_1$ and $v_2$ of $\hat{A}$
506533
corresponding to eigenvalues $\gamma_1$ and $\gamma_2$ respectively,
507-
and $D = diag(\gamma_1, \gamma_2)$.
534+
and $D = \text{diag}(\gamma_1, \gamma_2)$.
508535

509536
Let $\gamma_1 = r(\hat{A})=1$ and $|\gamma_2| < \gamma_1$, so that the spectral radius is a dominant eigenvalue.
510537

511-
The dynamics of the rates follows $r_{t+1} = \hat{A} r_t$, where $r_0$ is a probability vector: $\sum_j r_{0,j}=1$.
538+
The dynamics of the rates follow $r_{t+1} = \hat{A} r_t$, where $r_0$ is a probability vector: $\sum_j r_{0,j}=1$.
512539

513540
Consider $z_t = P^{-1} r_t $.
514541

@@ -517,8 +544,8 @@ Then, we have $z_{t+1} = P^{-1} r_{t+1} = P^{-1} \hat{A} r_t = P^{-1} \hat{A} P
517544
Hence, we obtain $z_t = D^t z_0$, and for some $z_0 = (c_1, c_2)^\top$ we have
518545

519546
$$
520-
r_t = P z_t = \begin{pmatrix} v_1 & v_2 \end{pmatrix} \begin{pmatrix} \gamma_1^t & 0 \\ 0 & \gamma_2^t \end{pmatrix}
521-
\begin{pmatrix} c_1 \\ c_2 \end{pmatrix} = c_1 \gamma_1^t v_1 + c_2 \gamma_2^t v_2.
547+
r_t = P z_t = \begin{bmatrix} v_1 & v_2 \end{bmatrix} \begin{bmatrix} \gamma_1^t & 0 \\ 0 & \gamma_2^t \end{bmatrix}
548+
\begin{bmatrix} c_1 \\ c_2 \end{bmatrix} = c_1 \gamma_1^t v_1 + c_2 \gamma_2^t v_2.
522549
$$
523550

524551
Since $|\gamma_2| < |\gamma_1|=1$, the second term in the right hand side converges to zero.
@@ -535,7 +562,7 @@ In this case, $c_1 v_1$ must be a normalized eigenvector, so $c_1 v_1 = \bar{x}$
535562
:label: lake_model_ex1
536563
```
537564

538-
How do the long-run unemployment rate and employment rate elvove if there is an increase in the separation rate $\alpha$
565+
How do the long-run unemployment rate and employment rate evolve if there is an increase in the separation rate $\alpha$
539566
or a decrease in job finding rate $\lambda$?
540567

541568
Is the result compatible with your intuition?

0 commit comments

Comments
 (0)