Skip to content

Commit 22acc6e

Browse files
committed
Update translation: lectures/phillips_self_confirming.md
1 parent 0fc3541 commit 22acc6e

1 file changed

Lines changed: 62 additions & 24 deletions

File tree

lectures/phillips_self_confirming.md

Lines changed: 62 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ translation:
3636

3737
# 自我确认均衡
3838

39+
```{index} single: Phillips Curve; Self-Confirming Equilibria
40+
```
41+
3942
```{contents} Contents
4043
:depth: 2
4144
```
@@ -50,9 +53,9 @@ translation:
5053

5154
## 概述
5255

53-
本讲座完成了 {doc}`phillips_credibility` 中开始的关于菲利普斯曲线权衡的研究
56+
本讲座完成了 {doc}`phillips_credibility` 中开始研究的*均衡*部分
5457

55-
它遵循 {cite}`Sargent1999` 的第 7 章。
58+
它遵循 {cite}`Sargent1999` 的第 7 章,在此之后,本系列将从固定信念转向实时学习的信念
5659

5760
我们寻求这样一些模型:它们与 {doc}`phillips_credibility` 中 {cite}`KydlandPrescott1977` 的基本模型偏离最小,但同时也让政府的*信念*由其自身政策所产生的数据来塑造。
5861

@@ -83,13 +86,13 @@ from scipy.optimize import minimize_scalar
8386
政府相信一个简约形式的菲利普斯曲线,它可以按两个方向拟合:
8487

8588
$$
86-
\text{古典:} \quad U_t = \gamma' X_{C,t} + \varepsilon_{C,t},
87-
\qquad X_{C,t} = \begin{bmatrix} y_t & X_{t-1}' \end{bmatrix}',
89+
\text{古典:} \quad U_t = \gamma^\top X_{C,t} + \varepsilon_{C,t},
90+
\qquad X_{C,t} = \begin{bmatrix} y_t & X_{t-1}^\top \end{bmatrix}^\top,
8891
$$
8992

9093
$$
91-
\text{凯恩斯:} \quad y_t = \beta' X_{K,t} + \varepsilon_{K,t},
92-
\qquad X_{K,t} = \begin{bmatrix} U_t & X_{t-1}' \end{bmatrix}' .
94+
\text{凯恩斯:} \quad y_t = \beta^\top X_{K,t} + \varepsilon_{K,t},
95+
\qquad X_{K,t} = \begin{bmatrix} U_t & X_{t-1}^\top \end{bmatrix}^\top.
9396
$$
9497

9598
求解费尔普斯问题以政府的信念 $\gamma$ 为给定,得出通货膨胀的决策规则 $h(\gamma)$。
@@ -112,7 +115,7 @@ $$
112115
U_t = U^* - \frac{\theta}{1 - \rho_2 L}(y_t - x_t) + \frac{v_{1t}}{1 - \rho_1 L},
113116
```
114117

115-
其中 $|\rho_1| < 1$,$|\rho_2| < 1$,且 $v_t = (v_{1t}, v_{2t})'$ 为向量白噪声,其中 $v_{2t} \equiv y_t - x_t$ 是通货膨胀的意外部分。
118+
其中 $|\rho_1| < 1$,$|\rho_2| < 1$,且 $v_t = (v_{1t}, v_{2t})^\top$ 为向量白噪声,其中 $v_{2t} \equiv y_t - x_t$ 是通货膨胀的意外部分。
116119

117120
在本讲座的大部分内容中,我们设 $\rho_1 = \rho_2 = 0$ 以阐明理论要点,这将 {eq}`sc_actual` 化简为
118121

@@ -136,7 +139,7 @@ $$
136139
(c)失业率由实际菲利普斯曲线 {eq}`sc_actual` 生成;以及
137140
138141
(d)政府的信念满足最小二乘正交性条件
139-
$E\left[U_t - \gamma' X_{C,t}\right] X_{C,t}' = 0$(**古典**拟合方向)。
142+
$\mathbb{E}\left[U_t - \gamma^\top X_{C,t}\right] X_{C,t}^\top = 0$(**古典**拟合方向)。
140143
```
141144

