Skip to content

Commit 03c354d

Browse files
committed
Update translation: lectures/newton_method.md
1 parent e269078 commit 03c354d

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

lectures/newton_method.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jupytext:
44
extension: .md
55
format_name: myst
66
format_version: 0.13
7-
jupytext_version: 1.14.1
7+
jupytext_version: 1.16.7
88
kernelspec:
99
display_name: Python 3 (ipykernel)
1010
language: python
@@ -51,6 +51,14 @@ translation:
5151
:depth: 2
5252
```
5353

54+
除了 Anaconda 中已有的库之外,本讲座还需要以下库:
55+
56+
```{code-cell} ipython3
57+
:tags: [hide-output]
58+
59+
!pip install jax
60+
```
61+
5462
## 概述
5563

5664
许多经济问题涉及寻找[不动点](https://baike.baidu.com/item/%E4%B8%8D%E5%8A%A8%E7%82%B9?fromModule=lemma_search-box)[零点](https://baike.baidu.com/item/%E9%9B%B6%E7%82%B9/19736260?fromModule=lemma_search-box)(有时也称为"根")。
@@ -217,7 +225,6 @@ plt.show()
217225

218226
我们看到 $k^*$ 确实是唯一的正固定点。
219227

220-
221228
#### 连续近似法
222229

223230
首先让我们用连续近似法来计算固定点。
@@ -361,7 +368,6 @@ plot_trajectories(params)
361368

362369
我们可以看到牛顿法比连续逼近法收敛得更快。
363370

364-
365371
## 一维求根
366372

367373
在上一节中我们计算了不动点。
@@ -370,7 +376,6 @@ plot_trajectories(params)
370376

371377
让我们讨论这个"求根"问题,然后说明它与寻找不动点的问题是如何联系的。
372378

373-
374379
### 牛顿法求零点
375380

376381
假设我们想要找到一个 $x$ 使得对某个光滑函数 $f$ (从实数映射到实数)有 $f(x)=0$。
@@ -452,7 +457,6 @@ k_star_approx_newton
452457

453458
结果证实了我们在上面图表中看到的收敛情况:仅需5次迭代就达到了非常精确的结果。
454459

455-
456460
## 多元牛顿法
457461

458462
在本节中,我们将介绍一个双商品问题,可视化问题,并使用`SciPy`中的零点查找器和牛顿法来求解这个双商品市场的均衡。
@@ -677,7 +681,6 @@ e_p.item()
677681

678682
这确实是一个很小的误差。
679683

680-
681684
#### 添加梯度信息
682685

683686
在许多情况下,对于应用于光滑函数的零点查找算法,提供函数的[雅可比矩阵](https://baike.baidu.com/item/%E9%9B%85%E5%8F%AF%E6%AF%94%E7%9F%A9%E9%98%B5?fromModule=lemma_search-box)可以带来更好的收敛性质。
@@ -784,7 +787,6 @@ e_p.item()
784787

785788
在开销较大的情况下,速度并不比经过优化的`scipy`函数更快。
786789

787-
788790
### 高维问题
789791

790792
我们的下一步是研究一个有3,000种商品的大型市场。

0 commit comments

Comments
 (0)