Skip to content

Commit 7003f69

Browse files
committed
minor updates
1 parent b94d9e3 commit 7003f69

25 files changed

+106
-103
lines changed

lectures/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
title: Python数量经济学入门
1+
title: Python量化经济学入门
22
author: 托马斯·萨金特(Thomas J. Sargent)和约翰·斯塔胡斯基(John Stachurski)
33
logo: _static/qe-logo.png
44
description: 本课程是由托马斯·萨金特(Thomas J. Sargent)和约翰·斯塔胡斯基(John Stachurski)设计和撰写的计算经济学入门讲座。

lectures/_static/lecture_specific/markov_chains_I/figures.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"name": "stdout",
1919
"output_type": "stream",
2020
"text": [
21-
"Requirement already satisfied: graphviz in /Users/mmcky/anaconda3/envs/quantecon/lib/python3.11/site-packages (0.20.3)\n"
21+
"Requirement already satisfied: graphviz in /home/humphrey/anaconda3/envs/quantecon/lib/python3.10/site-packages (0.20.3)\n"
2222
]
2323
}
2424
],
@@ -146,7 +146,7 @@
146146
],
147147
"metadata": {
148148
"kernelspec": {
149-
"display_name": "Python 3 (ipykernel)",
149+
"display_name": "quantecon",
150150
"language": "python",
151151
"name": "python3"
152152
},
@@ -160,7 +160,7 @@
160160
"name": "python",
161161
"nbconvert_exporter": "python",
162162
"pygments_lexer": "ipython3",
163-
"version": "3.11.7"
163+
"version": "3.10.12"
164164
}
165165
},
166166
"nbformat": 4,
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
digraph {
22
rankdir=LR
3-
poor
4-
"middle class"
5-
rich
6-
poor -> poor [label=0.9]
7-
poor -> "middle class" [label=0.1]
8-
"middle class" -> poor [label=0.4]
9-
"middle class" -> "middle class" [label=0.4]
10-
"middle class" -> rich [label=0.2]
11-
rich -> poor [label=0.1]
12-
rich -> "middle class" [label=0.1]
13-
rich -> rich [label=0.8]
3+
"贫穷"
4+
"中产"
5+
"富裕"
6+
"贫穷" -> "贫穷" [label=0.9]
7+
"贫穷" -> "中产" [label=0.1]
8+
"中产" -> "贫穷" [label=0.4]
9+
"中产" -> "中产" [label=0.4]
10+
"中产" -> "富裕" [label=0.2]
11+
"富裕" -> "贫穷" [label=0.1]
12+
"富裕" -> "中产" [label=0.1]
13+
"富裕" -> "富裕" [label=0.8]
1414
}
-2.21 KB
Loading
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
digraph {
22
rankdir=LR
3-
poor
4-
"middle class"
5-
rich
6-
poor -> poor [label=1.0]
7-
"middle class" -> poor [label=0.1]
8-
"middle class" -> "middle class" [label=0.8]
9-
"middle class" -> rich [label=0.1]
10-
rich -> "middle class" [label=0.2]
11-
rich -> rich [label=0.8]
3+
"贫穷"
4+
"中产"
5+
"富裕"
6+
"贫穷" -> "贫穷" [label=1.0]
7+
"中产" -> "贫穷" [label=0.1]
8+
"中产" -> "中产" [label=0.8]
9+
"中产" -> "富裕" [label=0.1]
10+
"富裕" -> "中产" [label=0.2]
11+
"富裕" -> "富裕" [label=0.8]
1212
}
564 Bytes
Loading
-300 Bytes
Loading

lectures/_static/lecture_specific/markov_chains_II/figures.ipynb

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@
6868
"source": [
6969
"dot = Digraph(format='png')\n",
7070
"dot.attr(rankdir='LR')\n",
71-
"dot.node(\"poor\")\n",
72-
"dot.node(\"middle class\")\n",
73-
"dot.node(\"rich\")\n",
71+
"dot.node(\"贫穷\")\n",
72+
"dot.node(\"中产\")\n",
73+
"dot.node(\"富裕\")\n",
7474
"\n",
75-
"dot.edge(\"poor\", \"poor\", label=\"0.9\")\n",
76-
"dot.edge(\"poor\", \"middle class\", label=\"0.1\")\n",
77-
"dot.edge(\"middle class\", \"poor\", label=\"0.4\")\n",
78-
"dot.edge(\"middle class\", \"middle class\", label=\"0.4\")\n",
79-
"dot.edge(\"middle class\", \"rich\", label=\"0.2\")\n",
80-
"dot.edge(\"rich\", \"poor\", label=\"0.1\")\n",
81-
"dot.edge(\"rich\", \"middle class\", label=\"0.1\")\n",
82-
"dot.edge(\"rich\", \"rich\", label=\"0.8\")\n",
75+
"dot.edge(\"贫穷\", \"贫穷\", label=\"0.9\")\n",
76+
"dot.edge(\"贫穷\", \"中产\", label=\"0.1\")\n",
77+
"dot.edge(\"中产\", \"贫穷\", label=\"0.4\")\n",
78+
"dot.edge(\"中产\", \"中产\", label=\"0.4\")\n",
79+
"dot.edge(\"中产\", \"富裕\", label=\"0.2\")\n",
80+
"dot.edge(\"富裕\", \"贫穷\", label=\"0.1\")\n",
81+
"dot.edge(\"富裕\", \"中产\", label=\"0.1\")\n",
82+
"dot.edge(\"富裕\", \"富裕\", label=\"0.8\")\n",
8383
"\n",
8484
"dot\n",
8585
"dot.render(filename='Irre_1')"
@@ -105,16 +105,16 @@
105105
"source": [
106106
"dot = Digraph(format='png')\n",
107107
"dot.attr(rankdir='LR')\n",
108-
"dot.node(\"poor\")\n",
109-
"dot.node(\"middle class\")\n",
110-
"dot.node(\"rich\")\n",
108+
"dot.node(\"贫穷\")\n",
109+
"dot.node(\"中产\")\n",
110+
"dot.node(\"富裕\")\n",
111111
"\n",
112-
"dot.edge(\"poor\", \"poor\", label=\"1.0\")\n",
113-
"dot.edge(\"middle class\", \"poor\", label=\"0.1\")\n",
114-
"dot.edge(\"middle class\", \"middle class\", label=\"0.8\")\n",
115-
"dot.edge(\"middle class\", \"rich\", label=\"0.1\")\n",
116-
"dot.edge(\"rich\", \"middle class\", label=\"0.2\")\n",
117-
"dot.edge(\"rich\", \"rich\", label=\"0.8\")\n",
112+
"dot.edge(\"贫穷\", \"贫穷\", label=\"1.0\")\n",
113+
"dot.edge(\"中产\", \"贫穷\", label=\"0.1\")\n",
114+
"dot.edge(\"中产\", \"中产\", label=\"0.8\")\n",
115+
"dot.edge(\"中产\", \"富裕\", label=\"0.1\")\n",
116+
"dot.edge(\"富裕\", \"中产\", label=\"0.2\")\n",
117+
"dot.edge(\"富裕\", \"富裕\", label=\"0.8\")\n",
118118
"\n",
119119
"dot\n",
120120
"dot.render(filename='Irre_2')"

lectures/about.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,37 @@
22

33
## 简介
44

5-
这个讲座系列使用基础数学、统计学及[Python](https://www.python.org/)来介绍数量经济学
5+
这个讲座系列通过基础数学、统计学和[Python](https://www.python.org/)编程来介绍量化经济学的核心概念
66

7-
讲座强调通过代码进行模拟和图表来传达思想,而不是侧重于数学细节
7+
我们注重通过代码模拟和可视化图表来传达经济学思想,而非过度强调复杂的数学推导
88

9-
虽然这种呈现方式相当新颖,但讨论的观点却是基础性的
9+
虽然这种教学方法相对创新,但我们探讨的经济学概念都是经典且基础的
1010

11-
我们强调经济理论深刻和根本的重要性,同时也重视分析数据和理解典型事实的价值
11+
在这些讲座中,我们既重视经济理论的深刻意义,也强调数据分析和理解现实经济现象的重要性
1212

13-
这些讲座可以用于大学课程、自学、读书小组或研讨会
13+
这些材料适用于多种场景:大学课程、自学、读书小组或专业研讨会
1414

15-
研究人员和政策专业人士也可能会发现系列中的某些部分对他们的工作有价值
15+
从事研究工作的学者和政策制定者也可能在系列中找到对其工作有价值的内容
1616

17-
我们希望这些讲座对那些既想学习经济学又想学习编程的经济学学生感兴趣,以及对经济学感兴趣的计算机科学和工程领域的学生
17+
我们希望这些讲座能吸引两类学生:既想学习经济学又想提升编程能力的经济学专业学生,以及来自计算机科学和工程领域但对经济学感兴趣的学生
1818

19-
## 层级
19+
## 难度层级
2020

21-
这个讲座系列面向本科学生
21+
这个讲座系列主要面向本科生,难度从入门到中级不等
2222

23-
讲座的难度从入门级(适合一年级本科生甚至高中生)到中级的内容
23+
入门级内容适合大一学生甚至高中生,而中级内容则需要一定的线性代数基础和数学思维能力(例如能够理解定理及其含义)
2424

25-
中级的讲座需要对线性代数有一定的了解,并且具有一些数学成熟度(比如可以平静地阅读定理并尝试理解它们的含义)
25+
总体而言,讲座的安排遵循由易到难的原则,前面的内容相对简单,后面的内容逐渐深入
2626

27-
总的来说,较容易的讲座出现在讲座系列的前面,较难的讲座出现在后面
27+
我们假设读者已经学习过QuantEcon的[Python编程基础](https://python-programming.quantecon.org/intro.html)
2828

29-
我们假设读者已经学习了QuantEcon关于Python编程的基础部分[Python编程](https://python-programming.quantecon.org/intro.html)
30-
31-
特别是,读者应该熟悉基本的Python语法,包括Python函数。了解类和Matplotlib会有帮助,但不是必须的。
29+
具体来说,你应该熟悉基本的Python语法和函数编写。了解类和Matplotlib绘图库会有所帮助,但不是必需的。
3230

3331
## 致谢
3432

35-
在构建这个讲座系列时,我们得到了QuantEcon的研究助理以及我们QuantEcon同事的宝贵帮助。没有他们的帮助,这个系列是无法完成的
33+
这个讲座系列的完成离不开QuantEcon研究助理团队和众多同事的宝贵帮助
3634

37-
特别感谢并致谢
35+
特别感谢以下人员的贡献:
3836

3937
- [Aakash Gupta](https://github.com/AakashGfude)
4038
- [Shu Hu](https://github.com/shlff)
@@ -46,4 +44,4 @@
4644
- [Humphrey Yang](https://github.com/HumphreyYang)
4745
- [Sylvia Zhao](https://github.com/SylviaZhaooo)
4846

49-
我们还感谢Noritaka Kudoh鼓励我们开始这个项目并提供了宝贵的建议
47+
我们还要特别感谢Noritaka Kudoh教授,是他鼓励我们启动这个项目并提供了宝贵的建议

lectures/cobweb.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,12 +465,12 @@ def ts_plot_supply(model, p0, ts_length=10):
465465
'bo-',
466466
alpha=0.6,
467467
lw=2,
468-
label=r'supply')
468+
label=r'供给')
469469
470470
ax.legend(loc='best', fontsize=10)
471471
ax.set_xticks(np.arange(ts_length))
472-
ax.set_xlabel("时间")
473-
ax.set_ylabel("数量")
472+
ax.set_xlabel(r"时间")
473+
ax.set_ylabel(r"数量")
474474
plt.show()
475475
```
476476

0 commit comments

Comments
 (0)