From 5581877326b132a6adfa2993955be9917e4fb3c5 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Sat, 18 Jul 2026 17:13:02 +1000 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=94=84=20resync=20ak=5Faiyagari.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .translate/state/ak_aiyagari.md.yml | 6 ++++ lectures/ak_aiyagari.md | 46 +++++++++++++++++++++++++++-- 2 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 .translate/state/ak_aiyagari.md.yml diff --git a/.translate/state/ak_aiyagari.md.yml b/.translate/state/ak_aiyagari.md.yml new file mode 100644 index 00000000..36ab08aa --- /dev/null +++ b/.translate/state/ak_aiyagari.md.yml @@ -0,0 +1,6 @@ +source-sha: ce54324db280292a4456f1d4266f5cecb56f6b94 +synced-at: "2026-07-18" +model: claude-sonnet-5 +mode: RESYNC +section-count: 14 +tool-version: 0.17.0 diff --git a/lectures/ak_aiyagari.md b/lectures/ak_aiyagari.md index bedb48d6..6b3a4611 100644 --- a/lectures/ak_aiyagari.md +++ b/lectures/ak_aiyagari.md @@ -1,4 +1,42 @@ --- +jupytext: + text_representation: + extension: .md + format_name: myst + format_version: 0.13 + jupytext_version: 1.17.3 +kernelspec: + display_name: Python 3 (ipykernel) + language: python + name: python3 +translation: + title: V, σ, μ + headings: + Overview: 概述 + Environment: 经济环境 + Environment::Demographics and time: 人口统计和时间 + Environment::Individuals' state variables: 个体状态变量 + Environment::Labor supply: 劳动供给 + Environment::Initial conditions: 初始条件 + Production: 生产 + Government: 政府 + Activities in factor markets: 要素市场活动 + Activities in factor markets::Age-specific labor supplies: 特定年龄的劳动供给 + Activities in factor markets::Asset market participation: 资产市场参与 + Activities in factor markets::Key features: 主要特征 + Representative firm's problem: 代表性企业的问题 + Households' problems: 家庭问题 + Population dynamics: 人口动态 + Equilibrium: 均衡 + Implementation: 实现 + Computing a steady state: 计算稳态 + Transition dynamics: 转换动态 + 'Experiment 1: Immediate tax cut': 实验1:即时减税 + 'Experiment 2: Preannounced tax cut': 实验2:预先宣布的减税 +--- + +``` +--- jupytext: text_representation: extension: .md @@ -14,6 +52,9 @@ kernelspec: # 长寿、异质性个体、世代交叠模型 +```{include} _admonition/gpu.md +``` + 除了Anaconda中已有的库之外,本讲座还需要以下库 ```{code-cell} ipython3 @@ -937,8 +978,7 @@ def simulate_forwards(σ_seq, D_seq, μ_ss1, K_ss1, L_ss1, household, Q): - $\mu[t] \leftarrow \Gamma(\sigma[t], \mu[t-1])$ *(分布演化)* - $K[t] \leftarrow \int a \, d\mu[t] - D[t]$ *(总资本)* - $L[t] \leftarrow \int l(j)\gamma \, d\mu[t]$ *(总劳动)* - -- $r[t] \leftarrow \alpha Z(K[t]/L[t])^{\alpha-1}$ *(利率)* + - $r[t] \leftarrow \alpha Z(K[t]/L[t])^{\alpha-1}$ *(利率)* - $w[t] \leftarrow (1-\alpha)Z(K[t]/L[t])^{\alpha}$ *(工资率)* - $\tau[t] \leftarrow solve\_budget(r[t],w[t],K[t],L[t],D[t],G[t])$ @@ -1433,4 +1473,4 @@ ax2.set_ylabel(r"j") plt.show() ``` - +``` \ No newline at end of file From e27a2c1731099cdae0d7b9264cf7bc4c22d37526 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Sat, 18 Jul 2026 21:20:41 +1000 Subject: [PATCH 2/3] Restore CJK font configuration dropped by the resync The resynced file keeps Chinese plot labels but reverted the import cell to the source's exact form, losing the Source Han Serif setup - Chinese in figures would render as missing glyphs. Residual #107 class found in the merge review; applied wave-wide. Co-Authored-By: Claude Fable 5 --- lectures/ak_aiyagari.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lectures/ak_aiyagari.md b/lectures/ak_aiyagari.md index 6b3a4611..3c3e6100 100644 --- a/lectures/ak_aiyagari.md +++ b/lectures/ak_aiyagari.md @@ -95,6 +95,10 @@ kernelspec: from collections import namedtuple import numpy as np import matplotlib.pyplot as plt +import matplotlib as mpl +FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf" +mpl.font_manager.fontManager.addfont(FONTPATH) +plt.rcParams['font.family'] = ['Source Han Serif SC'] import jax.numpy as jnp import jax.scipy as jsp import jax From 9143e616ea5e54f4208ec6190c465a238059f9e5 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Sun, 19 Jul 2026 14:04:02 +1000 Subject: [PATCH 3/3] Restore trailing newline (engine issue tracked in QuantEcon/action-translation#116) Co-Authored-By: Claude Fable 5 --- lectures/ak_aiyagari.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/ak_aiyagari.md b/lectures/ak_aiyagari.md index 3c3e6100..15dbf88f 100644 --- a/lectures/ak_aiyagari.md +++ b/lectures/ak_aiyagari.md @@ -1477,4 +1477,4 @@ ax2.set_ylabel(r"j") plt.show() ``` -``` \ No newline at end of file +```