You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lectures/lake_model.md
+23-11Lines changed: 23 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ jupytext:
4
4
extension: .md
5
5
format_name: myst
6
6
format_version: 0.13
7
-
jupytext_version: 1.14.4
7
+
jupytext_version: 1.14.5
8
8
kernelspec:
9
9
display_name: Python 3 (ipykernel)
10
10
language: python
@@ -40,10 +40,13 @@ The "flows" between the two lakes are as follows:
40
40
3. employed workers separate from their jobs at rate $\alpha$.
41
41
4. unemployed workers find jobs at rate $\lambda$.
42
42
43
+
```{code-cell} ipython3
44
+
from graphviz import Digraph
45
+
```
46
+
43
47
The below graph illustrates the lake model.
44
48
45
-
```{code-cell}ipython3
46
-
from graphviz import Digraph
49
+
```{code-cell} ipython3
47
50
# Create Digraph object
48
51
G = Digraph()
49
52
G.attr(rankdir='LR')
@@ -116,8 +119,6 @@ Let us first plot the time series of unemployment $u_t$, employment $e_t$, and l
116
119
117
120
We will use the following imports.
118
121
119
-
+++
120
-
121
122
```{code-cell} ipython3
122
123
import numpy as np
123
124
import matplotlib.pyplot as plt
@@ -216,7 +217,11 @@ Not surprisingly, we observe that labor force $n_t$ increases at a constant rate
216
217
This fact conincides with the intuition that the inflow and outflow of labor market system is determined by constant exit rate and enter rate of labor market.
217
218
218
219
In detail, let $\mathbb{1}=[1, 1]^\top$ be a vector of ones.
219
-
Observe that $$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.$$
220
+
Observe that
221
+
222
+
$$
223
+
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
224
+
$$
220
225
221
226
Moreover, the times series of unemployment and employment seems to grow at some constant rate in the long run.
222
227
@@ -228,15 +233,21 @@ Since $A$ is a nonnegative and irreducible matrix, we can use the Perron-Frobeni
228
233
229
234
- The spectral radius $r(A)$ is an eigenvalue of $A$, where
230
235
231
-
$$r(A) := \max\{|\lambda|: \lambda \text{ is an eigenvalue of } A \} $$
236
+
$$
237
+
r(A) := \max\{|\lambda|: \lambda \text{ is an eigenvalue of } A \}
238
+
$$
232
239
233
240
- there exist unique and everywhere positive right eigenvector $\phi$ (column vector) and left eigenvector $\psi$ (row vector):
234
241
235
-
$$A \phi = r(A) \phi, \quad \psi A = r(A) \psi$$
242
+
$$
243
+
A \phi = r(A) \phi, \quad \psi A = r(A) \psi
244
+
$$
236
245
237
246
- if further $A$ is positive, then with $<\psi, \phi> = \psi \phi=1$ we have
238
247
239
-
$$r(A)^{-t} A^t \to \phi \psi . $$
248
+
$$
249
+
r(A)^{-t} A^t \to \phi \psi
250
+
$$
240
251
241
252
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.
242
253
@@ -258,7 +269,8 @@ We can thus find a unique positive vector $\bar{x} = \begin{bmatrix} \bar{u} \\
258
269
such that $A\bar{x} = r(A)\bar{x}$ and $\begin{bmatrix} 1 & 1 \end{bmatrix} \bar{x} = 1$:
0 commit comments