142145
条件(d)使政府的信念依赖于矩矩阵,而这些矩矩阵通过(a)-(c)本身又依赖于政府的信念。
@@ -145,12 +148,18 @@ $E\left[U_t - \gamma' X_{C,t}\right] X_{C,t}' = 0$(**古典**拟合方向)
145148

146149
将(d)替换为**凯恩斯**拟合方向,会得到一个不同的自我确认均衡:
147150

148-
> (d′)政府拟合凯恩斯菲利普斯曲线,$E\left[y_t - \beta' X_{K,t}\right] X_{K,t}' = 0$,然后通过反演公式 {eq}`sc_invert` 恢复 $\gamma$。
151+
> (d′)政府拟合凯恩斯菲利普斯曲线,$\mathbb{E}\left[y_t - \beta^\top X_{K,t}\right] X_{K,t}^\top = 0$,然后通过反演公式 {eq}`sc_invert` 恢复 $\gamma$。
149152
150153
由于政府的信念会影响数据的整个概率分布,最小化的方向会影响结果。
151154

152155
```{note}
153-
一般而言,计算自我确认均衡意味着寻找映射 $\gamma = T(h(\gamma))$(古典)或 $\beta = S(h(\gamma(\beta)))$(凯恩斯)的不动点。正交性条件中的矩是通过求解一个离散李雅普诺夫方程,从该系统的状态空间表示中得到的。实践中,人们迭代一个松弛算法 $\beta_{j+1} = \kappa\beta_j + (1-\kappa) S(\beta_j)$,这与 {doc}`phillips_credibility` 中的最小二乘学习递归相似。
156+
一般而言,计算自我确认均衡意味着寻找映射 $\gamma = T(h(\gamma))$
157+
(古典)或 $\beta = S(h(\gamma(\beta)))$(凯恩斯)的不动点。
158+
159+
正交性条件中的矩是通过求解一个离散李雅普诺夫方程,从该系统的状态空间表示中得到的。
160+
161+
实践中,人们迭代一个松弛算法 $\beta_{j+1} = \kappa\beta_j + (1-\kappa) S(\beta_j)$,
162+
这与 {doc}`phillips_credibility` 中的最小二乘学习递归相似。
154163
```
155164

156165
## 手工可解的特殊情形
@@ -162,25 +171,25 @@ $E\left[U_t - \gamma' X_{C,t}\right] X_{C,t}' = 0$(**古典**拟合方向)
162171
```{math}
163172
:label: sc_moments
164173
165-
\operatorname{var}(U_t) = \theta^2 \sigma_2^2 + \sigma_1^2,
174+
\mathbb{V}[U_t] = \theta^2 \sigma_2^2 + \sigma_1^2,
166175
\qquad
167-
\operatorname{var}(y_t) = \sigma_2^2,
176+
\mathbb{V}[y_t] = \sigma_2^2,
168177
\qquad
169178
\operatorname{cov}(U_t, y_t) = -\theta \sigma_2^2 .
170179
```
171180

172181
**古典拟合方向**($U$ 对 $y$):斜率为
173182

174183
$$
175-
\gamma_1 = \frac{\operatorname{cov}(U_t, y_t)}{\operatorname{var}(y_t)} = -\theta,
184+
\gamma_1 = \frac{\operatorname{cov}(U_t, y_t)}{\mathbb{V}[y_t]} = -\theta,
176185
$$
177186

178187
而均值必须落在回归线上这一要求给出截距 $\gamma_{-1} = (\gamma_1^2 + 1) U^*$。
179188

180189
**凯恩斯拟合方向**($y$ 对 $U$):斜率为
181190

182191
$$
183-
\beta_1 = \frac{\operatorname{cov}(U_t, y_t)}{\operatorname{var}(U_t)}
192+
\beta_1 = \frac{\operatorname{cov}(U_t, y_t)}{\mathbb{V}[U_t]}
184193
= \frac{-\theta \sigma_2^2}{\sigma_1^2 + \theta^2 \sigma_2^2},
185194
$$
186195

@@ -236,13 +245,19 @@ print(f" γ_1 = {γ1_K:.1f}, γ_(-1) = {γ0_K:.1f}, mean inflation = {y_K:.1f
236245
让我们绘制这两条自我确认的菲利普斯曲线,重现图 7.1。
237246

238247
```{code-cell} ipython3
248+
---
249+
mystnb:
250+
figure:
251+
caption: The two self-confirming Phillips curves, one for each direction of fit
252+
name: fig-sce-two-curves
253+
---
239254
fig, ax = plt.subplots(figsize=(7, 6))
240255
241256
U_grid = np.linspace(0, 12, 100)
242257
243258
# perceived Phillips curves U = γ_{-1} + γ_1 y => y = (U - γ_{-1}) / γ_1
244-
ax.plot(U_grid, (U_grid - γ0_C) / γ1_C, 'C0', label='P: classical fit')
245-
ax.plot(U_grid, (U_grid - γ0_K) / γ1_K, 'C1', label='Q: Keynesian fit')
259+
ax.plot(U_grid, (U_grid - γ0_C) / γ1_C, 'C0', label='P: classical fit', lw=2)
260+
ax.plot(U_grid, (U_grid - γ0_K) / γ1_K, 'C1', label='Q: Keynesian fit', lw=2)
246261
247262
ax.plot(sce.U_star, y_C, 'C0o')
248263
ax.annotate('Nash', (sce.U_star, y_C), (sce.U_star + 0.4, y_C - 0.6))
@@ -292,7 +307,7 @@ x_t = C y_{t-1} + (1 - C) x_{t-1}, \quad C \in (0, 1),
292307

293308
其中公众持有常数增益的适应性预期,参数 $C$ 由其*根据数据进行调整*
294309

295-
将 $x_t$ 视为状态变量,政府求解费尔普斯问题:通过选择一个反馈规则 $y_t = f_1 + f_2 x_t + v_{2t}$,最大化 $-E_0 \sum_{t=0}^\infty \delta^t\left[(U^* - \theta(y_t - x_t))^2 + y_t^2\right]$。
310+
将 $x_t$ 视为状态变量,政府求解费尔普斯问题:通过选择一个反馈规则 $y_t = f_1 + f_2 x_t + v_{2t}$,最大化 $-\mathbb{E}_0 \sum_{t=0}^\infty \delta^t\left[(U^* - \theta(y_t - x_t))^2 + y_t^2\right]$。
296311

297312
这恰好是 {doc}`phillips_adaptive` 中带有适应参数 $\lambda = 1 - C$ 的 LQ 费尔普斯问题。
298313

@@ -400,6 +415,12 @@ print(f"Nash inflation θ U* = {mp.θ * mp.U_star:.3f}")
400415
随着政府变得更有耐心,均衡平均通货膨胀率会降至拉姆齐值零附近。
401416

402417
```{code-cell} ipython3
418+
---
419+
mystnb:
420+
figure:
421+
caption: 随着政府变得更有耐心,平均通货膨胀率与均衡增益的变化
422+
name: fig-sce-patience
423+
---
403424
δ_grid = np.array([0.95, 0.96, 0.97, 0.98, 0.99, 0.995])
404425
C_vals, ν_vals = [], []
405426
for δ in δ_grid:
@@ -414,7 +435,7 @@ axes[0].set_xlabel(r'discount factor $\delta$')
414435
axes[0].set_ylabel('mean inflation')
415436
axes[0].legend()
416437
417-
axes[1].plot(δ_grid, C_vals, 'o-', color='C1')
438+
axes[1].plot(δ_grid, C_vals, 'o-', color='C1', lw=2)
418439
axes[1].set_xlabel(r'discount factor $\delta$')
419440
axes[1].set_ylabel('equilibrium gain $C$')
420441
@@ -425,14 +446,23 @@ plt.show()
425446
在每个贴现因子下,平均通货膨胀都远低于纳什值,并随着 $\delta \to 1$ 趋近于拉姆齐值零。
426447

427448
```{note}
428-
精确的均衡值取决于用来保证被感知模型谱密度良好定义的近单位根近似 $\rho$,正如 {doc}`phillips_misspecified` 中所讨论的那样。定性的结论——即结果优于纳什,并随着 $\delta \to 1$ 趋近拉姆齐——是稳健的。
449+
精确的均衡值取决于用来保证被感知模型谱密度良好定义的近单位根近似 $\rho$,正如
450+
{doc}`phillips_misspecified` 中所讨论的那样。
451+
452+
定性的结论——即结果优于纳什,并随着 $\delta \to 1$ 趋近拉姆齐——是稳健的。
429453
```
430454

431455
### 谱与脉冲响应
432456

433457
让我们比较均衡处真实与近似的通货膨胀过程,如 {cite}`Sargent1999` 的图 7.2 和图 7.3 所示。
434458

435459
```{code-cell} ipython3
460+
---
461+
mystnb:
462+
figure:
463+
caption: 均衡处真实与近似通货膨胀过程的谱密度
464+
name: fig-sce-spectra
465+
---
436466
ν_star, F, _ = mp.true_process(C_star)
437467
c_star = mp.best_estimate(C_star)
438468
H = np.abs((1 - (1 - c_star) * mp.z) / (1 - mp.ρ * mp.z))**2
@@ -441,8 +471,8 @@ G = H * σ_ε2
441471
442472
half = mp.N // 2
443473
fig, ax = plt.subplots(figsize=(8, 5))
444-
ax.plot(mp.ω[:half], np.log(F[:half]), 'C0', label='true model')
445-
ax.plot(mp.ω[:half], np.log(G[:half]), 'C1--', label='approximating model')
474+
ax.plot(mp.ω[:half], np.log(F[:half]), 'C0', label='true model', lw=2)
475+
ax.plot(mp.ω[:half], np.log(G[:half]), 'C1--', label='approximating model', lw=2)
446476
ax.set_xlabel(r'angular frequency $\omega$')
447477
ax.set_ylabel('log spectral density')
448478
ax.legend()
@@ -454,6 +484,12 @@ plt.show()
454484
真实的通货膨胀率仅具有中等程度的序列相关性,而——正如 {doc}`phillips_misspecified` 中的布雷模型一样——近似模型使用单位根来模拟均值,即用二阶矩来捕捉一阶矩。
455485

456486
```{code-cell} ipython3
487+
---
488+
mystnb:
489+
figure:
490+
caption: 真实与近似通货膨胀过程的脉冲响应
491+
name: fig-sce-irf
492+
---
457493
def ima_impulse(num, den, T=25):
458494
"IRF of (1 - num L)/(1 - den L)."
459495
h = np.empty(T)
@@ -468,8 +504,8 @@ irf_true = ima_impulse(1 - C_star, ψ)
468504
irf_approx = ima_impulse(1 - c_star, mp.ρ)
469505
470506
fig, ax = plt.subplots(figsize=(8, 5))
471-
ax.plot(irf_true, 'C0o-', ms=4, label='true model')
472-
ax.plot(irf_approx, 'C1s--', ms=4, label='approximating model')
507+
ax.plot(irf_true, 'C0o-', ms=4, label='true model', lw=2)
508+
ax.plot(irf_approx, 'C1s--', ms=4, label='approximating model', lw=2)
473509
ax.set_xlabel('lag')
474510
ax.set_ylabel('response')
475511
ax.legend()
@@ -521,6 +557,7 @@ ax.plot(σ1_grid, y_keynes, label='Keynesian mean inflation')
521557
ax.axhline(5.0, color='k', ls='--', lw=1, label='Nash')
522558
ax.set_xlabel(r'$\sigma_1$')
523559
ax.set_ylabel('mean inflation')
560+
ax.set_title('Keynesian mean inflation by shock size')
524561
ax.legend()
525562
plt.show()
526563
```
@@ -560,11 +597,12 @@ ax.plot(C_star, C_star, 'ko')
560597
ax.annotate('equilibrium', (C_star, C_star), (C_star + 0.03, C_star - 0.03))
561598
ax.set_xlabel('$C$')
562599
ax.set_ylabel('$B(C)$')
600+
ax.set_title('The best-estimate map and the equilibrium gain')
563601
ax.legend()
564602
plt.show()
565603
```
566604

567605
最优估计映射在均衡增益处与 45 度线相交,证实了 $C = B(C)$。
568606

569607
```{solution-end}
570-
```
608+
```

0 commit comments

Comments
 (0)