-
-
Notifications
You must be signed in to change notification settings - Fork 26
[update_olg] Editorial updates from #434 #438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commit is related to #434. In particular, it involves: Code: - `x=1000` to `n=1000`; - vectorize `k_grid_next` - add y labels to plot in 24.6.3 - remove duplicate codes Content - Add hyphen to 'long run growth' and '45 degree line' - firm problem to firm's problem to match with the title - interest rate to gross interest rate to match with the content later - change $\ell_t w_t$ to $w_t \ell_t$ to match the order with $\R_t k_t$
✅ Deploy Preview for taupe-gaufre-c4e660 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
- fix error in previous commit
k_grid_next = np.empty_like(k_grid) | ||
|
||
for i in range(x): | ||
for i in range(n): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mmcky, in the exercise, we define k_update
again as follows,
def k_update(k, model):
return optimize.newton(lambda k_prime: f(k_prime, k, model), 0.1)
but this time, the k_update
function is not inherently vectorized as in the main text, which is
def k_update(k, α, β):
return β * (1 - α) * k**α / (1 + β)
So we cannot use the way in the main text to vectorize k_grid_next
.
Best,
Longye
thanks @longye-tian just had a few questions above. |
@jstac this looks ready for your review. |
Nice work @longye-tian , many thanks. |
Dear John @jstac ,
I have updated the lecture on OLG model (olg.md) according to the editorial suggestions #434. In particular, this pull request update:
Code:
x=1000
ton=1000
;k_grid_next
Content
Add hyphen to 'long run growth' and '45 degree line'
firm problem to firm's problem to match with the title
interest rate to gross interest rate to match with the content later
change$\ell_t w_t$ to $w_t \ell_t$ to match the order with $R_t k_t$
Best ❤️
Longye