Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lectures/solow.md
Original file line number Diff line number Diff line change
Expand Up @@ -589,13 +589,14 @@ s = 0.6
α = 0.3
δ = 0.5
x0 = [.25, 3.25] # list of initial values used for simulation
rng = np.random.default_rng()
```

Let's define the function *k_next* to find the next value of $k$

```{code-cell} ipython3
def lgnorm():
return np.exp(μ + σ * np.random.randn())
return np.exp(μ + σ * rng.standard_normal())

def k_next(s, α, δ, k):
return lgnorm() * s * k**α + (1 - δ) * k
Expand Down
Loading