QuantEcon.lectures.code
QuantEcon.lectures.code copied to clipboard
Modeling Career Choice
-
The outcome of career/career_vf_plot.py does not look nice like the figure in the lecture.
-
In the solution to Exercise 1:
-
max_iter=200
should be added tocompute_fixed_point
. - The line
theta_path, epsilon_path = gen_path()
should be placed inside thefor ax in axes
loop.
-
-
In the solution to Exercise 2, for the case of
beta=0.99
:- The median should be about 14, rather than 11 as stated.
- If one wants to avoid getting a
RuntimeWarning
from non convergence,max_iter
should be set, for example, to1000
(if the default tolerance is used).
@oyamad Thanks!
Hi @oyamad, did you want to add max_iter=1000 in the sentence "To compute the median with β=0.99β=0.99 instead of the default value β=0.95β=0.95, replace wp = CareerWorkerProblem() with wp = CareerWorkerProblem(beta=0.99)" ?
It seems like the relevant sentence has been added, although CareerWorkerProblem()
cannot take a max_iter
argument. I'll fix this now.
Fixed here: https://github.com/jstac/QuantEcon.lectures/pull/834
I think this issue is ready to be closed.