@@ -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
342343perpetuity_1 = (β / (1 - β)) * μ1_go(0, 0)
343344perpetuity_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
362364price_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
488490dominant = None
489491for 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