Skip to content

Commit 56903df

Browse files
authored
Update harrison_kreps.md (#645)
Fixed axes
1 parent a137f5d commit 56903df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lectures/harrison_kreps.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,15 +414,15 @@ def price_optimistic_beliefs(transitions, dividend_payoff, β=.75,
414414
p_old = p_new
415415
p_new = β * np.max([q @ p_old
416416
+ q @ dividend_payoff for q in transitions],
417-
1)
417+
axis=0)
418418
419419
# If we succeed in converging, break out of for loop
420420
if np.max(np.sqrt((p_new - p_old)**2)) < tol:
421421
break
422422
423423
ptwiddle = β * np.min([q @ p_old
424424
+ q @ dividend_payoff for q in transitions],
425-
1)
425+
axis=0)
426426
427427
phat_a = np.array([p_new[0], ptwiddle[1]])
428428
phat_b = np.array([ptwiddle[0], p_new[1]])
@@ -482,7 +482,7 @@ def price_pessimistic_beliefs(transitions, dividend_payoff, β=.75,
482482
p_old = p_new
483483
p_new = β * np.min([q @ p_old
484484
+ q @ dividend_payoff for q in transitions],
485-
1)
485+
axis=0)
486486
487487
# If we succeed in converging, break out of for loop
488488
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
614614
```{solution-end}
615615
```
616616
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.

0 commit comments

Comments
 (0)