Skip to content

Commit 17b5b98

Browse files
mmckyclaude
andauthored
[action-translation] resync: ak_aiyagari.md (#103)
* 🔄 resync ak_aiyagari.md * 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 <noreply@anthropic.com> * Restore trailing newline (engine issue tracked in QuantEcon/action-translation#116) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 39afd43 commit 17b5b98

2 files changed

Lines changed: 53 additions & 3 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source-sha: ce54324db280292a4456f1d4266f5cecb56f6b94
2+
synced-at: "2026-07-18"
3+
model: claude-sonnet-5
4+
mode: RESYNC
5+
section-count: 14
6+
tool-version: 0.17.0

lectures/ak_aiyagari.md

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,42 @@
11
---
2+
jupytext:
3+
text_representation:
4+
extension: .md
5+
format_name: myst
6+
format_version: 0.13
7+
jupytext_version: 1.17.3
8+
kernelspec:
9+
display_name: Python 3 (ipykernel)
10+
language: python
11+
name: python3
12+
translation:
13+
title: V, σ, μ
14+
headings:
15+
Overview: 概述
16+
Environment: 经济环境
17+
Environment::Demographics and time: 人口统计和时间
18+
Environment::Individuals' state variables: 个体状态变量
19+
Environment::Labor supply: 劳动供给
20+
Environment::Initial conditions: 初始条件
21+
Production: 生产
22+
Government: 政府
23+
Activities in factor markets: 要素市场活动
24+
Activities in factor markets::Age-specific labor supplies: 特定年龄的劳动供给
25+
Activities in factor markets::Asset market participation: 资产市场参与
26+
Activities in factor markets::Key features: 主要特征
27+
Representative firm's problem: 代表性企业的问题
28+
Households' problems: 家庭问题
29+
Population dynamics: 人口动态
30+
Equilibrium: 均衡
31+
Implementation: 实现
32+
Computing a steady state: 计算稳态
33+
Transition dynamics: 转换动态
34+
'Experiment 1: Immediate tax cut': 实验1:即时减税
35+
'Experiment 2: Preannounced tax cut': 实验2:预先宣布的减税
36+
---
37+
38+
```
39+
---
240
jupytext:
341
text_representation:
442
extension: .md
@@ -14,6 +52,9 @@ kernelspec:
1452
1553
# 长寿、异质性个体、世代交叠模型
1654
55+
```{include} _admonition/gpu.md
56+
```
57+
1758
除了Anaconda中已有的库之外,本讲座还需要以下库
1859

1960
```{code-cell} ipython3
@@ -54,6 +95,10 @@ kernelspec:
5495
from collections import namedtuple
5596
import numpy as np
5697
import matplotlib.pyplot as plt
98+
import matplotlib as mpl
99+
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
100+
mpl.font_manager.fontManager.addfont(FONTPATH)
101+
plt.rcParams['font.family'] = ['Source Han Serif SC']
57102
import jax.numpy as jnp
58103
import jax.scipy as jsp
59104
import jax
@@ -937,8 +982,7 @@ def simulate_forwards(σ_seq, D_seq, μ_ss1, K_ss1, L_ss1, household, Q):
937982
- $\mu[t] \leftarrow \Gamma(\sigma[t], \mu[t-1])$ *(分布演化)*
938983
- $K[t] \leftarrow \int a \, d\mu[t] - D[t]$ *(总资本)*
939984
- $L[t] \leftarrow \int l(j)\gamma \, d\mu[t]$ *(总劳动)*
940-
941-
- $r[t] \leftarrow \alpha Z(K[t]/L[t])^{\alpha-1}$ *(利率)*
985+
- $r[t] \leftarrow \alpha Z(K[t]/L[t])^{\alpha-1}$ *(利率)*
942986
- $w[t] \leftarrow (1-\alpha)Z(K[t]/L[t])^{\alpha}$ *(工资率)*
943987
- $\tau[t] \leftarrow solve\_budget(r[t],w[t],K[t],L[t],D[t],G[t])$
944988
@@ -1433,4 +1477,4 @@ ax2.set_ylabel(r"j")
14331477
14341478
plt.show()
14351479
```
1436-
1480+
```

0 commit comments

Comments
 (0)