Skip to content

Commit 47286bd

Browse files
committed
improve code comments based on feedback
1 parent ff690f5 commit 47286bd

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

lectures/cagan_ree.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,14 @@ First, we store parameters in a `namedtuple`:
243243
```{code-cell} ipython3
244244
# Create the rational expectation version of Cagan model in finite time
245245
CaganREE = namedtuple("CaganREE",
246-
["m0", "μ_seq", "α", "δ", "π_end"])
247-
248-
def create_cagan_model(m0=1, # Initial money supply
249-
α=5, # Sensitivity parameter
250-
μ_seq=None # Rate of growth
251-
):
246+
["m0", # initial money supply
247+
"μ_seq", # sequence of rate of growth
248+
"α", # sensitivity parameter
249+
"δ", # α/(1 + α)
250+
"π_end" # terminal expected inflation
251+
])
252+
253+
def create_cagan_model(m0=1, α=5, μ_seq=None):
252254
δ = α/(1 + α)
253255
π_end = μ_seq[-1] # compute terminal expected inflation
254256
return CaganREE(m0, μ_seq, α, δ, π_end)

0 commit comments

Comments
 (0)