From 4fbfa40e3635b7fb6329c4ea7a6973ad01060456 Mon Sep 17 00:00:00 2001 From: Yuga SUDA Date: Mon, 27 Oct 2025 14:26:54 +0900 Subject: [PATCH 1/2] Fix calculation of H in lqramsey.md --- lectures/lqramsey.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/lqramsey.md b/lectures/lqramsey.md index fa6ee355..cff60876 100644 --- a/lectures/lqramsey.md +++ b/lectures/lqramsey.md @@ -693,7 +693,7 @@ def compute_paths(T, econ): ns = P.shape[0] F = scipy.linalg.inv(eye(ns) - β * P) a0 = 0.5 * (F @ (x_vals.T @ Sm.T)**2)[0] - H = ((Sb - Sd + Sg) @ x_vals) * ((Sg - Ss) @ x_vals) + H = ((Sb - Sd + Sg) @ x_vals) * ((Sg + Ss) @ x_vals) b0 = 0.5 * (F @ H.T)[0] a0, b0 = float(a0[0]), float(b0[0]) else: From 0b09889125ee7eb7a0d7f86ec7b0e2a072b5d437 Mon Sep 17 00:00:00 2001 From: Yuga SUDA Date: Mon, 27 Oct 2025 14:45:07 +0900 Subject: [PATCH 2/2] Fix variable in risk-free rate and summation notation Typo fixes. --- lectures/lqramsey.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lectures/lqramsey.md b/lectures/lqramsey.md index cff60876..74705df3 100644 --- a/lectures/lqramsey.md +++ b/lectures/lqramsey.md @@ -510,7 +510,7 @@ Define ```{math} :label: lq_rfr -R^{-1}_{t} := \mathbb E_t \beta^j p^t_{t+1} +R^{-1}_{t} := \mathbb E_t \beta p^t_{t+1} ``` $R_{t}$ is the gross $1$-period risk-free rate for loans @@ -527,7 +527,7 @@ $$ and the cumulation of $\pi_t$ $$ -\Pi_t := \sum_{s=0}^t \pi_t +\Pi_t := \sum_{s=0}^t \pi_s $$ The term $\pi_{t+1}$ is the difference between two quantities: