Docsity

Numerical Dynamic Programming, Exams of Economics

Partial preview of the text

Download Numerical Dynamic Programming and more Exams Economics in PDF only on Docsity!

Numerical Dynamic Programming

Jesus Fernandez-Villaverde

University of Pennsylvania

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:

  1. Finite versus in nite time.
  2. Discrete versus continuous state space.

In nite Time

 Problems where there is no terminal condition.  Examples:

  1. Industry dynamics.
  2. Business cycle dynamics.  However, we will need the equivalent of a terminal condition: transver- sality condition.

Discrete State Space

 We can solve problems up to oating point accuracy.  Why is this important?

  1. "-equilibria.
  2. Estimation.  However, how realistic are models with a discrete state space.

Di erent Strategies

  1. Value Function Iteration.
  2. Policy Function Iteration.
  3. Projection.
  4. Perturbation.

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:

  1. Steady state of the problem (if one exists). Usually saves at least one iteration.
  2. Collapsing one or more dimensions of the problem. Which one?

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:

  1. How to select points sk:
  2. How to approximate p by pN :  Answer to second issue follows from answer to rst problem.  We can (and we will) combine strategies to generate grids.

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 :