From 02a06035dc28eb370c3dea89cacf8caca596852c Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Sat, 18 Jul 2026 17:32:33 +1000 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=94=84=20resync=20ge=5Farrow.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .translate/state/ge_arrow.md.yml | 6 ++++++ lectures/ge_arrow.md | 36 ++++++++++++++++++++++++++++---- 2 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 .translate/state/ge_arrow.md.yml diff --git a/.translate/state/ge_arrow.md.yml b/.translate/state/ge_arrow.md.yml new file mode 100644 index 00000000..9c4e4995 --- /dev/null +++ b/.translate/state/ge_arrow.md.yml @@ -0,0 +1,6 @@ +source-sha: eb30e4fa25c462a5875670e623b2ec01b6f9c727 +synced-at: "2026-07-18" +model: claude-sonnet-5 +mode: RESYNC +section-count: 9 +tool-version: 0.17.0 diff --git a/lectures/ge_arrow.md b/lectures/ge_arrow.md index 68ae5e1d..1605b668 100644 --- a/lectures/ge_arrow.md +++ b/lectures/ge_arrow.md @@ -10,6 +10,35 @@ kernelspec: display_name: Python 3 (ipykernel) language: python name: python3 +translation: + title: 带有阿罗证券的竞争均衡 + headings: + Introduction: 引言 + The setting: 设定 + The setting::Preferences and endowments: 偏好和禀赋 + Recursive Formulation: 递归表述 + State Variable Degeneracy: 状态变量退化 + Markov Asset Prices: 马尔可夫资产价格 + Markov Asset Prices::Exogenous Pricing Kernel: 外生定价核 + Markov Asset Prices::Multi-Step-Forward Transition Probabilities and Pricing Kernels: 多步前向转移概率和定价核 + Markov Asset Prices::Laws of Iterated Expectations and Iterated Values: 迭代期望法则和迭代值法则 + General Equilibrium: 一般均衡 + General Equilibrium::Inputs: 输入 + General Equilibrium::Outputs: 输出 + General Equilibrium::$Q$ is the Pricing Kernel: $Q$ 是定价核 + General Equilibrium::Values: 数值 + General Equilibrium::Continuation Wealth: 延续财富 + General Equilibrium::Optimal Portfolios: 最优投资组合 + General Equilibrium::Equilibrium Wealth Distribution $\alpha$: 均衡财富分布 $\alpha$ + Finite Horizon: 有限期限 + Finite Horizon::Continuation Wealths: 延续财富 + Python Code: Python代码 + Examples: 示例 + Examples::Example 1: 示例 1 + Examples::Example 2: 示例 2 + Examples::Example 3: 示例 3 + Examples::Example 4: 示例 4 + Examples::Finite Horizon Example: 有限期限示例 --- # 带有阿罗证券的竞争均衡 @@ -854,7 +883,7 @@ class RecurCompetitive: def price_risk_free_bond(self): "给定Q,计算一期无风险债券价格" - PRF = np.sum(self.Q, 0) + PRF = np.sum(self.Q, axis=1) self.PRF = PRF return PRF @@ -862,7 +891,7 @@ class RecurCompetitive: def risk_free_rate(self): "给定Q,计算一期无风险利率R" - R = np.sum(self.Q, 0) + R = np.sum(self.Q, axis=1) R = np.reciprocal(R) self.R = R @@ -1271,5 +1300,4 @@ ex1.ψ, ex1_large.ψ[-1] ```{code-cell} ipython3 ex1_large.value_functionss() ex1.J, ex1_large.J[-1] -``` - +``` \ No newline at end of file From 654b173e36915a9dec79640f038dee28694379e5 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Sun, 19 Jul 2026 14:04:08 +1000 Subject: [PATCH 2/2] Restore trailing newline (engine issue tracked in QuantEcon/action-translation#116) Co-Authored-By: Claude Fable 5 --- lectures/ge_arrow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/ge_arrow.md b/lectures/ge_arrow.md index 1605b668..3592a61a 100644 --- a/lectures/ge_arrow.md +++ b/lectures/ge_arrow.md @@ -1300,4 +1300,4 @@ ex1.ψ, ex1_large.ψ[-1] ```{code-cell} ipython3 ex1_large.value_functionss() ex1.J, ex1_large.J[-1] -``` \ No newline at end of file +```