@@ -414,15 +414,15 @@ def price_optimistic_beliefs(transitions, dividend_payoff, β=.75,
|
414 | 414 | p_old = p_new |
415 | 415 | p_new = β * np.max([q @ p_old |
416 | 416 | + q @ dividend_payoff for q in transitions], |
417 | | - 1) |
| 417 | + axis=0) |
418 | 418 | |
419 | 419 | # If we succeed in converging, break out of for loop |
420 | 420 | if np.max(np.sqrt((p_new - p_old)**2)) < tol: |
421 | 421 | break |
422 | 422 | |
423 | 423 | ptwiddle = β * np.min([q @ p_old |
424 | 424 | + q @ dividend_payoff for q in transitions], |
425 | | - 1) |
| 425 | + axis=0) |
426 | 426 | |
427 | 427 | phat_a = np.array([p_new[0], ptwiddle[1]]) |
428 | 428 | phat_b = np.array([ptwiddle[0], p_new[1]]) |
@@ -482,7 +482,7 @@ def price_pessimistic_beliefs(transitions, dividend_payoff, β=.75,
|
482 | 482 | p_old = p_new |
483 | 483 | p_new = β * np.min([q @ p_old |
484 | 484 | + q @ dividend_payoff for q in transitions], |
485 | | - 1) |
| 485 | + axis=0) |
486 | 486 | |
487 | 487 | # If we succeed in converging, break out of for loop |
488 | 488 | if np.max(np.sqrt((p_new - p_old)**2)) < tol: |
@@ -614,4 +614,4 @@ with **permanently optimistic** investors - this is due to the marginal investor
|
614 | 614 | ```{solution-end} |
615 | 615 | ``` |
616 | 616 | |
617 | | -[^f1]: By assuming that both types of agents always have "deep enough pockets" to purchase all of the asset, the model takes wealth dynamics off the table. The Harrison-Kreps model generates high trading volume when the state changes either from 0 to 1 or from 1 to 0. |
| 617 | +[^f1]: By assuming that both types of agents always have "deep enough pockets" to purchase all of the asset, the model takes wealth dynamics off the table. The Harrison-Kreps model generates high trading volume when the state changes either from 0 to 1 or from 1 to 0. |