Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .translate/state/ak2.md.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source-sha: eed8a65ff77b087b0ed997c6ec33256bf380fd32
synced-at: "2026-10-09"
source-sha: 6071051dfe42e75bbecb0682bfc65daf4dc8f60d
synced-at: "2026-11-19"
model: claude-sonnet-5
mode: UPDATE
section-count: 12
tool-version: 0.29.3
tool-version: 0.33.0
6 changes: 3 additions & 3 deletions .translate/state/back_prop.md.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source-sha: 96ede29937a77fb0cb26b731e1eecce5e62f6726
synced-at: "2026-08-18"
source-sha: 6071051dfe42e75bbecb0682bfc65daf4dc8f60d
synced-at: "2026-11-19"
model: claude-sonnet-5
mode: UPDATE
section-count: 8
tool-version: 0.26.0
tool-version: 0.33.0
6 changes: 3 additions & 3 deletions .translate/state/kesten_processes.md.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source-sha: a4fbd8653600ac99163bfd5d4f7d98c1e613042e
synced-at: "2026-07-26"
source-sha: 6071051dfe42e75bbecb0682bfc65daf4dc8f60d
synced-at: "2026-11-19"
model: claude-sonnet-5
mode: UPDATE
section-count: 5
tool-version: 0.24.0
tool-version: 0.33.0
8 changes: 4 additions & 4 deletions .translate/state/opt_transport.md.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source-sha: 07c9b68b68f4f1073673e53c9afcc78a26320344
synced-at: "2026-07-18"
source-sha: 6071051dfe42e75bbecb0682bfc65daf4dc8f60d
synced-at: "2026-11-19"
model: claude-sonnet-5
mode: RESYNC
mode: UPDATE
section-count: 5
tool-version: 0.17.0
tool-version: 0.33.0
6 changes: 3 additions & 3 deletions .translate/state/pandas_panel.md.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source-sha: 977a9fe1f328086bb498a6c055b52f6eb74b4ea9
synced-at: "2026-10-12"
source-sha: 6071051dfe42e75bbecb0682bfc65daf4dc8f60d
synced-at: "2026-11-19"
model: claude-sonnet-5
mode: UPDATE
section-count: 6
tool-version: 0.29.4
tool-version: 0.33.0
10 changes: 5 additions & 5 deletions .translate/state/robust_permanent_income.md.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source-sha: 7c6396a0a24cd9b944750681b42519179e6bab58
synced-at: "2026-07-22"
model: claude-opus-4-8
mode: NEW
source-sha: 6071051dfe42e75bbecb0682bfc65daf4dc8f60d
synced-at: "2026-11-19"
model: claude-sonnet-5
mode: UPDATE
section-count: 10
tool-version: 0.20.0
tool-version: 0.33.0
3 changes: 1 addition & 2 deletions lectures/ak2.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ translation:

```{code-cell} ipython3
:tags: [hide-output]
!pip install --upgrade quantecon
!pip install quantecon
```

## 概述
Expand Down Expand Up @@ -248,7 +248,6 @@ $$ (eq:firmfonc)

## 个体问题


### 初始老年人
在时点 $t=0$,一个代表性的初始老年人拥有 $(1 + r_0(1 - \tau_0)) A_0$ 的初始资产,其中 $A_0 = K_0 + D_0$。

Expand Down
13 changes: 4 additions & 9 deletions lectures/back_prop.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,24 @@ translation:
```{include} _admonition/gpu.md
```

除了基础Anaconda中包含的内容外,我们还需要安装以下包
除了基础 Anaconda 中包含的内容外,我们还需要安装以下包

```{code-cell} ipython3
:tags: [hide-output]

!pip install -U kaleido plotly
!conda install -y -c plotly plotly-orca
!pip install "kaleido>=1" "plotly>=6.1"

# kaleido需要chrome来构建图像
import kaleido
kaleido.get_chrome_sync()
```

