Skip to content

Commit 5b57369

Browse files
committed
Update translation: lectures/phillips_misspecified.md
1 parent b8479a8 commit 5b57369

1 file changed

Lines changed: 29 additions & 6 deletions

File tree

lectures/phillips_misspecified.md

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ translation:
3434

3535
# 最优错误设定信念
3636

37+
```{index} single: Phillips Curve; Optimal Misspecified Beliefs
38+
```
39+
3740
```{contents} Contents
3841
:depth: 2
3942
```
@@ -44,6 +47,12 @@ translation:
4447

4548
内容遵循 {cite}`Sargent1999` 的第 6 章。
4649

50+
在 {doc}`phillips_adaptive` 中,公众使用一个固定的适应性规则来预测通货膨胀,其中的参数 $\lambda$ 是我们直接选定的。
51+
52+
从某种意义上说,这种做法并不令人满意,而 {doc}`phillips_two_stories` 中的*印证*故事是无法容忍这一点的:描述预期的自由参数正是理性预期本应消除的东西。
53+
54+
在这里,我们朝着"赢得"这个参数迈出了第一步——让代理人自己选择该参数,以拟合由他们自身信念所产生的数据。
55+
4756
我们描述了贯穿本系列讲座的三个概念性问题:
4857

4958
1. 如何构建这样一种均衡——其中代理人共享一个共同的*错误设定的*最小二乘预测模型,
@@ -283,14 +292,20 @@ print(f"actual one-step forecast error std σ̄_ε = {σ_bar:.4f}")
283292
对于均衡 $C$,我们绘制真实模型与近似模型的均衡谱密度。
284293

285294
```{code-cell} ipython3
295+
---
296+
mystnb:
297+
figure:
298+
caption: 真实价格过程与代理人近似模型的谱密度
299+
name: fig-mis-spectra
300+
---
286301
F = bray.true_spectrum(C_star)
287302
σ_ε2 = fitted_sigma2(bray, C_star, c_star)
288303
G = bray.approx_spectrum(c_star, σ_ε2)
289304
290305
half = bray.N // 2
291306
fig, ax = plt.subplots(figsize=(8, 5))
292-
ax.plot(bray.ω[:half], np.log(F[:half]), 'C0', label='true model')
293-
ax.plot(bray.ω[:half], np.log(G[:half]), 'C1--', label='forecasting model')
307+
ax.plot(bray.ω[:half], np.log(F[:half]), 'C0', label='true model', lw=2)
308+
ax.plot(bray.ω[:half], np.log(G[:half]), 'C1--', label='forecasting model', lw=2)
294309
ax.set_xlabel(r'angular frequency $\omega$')
295310
ax.set_ylabel('log spectral density')
296311
ax.legend()
@@ -308,6 +323,12 @@ plt.show()
308323
我们通过向每个移动平均表示输入一个单位冲击,来比较两个模型的脉冲响应函数。
309324

310325
```{code-cell} ipython3
326+
---
327+
mystnb:
328+
figure:
329+
caption: 真实模型与近似模型的脉冲响应
330+
name: fig-mis-irf
331+
---
311332
def impulse_response(num_roots, den_roots, T=25):
312333
"IRF of (1 - num L)/(1 - den L): coefficients of the ratio of lag polys."
313334
h = np.empty(T)
@@ -323,8 +344,8 @@ irf_true = scale * impulse_response(1 - C_star, φ) # f(L)
323344
irf_approx = impulse_response(1 - c_star, bray.ρ) # g(L)
324345
325346
fig, ax = plt.subplots(figsize=(8, 5))
326-
ax.plot(irf_true, 'C0o-', ms=4, label='true model')
327-
ax.plot(irf_approx, 'C1s--', ms=4, label='approximating model')
347+
ax.plot(irf_true, 'C0o-', ms=4, label='true model', lw=2)
348+
ax.plot(irf_approx, 'C1s--', ms=4, label='approximating model', lw=2)
328349
ax.set_xlabel('lag')
329350
ax.set_ylabel('response')
330351
ax.legend()
@@ -373,9 +394,10 @@ b_grid = np.arange(0.1, 0.85, 0.1)
373394
C_of_b = [solve_equilibrium(BrayModel(a=1.0, b=b, σ_u=1.0)) for b in b_grid]
374395
375396
fig, ax = plt.subplots(figsize=(8, 4.5))
376-
ax.plot(b_grid, C_of_b, 'o-')
397+
ax.plot(b_grid, C_of_b, 'o-', lw=2)
377398
ax.set_xlabel('feedback parameter $b$')
378399
ax.set_ylabel('equilibrium belief $C$')
400+
ax.set_title('Equilibrium belief by expectational feedback')
379401
plt.show()
380402
```
381403

@@ -409,11 +431,12 @@ ax.annotate('equilibrium', (C_star, C_star),
409431
(C_star + 0.05, C_star - 0.03))
410432
ax.set_xlabel('$C$')
411433
ax.set_ylabel('$B(C)$')
434+
ax.set_title('The best-estimate map and its fixed point')
412435
ax.legend()
413436
plt.show()
414437
```
415438

416439
最优估计映射在均衡信念处与 45 度线相交,证实了 $C = B(C)$。
417440

418441
```{solution-end}
419-
```
442+
```

0 commit comments

Comments
 (0)