Skip to content

Commit 4fbfa40

Browse files
authored
Fix calculation of H in lqramsey.md
1 parent a8a0d8d commit 4fbfa40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lectures/lqramsey.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def compute_paths(T, econ):
693693
ns = P.shape[0]
694694
F = scipy.linalg.inv(eye(ns) - β * P)
695695
a0 = 0.5 * (F @ (x_vals.T @ Sm.T)**2)[0]
696-
H = ((Sb - Sd + Sg) @ x_vals) * ((Sg - Ss) @ x_vals)
696+
H = ((Sb - Sd + Sg) @ x_vals) * ((Sg + Ss) @ x_vals)
697697
b0 = 0.5 * (F @ H.T)[0]
698698
a0, b0 = float(a0[0]), float(b0[0])
699699
else:

0 commit comments

Comments
 (0)