@@ -10,6 +10,35 @@ kernelspec:
1010 display_name : Python 3 (ipykernel)
1111 language : python
1212 name : python3
13+ translation :
14+ title : 带有阿罗证券的竞争均衡
15+ headings :
16+ Introduction : 引言
17+ The setting : 设定
18+ The setting::Preferences and endowments : 偏好和禀赋
19+ Recursive Formulation : 递归表述
20+ State Variable Degeneracy : 状态变量退化
21+ Markov Asset Prices : 马尔可夫资产价格
22+ Markov Asset Prices::Exogenous Pricing Kernel : 外生定价核
23+ Markov Asset Prices::Multi-Step-Forward Transition Probabilities and Pricing Kernels : 多步前向转移概率和定价核
24+ Markov Asset Prices::Laws of Iterated Expectations and Iterated Values : 迭代期望法则和迭代值法则
25+ General Equilibrium : 一般均衡
26+ General Equilibrium::Inputs : 输入
27+ General Equilibrium::Outputs : 输出
28+ General Equilibrium::$Q$ is the Pricing Kernel : $Q$ 是定价核
29+ General Equilibrium::Values : 数值
30+ General Equilibrium::Continuation Wealth : 延续财富
31+ General Equilibrium::Optimal Portfolios : 最优投资组合
32+ General Equilibrium::Equilibrium Wealth Distribution $\alpha$ : 均衡财富分布 $\alpha$
33+ Finite Horizon : 有限期限
34+ Finite Horizon::Continuation Wealths : 延续财富
35+ Python Code : Python代码
36+ Examples : 示例
37+ Examples::Example 1 : 示例 1
38+ Examples::Example 2 : 示例 2
39+ Examples::Example 3 : 示例 3
40+ Examples::Example 4 : 示例 4
41+ Examples::Finite Horizon Example : 有限期限示例
1342---
1443
1544# 带有阿罗证券的竞争均衡
@@ -854,15 +883,15 @@ class RecurCompetitive:
854883 def price_risk_free_bond(self):
855884 "给定Q,计算一期无风险债券价格"
856885
857- PRF = np.sum(self.Q, 0 )
886+ PRF = np.sum(self.Q, axis=1 )
858887 self.PRF = PRF
859888
860889 return PRF
861890
862891 def risk_free_rate(self):
863892 "给定Q,计算一期无风险利率R"
864893
865- R = np.sum(self.Q, 0 )
894+ R = np.sum(self.Q, axis=1 )
866895 R = np.reciprocal(R)
867896 self.R = R
868897
@@ -1272,4 +1301,3 @@ ex1.ψ, ex1_large.ψ[-1]
12721301ex1_large.value_functionss()
12731302ex1.J, ex1_large.J[-1]
12741303```
1275-
0 commit comments