Skip to content
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

Implement Bianchi overborrowing model #121

Closed
jstac opened this issue Sep 28, 2022 · 8 comments
Closed

Implement Bianchi overborrowing model #121

jstac opened this issue Sep 28, 2022 · 8 comments

Comments

@jstac
Copy link
Contributor

jstac commented Sep 28, 2022

Implement the model in Overborrowing and Systemic Externalities in the Business Cycle

On http://www.javierbianchi.com/research.html there is Matlab code.

Can anyone reproduce Fig 1 of the paper in Python or Julia? I've had a go but couldn't get the same output. If you run main.m in the Matlab zip file you'll see that the code seems to roughly reproduce Fig 1.

It would be enough just to replicate the decentralized equilibrium, which is up to line 162 in main.m

CC @Smit-create @chien-y @Flintro @natashawatkins @cc7768 @shlff --- in case anyone feels like a small coding challenge :-)

@jstac
Copy link
Contributor Author

jstac commented Sep 28, 2022

Here's my not very successful attempt: https://gist.github.com/jstac/0b0fbe7a3afcdd14c9286154235138b2

@jstac
Copy link
Contributor Author

jstac commented Sep 28, 2022

CC @crondonm

@shlff
Copy link
Member

shlff commented Oct 3, 2022

Thanks @jstac and @Flintro. It is a very interesting paper.

Just in case when you read. There is a small typo in their definition 1 on page 3406 that the second $\hat c^N (b, B, y)$ should be $\hat c^T (b, B, y)$. Please find the circle in the following screenshot:
Screen Shot 2022-10-03 at 2 24 40 pm

@jstac
Copy link
Contributor Author

jstac commented Oct 3, 2022

Thanks @shlff , nice pick up.

I agree it's an interesting line of work, and potentially very useful.

@jstac
Copy link
Contributor Author

jstac commented Oct 26, 2022

@Flintro, did you find time to take a look? @shlff please keep me posted if you make progress.

CC @zejinshi, in case you have time + interest.
CC @Shunsuke-Hori in case you have time + interest, and a Julia version would be fine.

@Flintro
Copy link

Flintro commented Oct 28, 2022

@jstac I think I've fixed the issue for the decentralised but the planner is still a bit buggy. I'll email the ipynb to you.

@jstac
Copy link
Contributor Author

jstac commented Oct 28, 2022

Huge thanks to @Flintro for finding the typos in my code that were messing up the equations!

Closing this in favor of QuantEcon/cbc_workshops#3

@jstac jstac closed this as completed Oct 28, 2022
@shlff
Copy link
Member

shlff commented Oct 29, 2022

@jstac sorry a bit late but I reckon I also find the typo. I'll email mine to you too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants