From 44d6c60ed608319c35c97e6da9e8c0cd18e8030c Mon Sep 17 00:00:00 2001 From: UdohNakamura <159118172+UdohNakamura@users.noreply.github.com> Date: Mon, 7 Jul 2025 12:30:57 +0900 Subject: [PATCH] Update ge_arrow.md --- lectures/ge_arrow.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lectures/ge_arrow.md b/lectures/ge_arrow.md index a20513b4b..3886d6ad8 100644 --- a/lectures/ge_arrow.md +++ b/lectures/ge_arrow.md @@ -964,7 +964,7 @@ class RecurCompetitive: def price_risk_free_bond(self): "Give Q, compute price of one-period risk free bond" - PRF = np.sum(self.Q, 0) + PRF = np.sum(self.Q, axis=1) self.PRF = PRF return PRF @@ -972,7 +972,7 @@ class RecurCompetitive: def risk_free_rate(self): "Given Q, compute one-period gross risk-free interest rate R" - R = np.sum(self.Q, 0) + R = np.sum(self.Q, axis=1) R = np.reciprocal(R) self.R = R