From b6f0b4e3d6e31a6b598b45a6fd80c2f6f07e43b4 Mon Sep 17 00:00:00 2001 From: Humphrey Yang Date: Wed, 28 Jun 2023 18:49:17 +0900 Subject: [PATCH] fix a small bug in inventory lecture --- lectures/inventory_dynamics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/inventory_dynamics.md b/lectures/inventory_dynamics.md index d53961f1..c421e9e3 100644 --- a/lectures/inventory_dynamics.md +++ b/lectures/inventory_dynamics.md @@ -182,7 +182,7 @@ def shift_firms_forward(x_init, firm, sample_dates, _, key = random.split(key) # draw a sample at the sample dates - if (i in sample_dates): + if (i+1 in sample_dates): res = jnp.vstack((res, X)) return res[1:]