QuantEcon · GitHub

Commit 59f9637

authored

Update rng usage in organization_capital.md (#1014)

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lectures

Lines changed: 2 additions & 2 deletions

Original file line numberDiff line numberDiff line change

@@ -188,13 +188,13 @@ mystnb:

188188

caption: Posterior mean convergence and uncertainty

189189

name: fig-posterior-evolution

190190

---

191-

np.random.seed(0)

191+

rng = np.random.default_rng(0)

192192
193193

θ_true = 0.8

194194

π = 1.0

195195
196196

T = 20

197-

ε = np.random.randn(T)

197+

ε = rng.standard_normal(T)

198198

z_signals = θ_true + ε

199199
200200

posterior_means = []

0 commit comments

Comments

 (0)

Read the original on github.com ↗