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

Fail to obtain True solution. #24

Open
tokuma09 opened this issue Nov 28, 2018 · 3 comments
Open

Fail to obtain True solution. #24

tokuma09 opened this issue Nov 28, 2018 · 3 comments

Comments

@tokuma09
Copy link
Contributor

I'm testing this package by computing optimal growth model with productivity shocks.

However, the result by using ContinuousDPs.jl is different from true solution, if I correctly use this package.

Model settings and my implimentation is here. In this example, I use PFI but VFI also fails to obtain true solution.

This package may have some bugs in solve method.

@oyamad
Copy link
Member

oyamad commented Nov 29, 2018

@tokupooh Thanks.
Will you write your Bellman equation in the notebook?

@tokuma09
Copy link
Contributor Author

Sure. I add Bellman equation in the notebook. We can access my updated notebook by above link.

In addition, I recognize some difference between this package and algorithm in Judd(1998), however, this may not be related with this problem.

In this package, we check the convergence of polynomial coefficients to stop iteration.
On the other hand, Judd proposed we need to check the convergence of approximated value function to stop iteration.

Doesn't this matter ?

@oyamad
Copy link
Member

oyamad commented Nov 29, 2018

  • You can check the difference between the computed V and the value of the Bellman operator for V.

  • I played a bit with your notebook. It seems that the choice of the lower and upper bounds for the state variable, in particular for z, affects the outcome significantly.

  • I don't know how much we can expect with the collocation method + quadrature method for a choice of the number of grid points, so I can't determine whether the difference between the analytical and the computed solutions is too large.

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

2 participants