You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lectures/calvo_gradient.md
+29-21Lines changed: 29 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,6 @@ kernelspec:
11
11
name: python3
12
12
---
13
13
14
-
15
14
# A Model of Calvo
16
15
17
16
This lecture describes a linear-quadratic versions of a model that Guillermo Calvo {cite}`Calvo1978` used to illustrate the **time inconsistency** of optimal government
@@ -318,8 +317,7 @@ We use the following imports in this lecture
318
317
from quantecon import LQ
319
318
import numpy as np
320
319
import jax.numpy as jnp
321
-
from jax import jit
322
-
import jax
320
+
from jax import jit, grad
323
321
import optax
324
322
import statsmodels.api as sm
325
323
import matplotlib.pyplot as plt
@@ -449,7 +447,7 @@ Now we compute the value of $V$ under this setup, and compare it against those o
0 commit comments