























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
























Introduction
In the last set of lecture notes, we reviewed some theoretical back- ground on numerical programming. Now, we will discuss numerical implementation. Two issues:
In nite Time
Problems where there is no terminal condition. Examples:
Discrete State Space
We can solve problems up to oating point accuracy. Why is this important?
Di erent Strategies
Value Function Iteration
Well known, basic algorithm of dynamic programming. We have tight convergence properties and bounds on errors. Well suited for parallelization. It will always (perhaps quite slowly) work.
Value Function Iteration in Finite Time
We begin with the Bellman operator: V t (s) = (^) amax 2 A(s) u (s; a) +^ Z V t^0 s^0 p ds^0 js; a
Specify V T^ and apply Bellman operator: V T^ ^1 (s) = (^) a 2 maxA(s) u (s; a) +^ Z V T^ s^0 p ds^0 js; a
Iterate until rst period: V 1 (s) = (^) amax 2 A(s) u (s; a) + Z V 2 s^0 p ds^0 js; a
Value Function Iteration in In nite Time
We begin with the Bellman operator: (V ) (s) = (^) amax 2 A(s) u (s; a) +^ Z V s^0 p ds^0 js; a
Specify V 0 and apply Bellman operator: V 1 (s) = (^) amax 2 A(s) u (s; a) +^ Z V 0 s^0 p ds^0 js; a
Iterate until convergence: V T^ (s) = (^) amax 2 A(s)^ u (s; a) +^ Z V T^ ^1 s^0 p ds^0 js; a
Initial Value in Finite Time Problems
Usually, economics of the problem provides natural choices. Example: nal value of an optimal expenditure problem is zero. However, some times there are subtle issues. Example: what is the value of dying? And of bequests? OLG.
Initial Guesses for In nite Time Problems
Theorems tell us we will converge from any initial guess. That does not mean we should not be smart picking our initial guess. Several good ideas:
New Approximated Problem
Exact problem: V (s) = (^) amax 2 A(s)^ (1 ) u (s; a) +^ Z V s^0 p ds^0 js; a
Approximated problem: V^ b (s) = max a 2 Ab(s)
2 (^4) (1 ) u (s; a) + X^ N k= V^ b s^0 k^ pN^ s^0 kjs; a
3 5
Grid Generation
Huge literature on numerical analysis on how to eciently generate grids. Two main issues:
Non-uniform Grid
Use economic theory or error analysis to evaluate where to accumulate points. Standard argument: close to curvatures of the value function. Problem: this an heuristic argument. Self-con rming equilibria in computations.
Quadrature Grid
Tauchen and Hussey (1991). Motivation: quadrature points in integrals Z f (s) p (s) ds ' X N k=1^ f^ (sk)^ wk Gaussian quadrature: we require previous equation to be exact for all polynomials of degree less than or equal to 2N 1 :