Skip to content

Commit 3940717

Browse files
committed
minor updates
1 parent 6f75ace commit 3940717

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lectures/morris_learn.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ Trader 1 is the global optimist, so the normalized price equals trader 1's funda
337337

338338
```{code-cell} ipython3
339339
β = 0.75
340-
price_go, μ1_go, μ2_go = price_learning_two_agents((2,1), (1,2), β=β, T=150)
340+
price_go, μ1_go, μ2_go = price_learning_two_agents(
341+
(2,1), (1,2), β=β, T=150)
341342
342343
perpetuity_1 = (β / (1 - β)) * μ1_go(0, 0)
343344
perpetuity_2 = (β / (1 - β)) * μ2_go(0, 0)
@@ -357,7 +358,8 @@ These produce crossing posteriors, so there is no global optimist and the price
357358

358359
```{code-cell} ipython3
359360
β = .75
360-
price_ps, μ1_ps, μ2_ps = price_learning_two_agents((1,1), (0.5,0.5), β=β, T=200)
361+
price_ps, μ1_ps, μ2_ps = price_learning_two_agents(
362+
(1,1), (0.5,0.5), β=β, T=200)
361363
362364
price_00 = price_ps[0,0]
363365
μ1_00 = μ1_ps(0,0)
@@ -487,7 +489,8 @@ Let's verify using the code below
487489
```{code-cell} ipython3
488490
dominant = None
489491
for i in range(len(priors)):
490-
is_dom = all(priors[i][0] >= priors[j][0] and priors[i][1] <= priors[j][1]
492+
is_dom = all(
493+
priors[i][0] >= priors[j][0] and priors[i][1] <= priors[j][1]
491494
for j in range(len(priors)) if i != j)
492495
if is_dom:
493496
dominant = i

0 commit comments

Comments
 (0)