From 2a02fa3e1c502fad189bf02d38ade98c65bd50e8 Mon Sep 17 00:00:00 2001 From: UdohNakamura <159118172+UdohNakamura@users.noreply.github.com> Date: Mon, 13 Oct 2025 13:57:51 +0900 Subject: [PATCH] Update harrison_kreps.md Fixed axes --- lectures/harrison_kreps.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lectures/harrison_kreps.md b/lectures/harrison_kreps.md index ee94938fe..631f12f22 100644 --- a/lectures/harrison_kreps.md +++ b/lectures/harrison_kreps.md @@ -414,7 +414,7 @@ def price_optimistic_beliefs(transitions, dividend_payoff, β=.75, p_old = p_new p_new = β * np.max([q @ p_old + q @ dividend_payoff for q in transitions], - 1) + axis=0) # If we succeed in converging, break out of for loop if np.max(np.sqrt((p_new - p_old)**2)) < tol: @@ -422,7 +422,7 @@ def price_optimistic_beliefs(transitions, dividend_payoff, β=.75, ptwiddle = β * np.min([q @ p_old + q @ dividend_payoff for q in transitions], - 1) + axis=0) phat_a = np.array([p_new[0], ptwiddle[1]]) phat_b = np.array([ptwiddle[0], p_new[1]]) @@ -482,7 +482,7 @@ def price_pessimistic_beliefs(transitions, dividend_payoff, β=.75, p_old = p_new p_new = β * np.min([q @ p_old + q @ dividend_payoff for q in transitions], - 1) + axis=0) # If we succeed in converging, break out of for loop 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 ```{solution-end} ``` -[^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. \ No newline at end of file +[^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.