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.