```{note}
如果您在Google Colab上运行此代码,上述单元格将出现错误。这是因为Google Colab不使用Anaconda来管理Python包。但是本讲座仍然可以执行,因为Google Colab已安装了`plotly`。
```

我们还需要安装JAX来运行本讲座
我们还需要安装 JAX 来运行本讲座

```{code-cell} ipython3
:tags: [skip-execution]

!pip install --upgrade jax
!pip install jax
```

```{code-cell} ipython3
Expand Down
3 changes: 2 additions & 1 deletion lectures/kesten_processes.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ translation:
```{code-cell} ipython3
:tags: [hide-output]

!pip install --upgrade quantecon yfinance jax
!pip install quantecon yfinance
!pip install jax
```

## 概述
Expand Down
17 changes: 3 additions & 14 deletions lectures/opt_transport.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.14.4
jupytext_version: 1.17.1
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand Down Expand Up @@ -46,8 +46,8 @@ translation:
```{code-cell} ipython3
:tags: [hide-output]

!pip install --upgrade quantecon
!pip install --upgrade POT
!pip install quantecon
!pip install POT
```

让我们从一些导入语句开始。
Expand Down Expand Up @@ -131,14 +131,10 @@ $$ (sumconstraints)

稍后会详细讨论这一点。




## 线性规划方法

在本节中,我们讨论使用标准线性规划求解器来求解最优传输问题。


### 决策变量矩阵的向量化

在问题 {eq}`plannerproblem` 中出现了决策变量 $x_{ij}$ 的*矩阵*。
Expand Down Expand Up @@ -254,7 +250,6 @@ $$
\end{bmatrix}
$$


### 应用实例


Expand Down Expand Up @@ -467,7 +462,6 @@ res.x

最优运输方案的最小成本由变量 $fun$ 给出。


### 使用即时编译器

我们也可以使用 QuantEcon 中的一个强大工具来求解最优运输问题,即 `quantecon.optimize.linprog_simplex`。
Expand Down Expand Up @@ -528,7 +522,6 @@ res.x.reshape((m, n), order='F')

(但请注意,SciPy 版本可能比 QuantEcon 版本更稳定,因为它经过了更长时间的广泛测试。)


## 对偶问题

设 $u, v$ 表示对偶决策变量的向量,其分量为 $(u_i), (v_j)$。
Expand Down Expand Up @@ -626,9 +619,6 @@ $$

这种相等性由**互补松弛**条件保证,该条件规定当 $x_{ij} > 0$ 时,即当从工厂 $i$ 到地点 $j$ 有正向运输量时,必须满足 $u_i + v_j = c_{ij}$。




## Python最优传输包

有一个优秀的[Python包](https://pythonot.github.io/)专门用于最优传输,它简化了我们上面采取的一些步骤。
Expand All @@ -637,7 +627,6 @@ $$

(话虽如此,上面关于向量化的讨论仍然很重要,因为我们想要了解其内部运作原理。)


### 复现之前的结果

下面这行代码使用线性规划解决了上面讨论的示例应用。
Expand Down
2 changes: 1 addition & 1 deletion lectures/pandas_panel.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ translation:
```{code-cell} ipython3
:tags: [hide-output]

!pip install --upgrade seaborn
!pip install seaborn
```

我们使用以下导入语句。
Expand Down
4 changes: 2 additions & 2 deletions lectures/robust_permanent_income.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ translation:

```{code-cell} ipython3
:tags: [hide-output]
!pip install --upgrade quantecon
!pip install quantecon
```

## 概述
Expand Down Expand Up @@ -1025,4 +1025,4 @@ plt.show()

将风险的市场价格重新诠释为*模型不确定性的价格*、并通过检测误差概率进行校准,是 {cite:t}`BHS_2009` 的主题;对稳健性、定价和模型检测的更广泛的半群处理在 {cite:t}`AHS_2003` 中。

两者都直接建立在 {cite:t}`HST_1999` 之上。
两者都直接建立在 {cite:t}`HST_1999` 之上。
Loading